From e9f30da60c264b11666cfee5308c1c2513363866 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Tue, 14 Jul 2020 17:47:13 -0700 Subject: [PATCH 001/142] feat: initial stubbed out version of library --- .../google-analytics-admin/CODE_OF_CONDUCT.md | 43 ++++ .../google-analytics-admin/CONTRIBUTING.md | 65 ++++++ packages/google-analytics-admin/LICENSE | 202 ++++++++++++++++++ packages/google-analytics-admin/README.md | 121 +++++++++++ packages/google-analytics-admin/synth.py | 42 ++++ 5 files changed, 473 insertions(+) create mode 100644 packages/google-analytics-admin/CODE_OF_CONDUCT.md create mode 100644 packages/google-analytics-admin/CONTRIBUTING.md create mode 100644 packages/google-analytics-admin/LICENSE create mode 100644 packages/google-analytics-admin/README.md create mode 100644 packages/google-analytics-admin/synth.py diff --git a/packages/google-analytics-admin/CODE_OF_CONDUCT.md b/packages/google-analytics-admin/CODE_OF_CONDUCT.md new file mode 100644 index 00000000000..46b2a08ea6d --- /dev/null +++ b/packages/google-analytics-admin/CODE_OF_CONDUCT.md @@ -0,0 +1,43 @@ +# Contributor Code of Conduct + +As contributors and maintainers of this project, +and in the interest of fostering an open and welcoming community, +we pledge to respect all people who contribute through reporting issues, +posting feature requests, updating documentation, +submitting pull requests or patches, and other activities. + +We are committed to making participation in this project +a harassment-free experience for everyone, +regardless of level of experience, gender, gender identity and expression, +sexual orientation, disability, personal appearance, +body size, race, ethnicity, age, religion, or nationality. + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery +* Personal attacks +* Trolling or insulting/derogatory comments +* Public or private harassment +* Publishing other's private information, +such as physical or electronic +addresses, without explicit permission +* Other unethical or unprofessional conduct. + +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. +By adopting this Code of Conduct, +project maintainers commit themselves to fairly and consistently +applying these principles to every aspect of managing this project. +Project maintainers who do not follow or enforce the Code of Conduct +may be permanently removed from the project team. + +This code of conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. + +Instances of abusive, harassing, or otherwise unacceptable behavior +may be reported by opening an issue +or contacting one or more of the project maintainers. + +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, +available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) diff --git a/packages/google-analytics-admin/CONTRIBUTING.md b/packages/google-analytics-admin/CONTRIBUTING.md new file mode 100644 index 00000000000..f6c4cf010e3 --- /dev/null +++ b/packages/google-analytics-admin/CONTRIBUTING.md @@ -0,0 +1,65 @@ +# 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. + +## 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. + gcloud auth application-default login + npm run samples-test + + # Run all system tests. + gcloud auth application-default login + npm run system-test + +1. Lint (and maybe fix) any changes: + + npm run fix + +[setup]: https://cloud.google.com/nodejs/docs/setup diff --git a/packages/google-analytics-admin/LICENSE b/packages/google-analytics-admin/LICENSE new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/packages/google-analytics-admin/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-analytics-admin/README.md b/packages/google-analytics-admin/README.md new file mode 100644 index 00000000000..19ae0aae7f5 --- /dev/null +++ b/packages/google-analytics-admin/README.md @@ -0,0 +1,121 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Google Analytics Admin: Node.js Client](https://github.com/googleapis/analytics) + +[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![npm version](https://img.shields.io/npm/v/@google-analytics/admin.svg)](https://www.npmjs.org/package/@google-analytics/admin) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/analytics/master.svg?style=flat)](https://codecov.io/gh/googleapis/analytics) + + + + +Admin client for Node.js + + +* [Google Analytics Admin Node.js Client API Reference][client-docs] +* [Google Analytics Admin Documentation][product-docs] +* [github.com/googleapis/analytics](https://github.com/googleapis/analytics) + +Read more about the client libraries for Cloud APIs, including the older +Google APIs Client Libraries, in [Client Libraries Explained][explained]. + +[explained]: https://cloud.google.com/apis/docs/client-libraries-explained + +**Table of contents:** + + +* [Quickstart](#quickstart) + * [Before you begin](#before-you-begin) + * [Installing the client library](#installing-the-client-library) + + +* [Versioning](#versioning) +* [Contributing](#contributing) +* [License](#license) + +## Quickstart + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Google Analytics Admin 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-analytics/admin +``` + + + + + +The [Google Analytics Admin 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://nodejs.org/en/about/releases/). +Libraries are compatible with all current _active_ and _maintenance_ versions of +Node.js. + +Client libraries targetting some end-of-life versions of Node.js are available, and +can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). +The dist-tags follow the naming convention `legacy-(version)`. + +_Legacy Node.js versions are supported as a best effort:_ + +* Legacy versions will not be tested in continuous integration. +* Some security patches may not be able to be backported. +* Dependencies will not be kept up-to-date, and features will not be backported. + +#### Legacy tags available + +* `legacy-8`: install client libraries from this dist-tag for versions + compatible with Node.js 8. + +## Versioning + +This library follows [Semantic Versioning](http://semver.org/). + + + + +This library is considered to be in **alpha**. 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/analytics/blob/master/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 template in this +[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). + +## License + +Apache Version 2.0 + +See [LICENSE](https://github.com/googleapis/analytics/blob/master/LICENSE) + +[client-docs]: https://googleapis.dev/nodejs/analytics-admin/latest/index.html +[product-docs]: https://developers.google.com/analytics-admin/ +[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=analyticsadmin.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started diff --git a/packages/google-analytics-admin/synth.py b/packages/google-analytics-admin/synth.py new file mode 100644 index 00000000000..8fe740596cc --- /dev/null +++ b/packages/google-analytics-admin/synth.py @@ -0,0 +1,42 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""This script is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp +import synthtool.languages.node as node +import subprocess +import logging + +logging.basicConfig(level=logging.DEBUG) + +# run the gapic generator +gapic = gcp.GAPICBazel() +versions = ['v1alpha'] +for version in versions: + library = gapic.node_library( + 'analyticsadmin', + version, + bazel_target=f"//google/analytics/admin/{version}:google-analytics-admin-{version}-nodejs" + ) + s.copy(library, excludes=[]) + +# Copy common templates +common_templates = gcp.CommonTemplates() +templates = common_templates.node_library( + source_location='build/src', versions=['v1alpha']) +s.copy(templates, excludes=[]) + +node.postprocess_gapic_library() + From 3a67f8dc343b594b1033ffc8a84fac637369e7a5 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Tue, 21 Jul 2020 17:53:19 -0700 Subject: [PATCH 002/142] feat!: initial generation of full library (#1) --- packages/google-analytics-admin/.eslintignore | 6 + .../google-analytics-admin/.eslintrc.json | 3 + .../google-analytics-admin/.gitattributes | 3 + packages/google-analytics-admin/.gitignore | 14 + packages/google-analytics-admin/.jsdoc.js | 55 + packages/google-analytics-admin/.mocharc.js | 28 + packages/google-analytics-admin/.nycrc | 24 + .../google-analytics-admin/.prettierignore | 6 + .../google-analytics-admin/.prettierrc.js | 17 + .../.repo-metadata.json | 13 + packages/google-analytics-admin/README.md | 45 +- .../google-analytics-admin/api-extractor.json | 369 + .../linkinator.config.json | 12 + packages/google-analytics-admin/package.json | 66 + .../admin/v1alpha/analytics_admin.proto | 1344 + .../analytics/admin/v1alpha/resources.proto | 571 + .../google-analytics-admin/protos/protos.d.ts | 13023 +++++++ .../google-analytics-admin/protos/protos.js | 30961 ++++++++++++++++ .../google-analytics-admin/protos/protos.json | 3076 ++ .../google-analytics-admin/samples/README.md | 50 + .../samples/package.json | 23 + .../samples/quickstart.js | 44 + .../samples/test/quickstart.js | 37 + packages/google-analytics-admin/src/index.ts | 24 + .../v1alpha/analytics_admin_service_client.ts | 6390 ++++ ...analytics_admin_service_client_config.json | 274 + .../analytics_admin_service_proto_list.json | 4 + .../src/v1alpha/index.ts | 19 + .../google-analytics-admin/synth.metadata | 30 + packages/google-analytics-admin/synth.py | 2 +- .../system-test/fixtures/sample/src/index.js | 26 + .../system-test/fixtures/sample/src/index.ts | 25 + .../system-test/install.ts | 51 + .../gapic_analytics_admin_service_v1alpha.ts | 8029 ++++ packages/google-analytics-admin/tsconfig.json | 19 + .../google-analytics-admin/webpack.config.js | 64 + 36 files changed, 64738 insertions(+), 9 deletions(-) create mode 100644 packages/google-analytics-admin/.eslintignore create mode 100644 packages/google-analytics-admin/.eslintrc.json create mode 100644 packages/google-analytics-admin/.gitattributes create mode 100644 packages/google-analytics-admin/.gitignore create mode 100644 packages/google-analytics-admin/.jsdoc.js create mode 100644 packages/google-analytics-admin/.mocharc.js create mode 100644 packages/google-analytics-admin/.nycrc create mode 100644 packages/google-analytics-admin/.prettierignore create mode 100644 packages/google-analytics-admin/.prettierrc.js create mode 100644 packages/google-analytics-admin/.repo-metadata.json create mode 100644 packages/google-analytics-admin/api-extractor.json create mode 100644 packages/google-analytics-admin/linkinator.config.json create mode 100644 packages/google-analytics-admin/package.json create mode 100644 packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto create mode 100644 packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto create mode 100644 packages/google-analytics-admin/protos/protos.d.ts create mode 100644 packages/google-analytics-admin/protos/protos.js create mode 100644 packages/google-analytics-admin/protos/protos.json create mode 100644 packages/google-analytics-admin/samples/README.md create mode 100644 packages/google-analytics-admin/samples/package.json create mode 100644 packages/google-analytics-admin/samples/quickstart.js create mode 100644 packages/google-analytics-admin/samples/test/quickstart.js create mode 100644 packages/google-analytics-admin/src/index.ts create mode 100644 packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts create mode 100644 packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json create mode 100644 packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json create mode 100644 packages/google-analytics-admin/src/v1alpha/index.ts create mode 100644 packages/google-analytics-admin/synth.metadata create mode 100644 packages/google-analytics-admin/system-test/fixtures/sample/src/index.js create mode 100644 packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts create mode 100644 packages/google-analytics-admin/system-test/install.ts create mode 100644 packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts create mode 100644 packages/google-analytics-admin/tsconfig.json create mode 100644 packages/google-analytics-admin/webpack.config.js diff --git a/packages/google-analytics-admin/.eslintignore b/packages/google-analytics-admin/.eslintignore new file mode 100644 index 00000000000..9340ad9b86d --- /dev/null +++ b/packages/google-analytics-admin/.eslintignore @@ -0,0 +1,6 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ diff --git a/packages/google-analytics-admin/.eslintrc.json b/packages/google-analytics-admin/.eslintrc.json new file mode 100644 index 00000000000..78215349546 --- /dev/null +++ b/packages/google-analytics-admin/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/packages/google-analytics-admin/.gitattributes b/packages/google-analytics-admin/.gitattributes new file mode 100644 index 00000000000..d4f4169b28b --- /dev/null +++ b/packages/google-analytics-admin/.gitattributes @@ -0,0 +1,3 @@ +*.ts text eol=lf +*.js text eol=lf +protos/* linguist-generated diff --git a/packages/google-analytics-admin/.gitignore b/packages/google-analytics-admin/.gitignore new file mode 100644 index 00000000000..5d32b23782f --- /dev/null +++ b/packages/google-analytics-admin/.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-analytics-admin/.jsdoc.js b/packages/google-analytics-admin/.jsdoc.js new file mode 100644 index 00000000000..08cc0a6450e --- /dev/null +++ b/packages/google-analytics-admin/.jsdoc.js @@ -0,0 +1,55 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** 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 2020 Google LLC', + includeDate: false, + sourceFiles: false, + systemName: '@google-analytics/admin', + theme: 'lumen', + default: { + outputSourceFiles: false + } + }, + markdown: { + idInHeadings: true + } +}; diff --git a/packages/google-analytics-admin/.mocharc.js b/packages/google-analytics-admin/.mocharc.js new file mode 100644 index 00000000000..ff7b34fa5d1 --- /dev/null +++ b/packages/google-analytics-admin/.mocharc.js @@ -0,0 +1,28 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +const config = { + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000 +} +if (process.env.MOCHA_THROW_DEPRECATION === 'false') { + delete config['throw-deprecation']; +} +if (process.env.MOCHA_REPORTER) { + config.reporter = process.env.MOCHA_REPORTER; +} +if (process.env.MOCHA_REPORTER_OUTPUT) { + config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; +} +module.exports = config diff --git a/packages/google-analytics-admin/.nycrc b/packages/google-analytics-admin/.nycrc new file mode 100644 index 00000000000..b18d5472b62 --- /dev/null +++ b/packages/google-analytics-admin/.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-analytics-admin/.prettierignore b/packages/google-analytics-admin/.prettierignore new file mode 100644 index 00000000000..9340ad9b86d --- /dev/null +++ b/packages/google-analytics-admin/.prettierignore @@ -0,0 +1,6 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ diff --git a/packages/google-analytics-admin/.prettierrc.js b/packages/google-analytics-admin/.prettierrc.js new file mode 100644 index 00000000000..d1b95106f4c --- /dev/null +++ b/packages/google-analytics-admin/.prettierrc.js @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} diff --git a/packages/google-analytics-admin/.repo-metadata.json b/packages/google-analytics-admin/.repo-metadata.json new file mode 100644 index 00000000000..5192f55972a --- /dev/null +++ b/packages/google-analytics-admin/.repo-metadata.json @@ -0,0 +1,13 @@ +{ + "name": "analytics-admin", + "name_pretty": "Google Analytics Admin", + "product_documentation": "https://developers.google.com/analytics-admin/", + "client_documentation": "https://googleapis.dev/nodejs/analytics-admin/latest/index.html", + "issue_tracker": "", + "release_level": "alpha", + "language": "nodejs", + "repo": "googleapis/nodejs-analytics-admin", + "distribution_name": "@google-analytics/admin", + "api_id": "analyticsadmin.googleapis.com", + "requires_billing": false +} diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 19ae0aae7f5..c4c2615068b 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -2,11 +2,11 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Google Analytics Admin: Node.js Client](https://github.com/googleapis/analytics) +# [Google Analytics Admin: Node.js Client](https://github.com/googleapis/nodejs-analytics-admin) [![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-analytics/admin.svg)](https://www.npmjs.org/package/@google-analytics/admin) -[![codecov](https://img.shields.io/codecov/c/github/googleapis/analytics/master.svg?style=flat)](https://codecov.io/gh/googleapis/analytics) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-analytics-admin/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-analytics-admin) @@ -16,7 +16,7 @@ Admin client for Node.js * [Google Analytics Admin Node.js Client API Reference][client-docs] * [Google Analytics Admin Documentation][product-docs] -* [github.com/googleapis/analytics](https://github.com/googleapis/analytics) +* [github.com/googleapis/nodejs-analytics-admin](https://github.com/googleapis/nodejs-analytics-admin) Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -29,8 +29,8 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. * [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) @@ -40,7 +40,6 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. ### Before you begin 1. [Select or create a Cloud Platform project][projects]. -1. [Enable billing for your project][billing]. 1. [Enable the Google Analytics Admin API][enable_api]. 1. [Set up authentication with a service account][auth] so you can access the API from your local workstation. @@ -52,6 +51,36 @@ npm install @google-analytics/admin ``` +### Using the client library + +```javascript +// Imports the Google Cloud client library +const {AnalyticsAdminServiceClient} = require('@google-analytics/admin'); + +// Creates a client +const client = new AnalyticsAdminServiceClient(); + +// name = 'my-name' // Get an account for a name. +async function getAccount() { + const [account] = await client.getAccount({ + name, + }); + console.info(account); +} +getAccount(); + +``` + + + +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/master/samples) directory. The samples' `README.md` +has instructions for running the samples. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | @@ -98,7 +127,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/analytics/blob/master/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-analytics-admin/blob/master/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`) @@ -110,7 +139,7 @@ to its template in this Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/analytics/blob/master/LICENSE) +See [LICENSE](https://github.com/googleapis/nodejs-analytics-admin/blob/master/LICENSE) [client-docs]: https://googleapis.dev/nodejs/analytics-admin/latest/index.html [product-docs]: https://developers.google.com/analytics-admin/ diff --git a/packages/google-analytics-admin/api-extractor.json b/packages/google-analytics-admin/api-extractor.json new file mode 100644 index 00000000000..de228294b23 --- /dev/null +++ b/packages/google-analytics-admin/api-extractor.json @@ -0,0 +1,369 @@ +/** + * Config file for API Extractor. For more info, please visit: https://api-extractor.com + */ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + + /** + * Optionally specifies another JSON config file that this file extends from. This provides a way for + * standard settings to be shared across multiple projects. + * + * If the path starts with "./" or "../", the path is resolved relative to the folder of the file that contains + * the "extends" field. Otherwise, the first path segment is interpreted as an NPM package name, and will be + * resolved using NodeJS require(). + * + * SUPPORTED TOKENS: none + * DEFAULT VALUE: "" + */ + // "extends": "./shared/api-extractor-base.json" + // "extends": "my-package/include/api-extractor-base.json" + + /** + * Determines the "" token that can be used with other config file settings. The project folder + * typically contains the tsconfig.json and package.json config files, but the path is user-defined. + * + * The path is resolved relative to the folder of the config file that contains the setting. + * + * The default value for "projectFolder" is the token "", which means the folder is determined by traversing + * parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder + * that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error + * will be reported. + * + * SUPPORTED TOKENS: + * DEFAULT VALUE: "" + */ + // "projectFolder": "..", + + /** + * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor + * analyzes the symbols exported by this module. + * + * The file extension must be ".d.ts" and not ".ts". + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + */ + "mainEntryPointFilePath": "/protos/protos.d.ts", + + /** + * A list of NPM package names whose exports should be treated as part of this package. + * + * For example, suppose that Webpack is used to generate a distributed bundle for the project "library1", + * and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part + * of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly + * imports library2. To avoid this, we can specify: + * + * "bundledPackages": [ "library2" ], + * + * This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been + * local files for library1. + */ + "bundledPackages": [ ], + + /** + * Determines how the TypeScript compiler engine will be invoked by API Extractor. + */ + "compiler": { + /** + * Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * Note: This setting will be ignored if "overrideTsconfig" is used. + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/tsconfig.json" + */ + // "tsconfigFilePath": "/tsconfig.json", + + /** + * Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. + * The object must conform to the TypeScript tsconfig schema: + * + * http://json.schemastore.org/tsconfig + * + * If omitted, then the tsconfig.json file will be read from the "projectFolder". + * + * DEFAULT VALUE: no overrideTsconfig section + */ + // "overrideTsconfig": { + // . . . + // } + + /** + * This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended + * and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when + * dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses + * for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck. + * + * DEFAULT VALUE: false + */ + // "skipLibCheck": true, + }, + + /** + * Configures how the API report file (*.api.md) will be generated. + */ + "apiReport": { + /** + * (REQUIRED) Whether to generate an API report. + */ + "enabled": true, + + /** + * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce + * a full file path. + * + * The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/". + * + * SUPPORTED TOKENS: , + * DEFAULT VALUE: ".api.md" + */ + // "reportFileName": ".api.md", + + /** + * Specifies the folder where the API report file is written. The file name portion is determined by + * the "reportFileName" setting. + * + * The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, + * e.g. for an API review. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/etc/" + */ + // "reportFolder": "/etc/", + + /** + * Specifies the folder where the temporary report file is written. The file name portion is determined by + * the "reportFileName" setting. + * + * After the temporary file is written to disk, it is compared with the file in the "reportFolder". + * If they are different, a production build will fail. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/temp/" + */ + // "reportTempFolder": "/temp/" + }, + + /** + * Configures how the doc model file (*.api.json) will be generated. + */ + "docModel": { + /** + * (REQUIRED) Whether to generate a doc model file. + */ + "enabled": true, + + /** + * The output path for the doc model file. The file extension should be ".api.json". + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/temp/.api.json" + */ + // "apiJsonFilePath": "/temp/.api.json" + }, + + /** + * Configures how the .d.ts rollup file will be generated. + */ + "dtsRollup": { + /** + * (REQUIRED) Whether to generate the .d.ts rollup file. + */ + "enabled": true, + + /** + * Specifies the output path for a .d.ts rollup file to be generated without any trimming. + * This file will include all declarations that are exported by the main entry point. + * + * If the path is an empty string, then this file will not be written. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/dist/.d.ts" + */ + // "untrimmedFilePath": "/dist/.d.ts", + + /** + * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release. + * This file will include only declarations that are marked as "@public" or "@beta". + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "" + */ + // "betaTrimmedFilePath": "/dist/-beta.d.ts", + + + /** + * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release. + * This file will include only declarations that are marked as "@public". + * + * If the path is an empty string, then this file will not be written. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "" + */ + // "publicTrimmedFilePath": "/dist/-public.d.ts", + + /** + * When a declaration is trimmed, by default it will be replaced by a code comment such as + * "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the + * declaration completely. + * + * DEFAULT VALUE: false + */ + // "omitTrimmingComments": true + }, + + /** + * Configures how the tsdoc-metadata.json file will be generated. + */ + "tsdocMetadata": { + /** + * Whether to generate the tsdoc-metadata.json file. + * + * DEFAULT VALUE: true + */ + // "enabled": true, + + /** + * Specifies where the TSDoc metadata file should be written. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * The default value is "", which causes the path to be automatically inferred from the "tsdocMetadata", + * "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup + * falls back to "tsdoc-metadata.json" in the package folder. + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "" + */ + // "tsdocMetadataFilePath": "/dist/tsdoc-metadata.json" + }, + + /** + * Specifies what type of newlines API Extractor should use when writing output files. By default, the output files + * will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead. + * To use the OS's default newline kind, specify "os". + * + * DEFAULT VALUE: "crlf" + */ + // "newlineKind": "crlf", + + /** + * Configures how API Extractor reports error and warning messages produced during analysis. + * + * There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages. + */ + "messages": { + /** + * Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing + * the input .d.ts files. + * + * TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551" + * + * DEFAULT VALUE: A single "default" entry with logLevel=warning. + */ + "compilerMessageReporting": { + /** + * Configures the default routing for messages that don't match an explicit rule in this table. + */ + "default": { + /** + * Specifies whether the message should be written to the the tool's output log. Note that + * the "addToApiReportFile" property may supersede this option. + * + * Possible values: "error", "warning", "none" + * + * Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail + * and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes + * the "--local" option), the warning is displayed but the build will not fail. + * + * DEFAULT VALUE: "warning" + */ + "logLevel": "warning", + + /** + * When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md), + * then the message will be written inside that file; otherwise, the message is instead logged according to + * the "logLevel" option. + * + * DEFAULT VALUE: false + */ + // "addToApiReportFile": false + }, + + // "TS2551": { + // "logLevel": "warning", + // "addToApiReportFile": true + // }, + // + // . . . + }, + + /** + * Configures handling of messages reported by API Extractor during its analysis. + * + * API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag" + * + * DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings + */ + "extractorMessageReporting": { + "default": { + "logLevel": "warning", + // "addToApiReportFile": false + }, + + // "ae-extra-release-tag": { + // "logLevel": "warning", + // "addToApiReportFile": true + // }, + // + // . . . + }, + + /** + * Configures handling of messages reported by the TSDoc parser when analyzing code comments. + * + * TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text" + * + * DEFAULT VALUE: A single "default" entry with logLevel=warning. + */ + "tsdocMessageReporting": { + "default": { + "logLevel": "warning", + // "addToApiReportFile": false + } + + // "tsdoc-link-tag-unescaped-text": { + // "logLevel": "warning", + // "addToApiReportFile": true + // }, + // + // . . . + } + } + +} diff --git a/packages/google-analytics-admin/linkinator.config.json b/packages/google-analytics-admin/linkinator.config.json new file mode 100644 index 00000000000..c8424482ed1 --- /dev/null +++ b/packages/google-analytics-admin/linkinator.config.json @@ -0,0 +1,12 @@ +{ + "recurse": true, + "skip": [ + "https://codecov.io/gh/googleapis/", + "www.googleapis.com", + "img.shields.io", + "https://developers.google.com/analytics-admin/", + "https://googleapis.dev/nodejs/analytics-admin/latest/index.html" + ], + "silent": true, + "concurrency": 10 +} diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json new file mode 100644 index 00000000000..00a4e53d2d5 --- /dev/null +++ b/packages/google-analytics-admin/package.json @@ -0,0 +1,66 @@ +{ + "name": "@google-analytics/admin", + "version": "0.1.0", + "description": "Admin client for Node.js", + "repository": "googleapis/nodejs-analytics-admin", + "license": "Apache-2.0", + "author": "Google LLC", + "main": "build/src/index.js", + "files": [ + "build/src", + "build/protos" + ], + "keywords": [ + "google apis client", + "google api client", + "google apis", + "google api", + "google", + "google cloud platform", + "google cloud", + "cloud", + "google admin", + "admin", + "analytics admin service" + ], + "scripts": { + "clean": "gts clean", + "compile": "tsc -p . && cp -r protos build/", + "compile-protos": "compileProtos src", + "docs": "jsdoc -c .jsdoc.js", + "predocs-test": "npm run docs", + "docs-test": "linkinator docs", + "fix": "gts fix", + "lint": "gts check", + "prelint": "cd samples; npm link ../; npm i", + "prepare": "npm run compile-protos && npm run compile", + "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", + "system-test": "c8 mocha build/system-test", + "test": "c8 mocha build/test" + }, + "dependencies": { + "google-gax": "^2.6.3" + }, + "devDependencies": { + "@types/mocha": "^7.0.2", + "@types/node": "^14.0.22", + "@types/sinon": "^9.0.4", + "c8": "^7.2.0", + "gts": "^2.0.2", + "jsdoc": "^3.6.4", + "jsdoc-fresh": "^1.0.2", + "jsdoc-region-tag": "^1.0.4", + "linkinator": "^2.1.1", + "mocha": "^8.0.1", + "null-loader": "^4.0.0", + "pack-n-play": "^1.0.0-2", + "sinon": "^9.0.2", + "ts-loader": "^8.0.0", + "typescript": "^3.9.6", + "webpack": "^4.43.0", + "webpack-cli": "^3.3.12" + }, + "engines": { + "node": ">=10.0.0" + } +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto new file mode 100644 index 00000000000..60d503a9704 --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -0,0 +1,1344 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +import "google/analytics/admin/v1alpha/resources.proto"; +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"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; +option java_multiple_files = true; +option java_outer_classname = "AnalyticsAdminProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// Service Interface for the Analytics Admin API (App+Web). +service AnalyticsAdminService { + option (google.api.default_host) = "analyticsadmin.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/analytics.edit," + "https://www.googleapis.com/auth/analytics.manage.users," + "https://www.googleapis.com/auth/analytics.manage.users.readonly," + "https://www.googleapis.com/auth/analytics.readonly"; + + // Lookup for a single Account. + // Throws "Target not found" if no such account found, or if caller does not + // have permissions to access it. + rpc GetAccount(GetAccountRequest) returns (Account) { + option (google.api.http) = { + get: "/v1alpha/{name=accounts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns all accounts accessible by the caller. + // + // Note that these accounts might not currently have App+Web properties. + // Soft-deleted (ie: "trashed") accounts are excluded by default. + // Returns an empty list if no relevant accounts are found. + rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) { + option (google.api.http) = { + get: "/v1alpha/accounts" + }; + } + + // Marks target Account as soft-deleted (ie: "trashed") and returns it. + // + // This API does not have a method to restore soft-deleted accounts. + // However, they can be restored using the Trash Can UI. + // + // If the accounts are not restored before the expiration time, the account + // and all child resources (eg: Properties, GoogleAdsLinks, Streams, + // UserLinks) will be permanently purged. + // https://support.google.com/analytics/answer/6154772 + // + // Returns an error if the target is not found. + rpc DeleteAccount(DeleteAccountRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=accounts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an account. + rpc UpdateAccount(UpdateAccountRequest) returns (Account) { + option (google.api.http) = { + patch: "/v1alpha/{account.name=accounts/*}" + body: "account" + }; + option (google.api.method_signature) = "account,update_mask"; + } + + // Requests a ticket for creating an account. + rpc ProvisionAccountTicket(ProvisionAccountTicketRequest) returns (ProvisionAccountTicketResponse) { + option (google.api.http) = { + post: "/v1alpha/accounts:provisionAccountTicket" + body: "*" + }; + } + + // Lookup for a single "App+Web" Property. + // + // Throws "Target not found" if no such property found, if property is not + // of the type "App+Web", or if caller does not have permissions to access it. + rpc GetProperty(GetPropertyRequest) returns (Property) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns child Properties under the specified parent Account. + // + // Only "App+Web" properties will be returned. + // Properties will be excluded if the caller does not have access. + // Soft-deleted (ie: "trashed") properties are excluded by default. + // Returns an empty list if no relevant properties are found. + rpc ListProperties(ListPropertiesRequest) returns (ListPropertiesResponse) { + option (google.api.http) = { + get: "/v1alpha/properties" + }; + } + + // Creates an "App+Web" property with the specified location and attributes. + rpc CreateProperty(CreatePropertyRequest) returns (Property) { + option (google.api.http) = { + post: "/v1alpha/properties" + body: "property" + }; + option (google.api.method_signature) = "property"; + } + + // Marks target Property as soft-deleted (ie: "trashed") and returns it. + // + // This API does not have a method to restore soft-deleted properties. + // However, they can be restored using the Trash Can UI. + // + // If the properties are not restored before the expiration time, the Property + // and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + // will be permanently purged. + // https://support.google.com/analytics/answer/6154772 + // + // Returns an error if the target is not found, or is not an App+Web Property. + rpc DeleteProperty(DeletePropertyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a property. + rpc UpdateProperty(UpdatePropertyRequest) returns (Property) { + option (google.api.http) = { + patch: "/v1alpha/{property.name=properties/*}" + body: "property" + }; + option (google.api.method_signature) = "property,update_mask"; + } + + // Gets information about a user's link to an account or property. + rpc GetUserLink(GetUserLinkRequest) returns (UserLink) { + option (google.api.http) = { + get: "/v1alpha/{name=accounts/*/userLinks/*}" + additional_bindings { + get: "/v1alpha/{name=properties/*/userLinks/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Gets information about multiple users' links to an account or property. + rpc BatchGetUserLinks(BatchGetUserLinksRequest) returns (BatchGetUserLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=accounts/*}/userLinks:batchGet" + additional_bindings { + get: "/v1alpha/{parent=properties/*}/userLinks:batchGet" + } + }; + } + + // Lists all user links on an account or property. + rpc ListUserLinks(ListUserLinksRequest) returns (ListUserLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=accounts/*}/userLinks" + additional_bindings { + get: "/v1alpha/{parent=properties/*}/userLinks" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Lists all user links on an account or property, including implicit ones + // that come from effective permissions granted by groups or organization + // admin roles. + // + // If a returned user link does not have direct permissions, they cannot + // be removed from the account or property directly with the DeleteUserLink + // command. They have to be removed from the group/etc that gives them + // permissions, which is currently only usable/discoverable in the GA or GMP + // UIs. + rpc AuditUserLinks(AuditUserLinksRequest) returns (AuditUserLinksResponse) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/userLinks:audit" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/userLinks:audit" + body: "*" + } + }; + } + + // Creates a user link on an account or property. + // + // If the user with the specified email already has permissions on the + // account or property, then the user's existing permissions will be unioned + // with the permissions specified in the new UserLink. + rpc CreateUserLink(CreateUserLinkRequest) returns (UserLink) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/userLinks" + body: "user_link" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/userLinks" + body: "user_link" + } + }; + option (google.api.method_signature) = "parent,user_link"; + } + + // Creates information about multiple users' links to an account or property. + // + // This method is transactional. If any UserLink cannot be created, none of + // the UserLinks will be created. + rpc BatchCreateUserLinks(BatchCreateUserLinksRequest) returns (BatchCreateUserLinksResponse) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/userLinks:batchCreate" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/userLinks:batchCreate" + body: "*" + } + }; + } + + // Updates a user link on an account or property. + rpc UpdateUserLink(UpdateUserLinkRequest) returns (UserLink) { + option (google.api.http) = { + patch: "/v1alpha/{user_link.name=accounts/*/userLinks/*}" + body: "user_link" + additional_bindings { + patch: "/v1alpha/{user_link.name=properties/*/userLinks/*}" + body: "user_link" + } + }; + option (google.api.method_signature) = "user_link"; + } + + // Updates information about multiple users' links to an account or property. + rpc BatchUpdateUserLinks(BatchUpdateUserLinksRequest) returns (BatchUpdateUserLinksResponse) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/userLinks:batchUpdate" + body: "*" + } + }; + } + + // Deletes a user link on an account or property. + rpc DeleteUserLink(DeleteUserLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=accounts/*/userLinks/*}" + additional_bindings { + delete: "/v1alpha/{name=properties/*/userLinks/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Deletes information about multiple users' links to an account or property. + rpc BatchDeleteUserLinks(BatchDeleteUserLinksRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/userLinks:batchDelete" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/userLinks:batchDelete" + body: "*" + } + }; + } + + // Lookup for a single WebDataStream + // + // Throws "Target not found" if no such web data stream found, or if the + // caller does not have permissions to access it. + rpc GetWebDataStream(GetWebDataStreamRequest) returns (WebDataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a web stream on a property. + rpc DeleteWebDataStream(DeleteWebDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/webDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a web stream on a property. + rpc UpdateWebDataStream(UpdateWebDataStreamRequest) returns (WebDataStream) { + option (google.api.http) = { + patch: "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}" + body: "web_data_stream" + }; + option (google.api.method_signature) = "web_data_stream,update_mask"; + } + + // Creates a web stream with the specified location and attributes. + rpc CreateWebDataStream(CreateWebDataStreamRequest) returns (WebDataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/webDataStreams" + body: "web_data_stream" + }; + option (google.api.method_signature) = "parent,web_data_stream"; + } + + // Returns child web data streams under the specified parent property. + // + // Web data streams will be excluded if the caller does not have access. + // Returns an empty list if no relevant web data streams are found. + rpc ListWebDataStreams(ListWebDataStreamsRequest) returns (ListWebDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/webDataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single IosAppDataStream + // + // Throws "Target not found" if no such iOS app data stream found, or if the + // caller does not have permissions to access it. + rpc GetIosAppDataStream(GetIosAppDataStreamRequest) returns (IosAppDataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes an iOS app stream on a property. + rpc DeleteIosAppDataStream(DeleteIosAppDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an iOS app stream on a property. + rpc UpdateIosAppDataStream(UpdateIosAppDataStreamRequest) returns (IosAppDataStream) { + option (google.api.http) = { + patch: "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}" + body: "ios_app_data_stream" + }; + option (google.api.method_signature) = "ios_app_data_stream,update_mask"; + } + + // Creates an iOS app data stream with the specified location and attributes. + rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" + body: "ios_app_data_stream" + }; + option (google.api.method_signature) = "parent,ios_app_data_stream"; + } + + // Returns child iOS app data streams under the specified parent property. + // + // iOS app data streams will be excluded if the caller does not have access. + // Returns an empty list if no relevant iOS app data streams are found. + rpc ListIosAppDataStreams(ListIosAppDataStreamsRequest) returns (ListIosAppDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/iosAppDataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single AndroidAppDataStream + // + // Throws "Target not found" if no such android app data stream found, or if + // the caller does not have permissions to access it. + rpc GetAndroidAppDataStream(GetAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes an android app stream on a property. + rpc DeleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an android app stream on a property. + rpc UpdateAndroidAppDataStream(UpdateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { + option (google.api.http) = { + patch: "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}" + body: "android_app_data_stream" + }; + option (google.api.method_signature) = "android_app_data_stream,update_mask"; + } + + // Creates an android app stream with the specified location and attributes. + rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" + body: "android_app_data_stream" + }; + option (google.api.method_signature) = "parent,android_app_data_stream"; + } + + // Returns child android app streams under the specified parent property. + // + // Android app streams will be excluded if the caller does not have access. + // Returns an empty list if no relevant android app streams are found. + rpc ListAndroidAppDataStreams(ListAndroidAppDataStreamsRequest) returns (ListAndroidAppDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/androidAppDataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the singleton enhanced measurement settings for this web stream. + // Note that the stream must enable enhanced measurement for these settings to + // take effect. + rpc GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the singleton enhanced measurement settings for this web stream. + // Note that the stream must enable enhanced measurement for these settings to + // take effect. + rpc UpdateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { + option (google.api.http) = { + patch: "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" + body: "enhanced_measurement_settings" + }; + option (google.api.method_signature) = "enhanced_measurement_settings,update_mask"; + } + + // Creates a FirebaseLink. + // + // Properties can have at most one FirebaseLink. + rpc CreateFirebaseLink(CreateFirebaseLinkRequest) returns (FirebaseLink) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/firebaseLinks" + body: "firebase_link" + }; + option (google.api.method_signature) = "parent,firebase_link"; + } + + // Updates a FirebaseLink on a property + rpc UpdateFirebaseLink(UpdateFirebaseLinkRequest) returns (FirebaseLink) { + option (google.api.http) = { + patch: "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}" + body: "firebase_link" + }; + option (google.api.method_signature) = "firebase_link,update_mask"; + } + + // Deletes a FirebaseLink on a property + rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/firebaseLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists FirebaseLinks on a property. + // Properties can have at most one FirebaseLink. + rpc ListFirebaseLinks(ListFirebaseLinksRequest) returns (ListFirebaseLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/firebaseLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the Site Tag for the specified web stream. + // Site Tags are immutable singletons. + rpc GetGlobalSiteTag(GetGlobalSiteTagRequest) returns (GlobalSiteTag) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a GoogleAdsLink. + rpc CreateGoogleAdsLink(CreateGoogleAdsLinkRequest) returns (GoogleAdsLink) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/googleAdsLinks" + body: "google_ads_link" + }; + option (google.api.method_signature) = "parent,google_ads_link"; + } + + // Updates a GoogleAdsLink on a property + rpc UpdateGoogleAdsLink(UpdateGoogleAdsLinkRequest) returns (GoogleAdsLink) { + option (google.api.http) = { + patch: "/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}" + body: "google_ads_link" + }; + option (google.api.method_signature) = "google_ads_link,update_mask"; + } + + // Deletes a GoogleAdsLink on a property + rpc DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/googleAdsLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists GoogleAdsLinks on a property. + rpc ListGoogleAdsLinks(ListGoogleAdsLinksRequest) returns (ListGoogleAdsLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/googleAdsLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Get data sharing settings on an account. + // Data sharing settings are singletons. + rpc GetDataSharingSettings(GetDataSharingSettingsRequest) returns (DataSharingSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=accounts/*/dataSharingSettings}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for GetAccount RPC. +message GetAccountRequest { + // Required. The name of the account to lookup. + // Format: accounts/{account} + // Example: "accounts/100" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; +} + +// Request message for ListAccounts RPC. +message ListAccountsRequest { + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 1; + + // 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; + + // Whether to include soft-deleted (ie: "trashed") Accounts in the + // results. Accounts can be inspected to determine whether they are deleted or + // not. + bool show_deleted = 3; +} + +// Request message for ListAccounts RPC. +message ListAccountsResponse { + // Results that were accessible to the caller. + 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 DeleteAccount RPC. +message DeleteAccountRequest { + // Required. The name of the Account to soft-delete. + // Format: accounts/{account} + // Example: "accounts/100" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; +} + +// Request message for UpdateAccount RPC. +message UpdateAccountRequest { + // Required. The account to update. + // The account's `name` field is used to identify the account. + Account account = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for ProvisionAccountTicket RPC. +message ProvisionAccountTicketRequest { + // The account to create. + Account account = 1; + + // Redirect URI where the user will be sent after accepting Terms of Service. + // Must be configured in Developers Console as a Redirect URI + string redirect_uri = 2; +} + +// Response message for ProvisionAccountTicket RPC. +message ProvisionAccountTicketResponse { + // The param to be passed in the ToS link. + string account_ticket_id = 1; +} + +// Request message for GetProperty RPC. +message GetPropertyRequest { + // Required. The name of the property to lookup. + // Format: properties/{property_id} + // Example: "properties/1000" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; +} + +// Request message for ListProperties RPC. +message ListPropertiesRequest { + // Required. An expression for filtering the results of the request. + // Fields eligible for filtering are: + // `parent:`(The resource name of the parent account) or + // `firebase_project:`(The id or number of the linked firebase project). + // Some examples of filters: + // + // | Filter | Description | + // |-----------------------------|-------------------------------------------| + // | parent:accounts/123 | The account with account id: 123. | + // | firebase_project:project-id | The firebase project with id: project-id. | + // | firebase_project:123 | The firebase project with number: 123. | + string filter = 1 [(google.api.field_behavior) = REQUIRED]; + + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListProperties` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListProperties` must + // match the call that provided the page token. + string page_token = 3; + + // Whether to include soft-deleted (ie: "trashed") Properties in the + // results. Properties can be inspected to determine whether they are deleted + // or not. + bool show_deleted = 4; +} + +// Response message for ListProperties RPC. +message ListPropertiesResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated Property properties = 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 UpdateProperty RPC. +message UpdatePropertyRequest { + // Required. The property to update. + // The property's `name` field is used to identify the property to be + // updated. + Property property = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for CreateProperty RPC. +message CreatePropertyRequest { + // Required. The property to create. + // Note: the supplied property must specify its parent. + Property property = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteProperty RPC. +message DeletePropertyRequest { + // Required. The name of the Property to soft-delete. + // Format: properties/{property_id} + // Example: "properties/1000" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; +} + +// Request message for GetUserLink RPC. +message GetUserLinkRequest { + // Required. Example format: accounts/1234/userLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/UserLink" + } + ]; +} + +// Request message for BatchGetUserLinks RPC. +message BatchGetUserLinksRequest { + // Required. The account or property that all user links in the request are + // for. The parent of all provided values for the 'names' field must match + // this field. + // Example format: accounts/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; + + // Required. The names of the user links to retrieve. + // A maximum of 1000 user links can be retrieved in a batch. + // Format: accounts/{accountId}/userLinks/{userLinkId} + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/UserLink" + } + ]; +} + +// Response message for BatchGetUserLinks RPC. +message BatchGetUserLinksResponse { + // The requested user links. + repeated UserLink user_links = 1; +} + +// Request message for ListUserLinks RPC. +message ListUserLinksRequest { + // Required. Example format: accounts/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; + + // The maximum number of user links to return. + // The service may return fewer than this value. + // If unspecified, at most 200 user links will be returned. + // The maximum value is 500; values above 500 will be coerced to 500. + int32 page_size = 2; + + // A page token, received from a previous `ListUserLinks` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListUserLinks` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListUserLinks RPC. +message ListUserLinksResponse { + // List of UserLinks. These will be ordered stably, but in an arbitrary order. + repeated UserLink user_links = 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 AuditUserLinks RPC. +message AuditUserLinksRequest { + // Required. Example format: accounts/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; + + // The maximum number of user links to return. + // The service may return fewer than this value. + // If unspecified, at most 1000 user links will be returned. + // The maximum value is 5000; values above 5000 will be coerced to 5000. + int32 page_size = 2; + + // A page token, received from a previous `AuditUserLinks` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `AuditUserLinks` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for AuditUserLinks RPC. +message AuditUserLinksResponse { + // List of AuditUserLinks. These will be ordered stably, but in an arbitrary + // order. + repeated AuditUserLink user_links = 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 CreateUserLink RPC. +// +// Users can have multiple email addresses associated with their Google +// account, and one of these email addresses is the "primary" email address. +// Any of the email addresses associated with a Google account may be used +// for a new UserLink, but the returned UserLink will always contain the +// "primary" email address. As a result, the input and output email address +// for this request may differ. +message CreateUserLinkRequest { + // Required. Example format: accounts/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; + + // Optional. If notify_new_user is set, then email new user that they've been given + // permissions on the resource. + bool notify_new_user = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The user link to create. + UserLink user_link = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for BatchCreateUserLinks RPC. +message BatchCreateUserLinksRequest { + // Required. The account or property that all user links in the request are for. + // This field is required. The parent field in the CreateUserLinkRequest + // messages must either be empty or match this field. + // Example format: accounts/1234 + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If notify_new_users is set, then email new users that they've been given + // permissions on the resource. + bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The requests specifying the user links to create. + // A maximum of 1000 user links can be created in a batch. + repeated CreateUserLinkRequest requests = 3; +} + +// Response message for BatchCreateUserLinks RPC. +message BatchCreateUserLinksResponse { + // The user links created. + repeated UserLink user_links = 1; +} + +// Request message for UpdateUserLink RPC. +message UpdateUserLinkRequest { + // Required. The user link to update. + UserLink user_link = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for BatchUpdateUserLinks RPC. +message BatchUpdateUserLinksRequest { + // Required. The account or property that all user links in the request are + // for. The parent field in the UpdateUserLinkRequest messages must either be + // empty or match this field. + // Example format: accounts/1234 + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // The requests specifying the user links to update. + // A maximum of 1000 user links can be updated in a batch. + repeated UpdateUserLinkRequest requests = 2; +} + +// Response message for BatchUpdateUserLinks RPC. +message BatchUpdateUserLinksResponse { + // The user links updated. + repeated UserLink user_links = 1; +} + +// Request message for DeleteUserLink RPC. +message DeleteUserLinkRequest { + // Required. Example format: accounts/1234/userLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/UserLink" + } + ]; +} + +// Request message for BatchDeleteUserLinks RPC. +message BatchDeleteUserLinksRequest { + // Required. The account or property that all user links in the request are + // for. The parent of all values for user link names to delete must match this + // field. + // Example format: accounts/1234 + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // The requests specifying the user links to update. + // A maximum of 1000 user links can be updated in a batch. + repeated DeleteUserLinkRequest requests = 2; +} + +// Request message for GetWebDataStream RPC. +message GetWebDataStreamRequest { + // Required. The name of the web data stream to lookup. + // Format: properties/{property_id}/webDataStreams/{stream_id} + // Example: "properties/123/webDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; +} + +// Request message for DeleteWebDataStream RPC. +message DeleteWebDataStreamRequest { + // Required. The name of the web data stream to delete. + // Format: properties/{property_id}/webDataStreams/{stream_id} + // Example: "properties/123/webDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; +} + +// Request message for UpdateWebDataStream RPC. +message UpdateWebDataStreamRequest { + // Required. The web stream to update. + // The `name` field is used to identify the web stream to be updated. + WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for CreateWebDataStream RPC. +message CreateWebDataStreamRequest { + // Required. The web stream to create. + WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The parent resource where this web data stream will be created. + // Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; +} + +// Request message for ListWebDataStreams RPC. +message ListWebDataStreamsRequest { + // Required. The name of the parent property. + // For example, to list results of web streams under the property with Id + // 123: "properties/123" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListWebDataStreams` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListWebDataStreams` must + // match the call that provided the page token. + string page_token = 3; +} + +// Request message for ListWebDataStreams RPC. +message ListWebDataStreamsResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated WebDataStream web_data_streams = 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 GetIosAppDataStream RPC. +message GetIosAppDataStreamRequest { + // Required. The name of the iOS app data stream to lookup. + // Format: properties/{property_id}/iosAppDataStreams/{stream_id} + // Example: "properties/123/iosAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; +} + +// Request message for DeleteIosAppDataStream RPC. +message DeleteIosAppDataStreamRequest { + // Required. The name of the iOS app data stream to delete. + // Format: properties/{property_id}/iosAppDataStreams/{stream_id} + // Example: "properties/123/iosAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; +} + +// Request message for UpdateIosAppDataStream RPC. +message UpdateIosAppDataStreamRequest { + // Required. The iOS app stream to update. + // The `name` field is used to identify the iOS app stream to be updated. + IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for CreateIosAppDataStream RPC. +message CreateIosAppDataStreamRequest { + // Required. The iOS app data stream to create. + IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The parent resource where this ios app data stream will be created. + // Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; +} + +// Request message for ListIosAppDataStreams RPC. +message ListIosAppDataStreamsRequest { + // Required. The name of the parent property. + // For example, to list results of app streams under the property with Id + // 123: "properties/123" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListIosAppDataStreams` + // call. Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListIosAppDataStreams` + // must match the call that provided the page token. + string page_token = 3; +} + +// Request message for ListIosAppDataStreams RPC. +message ListIosAppDataStreamsResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated IosAppDataStream ios_app_data_streams = 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 GetAndroidAppDataStream RPC. +message GetAndroidAppDataStreamRequest { + // Required. The name of the android app data stream to lookup. + // Format: properties/{property_id}/androidAppDataStreams/{stream_id} + // Example: "properties/123/androidAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; +} + +// Request message for DeleteAndroidAppDataStream RPC. +message DeleteAndroidAppDataStreamRequest { + // Required. The name of the android app data stream to delete. + // Format: properties/{property_id}/androidAppDataStreams/{stream_id} + // Example: "properties/123/androidAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; +} + +// Request message for UpdateAndroidAppDataStream RPC. +message UpdateAndroidAppDataStreamRequest { + // Required. The android app stream to update. + // The `name` field is used to identify the android app stream to be updated. + AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for CreateAndroidAppDataStream RPC. +message CreateAndroidAppDataStreamRequest { + // Required. The android app stream to create. + AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The parent resource where this android app data stream will be created. + // Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; +} + +// Request message for ListAndroidAppDataStreams RPC. +message ListAndroidAppDataStreamsRequest { + // Required. The name of the parent property. + // For example, to limit results to app streams under the property with Id + // 123: "properties/123" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; + + // The maximum number of resources to return. + // + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous call. Provide this to + // retrieve the subsequent page. + // When paginating, all other parameters provided to + // `ListAndroidAppDataStreams` must match the call that provided the page + // token. + string page_token = 3; +} + +// Request message for ListAndroidDataStreams RPC. +message ListAndroidAppDataStreamsResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated AndroidAppDataStream android_app_data_streams = 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 GetEnhancedMeasurementSettings RPC. +message GetEnhancedMeasurementSettingsRequest { + // Required. The name of the settings to lookup. + // Format: + // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings + // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" + } + ]; +} + +// Request message for UpdateEnhancedMeasurementSettings RPC. +message UpdateEnhancedMeasurementSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for CreateFirebaseLink RPC +message CreateFirebaseLinkRequest { + // Required. Format: properties/{property_id} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/FirebaseLink" + } + ]; + + // Required. The Firebase link to create. + FirebaseLink firebase_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateFirebaseLink RPC +message UpdateFirebaseLinkRequest { + // Required. The Firebase link to update. + FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for DeleteFirebaseLink RPC +message DeleteFirebaseLinkRequest { + // Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + // Example: properties/1234/firebaseLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/FirebaseLink" + } + ]; +} + +// Request message for ListFirebaseLinks RPC +message ListFirebaseLinksRequest { + // Required. Format: properties/{property_id} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/FirebaseLink" + } + ]; +} + +// Response message for ListFirebaseLinks RPC +message ListFirebaseLinksResponse { + // List of FirebaseLinks. This will have at most one value. + repeated FirebaseLink firebase_links = 1; +} + +// Request message for GetGlobalSiteTag RPC. +message GetGlobalSiteTagRequest { + // Required. The name of the site tag to lookup. + // Note that site tags are singletons and do not have unique IDs. + // Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag + // Example: "properties/123/webDataStreams/456/globalSiteTag" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/GlobalSiteTag" + } + ]; +} + +// Request message for CreateGoogleAdsLink RPC +message CreateGoogleAdsLinkRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" + } + ]; + + // Required. The GoogleAdsLink to create. + GoogleAdsLink google_ads_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateGoogleAdsLink RPC +message UpdateGoogleAdsLinkRequest { + // The GoogleAdsLink to update + GoogleAdsLink google_ads_link = 1; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for DeleteGoogleAdsLink RPC. +message DeleteGoogleAdsLinkRequest { + // Required. Example format: properties/1234/googleAdsLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/GoogleAdsLink" + } + ]; +} + +// Request message for ListGoogleAdsLinks RPC. +message ListGoogleAdsLinksRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListGoogleAdsLinks` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListGoogleAdsLinks` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListGoogleAdsLinks RPC. +message ListGoogleAdsLinksResponse { + // List of GoogleAdsLinks. + repeated GoogleAdsLink google_ads_links = 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 GetDataSharingSettings RPC. +message GetDataSharingSettingsRequest { + // Required. The name of the settings to lookup. + // Format: accounts/{account}/dataSharingSettings + // Example: "accounts/1000/dataSharingSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataSharingSettings" + } + ]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto new file mode 100644 index 00000000000..79bc304ccbc --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -0,0 +1,571 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; +option java_multiple_files = true; +option java_outer_classname = "ResourcesProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// A resource message representing a Google Analytics account. +message Account { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/Account" + pattern: "accounts/{account}" + }; + + // Output only. Resource name of this account. + // Format: accounts/{account} + // Example: "accounts/100" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this account was originally created. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when account payload fields were last updated. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Human-readable display name for this account. + string display_name = 4 [(google.api.field_behavior) = REQUIRED]; + + // Country of business. Must be a non-deprecated code for a UN M.49 region. + // https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html + string country_code = 5; + + // Output only. Indicates whether this Account is soft-deleted or not. Deleted + // accounts are excluded from List results unless specifically requested. + bool deleted = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource message representing a Google Analytics App+Web property. +message Property { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/Property" + pattern: "properties/{property}" + }; + + // Output only. Resource name of this property. + // Format: properties/{property_id} + // Example: "properties/1000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the entity was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when entity payload fields were last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Resource name of this property's logical parent. + // + // Note: The Property-Moving UI can be used to change the parent. + // Format: accounts/{account} + // Example: "accounts/100" + string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. Human-readable display name for this property. + // + // The max allowed display name length is 100 UTF-16 code units. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Industry associated with this property + // Example: AUTOMOTIVE, FOOD_AND_DRINK + IndustryCategory industry_category = 6; + + // Reporting Time Zone, used as the day boundary for reports, regardless of + // where the data originates. If the time zone honors DST, Analytics will + // automatically adjust for the changes. + // + // NOTE: Changing the time zone only affects data going forward, and is not + // applied retroactively. + // + // Format: https://www.iana.org/time-zones + // Example: "America/Los_Angeles" + string time_zone = 7; + + // The currency type used in reports involving monetary values. + // + // + // Format: https://en.wikipedia.org/wiki/ISO_4217 + // Examples: "USD", "EUR", "JPY" + string currency_code = 8; + + // Output only. Indicates whether this Property is soft-deleted or not. Deleted properties + // are excluded from List results unless specifically requested. + bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource message representing a Google Analytics Android app stream. +message AndroidAppDataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + pattern: "properties/{property}/androidAppDataStreams/{android_app_data_stream}" + }; + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/androidAppDataStreams/{stream_id} + // Example: "properties/1000/androidAppDataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the corresponding Android app in Firebase, if any. + // This ID can change if the Android app is deleted and recreated. + string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this stream was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when stream payload fields were last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The package name for the app being measured. + // Example: "com.example.myandroidapp" + string package_name = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Human-readable display name for the Data Stream. + // + // The max allowed display name length is 255 UTF-16 code units. + string display_name = 6; +} + +// A resource message representing a Google Analytics IOS app stream. +message IosAppDataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/IosAppDataStream" + pattern: "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" + }; + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/iosAppDataStreams/{stream_id} + // Example: "properties/1000/iosAppDataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the corresponding iOS app in Firebase, if any. + // This ID can change if the iOS app is deleted and recreated. + string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this stream was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when stream payload fields were last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The Apple App Store Bundle ID for the app + // Example: "com.example.myiosapp" + string bundle_id = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Human-readable display name for the Data Stream. + // + // The max allowed display name length is 255 UTF-16 code units. + string display_name = 6; +} + +// A resource message representing a Google Analytics web stream. +message WebDataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/WebDataStream" + pattern: "properties/{property}/webDataStreams/{web_data_stream}" + }; + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/webDataStreams/{stream_id} + // Example: "properties/1000/webDataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Analytics "Measurement ID", without the "G-" prefix. + // Example: "G-1A2BCD345E" would just be "1A2BCD345E" + string measurement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the corresponding web app in Firebase, if any. + // This ID can change if the web app is deleted and recreated. + string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this stream was originally created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when stream payload fields were last updated. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Domain name of the web app being measured, or empty. + // Example: "http://www.google.com", "https://www.google.com" + string default_uri = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. Human-readable display name for the Data Stream. + // + // The max allowed display name length is 100 UTF-16 code units. + string display_name = 7 [(google.api.field_behavior) = REQUIRED]; +} + +// A resource message representing a user's permissions on an Account or +// Property resource. +message UserLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/UserLink" + pattern: "accounts/{account}/userLinks/{user_link}" + pattern: "properties/{property}/userLinks/{user_link}" + }; + + // Example format: properties/1234/userLinks/5678 + string name = 1; + + // Email address of the user to link + string email_address = 2; + + // Roles directly assigned to this user for this account or property. + // + // Valid values: + // predefinedRoles/read + // predefinedRoles/collaborate + // predefinedRoles/edit + // predefinedRoles/manage-users + // + // Excludes roles that are inherited from a higher-level entity, group, + // or organization admin role. + // + // A UserLink that is updated to have an empty list of direct_roles will be + // deleted. + repeated string direct_roles = 3; +} + +// Read-only resource used to summarize a principal's effective roles. +message AuditUserLink { + // Example format: properties/1234/userLinks/5678 + string name = 1; + + // Email address of the linked user + string email_address = 2; + + // Roles directly assigned to this user for this entity. + // + // Format: predefinedRoles/read + // + // Excludes roles that are inherited from an account (if this is for a + // property), group, or organization admin role. + repeated string direct_roles = 3; + + // Union of all permissions a user has at this account or property (includes + // direct permissions, group-inherited permissions, etc.). + // + // Format: predefinedRoles/read + repeated string effective_roles = 4; +} + +// Singleton resource under a WebDataStream, configuring measurement of +// additional site interactions and content. +message EnhancedMeasurementSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" + pattern: "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings" + }; + + // Output only. Resource name of this Data Stream. + // Format: + // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings + // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Indicates whether Enhanced Measurement Settings will be used to + // automatically measure interactions and content on this web stream. + // + // Changing this value does not affect the settings themselves, but determines + // whether they are respected. + bool stream_enabled = 2; + + // Output only. If enabled, capture a page view event each time a page loads or the + // website changes the browser history state. + bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // If enabled, capture scroll events each time a visitor gets to the bottom of + // a page. + bool scrolls_enabled = 4; + + // If enabled, capture an outbound click event each time a visitor clicks a + // link that leads them away from your domain. + bool outbound_clicks_enabled = 5; + + // Capture events when your visitors view content on your site that has + // structured data (eg, articles, blog posts, product details screens, etc.). + bool content_views_enabled = 6; + + // If enabled, capture a view search results event each time a visitor + // performs a search on your site (based on a query parameter). + bool site_search_enabled = 7; + + // If enabled, capture a view search results event each time a visitor + // interacts with a form on your site. + bool form_interactions_enabled = 8; + + // If enabled, capture video play, progress, and complete events as visitors + // view embedded videos on your site. + bool video_engagement_enabled = 9; + + // If enabled, capture a file download event each time a link is clicked with + // a common document, compressed file, application, video, or audio extension. + bool file_downloads_enabled = 10; + + // If enabled, capture a click event each time a visitor clicks a link or + // element that has data attributes beginning with "data-ga". + bool data_tagged_element_clicks_enabled = 11; + + // If enabled, capture a page view event each time a page loads. + bool page_loads_enabled = 12; + + // If enabled, capture a page view event each time the website changes the + // browser history state. + bool page_changes_enabled = 13; + + // Capture events when your visitors view content on your site that has + // articles or blog posts. + bool articles_and_blogs_enabled = 14; + + // Capture events when your visitors view content on your site that has + // product details screens, etc. + bool products_and_ecommerce_enabled = 15; + + // Required. URL query parameters to interpret as site search parameters. + // Max length is 1024 characters. Must not be empty. + string search_query_parameter = 16 [(google.api.field_behavior) = REQUIRED]; + + // Additional URL query parameters. + // Max length is 1024 characters. + string url_query_parameter = 17; + + // Domains to exclude from measurement. Max length is 1024 characters. + string excluded_domains = 18; +} + +// A link between an App+Web property and a Firebase project. +message FirebaseLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/FirebaseLink" + pattern: "properties/{property}/firebaseLinks/{firebase_link}" + }; + + // Output only. Example format: properties/1234/firebaseLinks/5678 + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Firebase project resource name. When creating a FirebaseLink, you may + // provide this resource name using either a project number or project ID. + // Once this resource has been created, returned FirebaseLinks will always + // have a project_name that contains a project number. + // + // Format: 'projects/{project number}' + // Example: 'projects/1234' + string project = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when this FirebaseLink was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Maximum user access to the App + Web property allowed to admins of + // the linked Firebase project. + MaximumUserAccess maximum_user_access = 4; +} + +// Read-only resource with the tag for sending data from a website to a +// WebDataStream. +message GlobalSiteTag { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/GlobalSiteTag" + pattern: "properties/{property}/globalSiteTag" + }; + + // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of + // every webpage to measure. + string snippet = 1 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A link between an App+Web property and a Google Ads account. +message GoogleAdsLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/GoogleAdsLink" + pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" + }; + + // Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + // + // Note: googleAdsLinkId is not the Google Ads customer ID. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Format: properties/{propertyId} + string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Google Ads customer ID. + string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. If true, this link is for a Google Ads manager account. + bool can_manage_clients = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Enable personalized advertising features with this integration. + // Automatically publish my Google Analytics audience lists and Google + // Analytics remarketing events/parameters to the linked Google Ads account. + // If this field is not set on create/update it will be defaulted to true. + google.protobuf.BoolValue ads_personalization_enabled = 5; + + // Output only. Email address of the user that created the link. + // An empty string will be returned if the email address can't be retrieved. + string email_address = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this link was originally created. + google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this link was last updated. + google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource message representing data sharing settings of a Google Analytics +// account. +message DataSharingSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataSharingSettings" + pattern: "accounts/{account}/dataSharingSettings" + }; + + // Output only. Resource name. + // Format: accounts/{account}/dataSharingSettings + // Example: "accounts/1000/dataSharingSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Allows Google support to access the data in order to help troubleshoot + // issues. + bool sharing_with_google_support_enabled = 2; + + // Allows Google sales teams that are assigned to the customer to access the + // data in order to suggest configuration changes to improve results. + // Sales team restrictions still apply when enabled. + bool sharing_with_google_assigned_sales_enabled = 3; + + // Allows any of Google sales to access the data in order to suggest + // configuration changes to improve results. + bool sharing_with_google_any_sales_enabled = 4; + + // Allows Google to use the data to improve other Google products or services. + bool sharing_with_google_products_enabled = 5; + + // Allows Google to share the data anonymously in aggregate form with others. + bool sharing_with_others_enabled = 6; +} + +// The category selected for this property, used for industry benchmarking. +enum IndustryCategory { + // Industry category unspecified + INDUSTRY_CATEGORY_UNSPECIFIED = 0; + + // Automotive + AUTOMOTIVE = 1; + + // Business and industrial markets + BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + + // Finance + FINANCE = 3; + + // Healthcare + HEALTHCARE = 4; + + // Technology + TECHNOLOGY = 5; + + // Travel + TRAVEL = 6; + + // Other + OTHER = 7; + + // Arts and entertainment + ARTS_AND_ENTERTAINMENT = 8; + + // Beauty and fitness + BEAUTY_AND_FITNESS = 9; + + // Books and literature + BOOKS_AND_LITERATURE = 10; + + // Food and drink + FOOD_AND_DRINK = 11; + + // Games + GAMES = 12; + + // Hobbies and leisure + HOBBIES_AND_LEISURE = 13; + + // Home and garden + HOME_AND_GARDEN = 14; + + // Internet and telecom + INTERNET_AND_TELECOM = 15; + + // Law and government + LAW_AND_GOVERNMENT = 16; + + // News + NEWS = 17; + + // Online communities + ONLINE_COMMUNITIES = 18; + + // People and society + PEOPLE_AND_SOCIETY = 19; + + // Pets and animals + PETS_AND_ANIMALS = 20; + + // Real estate + REAL_ESTATE = 21; + + // Reference + REFERENCE = 22; + + // Science + SCIENCE = 23; + + // Sports + SPORTS = 24; + + // Jobs and education + JOBS_AND_EDUCATION = 25; + + // Shopping + SHOPPING = 26; +} + +// Maximum access settings that Firebase user receive on the linked Analytics +// property. +enum MaximumUserAccess { + // Unspecified maximum user access. + MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; + + // Firebase users have no access to the Analytics property. + NO_ACCESS = 1; + + // Firebase users have Read & Analyze access to the Analytics property. + READ_AND_ANALYZE = 2; + + // Firebase users have edit access to the Analytics property, but may not + // manage the Firebase link. + EDITOR_WITHOUT_LINK_MANAGEMENT = 3; + + // Firebase users have edit access to the Analytics property and may manage + // the Firebase link. + EDITOR_INCLUDING_LINK_MANAGEMENT = 4; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts new file mode 100644 index 00000000000..970f050339f --- /dev/null +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -0,0 +1,13023 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import * as Long from "long"; +import * as $protobuf from "protobufjs"; +/** Namespace google. */ +export namespace google { + + /** Namespace analytics. */ + namespace analytics { + + /** Namespace admin. */ + namespace admin { + + /** Namespace v1alpha. */ + namespace v1alpha { + + /** Represents an AnalyticsAdminService */ + class AnalyticsAdminService extends $protobuf.rpc.Service { + + /** + * Constructs a new AnalyticsAdminService 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 AnalyticsAdminService 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): AnalyticsAdminService; + + /** + * 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.analytics.admin.v1alpha.IGetAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccountCallback): void; + + /** + * Calls GetAccount. + * @param request GetAccountRequest message or plain object + * @returns Promise + */ + public getAccount(request: google.analytics.admin.v1alpha.IGetAccountRequest): 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.analytics.admin.v1alpha.IListAccountsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountsCallback): void; + + /** + * Calls ListAccounts. + * @param request ListAccountsRequest message or plain object + * @returns Promise + */ + public listAccounts(request: google.analytics.admin.v1alpha.IListAccountsRequest): 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.analytics.admin.v1alpha.IDeleteAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccountCallback): void; + + /** + * Calls DeleteAccount. + * @param request DeleteAccountRequest message or plain object + * @returns Promise + */ + public deleteAccount(request: google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccountCallback): void; + + /** + * Calls UpdateAccount. + * @param request UpdateAccountRequest message or plain object + * @returns Promise + */ + public updateAccount(request: google.analytics.admin.v1alpha.IUpdateAccountRequest): Promise; + + /** + * Calls ProvisionAccountTicket. + * @param request ProvisionAccountTicketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse + */ + public provisionAccountTicket(request: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicketCallback): void; + + /** + * Calls ProvisionAccountTicket. + * @param request ProvisionAccountTicketRequest message or plain object + * @returns Promise + */ + public provisionAccountTicket(request: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest): Promise; + + /** + * Calls GetProperty. + * @param request GetPropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public getProperty(request: google.analytics.admin.v1alpha.IGetPropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetPropertyCallback): void; + + /** + * Calls GetProperty. + * @param request GetPropertyRequest message or plain object + * @returns Promise + */ + public getProperty(request: google.analytics.admin.v1alpha.IGetPropertyRequest): Promise; + + /** + * Calls ListProperties. + * @param request ListPropertiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPropertiesResponse + */ + public listProperties(request: google.analytics.admin.v1alpha.IListPropertiesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListPropertiesCallback): void; + + /** + * Calls ListProperties. + * @param request ListPropertiesRequest message or plain object + * @returns Promise + */ + public listProperties(request: google.analytics.admin.v1alpha.IListPropertiesRequest): Promise; + + /** + * Calls CreateProperty. + * @param request CreatePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public createProperty(request: google.analytics.admin.v1alpha.ICreatePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreatePropertyCallback): void; + + /** + * Calls CreateProperty. + * @param request CreatePropertyRequest message or plain object + * @returns Promise + */ + public createProperty(request: google.analytics.admin.v1alpha.ICreatePropertyRequest): Promise; + + /** + * Calls DeleteProperty. + * @param request DeletePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback): void; + + /** + * Calls DeleteProperty. + * @param request DeletePropertyRequest message or plain object + * @returns Promise + */ + public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest): Promise; + + /** + * Calls UpdateProperty. + * @param request UpdatePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public updateProperty(request: google.analytics.admin.v1alpha.IUpdatePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdatePropertyCallback): void; + + /** + * Calls UpdateProperty. + * @param request UpdatePropertyRequest message or plain object + * @returns Promise + */ + public updateProperty(request: google.analytics.admin.v1alpha.IUpdatePropertyRequest): Promise; + + /** + * Calls GetUserLink. + * @param request GetUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserLink + */ + public getUserLink(request: google.analytics.admin.v1alpha.IGetUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLinkCallback): void; + + /** + * Calls GetUserLink. + * @param request GetUserLinkRequest message or plain object + * @returns Promise + */ + public getUserLink(request: google.analytics.admin.v1alpha.IGetUserLinkRequest): Promise; + + /** + * Calls BatchGetUserLinks. + * @param request BatchGetUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchGetUserLinksResponse + */ + public batchGetUserLinks(request: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinksCallback): void; + + /** + * Calls BatchGetUserLinks. + * @param request BatchGetUserLinksRequest message or plain object + * @returns Promise + */ + public batchGetUserLinks(request: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest): Promise; + + /** + * Calls ListUserLinks. + * @param request ListUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListUserLinksResponse + */ + public listUserLinks(request: google.analytics.admin.v1alpha.IListUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinksCallback): void; + + /** + * Calls ListUserLinks. + * @param request ListUserLinksRequest message or plain object + * @returns Promise + */ + public listUserLinks(request: google.analytics.admin.v1alpha.IListUserLinksRequest): Promise; + + /** + * Calls AuditUserLinks. + * @param request AuditUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AuditUserLinksResponse + */ + public auditUserLinks(request: google.analytics.admin.v1alpha.IAuditUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinksCallback): void; + + /** + * Calls AuditUserLinks. + * @param request AuditUserLinksRequest message or plain object + * @returns Promise + */ + public auditUserLinks(request: google.analytics.admin.v1alpha.IAuditUserLinksRequest): Promise; + + /** + * Calls CreateUserLink. + * @param request CreateUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserLink + */ + public createUserLink(request: google.analytics.admin.v1alpha.ICreateUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLinkCallback): void; + + /** + * Calls CreateUserLink. + * @param request CreateUserLinkRequest message or plain object + * @returns Promise + */ + public createUserLink(request: google.analytics.admin.v1alpha.ICreateUserLinkRequest): Promise; + + /** + * Calls BatchCreateUserLinks. + * @param request BatchCreateUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchCreateUserLinksResponse + */ + public batchCreateUserLinks(request: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinksCallback): void; + + /** + * Calls BatchCreateUserLinks. + * @param request BatchCreateUserLinksRequest message or plain object + * @returns Promise + */ + public batchCreateUserLinks(request: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest): Promise; + + /** + * Calls UpdateUserLink. + * @param request UpdateUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserLink + */ + public updateUserLink(request: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLinkCallback): void; + + /** + * Calls UpdateUserLink. + * @param request UpdateUserLinkRequest message or plain object + * @returns Promise + */ + public updateUserLink(request: google.analytics.admin.v1alpha.IUpdateUserLinkRequest): Promise; + + /** + * Calls BatchUpdateUserLinks. + * @param request BatchUpdateUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchUpdateUserLinksResponse + */ + public batchUpdateUserLinks(request: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinksCallback): void; + + /** + * Calls BatchUpdateUserLinks. + * @param request BatchUpdateUserLinksRequest message or plain object + * @returns Promise + */ + public batchUpdateUserLinks(request: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest): Promise; + + /** + * Calls DeleteUserLink. + * @param request DeleteUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteUserLink(request: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLinkCallback): void; + + /** + * Calls DeleteUserLink. + * @param request DeleteUserLinkRequest message or plain object + * @returns Promise + */ + public deleteUserLink(request: google.analytics.admin.v1alpha.IDeleteUserLinkRequest): Promise; + + /** + * Calls BatchDeleteUserLinks. + * @param request BatchDeleteUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public batchDeleteUserLinks(request: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinksCallback): void; + + /** + * Calls BatchDeleteUserLinks. + * @param request BatchDeleteUserLinksRequest message or plain object + * @returns Promise + */ + public batchDeleteUserLinks(request: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest): Promise; + + /** + * Calls GetWebDataStream. + * @param request GetWebDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WebDataStream + */ + public getWebDataStream(request: google.analytics.admin.v1alpha.IGetWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStreamCallback): void; + + /** + * Calls GetWebDataStream. + * @param request GetWebDataStreamRequest message or plain object + * @returns Promise + */ + public getWebDataStream(request: google.analytics.admin.v1alpha.IGetWebDataStreamRequest): Promise; + + /** + * Calls DeleteWebDataStream. + * @param request DeleteWebDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteWebDataStream(request: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStreamCallback): void; + + /** + * Calls DeleteWebDataStream. + * @param request DeleteWebDataStreamRequest message or plain object + * @returns Promise + */ + public deleteWebDataStream(request: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest): Promise; + + /** + * Calls UpdateWebDataStream. + * @param request UpdateWebDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WebDataStream + */ + public updateWebDataStream(request: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStreamCallback): void; + + /** + * Calls UpdateWebDataStream. + * @param request UpdateWebDataStreamRequest message or plain object + * @returns Promise + */ + public updateWebDataStream(request: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest): Promise; + + /** + * Calls CreateWebDataStream. + * @param request CreateWebDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WebDataStream + */ + public createWebDataStream(request: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStreamCallback): void; + + /** + * Calls CreateWebDataStream. + * @param request CreateWebDataStreamRequest message or plain object + * @returns Promise + */ + public createWebDataStream(request: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest): Promise; + + /** + * Calls ListWebDataStreams. + * @param request ListWebDataStreamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWebDataStreamsResponse + */ + public listWebDataStreams(request: google.analytics.admin.v1alpha.IListWebDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreamsCallback): void; + + /** + * Calls ListWebDataStreams. + * @param request ListWebDataStreamsRequest message or plain object + * @returns Promise + */ + public listWebDataStreams(request: google.analytics.admin.v1alpha.IListWebDataStreamsRequest): Promise; + + /** + * Calls GetIosAppDataStream. + * @param request GetIosAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IosAppDataStream + */ + public getIosAppDataStream(request: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStreamCallback): void; + + /** + * Calls GetIosAppDataStream. + * @param request GetIosAppDataStreamRequest message or plain object + * @returns Promise + */ + public getIosAppDataStream(request: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest): Promise; + + /** + * Calls DeleteIosAppDataStream. + * @param request DeleteIosAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteIosAppDataStream(request: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStreamCallback): void; + + /** + * Calls DeleteIosAppDataStream. + * @param request DeleteIosAppDataStreamRequest message or plain object + * @returns Promise + */ + public deleteIosAppDataStream(request: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest): Promise; + + /** + * Calls UpdateIosAppDataStream. + * @param request UpdateIosAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IosAppDataStream + */ + public updateIosAppDataStream(request: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStreamCallback): void; + + /** + * Calls UpdateIosAppDataStream. + * @param request UpdateIosAppDataStreamRequest message or plain object + * @returns Promise + */ + public updateIosAppDataStream(request: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest): Promise; + + /** + * Calls CreateIosAppDataStream. + * @param request CreateIosAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IosAppDataStream + */ + public createIosAppDataStream(request: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateIosAppDataStreamCallback): void; + + /** + * Calls CreateIosAppDataStream. + * @param request CreateIosAppDataStreamRequest message or plain object + * @returns Promise + */ + public createIosAppDataStream(request: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest): Promise; + + /** + * Calls ListIosAppDataStreams. + * @param request ListIosAppDataStreamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIosAppDataStreamsResponse + */ + public listIosAppDataStreams(request: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreamsCallback): void; + + /** + * Calls ListIosAppDataStreams. + * @param request ListIosAppDataStreamsRequest message or plain object + * @returns Promise + */ + public listIosAppDataStreams(request: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest): Promise; + + /** + * Calls GetAndroidAppDataStream. + * @param request GetAndroidAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AndroidAppDataStream + */ + public getAndroidAppDataStream(request: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStreamCallback): void; + + /** + * Calls GetAndroidAppDataStream. + * @param request GetAndroidAppDataStreamRequest message or plain object + * @returns Promise + */ + public getAndroidAppDataStream(request: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest): Promise; + + /** + * Calls DeleteAndroidAppDataStream. + * @param request DeleteAndroidAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteAndroidAppDataStream(request: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStreamCallback): void; + + /** + * Calls DeleteAndroidAppDataStream. + * @param request DeleteAndroidAppDataStreamRequest message or plain object + * @returns Promise + */ + public deleteAndroidAppDataStream(request: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest): Promise; + + /** + * Calls UpdateAndroidAppDataStream. + * @param request UpdateAndroidAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AndroidAppDataStream + */ + public updateAndroidAppDataStream(request: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStreamCallback): void; + + /** + * Calls UpdateAndroidAppDataStream. + * @param request UpdateAndroidAppDataStreamRequest message or plain object + * @returns Promise + */ + public updateAndroidAppDataStream(request: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest): Promise; + + /** + * Calls CreateAndroidAppDataStream. + * @param request CreateAndroidAppDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AndroidAppDataStream + */ + public createAndroidAppDataStream(request: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAndroidAppDataStreamCallback): void; + + /** + * Calls CreateAndroidAppDataStream. + * @param request CreateAndroidAppDataStreamRequest message or plain object + * @returns Promise + */ + public createAndroidAppDataStream(request: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest): Promise; + + /** + * Calls ListAndroidAppDataStreams. + * @param request ListAndroidAppDataStreamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAndroidAppDataStreamsResponse + */ + public listAndroidAppDataStreams(request: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreamsCallback): void; + + /** + * Calls ListAndroidAppDataStreams. + * @param request ListAndroidAppDataStreamsRequest message or plain object + * @returns Promise + */ + public listAndroidAppDataStreams(request: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest): Promise; + + /** + * Calls GetEnhancedMeasurementSettings. + * @param request GetEnhancedMeasurementSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings + */ + public getEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettingsCallback): void; + + /** + * Calls GetEnhancedMeasurementSettings. + * @param request GetEnhancedMeasurementSettingsRequest message or plain object + * @returns Promise + */ + public getEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest): Promise; + + /** + * Calls UpdateEnhancedMeasurementSettings. + * @param request UpdateEnhancedMeasurementSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings + */ + public updateEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettingsCallback): void; + + /** + * Calls UpdateEnhancedMeasurementSettings. + * @param request UpdateEnhancedMeasurementSettingsRequest message or plain object + * @returns Promise + */ + public updateEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest): Promise; + + /** + * Calls CreateFirebaseLink. + * @param request CreateFirebaseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FirebaseLink + */ + public createFirebaseLink(request: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLinkCallback): void; + + /** + * Calls CreateFirebaseLink. + * @param request CreateFirebaseLinkRequest message or plain object + * @returns Promise + */ + public createFirebaseLink(request: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest): Promise; + + /** + * Calls UpdateFirebaseLink. + * @param request UpdateFirebaseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FirebaseLink + */ + public updateFirebaseLink(request: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateFirebaseLinkCallback): void; + + /** + * Calls UpdateFirebaseLink. + * @param request UpdateFirebaseLinkRequest message or plain object + * @returns Promise + */ + public updateFirebaseLink(request: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest): Promise; + + /** + * Calls DeleteFirebaseLink. + * @param request DeleteFirebaseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteFirebaseLink(request: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLinkCallback): void; + + /** + * Calls DeleteFirebaseLink. + * @param request DeleteFirebaseLinkRequest message or plain object + * @returns Promise + */ + public deleteFirebaseLink(request: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest): Promise; + + /** + * Calls ListFirebaseLinks. + * @param request ListFirebaseLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse + */ + public listFirebaseLinks(request: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinksCallback): void; + + /** + * Calls ListFirebaseLinks. + * @param request ListFirebaseLinksRequest message or plain object + * @returns Promise + */ + public listFirebaseLinks(request: google.analytics.admin.v1alpha.IListFirebaseLinksRequest): Promise; + + /** + * Calls GetGlobalSiteTag. + * @param request GetGlobalSiteTagRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GlobalSiteTag + */ + public getGlobalSiteTag(request: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTagCallback): void; + + /** + * Calls GetGlobalSiteTag. + * @param request GetGlobalSiteTagRequest message or plain object + * @returns Promise + */ + public getGlobalSiteTag(request: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest): Promise; + + /** + * Calls CreateGoogleAdsLink. + * @param request CreateGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + */ + public createGoogleAdsLink(request: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLinkCallback): void; + + /** + * Calls CreateGoogleAdsLink. + * @param request CreateGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public createGoogleAdsLink(request: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest): Promise; + + /** + * Calls UpdateGoogleAdsLink. + * @param request UpdateGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + */ + public updateGoogleAdsLink(request: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLinkCallback): void; + + /** + * Calls UpdateGoogleAdsLink. + * @param request UpdateGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public updateGoogleAdsLink(request: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest): Promise; + + /** + * Calls DeleteGoogleAdsLink. + * @param request DeleteGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteGoogleAdsLink(request: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLinkCallback): void; + + /** + * Calls DeleteGoogleAdsLink. + * @param request DeleteGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public deleteGoogleAdsLink(request: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest): Promise; + + /** + * Calls ListGoogleAdsLinks. + * @param request ListGoogleAdsLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse + */ + public listGoogleAdsLinks(request: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinksCallback): void; + + /** + * Calls ListGoogleAdsLinks. + * @param request ListGoogleAdsLinksRequest message or plain object + * @returns Promise + */ + public listGoogleAdsLinks(request: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest): Promise; + + /** + * Calls GetDataSharingSettings. + * @param request GetDataSharingSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataSharingSettings + */ + public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettingsCallback): void; + + /** + * Calls GetDataSharingSettings. + * @param request GetDataSharingSettingsRequest message or plain object + * @returns Promise + */ + public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): Promise; + } + + namespace AnalyticsAdminService { + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. + * @param error Error, if any + * @param [response] Account + */ + type GetAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. + * @param error Error, if any + * @param [response] ListAccountsResponse + */ + type ListAccountsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#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.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. + * @param error Error, if any + * @param [response] Account + */ + type UpdateAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. + * @param error Error, if any + * @param [response] ProvisionAccountTicketResponse + */ + type ProvisionAccountTicketCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. + * @param error Error, if any + * @param [response] Property + */ + type GetPropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. + * @param error Error, if any + * @param [response] ListPropertiesResponse + */ + type ListPropertiesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListPropertiesResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. + * @param error Error, if any + * @param [response] Property + */ + type CreatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. + * @param error Error, if any + * @param [response] Empty + */ + type DeletePropertyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. + * @param error Error, if any + * @param [response] Property + */ + type UpdatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. + * @param error Error, if any + * @param [response] UserLink + */ + type GetUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. + * @param error Error, if any + * @param [response] BatchGetUserLinksResponse + */ + type BatchGetUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchGetUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. + * @param error Error, if any + * @param [response] ListUserLinksResponse + */ + type ListUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. + * @param error Error, if any + * @param [response] AuditUserLinksResponse + */ + type AuditUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AuditUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. + * @param error Error, if any + * @param [response] UserLink + */ + type CreateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. + * @param error Error, if any + * @param [response] BatchCreateUserLinksResponse + */ + type BatchCreateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. + * @param error Error, if any + * @param [response] UserLink + */ + type UpdateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. + * @param error Error, if any + * @param [response] BatchUpdateUserLinksResponse + */ + type BatchUpdateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteUserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. + * @param error Error, if any + * @param [response] Empty + */ + type BatchDeleteUserLinksCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getWebDataStream}. + * @param error Error, if any + * @param [response] WebDataStream + */ + type GetWebDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.WebDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteWebDataStream}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteWebDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateWebDataStream}. + * @param error Error, if any + * @param [response] WebDataStream + */ + type UpdateWebDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.WebDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createWebDataStream}. + * @param error Error, if any + * @param [response] WebDataStream + */ + type CreateWebDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.WebDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listWebDataStreams}. + * @param error Error, if any + * @param [response] ListWebDataStreamsResponse + */ + type ListWebDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListWebDataStreamsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getIosAppDataStream}. + * @param error Error, if any + * @param [response] IosAppDataStream + */ + type GetIosAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.IosAppDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteIosAppDataStream}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteIosAppDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateIosAppDataStream}. + * @param error Error, if any + * @param [response] IosAppDataStream + */ + type UpdateIosAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.IosAppDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createIosAppDataStream}. + * @param error Error, if any + * @param [response] IosAppDataStream + */ + type CreateIosAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.IosAppDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listIosAppDataStreams}. + * @param error Error, if any + * @param [response] ListIosAppDataStreamsResponse + */ + type ListIosAppDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAndroidAppDataStream}. + * @param error Error, if any + * @param [response] AndroidAppDataStream + */ + type GetAndroidAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AndroidAppDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAndroidAppDataStream}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteAndroidAppDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAndroidAppDataStream}. + * @param error Error, if any + * @param [response] AndroidAppDataStream + */ + type UpdateAndroidAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AndroidAppDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAndroidAppDataStream}. + * @param error Error, if any + * @param [response] AndroidAppDataStream + */ + type CreateAndroidAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AndroidAppDataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAndroidAppDataStreams}. + * @param error Error, if any + * @param [response] ListAndroidAppDataStreamsResponse + */ + type ListAndroidAppDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getEnhancedMeasurementSettings}. + * @param error Error, if any + * @param [response] EnhancedMeasurementSettings + */ + type GetEnhancedMeasurementSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.EnhancedMeasurementSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateEnhancedMeasurementSettings}. + * @param error Error, if any + * @param [response] EnhancedMeasurementSettings + */ + type UpdateEnhancedMeasurementSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.EnhancedMeasurementSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. + * @param error Error, if any + * @param [response] FirebaseLink + */ + type CreateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FirebaseLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateFirebaseLink}. + * @param error Error, if any + * @param [response] FirebaseLink + */ + type UpdateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FirebaseLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteFirebaseLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. + * @param error Error, if any + * @param [response] ListFirebaseLinksResponse + */ + type ListFirebaseLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListFirebaseLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. + * @param error Error, if any + * @param [response] GlobalSiteTag + */ + type GetGlobalSiteTagCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GlobalSiteTag) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. + * @param error Error, if any + * @param [response] GoogleAdsLink + */ + type CreateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. + * @param error Error, if any + * @param [response] GoogleAdsLink + */ + type UpdateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteGoogleAdsLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. + * @param error Error, if any + * @param [response] ListGoogleAdsLinksResponse + */ + type ListGoogleAdsLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. + * @param error Error, if any + * @param [response] DataSharingSettings + */ + type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataSharingSettings) => void; + } + + /** 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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IGetAccountRequest): google.analytics.admin.v1alpha.GetAccountRequest; + + /** + * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IGetAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountsRequest. */ + interface IListAccountsRequest { + + /** ListAccountsRequest pageSize */ + pageSize?: (number|null); + + /** ListAccountsRequest pageToken */ + pageToken?: (string|null); + + /** ListAccountsRequest showDeleted */ + showDeleted?: (boolean|null); + } + + /** Represents a ListAccountsRequest. */ + class ListAccountsRequest implements IListAccountsRequest { + + /** + * Constructs a new ListAccountsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAccountsRequest); + + /** ListAccountsRequest pageSize. */ + public pageSize: number; + + /** ListAccountsRequest pageToken. */ + public pageToken: string; + + /** ListAccountsRequest showDeleted. */ + public showDeleted: boolean; + + /** + * Creates a new ListAccountsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAccountsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAccountsRequest): google.analytics.admin.v1alpha.ListAccountsRequest; + + /** + * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountsResponse. */ + interface IListAccountsResponse { + + /** ListAccountsResponse accounts */ + accounts?: (google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsResponse); + + /** ListAccountsResponse accounts. */ + public accounts: google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsResponse): google.analytics.admin.v1alpha.ListAccountsResponse; + + /** + * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IDeleteAccountRequest): google.analytics.admin.v1alpha.DeleteAccountRequest; + + /** + * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IDeleteAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateAccountRequest. */ + interface IUpdateAccountRequest { + + /** UpdateAccountRequest account */ + account?: (google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest); + + /** UpdateAccountRequest account. */ + public account?: (google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest): google.analytics.admin.v1alpha.UpdateAccountRequest; + + /** + * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ProvisionAccountTicketRequest. */ + interface IProvisionAccountTicketRequest { + + /** ProvisionAccountTicketRequest account */ + account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ProvisionAccountTicketRequest redirectUri */ + redirectUri?: (string|null); + } + + /** Represents a ProvisionAccountTicketRequest. */ + class ProvisionAccountTicketRequest implements IProvisionAccountTicketRequest { + + /** + * Constructs a new ProvisionAccountTicketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest); + + /** ProvisionAccountTicketRequest account. */ + public account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ProvisionAccountTicketRequest redirectUri. */ + public redirectUri: string; + + /** + * Creates a new ProvisionAccountTicketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProvisionAccountTicketRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * @param message ProvisionAccountTicketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * @param message ProvisionAccountTicketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Verifies a ProvisionAccountTicketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProvisionAccountTicketRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. + * @param message ProvisionAccountTicketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProvisionAccountTicketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ProvisionAccountTicketResponse. */ + interface IProvisionAccountTicketResponse { + + /** ProvisionAccountTicketResponse accountTicketId */ + accountTicketId?: (string|null); + } + + /** Represents a ProvisionAccountTicketResponse. */ + class ProvisionAccountTicketResponse implements IProvisionAccountTicketResponse { + + /** + * Constructs a new ProvisionAccountTicketResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse); + + /** ProvisionAccountTicketResponse accountTicketId. */ + public accountTicketId: string; + + /** + * Creates a new ProvisionAccountTicketResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProvisionAccountTicketResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * @param message ProvisionAccountTicketResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * @param message ProvisionAccountTicketResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Verifies a ProvisionAccountTicketResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProvisionAccountTicketResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. + * @param message ProvisionAccountTicketResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProvisionAccountTicketResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetPropertyRequest. */ + interface IGetPropertyRequest { + + /** GetPropertyRequest name */ + name?: (string|null); + } + + /** Represents a GetPropertyRequest. */ + class GetPropertyRequest implements IGetPropertyRequest { + + /** + * Constructs a new GetPropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetPropertyRequest); + + /** GetPropertyRequest name. */ + public name: string; + + /** + * Creates a new GetPropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetPropertyRequest): google.analytics.admin.v1alpha.GetPropertyRequest; + + /** + * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * @param message GetPropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * @param message GetPropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetPropertyRequest; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetPropertyRequest; + + /** + * Verifies a GetPropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetPropertyRequest; + + /** + * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. + * @param message GetPropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetPropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListPropertiesRequest. */ + interface IListPropertiesRequest { + + /** ListPropertiesRequest filter */ + filter?: (string|null); + + /** ListPropertiesRequest pageSize */ + pageSize?: (number|null); + + /** ListPropertiesRequest pageToken */ + pageToken?: (string|null); + + /** ListPropertiesRequest showDeleted */ + showDeleted?: (boolean|null); + } + + /** Represents a ListPropertiesRequest. */ + class ListPropertiesRequest implements IListPropertiesRequest { + + /** + * Constructs a new ListPropertiesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListPropertiesRequest); + + /** ListPropertiesRequest filter. */ + public filter: string; + + /** ListPropertiesRequest pageSize. */ + public pageSize: number; + + /** ListPropertiesRequest pageToken. */ + public pageToken: string; + + /** ListPropertiesRequest showDeleted. */ + public showDeleted: boolean; + + /** + * Creates a new ListPropertiesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPropertiesRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListPropertiesRequest): google.analytics.admin.v1alpha.ListPropertiesRequest; + + /** + * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * @param message ListPropertiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * @param message ListPropertiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListPropertiesRequest; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListPropertiesRequest; + + /** + * Verifies a ListPropertiesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPropertiesRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListPropertiesRequest; + + /** + * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. + * @param message ListPropertiesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListPropertiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPropertiesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListPropertiesResponse. */ + interface IListPropertiesResponse { + + /** ListPropertiesResponse properties */ + properties?: (google.analytics.admin.v1alpha.IProperty[]|null); + + /** ListPropertiesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPropertiesResponse. */ + class ListPropertiesResponse implements IListPropertiesResponse { + + /** + * Constructs a new ListPropertiesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListPropertiesResponse); + + /** ListPropertiesResponse properties. */ + public properties: google.analytics.admin.v1alpha.IProperty[]; + + /** ListPropertiesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListPropertiesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPropertiesResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListPropertiesResponse): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * @param message ListPropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * @param message ListPropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Verifies a ListPropertiesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPropertiesResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. + * @param message ListPropertiesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListPropertiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPropertiesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdatePropertyRequest. */ + interface IUpdatePropertyRequest { + + /** UpdatePropertyRequest property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** UpdatePropertyRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdatePropertyRequest. */ + class UpdatePropertyRequest implements IUpdatePropertyRequest { + + /** + * Constructs a new UpdatePropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdatePropertyRequest); + + /** UpdatePropertyRequest property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** UpdatePropertyRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdatePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdatePropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdatePropertyRequest): google.analytics.admin.v1alpha.UpdatePropertyRequest; + + /** + * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * @param message UpdatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * @param message UpdatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdatePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdatePropertyRequest; + + /** + * Decodes an UpdatePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdatePropertyRequest; + + /** + * Verifies an UpdatePropertyRequest message. + * @param message Plain 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 UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdatePropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdatePropertyRequest; + + /** + * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. + * @param message UpdatePropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdatePropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreatePropertyRequest. */ + interface ICreatePropertyRequest { + + /** CreatePropertyRequest property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + } + + /** Represents a CreatePropertyRequest. */ + class CreatePropertyRequest implements ICreatePropertyRequest { + + /** + * Constructs a new CreatePropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreatePropertyRequest); + + /** CreatePropertyRequest property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** + * Creates a new CreatePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreatePropertyRequest): google.analytics.admin.v1alpha.CreatePropertyRequest; + + /** + * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * @param message CreatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * @param message CreatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreatePropertyRequest; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreatePropertyRequest; + + /** + * Verifies a CreatePropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreatePropertyRequest; + + /** + * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. + * @param message CreatePropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreatePropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeletePropertyRequest. */ + interface IDeletePropertyRequest { + + /** DeletePropertyRequest name */ + name?: (string|null); + } + + /** Represents a DeletePropertyRequest. */ + class DeletePropertyRequest implements IDeletePropertyRequest { + + /** + * Constructs a new DeletePropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeletePropertyRequest); + + /** DeletePropertyRequest name. */ + public name: string; + + /** + * Creates a new DeletePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeletePropertyRequest): google.analytics.admin.v1alpha.DeletePropertyRequest; + + /** + * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * @param message DeletePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * @param message DeletePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeletePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeletePropertyRequest; + + /** + * Decodes a DeletePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeletePropertyRequest; + + /** + * Verifies a DeletePropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeletePropertyRequest; + + /** + * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. + * @param message DeletePropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeletePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeletePropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetUserLinkRequest. */ + interface IGetUserLinkRequest { + + /** GetUserLinkRequest name */ + name?: (string|null); + } + + /** Represents a GetUserLinkRequest. */ + class GetUserLinkRequest implements IGetUserLinkRequest { + + /** + * Constructs a new GetUserLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetUserLinkRequest); + + /** GetUserLinkRequest name. */ + public name: string; + + /** + * Creates a new GetUserLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetUserLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetUserLinkRequest): google.analytics.admin.v1alpha.GetUserLinkRequest; + + /** + * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * @param message GetUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * @param message GetUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetUserLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetUserLinkRequest; + + /** + * Decodes a GetUserLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetUserLinkRequest; + + /** + * Verifies a GetUserLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetUserLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetUserLinkRequest; + + /** + * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. + * @param message GetUserLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetUserLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchGetUserLinksRequest. */ + interface IBatchGetUserLinksRequest { + + /** BatchGetUserLinksRequest parent */ + parent?: (string|null); + + /** BatchGetUserLinksRequest names */ + names?: (string[]|null); + } + + /** Represents a BatchGetUserLinksRequest. */ + class BatchGetUserLinksRequest implements IBatchGetUserLinksRequest { + + /** + * Constructs a new BatchGetUserLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest); + + /** BatchGetUserLinksRequest parent. */ + public parent: string; + + /** BatchGetUserLinksRequest names. */ + public names: string[]; + + /** + * Creates a new BatchGetUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchGetUserLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + + /** + * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * @param message BatchGetUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * @param message BatchGetUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchGetUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + + /** + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchGetUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + + /** + * Verifies a BatchGetUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchGetUserLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + + /** + * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchGetUserLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.BatchGetUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchGetUserLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchGetUserLinksResponse. */ + interface IBatchGetUserLinksResponse { + + /** BatchGetUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + } + + /** Represents a BatchGetUserLinksResponse. */ + class BatchGetUserLinksResponse implements IBatchGetUserLinksResponse { + + /** + * Constructs a new BatchGetUserLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse); + + /** BatchGetUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + + /** + * Creates a new BatchGetUserLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchGetUserLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + + /** + * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * @param message BatchGetUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * @param message BatchGetUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchGetUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + + /** + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchGetUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + + /** + * Verifies a BatchGetUserLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchGetUserLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + + /** + * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. + * @param message BatchGetUserLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.BatchGetUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchGetUserLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListUserLinksRequest. */ + interface IListUserLinksRequest { + + /** ListUserLinksRequest parent */ + parent?: (string|null); + + /** ListUserLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListUserLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListUserLinksRequest. */ + class ListUserLinksRequest implements IListUserLinksRequest { + + /** + * Constructs a new ListUserLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListUserLinksRequest); + + /** ListUserLinksRequest parent. */ + public parent: string; + + /** ListUserLinksRequest pageSize. */ + public pageSize: number; + + /** ListUserLinksRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListUserLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListUserLinksRequest): google.analytics.admin.v1alpha.ListUserLinksRequest; + + /** + * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * @param message ListUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * @param message ListUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListUserLinksRequest; + + /** + * Decodes a ListUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListUserLinksRequest; + + /** + * Verifies a ListUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListUserLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListUserLinksRequest; + + /** + * Creates a plain object from a ListUserLinksRequest message. Also converts values to other types if specified. + * @param message ListUserLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListUserLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListUserLinksResponse. */ + interface IListUserLinksResponse { + + /** ListUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + + /** ListUserLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListUserLinksResponse. */ + class ListUserLinksResponse implements IListUserLinksResponse { + + /** + * Constructs a new ListUserLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListUserLinksResponse); + + /** ListUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + + /** ListUserLinksResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListUserLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListUserLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListUserLinksResponse): google.analytics.admin.v1alpha.ListUserLinksResponse; + + /** + * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + * @param message ListUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + * @param message ListUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListUserLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListUserLinksResponse; + + /** + * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListUserLinksResponse; + + /** + * Verifies a ListUserLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListUserLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListUserLinksResponse; + + /** + * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. + * @param message ListUserLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListUserLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuditUserLinksRequest. */ + interface IAuditUserLinksRequest { + + /** AuditUserLinksRequest parent */ + parent?: (string|null); + + /** AuditUserLinksRequest pageSize */ + pageSize?: (number|null); + + /** AuditUserLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents an AuditUserLinksRequest. */ + class AuditUserLinksRequest implements IAuditUserLinksRequest { + + /** + * Constructs a new AuditUserLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLinksRequest); + + /** AuditUserLinksRequest parent. */ + public parent: string; + + /** AuditUserLinksRequest pageSize. */ + public pageSize: number; + + /** AuditUserLinksRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new AuditUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditUserLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLinksRequest): google.analytics.admin.v1alpha.AuditUserLinksRequest; + + /** + * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * @param message AuditUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * @param message AuditUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLinksRequest; + + /** + * Decodes an AuditUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLinksRequest; + + /** + * Verifies an AuditUserLinksRequest message. + * @param message Plain 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 AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditUserLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLinksRequest; + + /** + * Creates a plain object from an AuditUserLinksRequest message. Also converts values to other types if specified. + * @param message AuditUserLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditUserLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuditUserLinksResponse. */ + interface IAuditUserLinksResponse { + + /** AuditUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IAuditUserLink[]|null); + + /** AuditUserLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents an AuditUserLinksResponse. */ + class AuditUserLinksResponse implements IAuditUserLinksResponse { + + /** + * Constructs a new AuditUserLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLinksResponse); + + /** AuditUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IAuditUserLink[]; + + /** AuditUserLinksResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new AuditUserLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditUserLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLinksResponse): google.analytics.admin.v1alpha.AuditUserLinksResponse; + + /** + * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * @param message AuditUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * @param message AuditUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditUserLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLinksResponse; + + /** + * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLinksResponse; + + /** + * Verifies an AuditUserLinksResponse message. + * @param message Plain 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 AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditUserLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLinksResponse; + + /** + * Creates a plain object from an AuditUserLinksResponse message. Also converts values to other types if specified. + * @param message AuditUserLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditUserLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateUserLinkRequest. */ + interface ICreateUserLinkRequest { + + /** CreateUserLinkRequest parent */ + parent?: (string|null); + + /** CreateUserLinkRequest notifyNewUser */ + notifyNewUser?: (boolean|null); + + /** CreateUserLinkRequest userLink */ + userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + } + + /** Represents a CreateUserLinkRequest. */ + class CreateUserLinkRequest implements ICreateUserLinkRequest { + + /** + * Constructs a new CreateUserLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateUserLinkRequest); + + /** CreateUserLinkRequest parent. */ + public parent: string; + + /** CreateUserLinkRequest notifyNewUser. */ + public notifyNewUser: boolean; + + /** CreateUserLinkRequest userLink. */ + public userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + + /** + * Creates a new CreateUserLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateUserLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateUserLinkRequest): google.analytics.admin.v1alpha.CreateUserLinkRequest; + + /** + * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * @param message CreateUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * @param message CreateUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateUserLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateUserLinkRequest; + + /** + * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateUserLinkRequest; + + /** + * Verifies a CreateUserLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateUserLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateUserLinkRequest; + + /** + * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. + * @param message CreateUserLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateUserLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchCreateUserLinksRequest. */ + interface IBatchCreateUserLinksRequest { + + /** BatchCreateUserLinksRequest parent */ + parent?: (string|null); + + /** BatchCreateUserLinksRequest notifyNewUsers */ + notifyNewUsers?: (boolean|null); + + /** BatchCreateUserLinksRequest requests */ + requests?: (google.analytics.admin.v1alpha.ICreateUserLinkRequest[]|null); + } + + /** Represents a BatchCreateUserLinksRequest. */ + class BatchCreateUserLinksRequest implements IBatchCreateUserLinksRequest { + + /** + * Constructs a new BatchCreateUserLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest); + + /** BatchCreateUserLinksRequest parent. */ + public parent: string; + + /** BatchCreateUserLinksRequest notifyNewUsers. */ + public notifyNewUsers: boolean; + + /** BatchCreateUserLinksRequest requests. */ + public requests: google.analytics.admin.v1alpha.ICreateUserLinkRequest[]; + + /** + * Creates a new BatchCreateUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCreateUserLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + + /** + * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * @param message BatchCreateUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * @param message BatchCreateUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchCreateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + + /** + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchCreateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + + /** + * Verifies a BatchCreateUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCreateUserLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + + /** + * Creates a plain object from a BatchCreateUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchCreateUserLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchCreateUserLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchCreateUserLinksResponse. */ + interface IBatchCreateUserLinksResponse { + + /** BatchCreateUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + } + + /** Represents a BatchCreateUserLinksResponse. */ + class BatchCreateUserLinksResponse implements IBatchCreateUserLinksResponse { + + /** + * Constructs a new BatchCreateUserLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse); + + /** BatchCreateUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + + /** + * Creates a new BatchCreateUserLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCreateUserLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + + /** + * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * @param message BatchCreateUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * @param message BatchCreateUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchCreateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + + /** + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchCreateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + + /** + * Verifies a BatchCreateUserLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCreateUserLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + + /** + * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. + * @param message BatchCreateUserLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.BatchCreateUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchCreateUserLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateUserLinkRequest. */ + interface IUpdateUserLinkRequest { + + /** UpdateUserLinkRequest userLink */ + userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + } + + /** Represents an UpdateUserLinkRequest. */ + class UpdateUserLinkRequest implements IUpdateUserLinkRequest { + + /** + * Constructs a new UpdateUserLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateUserLinkRequest); + + /** UpdateUserLinkRequest userLink. */ + public userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + + /** + * Creates a new UpdateUserLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateUserLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateUserLinkRequest): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + + /** + * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * @param message UpdateUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * @param message UpdateUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + + /** + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + + /** + * Verifies an UpdateUserLinkRequest message. + * @param message Plain 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 UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateUserLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + + /** + * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. + * @param message UpdateUserLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateUserLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchUpdateUserLinksRequest. */ + interface IBatchUpdateUserLinksRequest { + + /** BatchUpdateUserLinksRequest parent */ + parent?: (string|null); + + /** BatchUpdateUserLinksRequest requests */ + requests?: (google.analytics.admin.v1alpha.IUpdateUserLinkRequest[]|null); + } + + /** Represents a BatchUpdateUserLinksRequest. */ + class BatchUpdateUserLinksRequest implements IBatchUpdateUserLinksRequest { + + /** + * Constructs a new BatchUpdateUserLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest); + + /** BatchUpdateUserLinksRequest parent. */ + public parent: string; + + /** BatchUpdateUserLinksRequest requests. */ + public requests: google.analytics.admin.v1alpha.IUpdateUserLinkRequest[]; + + /** + * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchUpdateUserLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + + /** + * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * @param message BatchUpdateUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * @param message BatchUpdateUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchUpdateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + + /** + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchUpdateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + + /** + * Verifies a BatchUpdateUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchUpdateUserLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + + /** + * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchUpdateUserLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchUpdateUserLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchUpdateUserLinksResponse. */ + interface IBatchUpdateUserLinksResponse { + + /** BatchUpdateUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + } + + /** Represents a BatchUpdateUserLinksResponse. */ + class BatchUpdateUserLinksResponse implements IBatchUpdateUserLinksResponse { + + /** + * Constructs a new BatchUpdateUserLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse); + + /** BatchUpdateUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + + /** + * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchUpdateUserLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + + /** + * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * @param message BatchUpdateUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * @param message BatchUpdateUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchUpdateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + + /** + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchUpdateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + + /** + * Verifies a BatchUpdateUserLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchUpdateUserLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + + /** + * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. + * @param message BatchUpdateUserLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchUpdateUserLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteUserLinkRequest. */ + interface IDeleteUserLinkRequest { + + /** DeleteUserLinkRequest name */ + name?: (string|null); + } + + /** Represents a DeleteUserLinkRequest. */ + class DeleteUserLinkRequest implements IDeleteUserLinkRequest { + + /** + * Constructs a new DeleteUserLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeleteUserLinkRequest); + + /** DeleteUserLinkRequest name. */ + public name: string; + + /** + * Creates a new DeleteUserLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteUserLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeleteUserLinkRequest): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + + /** + * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * @param message DeleteUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * @param message DeleteUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + + /** + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + + /** + * Verifies a DeleteUserLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteUserLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + + /** + * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. + * @param message DeleteUserLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeleteUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteUserLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchDeleteUserLinksRequest. */ + interface IBatchDeleteUserLinksRequest { + + /** BatchDeleteUserLinksRequest parent */ + parent?: (string|null); + + /** BatchDeleteUserLinksRequest requests */ + requests?: (google.analytics.admin.v1alpha.IDeleteUserLinkRequest[]|null); + } + + /** Represents a BatchDeleteUserLinksRequest. */ + class BatchDeleteUserLinksRequest implements IBatchDeleteUserLinksRequest { + + /** + * Constructs a new BatchDeleteUserLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest); + + /** BatchDeleteUserLinksRequest parent. */ + public parent: string; + + /** BatchDeleteUserLinksRequest requests. */ + public requests: google.analytics.admin.v1alpha.IDeleteUserLinkRequest[]; + + /** + * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchDeleteUserLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + + /** + * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * @param message BatchDeleteUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * @param message BatchDeleteUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchDeleteUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + + /** + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchDeleteUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + + /** + * Verifies a BatchDeleteUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchDeleteUserLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + + /** + * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchDeleteUserLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchDeleteUserLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetWebDataStreamRequest. */ + interface IGetWebDataStreamRequest { + + /** GetWebDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a GetWebDataStreamRequest. */ + class GetWebDataStreamRequest implements IGetWebDataStreamRequest { + + /** + * Constructs a new GetWebDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetWebDataStreamRequest); + + /** GetWebDataStreamRequest name. */ + public name: string; + + /** + * Creates a new GetWebDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWebDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetWebDataStreamRequest): google.analytics.admin.v1alpha.GetWebDataStreamRequest; + + /** + * Encodes the specified GetWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * @param message GetWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * @param message GetWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetWebDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetWebDataStreamRequest; + + /** + * Decodes a GetWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetWebDataStreamRequest; + + /** + * Verifies a GetWebDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetWebDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetWebDataStreamRequest; + + /** + * Creates a plain object from a GetWebDataStreamRequest message. Also converts values to other types if specified. + * @param message GetWebDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetWebDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteWebDataStreamRequest. */ + interface IDeleteWebDataStreamRequest { + + /** DeleteWebDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a DeleteWebDataStreamRequest. */ + class DeleteWebDataStreamRequest implements IDeleteWebDataStreamRequest { + + /** + * Constructs a new DeleteWebDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest); + + /** DeleteWebDataStreamRequest name. */ + public name: string; + + /** + * Creates a new DeleteWebDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteWebDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; + + /** + * Encodes the specified DeleteWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * @param message DeleteWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * @param message DeleteWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; + + /** + * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; + + /** + * Verifies a DeleteWebDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteWebDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; + + /** + * Creates a plain object from a DeleteWebDataStreamRequest message. Also converts values to other types if specified. + * @param message DeleteWebDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteWebDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateWebDataStreamRequest. */ + interface IUpdateWebDataStreamRequest { + + /** UpdateWebDataStreamRequest webDataStream */ + webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** UpdateWebDataStreamRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateWebDataStreamRequest. */ + class UpdateWebDataStreamRequest implements IUpdateWebDataStreamRequest { + + /** + * Constructs a new UpdateWebDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest); + + /** UpdateWebDataStreamRequest webDataStream. */ + public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** UpdateWebDataStreamRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateWebDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateWebDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; + + /** + * Encodes the specified UpdateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * @param message UpdateWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * @param message UpdateWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; + + /** + * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; + + /** + * Verifies an UpdateWebDataStreamRequest message. + * @param message Plain 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 UpdateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateWebDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; + + /** + * Creates a plain object from an UpdateWebDataStreamRequest message. Also converts values to other types if specified. + * @param message UpdateWebDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateWebDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateWebDataStreamRequest. */ + interface ICreateWebDataStreamRequest { + + /** CreateWebDataStreamRequest webDataStream */ + webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** CreateWebDataStreamRequest parent */ + parent?: (string|null); + } + + /** Represents a CreateWebDataStreamRequest. */ + class CreateWebDataStreamRequest implements ICreateWebDataStreamRequest { + + /** + * Constructs a new CreateWebDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest); + + /** CreateWebDataStreamRequest webDataStream. */ + public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** CreateWebDataStreamRequest parent. */ + public parent: string; + + /** + * Creates a new CreateWebDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateWebDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; + + /** + * Encodes the specified CreateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * @param message CreateWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * @param message CreateWebDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; + + /** + * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; + + /** + * Verifies a CreateWebDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateWebDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; + + /** + * Creates a plain object from a CreateWebDataStreamRequest message. Also converts values to other types if specified. + * @param message CreateWebDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateWebDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListWebDataStreamsRequest. */ + interface IListWebDataStreamsRequest { + + /** ListWebDataStreamsRequest parent */ + parent?: (string|null); + + /** ListWebDataStreamsRequest pageSize */ + pageSize?: (number|null); + + /** ListWebDataStreamsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListWebDataStreamsRequest. */ + class ListWebDataStreamsRequest implements IListWebDataStreamsRequest { + + /** + * Constructs a new ListWebDataStreamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsRequest); + + /** ListWebDataStreamsRequest parent. */ + public parent: string; + + /** ListWebDataStreamsRequest pageSize. */ + public pageSize: number; + + /** ListWebDataStreamsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListWebDataStreamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListWebDataStreamsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsRequest): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; + + /** + * Encodes the specified ListWebDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * @param message ListWebDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListWebDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListWebDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * @param message ListWebDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListWebDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListWebDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; + + /** + * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListWebDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; + + /** + * Verifies a ListWebDataStreamsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListWebDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWebDataStreamsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; + + /** + * Creates a plain object from a ListWebDataStreamsRequest message. Also converts values to other types if specified. + * @param message ListWebDataStreamsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListWebDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListWebDataStreamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListWebDataStreamsResponse. */ + interface IListWebDataStreamsResponse { + + /** ListWebDataStreamsResponse webDataStreams */ + webDataStreams?: (google.analytics.admin.v1alpha.IWebDataStream[]|null); + + /** ListWebDataStreamsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListWebDataStreamsResponse. */ + class ListWebDataStreamsResponse implements IListWebDataStreamsResponse { + + /** + * Constructs a new ListWebDataStreamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsResponse); + + /** ListWebDataStreamsResponse webDataStreams. */ + public webDataStreams: google.analytics.admin.v1alpha.IWebDataStream[]; + + /** ListWebDataStreamsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListWebDataStreamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListWebDataStreamsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsResponse): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; + + /** + * Encodes the specified ListWebDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * @param message ListWebDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListWebDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListWebDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * @param message ListWebDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListWebDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListWebDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; + + /** + * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListWebDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; + + /** + * Verifies a ListWebDataStreamsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListWebDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWebDataStreamsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; + + /** + * Creates a plain object from a ListWebDataStreamsResponse message. Also converts values to other types if specified. + * @param message ListWebDataStreamsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListWebDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListWebDataStreamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetIosAppDataStreamRequest. */ + interface IGetIosAppDataStreamRequest { + + /** GetIosAppDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a GetIosAppDataStreamRequest. */ + class GetIosAppDataStreamRequest implements IGetIosAppDataStreamRequest { + + /** + * Constructs a new GetIosAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest); + + /** GetIosAppDataStreamRequest name. */ + public name: string; + + /** + * Creates a new GetIosAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIosAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; + + /** + * Encodes the specified GetIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * @param message GetIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * @param message GetIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; + + /** + * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; + + /** + * Verifies a GetIosAppDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIosAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; + + /** + * Creates a plain object from a GetIosAppDataStreamRequest message. Also converts values to other types if specified. + * @param message GetIosAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIosAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteIosAppDataStreamRequest. */ + interface IDeleteIosAppDataStreamRequest { + + /** DeleteIosAppDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a DeleteIosAppDataStreamRequest. */ + class DeleteIosAppDataStreamRequest implements IDeleteIosAppDataStreamRequest { + + /** + * Constructs a new DeleteIosAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest); + + /** DeleteIosAppDataStreamRequest name. */ + public name: string; + + /** + * Creates a new DeleteIosAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteIosAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; + + /** + * Encodes the specified DeleteIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * @param message DeleteIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * @param message DeleteIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; + + /** + * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; + + /** + * Verifies a DeleteIosAppDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteIosAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; + + /** + * Creates a plain object from a DeleteIosAppDataStreamRequest message. Also converts values to other types if specified. + * @param message DeleteIosAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteIosAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateIosAppDataStreamRequest. */ + interface IUpdateIosAppDataStreamRequest { + + /** UpdateIosAppDataStreamRequest iosAppDataStream */ + iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** UpdateIosAppDataStreamRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateIosAppDataStreamRequest. */ + class UpdateIosAppDataStreamRequest implements IUpdateIosAppDataStreamRequest { + + /** + * Constructs a new UpdateIosAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest); + + /** UpdateIosAppDataStreamRequest iosAppDataStream. */ + public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** UpdateIosAppDataStreamRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateIosAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIosAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; + + /** + * Encodes the specified UpdateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * @param message UpdateIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * @param message UpdateIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; + + /** + * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; + + /** + * Verifies an UpdateIosAppDataStreamRequest message. + * @param message Plain 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 UpdateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIosAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; + + /** + * Creates a plain object from an UpdateIosAppDataStreamRequest message. Also converts values to other types if specified. + * @param message UpdateIosAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateIosAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateIosAppDataStreamRequest. */ + interface ICreateIosAppDataStreamRequest { + + /** CreateIosAppDataStreamRequest iosAppDataStream */ + iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** CreateIosAppDataStreamRequest parent */ + parent?: (string|null); + } + + /** Represents a CreateIosAppDataStreamRequest. */ + class CreateIosAppDataStreamRequest implements ICreateIosAppDataStreamRequest { + + /** + * Constructs a new CreateIosAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest); + + /** CreateIosAppDataStreamRequest iosAppDataStream. */ + public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** CreateIosAppDataStreamRequest parent. */ + public parent: string; + + /** + * Creates a new CreateIosAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateIosAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; + + /** + * Encodes the specified CreateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. + * @param message CreateIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. + * @param message CreateIosAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; + + /** + * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; + + /** + * Verifies a CreateIosAppDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateIosAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; + + /** + * Creates a plain object from a CreateIosAppDataStreamRequest message. Also converts values to other types if specified. + * @param message CreateIosAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateIosAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListIosAppDataStreamsRequest. */ + interface IListIosAppDataStreamsRequest { + + /** ListIosAppDataStreamsRequest parent */ + parent?: (string|null); + + /** ListIosAppDataStreamsRequest pageSize */ + pageSize?: (number|null); + + /** ListIosAppDataStreamsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListIosAppDataStreamsRequest. */ + class ListIosAppDataStreamsRequest implements IListIosAppDataStreamsRequest { + + /** + * Constructs a new ListIosAppDataStreamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest); + + /** ListIosAppDataStreamsRequest parent. */ + public parent: string; + + /** ListIosAppDataStreamsRequest pageSize. */ + public pageSize: number; + + /** ListIosAppDataStreamsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListIosAppDataStreamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIosAppDataStreamsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; + + /** + * Encodes the specified ListIosAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * @param message ListIosAppDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListIosAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * @param message ListIosAppDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListIosAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; + + /** + * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListIosAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; + + /** + * Verifies a ListIosAppDataStreamsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListIosAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIosAppDataStreamsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; + + /** + * Creates a plain object from a ListIosAppDataStreamsRequest message. Also converts values to other types if specified. + * @param message ListIosAppDataStreamsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListIosAppDataStreamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListIosAppDataStreamsResponse. */ + interface IListIosAppDataStreamsResponse { + + /** ListIosAppDataStreamsResponse iosAppDataStreams */ + iosAppDataStreams?: (google.analytics.admin.v1alpha.IIosAppDataStream[]|null); + + /** ListIosAppDataStreamsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListIosAppDataStreamsResponse. */ + class ListIosAppDataStreamsResponse implements IListIosAppDataStreamsResponse { + + /** + * Constructs a new ListIosAppDataStreamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse); + + /** ListIosAppDataStreamsResponse iosAppDataStreams. */ + public iosAppDataStreams: google.analytics.admin.v1alpha.IIosAppDataStream[]; + + /** ListIosAppDataStreamsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListIosAppDataStreamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIosAppDataStreamsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; + + /** + * Encodes the specified ListIosAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * @param message ListIosAppDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListIosAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * @param message ListIosAppDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListIosAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; + + /** + * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListIosAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; + + /** + * Verifies a ListIosAppDataStreamsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListIosAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIosAppDataStreamsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; + + /** + * Creates a plain object from a ListIosAppDataStreamsResponse message. Also converts values to other types if specified. + * @param message ListIosAppDataStreamsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListIosAppDataStreamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetAndroidAppDataStreamRequest. */ + interface IGetAndroidAppDataStreamRequest { + + /** GetAndroidAppDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a GetAndroidAppDataStreamRequest. */ + class GetAndroidAppDataStreamRequest implements IGetAndroidAppDataStreamRequest { + + /** + * Constructs a new GetAndroidAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest); + + /** GetAndroidAppDataStreamRequest name. */ + public name: string; + + /** + * Creates a new GetAndroidAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAndroidAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; + + /** + * Encodes the specified GetAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * @param message GetAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * @param message GetAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; + + /** + * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; + + /** + * Verifies a GetAndroidAppDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetAndroidAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; + + /** + * Creates a plain object from a GetAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @param message GetAndroidAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetAndroidAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteAndroidAppDataStreamRequest. */ + interface IDeleteAndroidAppDataStreamRequest { + + /** DeleteAndroidAppDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a DeleteAndroidAppDataStreamRequest. */ + class DeleteAndroidAppDataStreamRequest implements IDeleteAndroidAppDataStreamRequest { + + /** + * Constructs a new DeleteAndroidAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest); + + /** DeleteAndroidAppDataStreamRequest name. */ + public name: string; + + /** + * Creates a new DeleteAndroidAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteAndroidAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; + + /** + * Encodes the specified DeleteAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * @param message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * @param message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; + + /** + * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; + + /** + * Verifies a DeleteAndroidAppDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteAndroidAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; + + /** + * Creates a plain object from a DeleteAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @param message DeleteAndroidAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteAndroidAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateAndroidAppDataStreamRequest. */ + interface IUpdateAndroidAppDataStreamRequest { + + /** UpdateAndroidAppDataStreamRequest androidAppDataStream */ + androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** UpdateAndroidAppDataStreamRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateAndroidAppDataStreamRequest. */ + class UpdateAndroidAppDataStreamRequest implements IUpdateAndroidAppDataStreamRequest { + + /** + * Constructs a new UpdateAndroidAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest); + + /** UpdateAndroidAppDataStreamRequest androidAppDataStream. */ + public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** UpdateAndroidAppDataStreamRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateAndroidAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateAndroidAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; + + /** + * Encodes the specified UpdateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * @param message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * @param message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; + + /** + * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; + + /** + * Verifies an UpdateAndroidAppDataStreamRequest message. + * @param message Plain 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 UpdateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateAndroidAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; + + /** + * Creates a plain object from an UpdateAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @param message UpdateAndroidAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateAndroidAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateAndroidAppDataStreamRequest. */ + interface ICreateAndroidAppDataStreamRequest { + + /** CreateAndroidAppDataStreamRequest androidAppDataStream */ + androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** CreateAndroidAppDataStreamRequest parent */ + parent?: (string|null); + } + + /** Represents a CreateAndroidAppDataStreamRequest. */ + class CreateAndroidAppDataStreamRequest implements ICreateAndroidAppDataStreamRequest { + + /** + * Constructs a new CreateAndroidAppDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest); + + /** CreateAndroidAppDataStreamRequest androidAppDataStream. */ + public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** CreateAndroidAppDataStreamRequest parent. */ + public parent: string; + + /** + * Creates a new CreateAndroidAppDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateAndroidAppDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; + + /** + * Encodes the specified CreateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. + * @param message CreateAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. + * @param message CreateAndroidAppDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; + + /** + * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; + + /** + * Verifies a CreateAndroidAppDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateAndroidAppDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; + + /** + * Creates a plain object from a CreateAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @param message CreateAndroidAppDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateAndroidAppDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAndroidAppDataStreamsRequest. */ + interface IListAndroidAppDataStreamsRequest { + + /** ListAndroidAppDataStreamsRequest parent */ + parent?: (string|null); + + /** ListAndroidAppDataStreamsRequest pageSize */ + pageSize?: (number|null); + + /** ListAndroidAppDataStreamsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListAndroidAppDataStreamsRequest. */ + class ListAndroidAppDataStreamsRequest implements IListAndroidAppDataStreamsRequest { + + /** + * Constructs a new ListAndroidAppDataStreamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest); + + /** ListAndroidAppDataStreamsRequest parent. */ + public parent: string; + + /** ListAndroidAppDataStreamsRequest pageSize. */ + public pageSize: number; + + /** ListAndroidAppDataStreamsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAndroidAppDataStreamsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; + + /** + * Encodes the specified ListAndroidAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * @param message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAndroidAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * @param message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAndroidAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; + + /** + * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAndroidAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; + + /** + * Verifies a ListAndroidAppDataStreamsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListAndroidAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAndroidAppDataStreamsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; + + /** + * Creates a plain object from a ListAndroidAppDataStreamsRequest message. Also converts values to other types if specified. + * @param message ListAndroidAppDataStreamsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAndroidAppDataStreamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAndroidAppDataStreamsResponse. */ + interface IListAndroidAppDataStreamsResponse { + + /** ListAndroidAppDataStreamsResponse androidAppDataStreams */ + androidAppDataStreams?: (google.analytics.admin.v1alpha.IAndroidAppDataStream[]|null); + + /** ListAndroidAppDataStreamsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListAndroidAppDataStreamsResponse. */ + class ListAndroidAppDataStreamsResponse implements IListAndroidAppDataStreamsResponse { + + /** + * Constructs a new ListAndroidAppDataStreamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse); + + /** ListAndroidAppDataStreamsResponse androidAppDataStreams. */ + public androidAppDataStreams: google.analytics.admin.v1alpha.IAndroidAppDataStream[]; + + /** ListAndroidAppDataStreamsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListAndroidAppDataStreamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAndroidAppDataStreamsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; + + /** + * Encodes the specified ListAndroidAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * @param message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAndroidAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * @param message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAndroidAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; + + /** + * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAndroidAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; + + /** + * Verifies a ListAndroidAppDataStreamsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListAndroidAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAndroidAppDataStreamsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; + + /** + * Creates a plain object from a ListAndroidAppDataStreamsResponse message. Also converts values to other types if specified. + * @param message ListAndroidAppDataStreamsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAndroidAppDataStreamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetEnhancedMeasurementSettingsRequest. */ + interface IGetEnhancedMeasurementSettingsRequest { + + /** GetEnhancedMeasurementSettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetEnhancedMeasurementSettingsRequest. */ + class GetEnhancedMeasurementSettingsRequest implements IGetEnhancedMeasurementSettingsRequest { + + /** + * Constructs a new GetEnhancedMeasurementSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest); + + /** GetEnhancedMeasurementSettingsRequest name. */ + public name: string; + + /** + * Creates a new GetEnhancedMeasurementSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetEnhancedMeasurementSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; + + /** + * Encodes the specified GetEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @param message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @param message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; + + /** + * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; + + /** + * Verifies a GetEnhancedMeasurementSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEnhancedMeasurementSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; + + /** + * Creates a plain object from a GetEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * @param message GetEnhancedMeasurementSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetEnhancedMeasurementSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateEnhancedMeasurementSettingsRequest. */ + interface IUpdateEnhancedMeasurementSettingsRequest { + + /** UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings */ + enhancedMeasurementSettings?: (google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null); + + /** UpdateEnhancedMeasurementSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateEnhancedMeasurementSettingsRequest. */ + class UpdateEnhancedMeasurementSettingsRequest implements IUpdateEnhancedMeasurementSettingsRequest { + + /** + * Constructs a new UpdateEnhancedMeasurementSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest); + + /** UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings. */ + public enhancedMeasurementSettings?: (google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null); + + /** UpdateEnhancedMeasurementSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateEnhancedMeasurementSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEnhancedMeasurementSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; + + /** + * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @param message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @param message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; + + /** + * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; + + /** + * Verifies an UpdateEnhancedMeasurementSettingsRequest message. + * @param message Plain 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 UpdateEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEnhancedMeasurementSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; + + /** + * Creates a plain object from an UpdateEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateEnhancedMeasurementSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateEnhancedMeasurementSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateFirebaseLinkRequest. */ + interface ICreateFirebaseLinkRequest { + + /** CreateFirebaseLinkRequest parent */ + parent?: (string|null); + + /** CreateFirebaseLinkRequest firebaseLink */ + firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + } + + /** Represents a CreateFirebaseLinkRequest. */ + class CreateFirebaseLinkRequest implements ICreateFirebaseLinkRequest { + + /** + * Constructs a new CreateFirebaseLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest); + + /** CreateFirebaseLinkRequest parent. */ + public parent: string; + + /** CreateFirebaseLinkRequest firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFirebaseLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + + /** + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * @param message CreateFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * @param message CreateFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + + /** + * Verifies a CreateFirebaseLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFirebaseLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + + /** + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * @param message CreateFirebaseLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFirebaseLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateFirebaseLinkRequest. */ + interface IUpdateFirebaseLinkRequest { + + /** UpdateFirebaseLinkRequest firebaseLink */ + firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** UpdateFirebaseLinkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateFirebaseLinkRequest. */ + class UpdateFirebaseLinkRequest implements IUpdateFirebaseLinkRequest { + + /** + * Constructs a new UpdateFirebaseLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest); + + /** UpdateFirebaseLinkRequest firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** UpdateFirebaseLinkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateFirebaseLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFirebaseLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; + + /** + * Encodes the specified UpdateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. + * @param message UpdateFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. + * @param message UpdateFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; + + /** + * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; + + /** + * Verifies an UpdateFirebaseLinkRequest message. + * @param message Plain 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 UpdateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFirebaseLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; + + /** + * Creates a plain object from an UpdateFirebaseLinkRequest message. Also converts values to other types if specified. + * @param message UpdateFirebaseLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateFirebaseLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteFirebaseLinkRequest. */ + interface IDeleteFirebaseLinkRequest { + + /** DeleteFirebaseLinkRequest name */ + name?: (string|null); + } + + /** Represents a DeleteFirebaseLinkRequest. */ + class DeleteFirebaseLinkRequest implements IDeleteFirebaseLinkRequest { + + /** + * Constructs a new DeleteFirebaseLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest); + + /** DeleteFirebaseLinkRequest name. */ + public name: string; + + /** + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFirebaseLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + + /** + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * @param message DeleteFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * @param message DeleteFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + + /** + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + + /** + * Verifies a DeleteFirebaseLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFirebaseLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + + /** + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * @param message DeleteFirebaseLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFirebaseLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListFirebaseLinksRequest. */ + interface IListFirebaseLinksRequest { + + /** ListFirebaseLinksRequest parent */ + parent?: (string|null); + } + + /** Represents a ListFirebaseLinksRequest. */ + class ListFirebaseLinksRequest implements IListFirebaseLinksRequest { + + /** + * Constructs a new ListFirebaseLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksRequest); + + /** ListFirebaseLinksRequest parent. */ + public parent: string; + + /** + * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFirebaseLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksRequest): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + + /** + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * @param message ListFirebaseLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * @param message ListFirebaseLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + + /** + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + + /** + * Verifies a ListFirebaseLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFirebaseLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + + /** + * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * @param message ListFirebaseLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListFirebaseLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFirebaseLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListFirebaseLinksResponse. */ + interface IListFirebaseLinksResponse { + + /** ListFirebaseLinksResponse firebaseLinks */ + firebaseLinks?: (google.analytics.admin.v1alpha.IFirebaseLink[]|null); + } + + /** Represents a ListFirebaseLinksResponse. */ + class ListFirebaseLinksResponse implements IListFirebaseLinksResponse { + + /** + * Constructs a new ListFirebaseLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksResponse); + + /** ListFirebaseLinksResponse firebaseLinks. */ + public firebaseLinks: google.analytics.admin.v1alpha.IFirebaseLink[]; + + /** + * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFirebaseLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksResponse): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + + /** + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * @param message ListFirebaseLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * @param message ListFirebaseLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + + /** + * Verifies a ListFirebaseLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFirebaseLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + + /** + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * @param message ListFirebaseLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListFirebaseLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFirebaseLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetGlobalSiteTagRequest. */ + interface IGetGlobalSiteTagRequest { + + /** GetGlobalSiteTagRequest name */ + name?: (string|null); + } + + /** Represents a GetGlobalSiteTagRequest. */ + class GetGlobalSiteTagRequest implements IGetGlobalSiteTagRequest { + + /** + * Constructs a new GetGlobalSiteTagRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest); + + /** GetGlobalSiteTagRequest name. */ + public name: string; + + /** + * Creates a new GetGlobalSiteTagRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetGlobalSiteTagRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + + /** + * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * @param message GetGlobalSiteTagRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * @param message GetGlobalSiteTagRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetGlobalSiteTagRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + + /** + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetGlobalSiteTagRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + + /** + * Verifies a GetGlobalSiteTagRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetGlobalSiteTagRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + + /** + * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. + * @param message GetGlobalSiteTagRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetGlobalSiteTagRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateGoogleAdsLinkRequest. */ + interface ICreateGoogleAdsLinkRequest { + + /** CreateGoogleAdsLinkRequest parent */ + parent?: (string|null); + + /** CreateGoogleAdsLinkRequest googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + } + + /** Represents a CreateGoogleAdsLinkRequest. */ + class CreateGoogleAdsLinkRequest implements ICreateGoogleAdsLinkRequest { + + /** + * Constructs a new CreateGoogleAdsLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest); + + /** CreateGoogleAdsLinkRequest parent. */ + public parent: string; + + /** CreateGoogleAdsLinkRequest googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateGoogleAdsLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @param message CreateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @param message CreateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + + /** + * Verifies a CreateGoogleAdsLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateGoogleAdsLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + + /** + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message CreateGoogleAdsLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateGoogleAdsLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateGoogleAdsLinkRequest. */ + interface IUpdateGoogleAdsLinkRequest { + + /** UpdateGoogleAdsLinkRequest googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** UpdateGoogleAdsLinkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateGoogleAdsLinkRequest. */ + class UpdateGoogleAdsLinkRequest implements IUpdateGoogleAdsLinkRequest { + + /** + * Constructs a new UpdateGoogleAdsLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest); + + /** UpdateGoogleAdsLinkRequest googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** UpdateGoogleAdsLinkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateGoogleAdsLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + + /** + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @param message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @param message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + + /** + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + + /** + * Verifies an UpdateGoogleAdsLinkRequest message. + * @param message Plain 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 UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateGoogleAdsLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + + /** + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message UpdateGoogleAdsLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateGoogleAdsLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteGoogleAdsLinkRequest. */ + interface IDeleteGoogleAdsLinkRequest { + + /** DeleteGoogleAdsLinkRequest name */ + name?: (string|null); + } + + /** Represents a DeleteGoogleAdsLinkRequest. */ + class DeleteGoogleAdsLinkRequest implements IDeleteGoogleAdsLinkRequest { + + /** + * Constructs a new DeleteGoogleAdsLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest); + + /** DeleteGoogleAdsLinkRequest name. */ + public name: string; + + /** + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteGoogleAdsLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + + /** + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @param message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @param message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + + /** + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + + /** + * Verifies a DeleteGoogleAdsLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteGoogleAdsLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + + /** + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message DeleteGoogleAdsLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteGoogleAdsLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListGoogleAdsLinksRequest. */ + interface IListGoogleAdsLinksRequest { + + /** ListGoogleAdsLinksRequest parent */ + parent?: (string|null); + + /** ListGoogleAdsLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListGoogleAdsLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListGoogleAdsLinksRequest. */ + class ListGoogleAdsLinksRequest implements IListGoogleAdsLinksRequest { + + /** + * Constructs a new ListGoogleAdsLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest); + + /** ListGoogleAdsLinksRequest parent. */ + public parent: string; + + /** ListGoogleAdsLinksRequest pageSize. */ + public pageSize: number; + + /** ListGoogleAdsLinksRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListGoogleAdsLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + + /** + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * @param message ListGoogleAdsLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * @param message ListGoogleAdsLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + + /** + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + + /** + * Verifies a ListGoogleAdsLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListGoogleAdsLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + + /** + * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * @param message ListGoogleAdsLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListGoogleAdsLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListGoogleAdsLinksResponse. */ + interface IListGoogleAdsLinksResponse { + + /** ListGoogleAdsLinksResponse googleAdsLinks */ + googleAdsLinks?: (google.analytics.admin.v1alpha.IGoogleAdsLink[]|null); + + /** ListGoogleAdsLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListGoogleAdsLinksResponse. */ + class ListGoogleAdsLinksResponse implements IListGoogleAdsLinksResponse { + + /** + * Constructs a new ListGoogleAdsLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse); + + /** ListGoogleAdsLinksResponse googleAdsLinks. */ + public googleAdsLinks: google.analytics.admin.v1alpha.IGoogleAdsLink[]; + + /** ListGoogleAdsLinksResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListGoogleAdsLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + + /** + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * @param message ListGoogleAdsLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * @param message ListGoogleAdsLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + + /** + * Verifies a ListGoogleAdsLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListGoogleAdsLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + + /** + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * @param message ListGoogleAdsLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListGoogleAdsLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetDataSharingSettingsRequest. */ + interface IGetDataSharingSettingsRequest { + + /** GetDataSharingSettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetDataSharingSettingsRequest. */ + class GetDataSharingSettingsRequest implements IGetDataSharingSettingsRequest { + + /** + * Constructs a new GetDataSharingSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest); + + /** GetDataSharingSettingsRequest name. */ + public name: string; + + /** + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataSharingSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + + /** + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * @param message GetDataSharingSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * @param message GetDataSharingSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + + /** + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + + /** + * Verifies a GetDataSharingSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDataSharingSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + + /** + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * @param message GetDataSharingSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDataSharingSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Account. */ + interface IAccount { + + /** Account name */ + name?: (string|null); + + /** Account createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName */ + displayName?: (string|null); + + /** Account countryCode */ + countryCode?: (string|null); + + /** Account deleted */ + deleted?: (boolean|null); + } + + /** Represents an Account. */ + class Account implements IAccount { + + /** + * Constructs a new Account. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccount); + + /** Account name. */ + public name: string; + + /** Account createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName. */ + public displayName: string; + + /** Account countryCode. */ + public countryCode: string; + + /** Account deleted. */ + public deleted: boolean; + + /** + * Creates a new Account instance using the specified properties. + * @param [properties] Properties to set + * @returns Account instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Account to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Property. */ + interface IProperty { + + /** Property name */ + name?: (string|null); + + /** Property createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent */ + parent?: (string|null); + + /** Property displayName */ + displayName?: (string|null); + + /** Property industryCategory */ + industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); + + /** Property timeZone */ + timeZone?: (string|null); + + /** Property currencyCode */ + currencyCode?: (string|null); + + /** Property deleted */ + deleted?: (boolean|null); + } + + /** Represents a Property. */ + class Property implements IProperty { + + /** + * Constructs a new Property. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProperty); + + /** Property name. */ + public name: string; + + /** Property createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent. */ + public parent: string; + + /** Property displayName. */ + public displayName: string; + + /** Property industryCategory. */ + public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); + + /** Property timeZone. */ + public timeZone: string; + + /** Property currencyCode. */ + public currencyCode: string; + + /** Property deleted. */ + public deleted: boolean; + + /** + * Creates a new Property instance using the specified properties. + * @param [properties] Properties to set + * @returns Property instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Property message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Property; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Property; + + /** + * Verifies a Property message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Property + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @param message Property + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Property to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AndroidAppDataStream. */ + interface IAndroidAppDataStream { + + /** AndroidAppDataStream name */ + name?: (string|null); + + /** AndroidAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** AndroidAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName */ + packageName?: (string|null); + + /** AndroidAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an AndroidAppDataStream. */ + class AndroidAppDataStream implements IAndroidAppDataStream { + + /** + * Constructs a new AndroidAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); + + /** AndroidAppDataStream name. */ + public name: string; + + /** AndroidAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** AndroidAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName. */ + public packageName: string; + + /** AndroidAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns AndroidAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Verifies an AndroidAppDataStream message. + * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AndroidAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @param message AndroidAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IosAppDataStream. */ + interface IIosAppDataStream { + + /** IosAppDataStream name */ + name?: (string|null); + + /** IosAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** IosAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId */ + bundleId?: (string|null); + + /** IosAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an IosAppDataStream. */ + class IosAppDataStream implements IIosAppDataStream { + + /** + * Constructs a new IosAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); + + /** IosAppDataStream name. */ + public name: string; + + /** IosAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** IosAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId. */ + public bundleId: string; + + /** IosAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns IosAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Verifies an IosAppDataStream message. + * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IosAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @param message IosAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IosAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a WebDataStream. */ + interface IWebDataStream { + + /** WebDataStream name */ + name?: (string|null); + + /** WebDataStream measurementId */ + measurementId?: (string|null); + + /** WebDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** WebDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream defaultUri */ + defaultUri?: (string|null); + + /** WebDataStream displayName */ + displayName?: (string|null); + } + + /** Represents a WebDataStream. */ + class WebDataStream implements IWebDataStream { + + /** + * Constructs a new WebDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); + + /** WebDataStream name. */ + public name: string; + + /** WebDataStream measurementId. */ + public measurementId: string; + + /** WebDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** WebDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream defaultUri. */ + public defaultUri: string; + + /** WebDataStream displayName. */ + public displayName: string; + + /** + * Creates a new WebDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns WebDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WebDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Verifies a WebDataStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @param message WebDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WebDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a UserLink. */ + interface IUserLink { + + /** UserLink name */ + name?: (string|null); + + /** UserLink emailAddress */ + emailAddress?: (string|null); + + /** UserLink directRoles */ + directRoles?: (string[]|null); + } + + /** Represents a UserLink. */ + class UserLink implements IUserLink { + + /** + * Constructs a new UserLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUserLink); + + /** UserLink name. */ + public name: string; + + /** UserLink emailAddress. */ + public emailAddress: string; + + /** UserLink directRoles. */ + public directRoles: string[]; + + /** + * Creates a new UserLink instance using the specified properties. + * @param [properties] Properties to set + * @returns UserLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUserLink): google.analytics.admin.v1alpha.UserLink; + + /** + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UserLink; + + /** + * Decodes a UserLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UserLink; + + /** + * Verifies a UserLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UserLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UserLink; + + /** + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @param message UserLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UserLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuditUserLink. */ + interface IAuditUserLink { + + /** AuditUserLink name */ + name?: (string|null); + + /** AuditUserLink emailAddress */ + emailAddress?: (string|null); + + /** AuditUserLink directRoles */ + directRoles?: (string[]|null); + + /** AuditUserLink effectiveRoles */ + effectiveRoles?: (string[]|null); + } + + /** Represents an AuditUserLink. */ + class AuditUserLink implements IAuditUserLink { + + /** + * Constructs a new AuditUserLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLink); + + /** AuditUserLink name. */ + public name: string; + + /** AuditUserLink emailAddress. */ + public emailAddress: string; + + /** AuditUserLink directRoles. */ + public directRoles: string[]; + + /** AuditUserLink effectiveRoles. */ + public effectiveRoles: string[]; + + /** + * Creates a new AuditUserLink instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditUserLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLink): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Verifies an AuditUserLink message. + * @param message Plain 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 AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditUserLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @param message AuditUserLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditUserLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnhancedMeasurementSettings. */ + interface IEnhancedMeasurementSettings { + + /** EnhancedMeasurementSettings name */ + name?: (string|null); + + /** EnhancedMeasurementSettings streamEnabled */ + streamEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageViewsEnabled */ + pageViewsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings scrollsEnabled */ + scrollsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings outboundClicksEnabled */ + outboundClicksEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings contentViewsEnabled */ + contentViewsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings siteSearchEnabled */ + siteSearchEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings formInteractionsEnabled */ + formInteractionsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings videoEngagementEnabled */ + videoEngagementEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings fileDownloadsEnabled */ + fileDownloadsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings dataTaggedElementClicksEnabled */ + dataTaggedElementClicksEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageLoadsEnabled */ + pageLoadsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageChangesEnabled */ + pageChangesEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings articlesAndBlogsEnabled */ + articlesAndBlogsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings productsAndEcommerceEnabled */ + productsAndEcommerceEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings searchQueryParameter */ + searchQueryParameter?: (string|null); + + /** EnhancedMeasurementSettings urlQueryParameter */ + urlQueryParameter?: (string|null); + + /** EnhancedMeasurementSettings excludedDomains */ + excludedDomains?: (string|null); + } + + /** Represents an EnhancedMeasurementSettings. */ + class EnhancedMeasurementSettings implements IEnhancedMeasurementSettings { + + /** + * Constructs a new EnhancedMeasurementSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings); + + /** EnhancedMeasurementSettings name. */ + public name: string; + + /** EnhancedMeasurementSettings streamEnabled. */ + public streamEnabled: boolean; + + /** EnhancedMeasurementSettings pageViewsEnabled. */ + public pageViewsEnabled: boolean; + + /** EnhancedMeasurementSettings scrollsEnabled. */ + public scrollsEnabled: boolean; + + /** EnhancedMeasurementSettings outboundClicksEnabled. */ + public outboundClicksEnabled: boolean; + + /** EnhancedMeasurementSettings contentViewsEnabled. */ + public contentViewsEnabled: boolean; + + /** EnhancedMeasurementSettings siteSearchEnabled. */ + public siteSearchEnabled: boolean; + + /** EnhancedMeasurementSettings formInteractionsEnabled. */ + public formInteractionsEnabled: boolean; + + /** EnhancedMeasurementSettings videoEngagementEnabled. */ + public videoEngagementEnabled: boolean; + + /** EnhancedMeasurementSettings fileDownloadsEnabled. */ + public fileDownloadsEnabled: boolean; + + /** EnhancedMeasurementSettings dataTaggedElementClicksEnabled. */ + public dataTaggedElementClicksEnabled: boolean; + + /** EnhancedMeasurementSettings pageLoadsEnabled. */ + public pageLoadsEnabled: boolean; + + /** EnhancedMeasurementSettings pageChangesEnabled. */ + public pageChangesEnabled: boolean; + + /** EnhancedMeasurementSettings articlesAndBlogsEnabled. */ + public articlesAndBlogsEnabled: boolean; + + /** EnhancedMeasurementSettings productsAndEcommerceEnabled. */ + public productsAndEcommerceEnabled: boolean; + + /** EnhancedMeasurementSettings searchQueryParameter. */ + public searchQueryParameter: string; + + /** EnhancedMeasurementSettings urlQueryParameter. */ + public urlQueryParameter: string; + + /** EnhancedMeasurementSettings excludedDomains. */ + public excludedDomains: string; + + /** + * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns EnhancedMeasurementSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @param message EnhancedMeasurementSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @param message EnhancedMeasurementSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Verifies an EnhancedMeasurementSettings message. + * @param message Plain 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 EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnhancedMeasurementSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * @param message EnhancedMeasurementSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.EnhancedMeasurementSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnhancedMeasurementSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FirebaseLink. */ + interface IFirebaseLink { + + /** FirebaseLink name */ + name?: (string|null); + + /** FirebaseLink project */ + project?: (string|null); + + /** FirebaseLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** FirebaseLink maximumUserAccess */ + maximumUserAccess?: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess|null); + } + + /** Represents a FirebaseLink. */ + class FirebaseLink implements IFirebaseLink { + + /** + * Constructs a new FirebaseLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IFirebaseLink); + + /** FirebaseLink name. */ + public name: string; + + /** FirebaseLink project. */ + public project: string; + + /** FirebaseLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** FirebaseLink maximumUserAccess. */ + public maximumUserAccess: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess); + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @param [properties] Properties to set + * @returns FirebaseLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IFirebaseLink): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Verifies a FirebaseLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FirebaseLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @param message FirebaseLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FirebaseLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GlobalSiteTag. */ + interface IGlobalSiteTag { + + /** GlobalSiteTag snippet */ + snippet?: (string|null); + } + + /** Represents a GlobalSiteTag. */ + class GlobalSiteTag implements IGlobalSiteTag { + + /** + * Constructs a new GlobalSiteTag. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); + + /** GlobalSiteTag snippet. */ + public snippet: string; + + /** + * Creates a new GlobalSiteTag instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalSiteTag instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Verifies a GlobalSiteTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalSiteTag + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @param message GlobalSiteTag + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GlobalSiteTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalSiteTag to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GoogleAdsLink. */ + interface IGoogleAdsLink { + + /** GoogleAdsLink name */ + name?: (string|null); + + /** GoogleAdsLink parent */ + parent?: (string|null); + + /** GoogleAdsLink customerId */ + customerId?: (string|null); + + /** GoogleAdsLink canManageClients */ + canManageClients?: (boolean|null); + + /** GoogleAdsLink adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink emailAddress */ + emailAddress?: (string|null); + + /** GoogleAdsLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a GoogleAdsLink. */ + class GoogleAdsLink implements IGoogleAdsLink { + + /** + * Constructs a new GoogleAdsLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink); + + /** GoogleAdsLink name. */ + public name: string; + + /** GoogleAdsLink parent. */ + public parent: string; + + /** GoogleAdsLink customerId. */ + public customerId: string; + + /** GoogleAdsLink canManageClients. */ + public canManageClients: boolean; + + /** GoogleAdsLink adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink emailAddress. */ + public emailAddress: string; + + /** GoogleAdsLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @param [properties] Properties to set + * @returns GoogleAdsLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Verifies a GoogleAdsLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GoogleAdsLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @param message GoogleAdsLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GoogleAdsLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataSharingSettings. */ + interface IDataSharingSettings { + + /** DataSharingSettings name */ + name?: (string|null); + + /** DataSharingSettings sharingWithGoogleSupportEnabled */ + sharingWithGoogleSupportEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ + sharingWithGoogleAssignedSalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ + sharingWithGoogleAnySalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleProductsEnabled */ + sharingWithGoogleProductsEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithOthersEnabled */ + sharingWithOthersEnabled?: (boolean|null); + } + + /** Represents a DataSharingSettings. */ + class DataSharingSettings implements IDataSharingSettings { + + /** + * Constructs a new DataSharingSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDataSharingSettings); + + /** DataSharingSettings name. */ + public name: string; + + /** DataSharingSettings sharingWithGoogleSupportEnabled. */ + public sharingWithGoogleSupportEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ + public sharingWithGoogleAssignedSalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ + public sharingWithGoogleAnySalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleProductsEnabled. */ + public sharingWithGoogleProductsEnabled: boolean; + + /** DataSharingSettings sharingWithOthersEnabled. */ + public sharingWithOthersEnabled: boolean; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DataSharingSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDataSharingSettings): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Verifies a DataSharingSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataSharingSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @param message DataSharingSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataSharingSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** IndustryCategory enum. */ + enum IndustryCategory { + INDUSTRY_CATEGORY_UNSPECIFIED = 0, + AUTOMOTIVE = 1, + BUSINESS_AND_INDUSTRIAL_MARKETS = 2, + FINANCE = 3, + HEALTHCARE = 4, + TECHNOLOGY = 5, + TRAVEL = 6, + OTHER = 7, + ARTS_AND_ENTERTAINMENT = 8, + BEAUTY_AND_FITNESS = 9, + BOOKS_AND_LITERATURE = 10, + FOOD_AND_DRINK = 11, + GAMES = 12, + HOBBIES_AND_LEISURE = 13, + HOME_AND_GARDEN = 14, + INTERNET_AND_TELECOM = 15, + LAW_AND_GOVERNMENT = 16, + NEWS = 17, + ONLINE_COMMUNITIES = 18, + PEOPLE_AND_SOCIETY = 19, + PETS_AND_ANIMALS = 20, + REAL_ESTATE = 21, + REFERENCE = 22, + SCIENCE = 23, + SPORTS = 24, + JOBS_AND_EDUCATION = 25, + SHOPPING = 26 + } + + /** MaximumUserAccess enum. */ + enum MaximumUserAccess { + MAXIMUM_USER_ACCESS_UNSPECIFIED = 0, + NO_ACCESS = 1, + READ_AND_ANALYZE = 2, + EDITOR_WITHOUT_LINK_MANAGEMENT = 3, + EDITOR_INCLUDING_LINK_MANAGEMENT = 4 + } + } + } + } + + /** Namespace api. */ + namespace api { + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5 + } + + /** 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); + } + + /** 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; + + /** + * 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 }; + } + + namespace ResourceDescriptor { + + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** 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 }; + } + + /** 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 }; + } + } + + /** 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 }; + } + + /** 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); + } + + /** 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; + + /** + * 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 }; + } + + /** 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 }; + } + + 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 }; + } + + /** 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 }; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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 }; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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 }; + } + + 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 }; + } + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + 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 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 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 }; + } + + /** 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 deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|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 deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** 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 }; + } + + 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 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions 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 }; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + 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 }; + } + + 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 }; + } + } + + /** 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 }; + } + + 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 }; + } + } + + /** 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 }; + } + + 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); + } + + /** 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; + + /** + * 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 }; + } + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + + /** 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 }; + } + } +} diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js new file mode 100644 index 00000000000..095ab969f87 --- /dev/null +++ b/packages/google-analytics-admin/protos/protos.js @@ -0,0 +1,30961 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*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("protobufjs/minimal")); + +})(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_analytics_admin_protos || ($protobuf.roots._google_analytics_admin_protos = {}); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.analytics = (function() { + + /** + * Namespace analytics. + * @memberof google + * @namespace + */ + var analytics = {}; + + analytics.admin = (function() { + + /** + * Namespace admin. + * @memberof google.analytics + * @namespace + */ + var admin = {}; + + admin.v1alpha = (function() { + + /** + * Namespace v1alpha. + * @memberof google.analytics.admin + * @namespace + */ + var v1alpha = {}; + + v1alpha.AnalyticsAdminService = (function() { + + /** + * Constructs a new AnalyticsAdminService service. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AnalyticsAdminService + * @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 AnalyticsAdminService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AnalyticsAdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AnalyticsAdminService; + + /** + * Creates new AnalyticsAdminService service using the specified rpc implementation. + * @function create + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @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 {AnalyticsAdminService} RPC service. Useful where requests and/or responses are streamed. + */ + AnalyticsAdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Account} [response] Account + */ + + /** + * Calls GetAccount. + * @function getAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAccountRequest} request GetAccountRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccountCallback} callback Node-style callback called with the error, if any, and Account + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getAccount = function getAccount(request, callback) { + return this.rpcCall(getAccount, $root.google.analytics.admin.v1alpha.GetAccountRequest, $root.google.analytics.admin.v1alpha.Account, request, callback); + }, "name", { value: "GetAccount" }); + + /** + * Calls GetAccount. + * @function getAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAccountRequest} request GetAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListAccountsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListAccountsResponse} [response] ListAccountsResponse + */ + + /** + * Calls ListAccounts. + * @function listAccounts + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} request ListAccountsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountsCallback} callback Node-style callback called with the error, if any, and ListAccountsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listAccounts = function listAccounts(request, callback) { + return this.rpcCall(listAccounts, $root.google.analytics.admin.v1alpha.ListAccountsRequest, $root.google.analytics.admin.v1alpha.ListAccountsResponse, request, callback); + }, "name", { value: "ListAccounts" }); + + /** + * Calls ListAccounts. + * @function listAccounts + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} request ListAccountsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAccount}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteAccount. + * @function deleteAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} request DeleteAccountRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccountCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteAccount = function deleteAccount(request, callback) { + return this.rpcCall(deleteAccount, $root.google.analytics.admin.v1alpha.DeleteAccountRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteAccount" }); + + /** + * Calls DeleteAccount. + * @function deleteAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} request DeleteAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Account} [response] Account + */ + + /** + * Calls UpdateAccount. + * @function updateAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} request UpdateAccountRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccountCallback} callback Node-style callback called with the error, if any, and Account + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateAccount = function updateAccount(request, callback) { + return this.rpcCall(updateAccount, $root.google.analytics.admin.v1alpha.UpdateAccountRequest, $root.google.analytics.admin.v1alpha.Account, request, callback); + }, "name", { value: "UpdateAccount" }); + + /** + * Calls UpdateAccount. + * @function updateAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} request UpdateAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ProvisionAccountTicketCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} [response] ProvisionAccountTicketResponse + */ + + /** + * Calls ProvisionAccountTicket. + * @function provisionAccountTicket + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicketCallback} callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.provisionAccountTicket = function provisionAccountTicket(request, callback) { + return this.rpcCall(provisionAccountTicket, $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse, request, callback); + }, "name", { value: "ProvisionAccountTicket" }); + + /** + * Calls ProvisionAccountTicket. + * @function provisionAccountTicket + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetPropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Property} [response] Property + */ + + /** + * Calls GetProperty. + * @function getProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} request GetPropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetPropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getProperty = function getProperty(request, callback) { + return this.rpcCall(getProperty, $root.google.analytics.admin.v1alpha.GetPropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); + }, "name", { value: "GetProperty" }); + + /** + * Calls GetProperty. + * @function getProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} request GetPropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListPropertiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} [response] ListPropertiesResponse + */ + + /** + * Calls ListProperties. + * @function listProperties + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} request ListPropertiesRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListPropertiesCallback} callback Node-style callback called with the error, if any, and ListPropertiesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listProperties = function listProperties(request, callback) { + return this.rpcCall(listProperties, $root.google.analytics.admin.v1alpha.ListPropertiesRequest, $root.google.analytics.admin.v1alpha.ListPropertiesResponse, request, callback); + }, "name", { value: "ListProperties" }); + + /** + * Calls ListProperties. + * @function listProperties + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} request ListPropertiesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreatePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Property} [response] Property + */ + + /** + * Calls CreateProperty. + * @function createProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} request CreatePropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreatePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createProperty = function createProperty(request, callback) { + return this.rpcCall(createProperty, $root.google.analytics.admin.v1alpha.CreatePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); + }, "name", { value: "CreateProperty" }); + + /** + * Calls CreateProperty. + * @function createProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} request CreatePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeletePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteProperty. + * @function deleteProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteProperty = function deleteProperty(request, callback) { + return this.rpcCall(deleteProperty, $root.google.analytics.admin.v1alpha.DeletePropertyRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteProperty" }); + + /** + * Calls DeleteProperty. + * @function deleteProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdatePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Property} [response] Property + */ + + /** + * Calls UpdateProperty. + * @function updateProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdatePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateProperty = function updateProperty(request, callback) { + return this.rpcCall(updateProperty, $root.google.analytics.admin.v1alpha.UpdatePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); + }, "name", { value: "UpdateProperty" }); + + /** + * Calls UpdateProperty. + * @function updateProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink + */ + + /** + * Calls GetUserLink. + * @function getUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} request GetUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getUserLink = function getUserLink(request, callback) { + return this.rpcCall(getUserLink, $root.google.analytics.admin.v1alpha.GetUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); + }, "name", { value: "GetUserLink" }); + + /** + * Calls GetUserLink. + * @function getUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} request GetUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchGetUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} [response] BatchGetUserLinksResponse + */ + + /** + * Calls BatchGetUserLinks. + * @function batchGetUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} request BatchGetUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinksCallback} callback Node-style callback called with the error, if any, and BatchGetUserLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.batchGetUserLinks = function batchGetUserLinks(request, callback) { + return this.rpcCall(batchGetUserLinks, $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse, request, callback); + }, "name", { value: "BatchGetUserLinks" }); + + /** + * Calls BatchGetUserLinks. + * @function batchGetUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} request BatchGetUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} [response] ListUserLinksResponse + */ + + /** + * Calls ListUserLinks. + * @function listUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} request ListUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinksCallback} callback Node-style callback called with the error, if any, and ListUserLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listUserLinks = function listUserLinks(request, callback) { + return this.rpcCall(listUserLinks, $root.google.analytics.admin.v1alpha.ListUserLinksRequest, $root.google.analytics.admin.v1alpha.ListUserLinksResponse, request, callback); + }, "name", { value: "ListUserLinks" }); + + /** + * Calls ListUserLinks. + * @function listUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} request ListUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef AuditUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} [response] AuditUserLinksResponse + */ + + /** + * Calls AuditUserLinks. + * @function auditUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} request AuditUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinksCallback} callback Node-style callback called with the error, if any, and AuditUserLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.auditUserLinks = function auditUserLinks(request, callback) { + return this.rpcCall(auditUserLinks, $root.google.analytics.admin.v1alpha.AuditUserLinksRequest, $root.google.analytics.admin.v1alpha.AuditUserLinksResponse, request, callback); + }, "name", { value: "AuditUserLinks" }); + + /** + * Calls AuditUserLinks. + * @function auditUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} request AuditUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink + */ + + /** + * Calls CreateUserLink. + * @function createUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} request CreateUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createUserLink = function createUserLink(request, callback) { + return this.rpcCall(createUserLink, $root.google.analytics.admin.v1alpha.CreateUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); + }, "name", { value: "CreateUserLink" }); + + /** + * Calls CreateUserLink. + * @function createUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} request CreateUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchCreateUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} [response] BatchCreateUserLinksResponse + */ + + /** + * Calls BatchCreateUserLinks. + * @function batchCreateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} request BatchCreateUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinksCallback} callback Node-style callback called with the error, if any, and BatchCreateUserLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.batchCreateUserLinks = function batchCreateUserLinks(request, callback) { + return this.rpcCall(batchCreateUserLinks, $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse, request, callback); + }, "name", { value: "BatchCreateUserLinks" }); + + /** + * Calls BatchCreateUserLinks. + * @function batchCreateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} request BatchCreateUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink + */ + + /** + * Calls UpdateUserLink. + * @function updateUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} request UpdateUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateUserLink = function updateUserLink(request, callback) { + return this.rpcCall(updateUserLink, $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); + }, "name", { value: "UpdateUserLink" }); + + /** + * Calls UpdateUserLink. + * @function updateUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} request UpdateUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchUpdateUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} [response] BatchUpdateUserLinksResponse + */ + + /** + * Calls BatchUpdateUserLinks. + * @function batchUpdateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} request BatchUpdateUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinksCallback} callback Node-style callback called with the error, if any, and BatchUpdateUserLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.batchUpdateUserLinks = function batchUpdateUserLinks(request, callback) { + return this.rpcCall(batchUpdateUserLinks, $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse, request, callback); + }, "name", { value: "BatchUpdateUserLinks" }); + + /** + * Calls BatchUpdateUserLinks. + * @function batchUpdateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} request BatchUpdateUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteUserLink. + * @function deleteUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} request DeleteUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteUserLink = function deleteUserLink(request, callback) { + return this.rpcCall(deleteUserLink, $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteUserLink" }); + + /** + * Calls DeleteUserLink. + * @function deleteUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} request DeleteUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchDeleteUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls BatchDeleteUserLinks. + * @function batchDeleteUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} request BatchDeleteUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinksCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.batchDeleteUserLinks = function batchDeleteUserLinks(request, callback) { + return this.rpcCall(batchDeleteUserLinks, $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "BatchDeleteUserLinks" }); + + /** + * Calls BatchDeleteUserLinks. + * @function batchDeleteUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} request BatchDeleteUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getWebDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetWebDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.WebDataStream} [response] WebDataStream + */ + + /** + * Calls GetWebDataStream. + * @function getWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} request GetWebDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStreamCallback} callback Node-style callback called with the error, if any, and WebDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getWebDataStream = function getWebDataStream(request, callback) { + return this.rpcCall(getWebDataStream, $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest, $root.google.analytics.admin.v1alpha.WebDataStream, request, callback); + }, "name", { value: "GetWebDataStream" }); + + /** + * Calls GetWebDataStream. + * @function getWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} request GetWebDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteWebDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteWebDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteWebDataStream. + * @function deleteWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} request DeleteWebDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStreamCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteWebDataStream = function deleteWebDataStream(request, callback) { + return this.rpcCall(deleteWebDataStream, $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteWebDataStream" }); + + /** + * Calls DeleteWebDataStream. + * @function deleteWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} request DeleteWebDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateWebDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateWebDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.WebDataStream} [response] WebDataStream + */ + + /** + * Calls UpdateWebDataStream. + * @function updateWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} request UpdateWebDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStreamCallback} callback Node-style callback called with the error, if any, and WebDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateWebDataStream = function updateWebDataStream(request, callback) { + return this.rpcCall(updateWebDataStream, $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, $root.google.analytics.admin.v1alpha.WebDataStream, request, callback); + }, "name", { value: "UpdateWebDataStream" }); + + /** + * Calls UpdateWebDataStream. + * @function updateWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} request UpdateWebDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createWebDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateWebDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.WebDataStream} [response] WebDataStream + */ + + /** + * Calls CreateWebDataStream. + * @function createWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} request CreateWebDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStreamCallback} callback Node-style callback called with the error, if any, and WebDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createWebDataStream = function createWebDataStream(request, callback) { + return this.rpcCall(createWebDataStream, $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, $root.google.analytics.admin.v1alpha.WebDataStream, request, callback); + }, "name", { value: "CreateWebDataStream" }); + + /** + * Calls CreateWebDataStream. + * @function createWebDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} request CreateWebDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listWebDataStreams}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListWebDataStreamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} [response] ListWebDataStreamsResponse + */ + + /** + * Calls ListWebDataStreams. + * @function listWebDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} request ListWebDataStreamsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreamsCallback} callback Node-style callback called with the error, if any, and ListWebDataStreamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listWebDataStreams = function listWebDataStreams(request, callback) { + return this.rpcCall(listWebDataStreams, $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse, request, callback); + }, "name", { value: "ListWebDataStreams" }); + + /** + * Calls ListWebDataStreams. + * @function listWebDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} request ListWebDataStreamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getIosAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetIosAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.IosAppDataStream} [response] IosAppDataStream + */ + + /** + * Calls GetIosAppDataStream. + * @function getIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} request GetIosAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and IosAppDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getIosAppDataStream = function getIosAppDataStream(request, callback) { + return this.rpcCall(getIosAppDataStream, $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, $root.google.analytics.admin.v1alpha.IosAppDataStream, request, callback); + }, "name", { value: "GetIosAppDataStream" }); + + /** + * Calls GetIosAppDataStream. + * @function getIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} request GetIosAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteIosAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteIosAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteIosAppDataStream. + * @function deleteIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} request DeleteIosAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteIosAppDataStream = function deleteIosAppDataStream(request, callback) { + return this.rpcCall(deleteIosAppDataStream, $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteIosAppDataStream" }); + + /** + * Calls DeleteIosAppDataStream. + * @function deleteIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} request DeleteIosAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateIosAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateIosAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.IosAppDataStream} [response] IosAppDataStream + */ + + /** + * Calls UpdateIosAppDataStream. + * @function updateIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} request UpdateIosAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and IosAppDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateIosAppDataStream = function updateIosAppDataStream(request, callback) { + return this.rpcCall(updateIosAppDataStream, $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, $root.google.analytics.admin.v1alpha.IosAppDataStream, request, callback); + }, "name", { value: "UpdateIosAppDataStream" }); + + /** + * Calls UpdateIosAppDataStream. + * @function updateIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} request UpdateIosAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createIosAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateIosAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.IosAppDataStream} [response] IosAppDataStream + */ + + /** + * Calls CreateIosAppDataStream. + * @function createIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} request CreateIosAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and IosAppDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createIosAppDataStream = function createIosAppDataStream(request, callback) { + return this.rpcCall(createIosAppDataStream, $root.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, $root.google.analytics.admin.v1alpha.IosAppDataStream, request, callback); + }, "name", { value: "CreateIosAppDataStream" }); + + /** + * Calls CreateIosAppDataStream. + * @function createIosAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} request CreateIosAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listIosAppDataStreams}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListIosAppDataStreamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} [response] ListIosAppDataStreamsResponse + */ + + /** + * Calls ListIosAppDataStreams. + * @function listIosAppDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} request ListIosAppDataStreamsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreamsCallback} callback Node-style callback called with the error, if any, and ListIosAppDataStreamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listIosAppDataStreams = function listIosAppDataStreams(request, callback) { + return this.rpcCall(listIosAppDataStreams, $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse, request, callback); + }, "name", { value: "ListIosAppDataStreams" }); + + /** + * Calls ListIosAppDataStreams. + * @function listIosAppDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} request ListIosAppDataStreamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAndroidAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetAndroidAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} [response] AndroidAppDataStream + */ + + /** + * Calls GetAndroidAppDataStream. + * @function getAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} request GetAndroidAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and AndroidAppDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getAndroidAppDataStream = function getAndroidAppDataStream(request, callback) { + return this.rpcCall(getAndroidAppDataStream, $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, $root.google.analytics.admin.v1alpha.AndroidAppDataStream, request, callback); + }, "name", { value: "GetAndroidAppDataStream" }); + + /** + * Calls GetAndroidAppDataStream. + * @function getAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} request GetAndroidAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAndroidAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteAndroidAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteAndroidAppDataStream. + * @function deleteAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} request DeleteAndroidAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteAndroidAppDataStream = function deleteAndroidAppDataStream(request, callback) { + return this.rpcCall(deleteAndroidAppDataStream, $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteAndroidAppDataStream" }); + + /** + * Calls DeleteAndroidAppDataStream. + * @function deleteAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} request DeleteAndroidAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAndroidAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateAndroidAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} [response] AndroidAppDataStream + */ + + /** + * Calls UpdateAndroidAppDataStream. + * @function updateAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} request UpdateAndroidAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and AndroidAppDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateAndroidAppDataStream = function updateAndroidAppDataStream(request, callback) { + return this.rpcCall(updateAndroidAppDataStream, $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, $root.google.analytics.admin.v1alpha.AndroidAppDataStream, request, callback); + }, "name", { value: "UpdateAndroidAppDataStream" }); + + /** + * Calls UpdateAndroidAppDataStream. + * @function updateAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} request UpdateAndroidAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAndroidAppDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateAndroidAppDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} [response] AndroidAppDataStream + */ + + /** + * Calls CreateAndroidAppDataStream. + * @function createAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} request CreateAndroidAppDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and AndroidAppDataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createAndroidAppDataStream = function createAndroidAppDataStream(request, callback) { + return this.rpcCall(createAndroidAppDataStream, $root.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, $root.google.analytics.admin.v1alpha.AndroidAppDataStream, request, callback); + }, "name", { value: "CreateAndroidAppDataStream" }); + + /** + * Calls CreateAndroidAppDataStream. + * @function createAndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} request CreateAndroidAppDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAndroidAppDataStreams}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListAndroidAppDataStreamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} [response] ListAndroidAppDataStreamsResponse + */ + + /** + * Calls ListAndroidAppDataStreams. + * @function listAndroidAppDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} request ListAndroidAppDataStreamsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreamsCallback} callback Node-style callback called with the error, if any, and ListAndroidAppDataStreamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listAndroidAppDataStreams = function listAndroidAppDataStreams(request, callback) { + return this.rpcCall(listAndroidAppDataStreams, $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse, request, callback); + }, "name", { value: "ListAndroidAppDataStreams" }); + + /** + * Calls ListAndroidAppDataStreams. + * @function listAndroidAppDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} request ListAndroidAppDataStreamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getEnhancedMeasurementSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetEnhancedMeasurementSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} [response] EnhancedMeasurementSettings + */ + + /** + * Calls GetEnhancedMeasurementSettings. + * @function getEnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} request GetEnhancedMeasurementSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettingsCallback} callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getEnhancedMeasurementSettings = function getEnhancedMeasurementSettings(request, callback) { + return this.rpcCall(getEnhancedMeasurementSettings, $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, request, callback); + }, "name", { value: "GetEnhancedMeasurementSettings" }); + + /** + * Calls GetEnhancedMeasurementSettings. + * @function getEnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} request GetEnhancedMeasurementSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateEnhancedMeasurementSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateEnhancedMeasurementSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} [response] EnhancedMeasurementSettings + */ + + /** + * Calls UpdateEnhancedMeasurementSettings. + * @function updateEnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} request UpdateEnhancedMeasurementSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettingsCallback} callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateEnhancedMeasurementSettings = function updateEnhancedMeasurementSettings(request, callback) { + return this.rpcCall(updateEnhancedMeasurementSettings, $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, request, callback); + }, "name", { value: "UpdateEnhancedMeasurementSettings" }); + + /** + * Calls UpdateEnhancedMeasurementSettings. + * @function updateEnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} request UpdateEnhancedMeasurementSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateFirebaseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.FirebaseLink} [response] FirebaseLink + */ + + /** + * Calls CreateFirebaseLink. + * @function createFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLinkCallback} callback Node-style callback called with the error, if any, and FirebaseLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createFirebaseLink = function createFirebaseLink(request, callback) { + return this.rpcCall(createFirebaseLink, $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, $root.google.analytics.admin.v1alpha.FirebaseLink, request, callback); + }, "name", { value: "CreateFirebaseLink" }); + + /** + * Calls CreateFirebaseLink. + * @function createFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateFirebaseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateFirebaseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.FirebaseLink} [response] FirebaseLink + */ + + /** + * Calls UpdateFirebaseLink. + * @function updateFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} request UpdateFirebaseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateFirebaseLinkCallback} callback Node-style callback called with the error, if any, and FirebaseLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateFirebaseLink = function updateFirebaseLink(request, callback) { + return this.rpcCall(updateFirebaseLink, $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, $root.google.analytics.admin.v1alpha.FirebaseLink, request, callback); + }, "name", { value: "UpdateFirebaseLink" }); + + /** + * Calls UpdateFirebaseLink. + * @function updateFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} request UpdateFirebaseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteFirebaseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteFirebaseLink. + * @function deleteFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteFirebaseLink = function deleteFirebaseLink(request, callback) { + return this.rpcCall(deleteFirebaseLink, $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteFirebaseLink" }); + + /** + * Calls DeleteFirebaseLink. + * @function deleteFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListFirebaseLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} [response] ListFirebaseLinksResponse + */ + + /** + * Calls ListFirebaseLinks. + * @function listFirebaseLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinksCallback} callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listFirebaseLinks = function listFirebaseLinks(request, callback) { + return this.rpcCall(listFirebaseLinks, $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse, request, callback); + }, "name", { value: "ListFirebaseLinks" }); + + /** + * Calls ListFirebaseLinks. + * @function listFirebaseLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetGlobalSiteTagCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} [response] GlobalSiteTag + */ + + /** + * Calls GetGlobalSiteTag. + * @function getGlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} request GetGlobalSiteTagRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTagCallback} callback Node-style callback called with the error, if any, and GlobalSiteTag + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getGlobalSiteTag = function getGlobalSiteTag(request, callback) { + return this.rpcCall(getGlobalSiteTag, $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, $root.google.analytics.admin.v1alpha.GlobalSiteTag, request, callback); + }, "name", { value: "GetGlobalSiteTag" }); + + /** + * Calls GetGlobalSiteTag. + * @function getGlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} request GetGlobalSiteTagRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} [response] GoogleAdsLink + */ + + /** + * Calls CreateGoogleAdsLink. + * @function createGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createGoogleAdsLink = function createGoogleAdsLink(request, callback) { + return this.rpcCall(createGoogleAdsLink, $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, $root.google.analytics.admin.v1alpha.GoogleAdsLink, request, callback); + }, "name", { value: "CreateGoogleAdsLink" }); + + /** + * Calls CreateGoogleAdsLink. + * @function createGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} [response] GoogleAdsLink + */ + + /** + * Calls UpdateGoogleAdsLink. + * @function updateGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateGoogleAdsLink = function updateGoogleAdsLink(request, callback) { + return this.rpcCall(updateGoogleAdsLink, $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, $root.google.analytics.admin.v1alpha.GoogleAdsLink, request, callback); + }, "name", { value: "UpdateGoogleAdsLink" }); + + /** + * Calls UpdateGoogleAdsLink. + * @function updateGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteGoogleAdsLink. + * @function deleteGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteGoogleAdsLink = function deleteGoogleAdsLink(request, callback) { + return this.rpcCall(deleteGoogleAdsLink, $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteGoogleAdsLink" }); + + /** + * Calls DeleteGoogleAdsLink. + * @function deleteGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListGoogleAdsLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} [response] ListGoogleAdsLinksResponse + */ + + /** + * Calls ListGoogleAdsLinks. + * @function listGoogleAdsLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinksCallback} callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listGoogleAdsLinks = function listGoogleAdsLinks(request, callback) { + return this.rpcCall(listGoogleAdsLinks, $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse, request, callback); + }, "name", { value: "ListGoogleAdsLinks" }); + + /** + * Calls ListGoogleAdsLinks. + * @function listGoogleAdsLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDataSharingSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataSharingSettings} [response] DataSharingSettings + */ + + /** + * Calls GetDataSharingSettings. + * @function getDataSharingSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettingsCallback} callback Node-style callback called with the error, if any, and DataSharingSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDataSharingSettings = function getDataSharingSettings(request, callback) { + return this.rpcCall(getDataSharingSettings, $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, $root.google.analytics.admin.v1alpha.DataSharingSettings, request, callback); + }, "name", { value: "GetDataSharingSettings" }); + + /** + * Calls GetDataSharingSettings. + * @function getDataSharingSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AnalyticsAdminService; + })(); + + v1alpha.GetAccountRequest = (function() { + + /** + * Properties of a GetAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetAccountRequest + * @property {string|null} [name] GetAccountRequest name + */ + + /** + * Constructs a new GetAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetAccountRequest. + * @implements IGetAccountRequest + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @instance + */ + GetAccountRequest.prototype.name = ""; + + /** + * Creates a new GetAccountRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest instance + */ + GetAccountRequest.create = function create(properties) { + return new GetAccountRequest(properties); + }; + + /** + * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest + */ + GetAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAccountRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @instance + * @returns {Object.} JSON object + */ + GetAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetAccountRequest; + })(); + + v1alpha.ListAccountsRequest = (function() { + + /** + * Properties of a ListAccountsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListAccountsRequest + * @property {number|null} [pageSize] ListAccountsRequest pageSize + * @property {string|null} [pageToken] ListAccountsRequest pageToken + * @property {boolean|null} [showDeleted] ListAccountsRequest showDeleted + */ + + /** + * Constructs a new ListAccountsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAccountsRequest. + * @implements IListAccountsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.pageSize = 0; + + /** + * ListAccountsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.pageToken = ""; + + /** + * ListAccountsRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.showDeleted = false; + + /** + * Creates a new ListAccountsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest instance + */ + ListAccountsRequest.create = function create(properties) { + return new ListAccountsRequest(properties); + }; + + /** + * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @static + * @param {google.analytics.admin.v1alpha.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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.showDeleted); + return writer; + }; + + /** + * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.showDeleted = reader.bool(); + 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.analytics.admin.v1alpha.ListAccountsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; + return null; + }; + + /** + * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest + */ + ListAccountsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAccountsRequest(); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); + return message; + }; + + /** + * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @static + * @param {google.analytics.admin.v1alpha.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.showDeleted = false; + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; + return object; + }; + + /** + * Converts this ListAccountsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @instance + * @returns {Object.} JSON object + */ + ListAccountsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAccountsRequest; + })(); + + v1alpha.ListAccountsResponse = (function() { + + /** + * Properties of a ListAccountsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListAccountsResponse + * @property {Array.|null} [accounts] ListAccountsResponse accounts + * @property {string|null} [nextPageToken] ListAccountsResponse nextPageToken + */ + + /** + * Constructs a new ListAccountsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAccountsResponse. + * @implements IListAccountsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse + * @instance + */ + ListAccountsResponse.prototype.accounts = $util.emptyArray; + + /** + * ListAccountsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @instance + */ + ListAccountsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAccountsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse instance + */ + ListAccountsResponse.create = function create(properties) { + return new ListAccountsResponse(properties); + }; + + /** + * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse + */ + ListAccountsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAccountsResponse(); + if (object.accounts) { + if (!Array.isArray(object.accounts)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: array expected"); + message.accounts = []; + for (var i = 0; i < object.accounts.length; ++i) { + if (typeof object.accounts[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: object expected"); + message.accounts[i] = $root.google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse + * @instance + * @returns {Object.} JSON object + */ + ListAccountsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAccountsResponse; + })(); + + v1alpha.DeleteAccountRequest = (function() { + + /** + * Properties of a DeleteAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteAccountRequest + * @property {string|null} [name] DeleteAccountRequest name + */ + + /** + * Constructs a new DeleteAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteAccountRequest. + * @implements IDeleteAccountRequest + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest + * @instance + */ + DeleteAccountRequest.prototype.name = ""; + + /** + * Creates a new DeleteAccountRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest instance + */ + DeleteAccountRequest.create = function create(properties) { + return new DeleteAccountRequest(properties); + }; + + /** + * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest + */ + DeleteAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAccountRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteAccountRequest; + })(); + + v1alpha.UpdateAccountRequest = (function() { + + /** + * Properties of an UpdateAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateAccountRequest + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] UpdateAccountRequest account + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountRequest updateMask + */ + + /** + * Constructs a new UpdateAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateAccountRequest. + * @implements IUpdateAccountRequest + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @instance + */ + UpdateAccountRequest.prototype.account = null; + + /** + * UpdateAccountRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @instance + */ + UpdateAccountRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAccountRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest instance + */ + UpdateAccountRequest.create = function create(properties) { + return new UpdateAccountRequest(properties); + }; + + /** + * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest + */ + UpdateAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAccountRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateAccountRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateAccountRequest; + })(); + + v1alpha.ProvisionAccountTicketRequest = (function() { + + /** + * Properties of a ProvisionAccountTicketRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IProvisionAccountTicketRequest + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ProvisionAccountTicketRequest account + * @property {string|null} [redirectUri] ProvisionAccountTicketRequest redirectUri + */ + + /** + * Constructs a new ProvisionAccountTicketRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ProvisionAccountTicketRequest. + * @implements IProvisionAccountTicketRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set + */ + function ProvisionAccountTicketRequest(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]]; + } + + /** + * ProvisionAccountTicketRequest account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @instance + */ + ProvisionAccountTicketRequest.prototype.account = null; + + /** + * ProvisionAccountTicketRequest redirectUri. + * @member {string} redirectUri + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @instance + */ + ProvisionAccountTicketRequest.prototype.redirectUri = ""; + + /** + * Creates a new ProvisionAccountTicketRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest instance + */ + ProvisionAccountTicketRequest.create = function create(properties) { + return new ProvisionAccountTicketRequest(properties); + }; + + /** + * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.redirectUri != null && Object.hasOwnProperty.call(message, "redirectUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); + return writer; + }; + + /** + * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketRequest.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.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + case 2: + message.redirectUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProvisionAccountTicketRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProvisionAccountTicketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.account != null && message.hasOwnProperty("account")) { + var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); + if (error) + return "account." + error; + } + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + if (!$util.isString(message.redirectUri)) + return "redirectUri: string expected"; + return null; + }; + + /** + * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + */ + ProvisionAccountTicketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.redirectUri != null) + message.redirectUri = String(object.redirectUri); + return message; + }; + + /** + * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} message ProvisionAccountTicketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProvisionAccountTicketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.account = null; + object.redirectUri = ""; + } + if (message.account != null && message.hasOwnProperty("account")) + object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + object.redirectUri = message.redirectUri; + return object; + }; + + /** + * Converts this ProvisionAccountTicketRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @instance + * @returns {Object.} JSON object + */ + ProvisionAccountTicketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ProvisionAccountTicketRequest; + })(); + + v1alpha.ProvisionAccountTicketResponse = (function() { + + /** + * Properties of a ProvisionAccountTicketResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IProvisionAccountTicketResponse + * @property {string|null} [accountTicketId] ProvisionAccountTicketResponse accountTicketId + */ + + /** + * Constructs a new ProvisionAccountTicketResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ProvisionAccountTicketResponse. + * @implements IProvisionAccountTicketResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set + */ + function ProvisionAccountTicketResponse(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]]; + } + + /** + * ProvisionAccountTicketResponse accountTicketId. + * @member {string} accountTicketId + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @instance + */ + ProvisionAccountTicketResponse.prototype.accountTicketId = ""; + + /** + * Creates a new ProvisionAccountTicketResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse instance + */ + ProvisionAccountTicketResponse.create = function create(properties) { + return new ProvisionAccountTicketResponse(properties); + }; + + /** + * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accountTicketId != null && Object.hasOwnProperty.call(message, "accountTicketId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.accountTicketId); + return writer; + }; + + /** + * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketResponse.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.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accountTicketId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProvisionAccountTicketResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProvisionAccountTicketResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + if (!$util.isString(message.accountTicketId)) + return "accountTicketId: string expected"; + return null; + }; + + /** + * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + */ + ProvisionAccountTicketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); + if (object.accountTicketId != null) + message.accountTicketId = String(object.accountTicketId); + return message; + }; + + /** + * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} message ProvisionAccountTicketResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProvisionAccountTicketResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.accountTicketId = ""; + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + object.accountTicketId = message.accountTicketId; + return object; + }; + + /** + * Converts this ProvisionAccountTicketResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @instance + * @returns {Object.} JSON object + */ + ProvisionAccountTicketResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ProvisionAccountTicketResponse; + })(); + + v1alpha.GetPropertyRequest = (function() { + + /** + * Properties of a GetPropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetPropertyRequest + * @property {string|null} [name] GetPropertyRequest name + */ + + /** + * Constructs a new GetPropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetPropertyRequest. + * @implements IGetPropertyRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set + */ + function GetPropertyRequest(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]]; + } + + /** + * GetPropertyRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @instance + */ + GetPropertyRequest.prototype.name = ""; + + /** + * Creates a new GetPropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest instance + */ + GetPropertyRequest.create = function create(properties) { + return new GetPropertyRequest(properties); + }; + + /** + * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPropertyRequest.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 GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPropertyRequest.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.analytics.admin.v1alpha.GetPropertyRequest(); + 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 GetPropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetPropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetPropertyRequest.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 GetPropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest + */ + GetPropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetPropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetPropertyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.GetPropertyRequest} message GetPropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetPropertyRequest.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 GetPropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @instance + * @returns {Object.} JSON object + */ + GetPropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetPropertyRequest; + })(); + + v1alpha.ListPropertiesRequest = (function() { + + /** + * Properties of a ListPropertiesRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListPropertiesRequest + * @property {string|null} [filter] ListPropertiesRequest filter + * @property {number|null} [pageSize] ListPropertiesRequest pageSize + * @property {string|null} [pageToken] ListPropertiesRequest pageToken + * @property {boolean|null} [showDeleted] ListPropertiesRequest showDeleted + */ + + /** + * Constructs a new ListPropertiesRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListPropertiesRequest. + * @implements IListPropertiesRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set + */ + function ListPropertiesRequest(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]]; + } + + /** + * ListPropertiesRequest filter. + * @member {string} filter + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.filter = ""; + + /** + * ListPropertiesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.pageSize = 0; + + /** + * ListPropertiesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.pageToken = ""; + + /** + * ListPropertiesRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.showDeleted = false; + + /** + * Creates a new ListPropertiesRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest instance + */ + ListPropertiesRequest.create = function create(properties) { + return new ListPropertiesRequest(properties); + }; + + /** + * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); + 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.showDeleted); + return writer; + }; + + /** + * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesRequest.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.analytics.admin.v1alpha.ListPropertiesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.filter = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.showDeleted = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPropertiesRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPropertiesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: 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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; + return null; + }; + + /** + * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest + */ + ListPropertiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListPropertiesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); + return message; + }; + + /** + * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1alpha.ListPropertiesRequest} message ListPropertiesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPropertiesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.showDeleted = false; + } + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.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.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; + return object; + }; + + /** + * Converts this ListPropertiesRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPropertiesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListPropertiesRequest; + })(); + + v1alpha.ListPropertiesResponse = (function() { + + /** + * Properties of a ListPropertiesResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListPropertiesResponse + * @property {Array.|null} [properties] ListPropertiesResponse properties + * @property {string|null} [nextPageToken] ListPropertiesResponse nextPageToken + */ + + /** + * Constructs a new ListPropertiesResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListPropertiesResponse. + * @implements IListPropertiesResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set + */ + function ListPropertiesResponse(properties) { + this.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]]; + } + + /** + * ListPropertiesResponse properties. + * @member {Array.} properties + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @instance + */ + ListPropertiesResponse.prototype.properties = $util.emptyArray; + + /** + * ListPropertiesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @instance + */ + ListPropertiesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPropertiesResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse instance + */ + ListPropertiesResponse.create = function create(properties) { + return new ListPropertiesResponse(properties); + }; + + /** + * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.properties != null && message.properties.length) + for (var i = 0; i < message.properties.length; ++i) + $root.google.analytics.admin.v1alpha.Property.encode(message.properties[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 ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesResponse.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.analytics.admin.v1alpha.ListPropertiesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.properties && message.properties.length)) + message.properties = []; + message.properties.push($root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPropertiesResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPropertiesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.properties != null && message.hasOwnProperty("properties")) { + if (!Array.isArray(message.properties)) + return "properties: array expected"; + for (var i = 0; i < message.properties.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.properties[i]); + if (error) + return "properties." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse + */ + ListPropertiesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListPropertiesResponse(); + if (object.properties) { + if (!Array.isArray(object.properties)) + throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: array expected"); + message.properties = []; + for (var i = 0; i < object.properties.length; ++i) { + if (typeof object.properties[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: object expected"); + message.properties[i] = $root.google.analytics.admin.v1alpha.Property.fromObject(object.properties[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} message ListPropertiesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPropertiesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.properties = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.properties && message.properties.length) { + object.properties = []; + for (var j = 0; j < message.properties.length; ++j) + object.properties[j] = $root.google.analytics.admin.v1alpha.Property.toObject(message.properties[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPropertiesResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @instance + * @returns {Object.} JSON object + */ + ListPropertiesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListPropertiesResponse; + })(); + + v1alpha.UpdatePropertyRequest = (function() { + + /** + * Properties of an UpdatePropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdatePropertyRequest + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] UpdatePropertyRequest property + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePropertyRequest updateMask + */ + + /** + * Constructs a new UpdatePropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdatePropertyRequest. + * @implements IUpdatePropertyRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set + */ + function UpdatePropertyRequest(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]]; + } + + /** + * UpdatePropertyRequest property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @instance + */ + UpdatePropertyRequest.prototype.property = null; + + /** + * UpdatePropertyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @instance + */ + UpdatePropertyRequest.prototype.updateMask = null; + + /** + * Creates a new UpdatePropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest instance + */ + UpdatePropertyRequest.create = function create(properties) { + return new UpdatePropertyRequest(properties); + }; + + /** + * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePropertyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, 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 UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdatePropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePropertyRequest.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.analytics.admin.v1alpha.UpdatePropertyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = $root.google.analytics.admin.v1alpha.Property.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 UpdatePropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdatePropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdatePropertyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + 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 UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest + */ + UpdatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdatePropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdatePropertyRequest} message UpdatePropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdatePropertyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = null; + object.updateMask = null; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdatePropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @instance + * @returns {Object.} JSON object + */ + UpdatePropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdatePropertyRequest; + })(); + + v1alpha.CreatePropertyRequest = (function() { + + /** + * Properties of a CreatePropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreatePropertyRequest + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] CreatePropertyRequest property + */ + + /** + * Constructs a new CreatePropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreatePropertyRequest. + * @implements ICreatePropertyRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set + */ + function CreatePropertyRequest(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]]; + } + + /** + * CreatePropertyRequest property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @instance + */ + CreatePropertyRequest.prototype.property = null; + + /** + * Creates a new CreatePropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest instance + */ + CreatePropertyRequest.create = function create(properties) { + return new CreatePropertyRequest(properties); + }; + + /** + * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePropertyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePropertyRequest.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.analytics.admin.v1alpha.CreatePropertyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreatePropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreatePropertyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + error; + } + return null; + }; + + /** + * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest + */ + CreatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreatePropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + return message; + }; + + /** + * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.CreatePropertyRequest} message CreatePropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreatePropertyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.property = null; + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + return object; + }; + + /** + * Converts this CreatePropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @instance + * @returns {Object.} JSON object + */ + CreatePropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreatePropertyRequest; + })(); + + v1alpha.DeletePropertyRequest = (function() { + + /** + * Properties of a DeletePropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeletePropertyRequest + * @property {string|null} [name] DeletePropertyRequest name + */ + + /** + * Constructs a new DeletePropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeletePropertyRequest. + * @implements IDeletePropertyRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set + */ + function DeletePropertyRequest(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]]; + } + + /** + * DeletePropertyRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @instance + */ + DeletePropertyRequest.prototype.name = ""; + + /** + * Creates a new DeletePropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest instance + */ + DeletePropertyRequest.create = function create(properties) { + return new DeletePropertyRequest(properties); + }; + + /** + * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePropertyRequest.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 DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeletePropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePropertyRequest.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.analytics.admin.v1alpha.DeletePropertyRequest(); + 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 DeletePropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeletePropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeletePropertyRequest.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 DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest + */ + DeletePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeletePropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeletePropertyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.DeletePropertyRequest} message DeletePropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeletePropertyRequest.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 DeletePropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @instance + * @returns {Object.} JSON object + */ + DeletePropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeletePropertyRequest; + })(); + + v1alpha.GetUserLinkRequest = (function() { + + /** + * Properties of a GetUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetUserLinkRequest + * @property {string|null} [name] GetUserLinkRequest name + */ + + /** + * Constructs a new GetUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetUserLinkRequest. + * @implements IGetUserLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set + */ + function GetUserLinkRequest(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]]; + } + + /** + * GetUserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @instance + */ + GetUserLinkRequest.prototype.name = ""; + + /** + * Creates a new GetUserLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest instance + */ + GetUserLinkRequest.create = function create(properties) { + return new GetUserLinkRequest(properties); + }; + + /** + * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetUserLinkRequest.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 GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetUserLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetUserLinkRequest.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.analytics.admin.v1alpha.GetUserLinkRequest(); + 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 GetUserLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetUserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetUserLinkRequest.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 GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest + */ + GetUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetUserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetUserLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.GetUserLinkRequest} message GetUserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetUserLinkRequest.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 GetUserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + GetUserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetUserLinkRequest; + })(); + + v1alpha.BatchGetUserLinksRequest = (function() { + + /** + * Properties of a BatchGetUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IBatchGetUserLinksRequest + * @property {string|null} [parent] BatchGetUserLinksRequest parent + * @property {Array.|null} [names] BatchGetUserLinksRequest names + */ + + /** + * Constructs a new BatchGetUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a BatchGetUserLinksRequest. + * @implements IBatchGetUserLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set + */ + function BatchGetUserLinksRequest(properties) { + this.names = []; + 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]]; + } + + /** + * BatchGetUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @instance + */ + BatchGetUserLinksRequest.prototype.parent = ""; + + /** + * BatchGetUserLinksRequest names. + * @member {Array.} names + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @instance + */ + BatchGetUserLinksRequest.prototype.names = $util.emptyArray; + + /** + * Creates a new BatchGetUserLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest instance + */ + BatchGetUserLinksRequest.create = function create(properties) { + return new BatchGetUserLinksRequest(properties); + }; + + /** + * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchGetUserLinksRequest.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.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchGetUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchGetUserLinksRequest.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.analytics.admin.v1alpha.BatchGetUserLinksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchGetUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchGetUserLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchGetUserLinksRequest.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.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } + return null; + }; + + /** + * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest + */ + BatchGetUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; + }; + + /** + * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} message BatchGetUserLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchGetUserLinksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; + }; + + /** + * Converts this BatchGetUserLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @instance + * @returns {Object.} JSON object + */ + BatchGetUserLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchGetUserLinksRequest; + })(); + + v1alpha.BatchGetUserLinksResponse = (function() { + + /** + * Properties of a BatchGetUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IBatchGetUserLinksResponse + * @property {Array.|null} [userLinks] BatchGetUserLinksResponse userLinks + */ + + /** + * Constructs a new BatchGetUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a BatchGetUserLinksResponse. + * @implements IBatchGetUserLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set + */ + function BatchGetUserLinksResponse(properties) { + this.userLinks = []; + 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]]; + } + + /** + * BatchGetUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @instance + */ + BatchGetUserLinksResponse.prototype.userLinks = $util.emptyArray; + + /** + * Creates a new BatchGetUserLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse instance + */ + BatchGetUserLinksResponse.create = function create(properties) { + return new BatchGetUserLinksResponse(properties); + }; + + /** + * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchGetUserLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchGetUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchGetUserLinksResponse.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.analytics.admin.v1alpha.BatchGetUserLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchGetUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchGetUserLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchGetUserLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } + return null; + }; + + /** + * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse + */ + BatchGetUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} message BatchGetUserLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchGetUserLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + } + return object; + }; + + /** + * Converts this BatchGetUserLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @instance + * @returns {Object.} JSON object + */ + BatchGetUserLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchGetUserLinksResponse; + })(); + + v1alpha.ListUserLinksRequest = (function() { + + /** + * Properties of a ListUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListUserLinksRequest + * @property {string|null} [parent] ListUserLinksRequest parent + * @property {number|null} [pageSize] ListUserLinksRequest pageSize + * @property {string|null} [pageToken] ListUserLinksRequest pageToken + */ + + /** + * Constructs a new ListUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListUserLinksRequest. + * @implements IListUserLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set + */ + function ListUserLinksRequest(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]]; + } + + /** + * ListUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @instance + */ + ListUserLinksRequest.prototype.parent = ""; + + /** + * ListUserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @instance + */ + ListUserLinksRequest.prototype.pageSize = 0; + + /** + * ListUserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @instance + */ + ListUserLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListUserLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest instance + */ + ListUserLinksRequest.create = function create(properties) { + return new ListUserLinksRequest(properties); + }; + + /** + * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListUserLinksRequest.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 ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListUserLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListUserLinksRequest.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.analytics.admin.v1alpha.ListUserLinksRequest(); + 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 ListUserLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListUserLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListUserLinksRequest.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 ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest + */ + ListUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListUserLinksRequest(); + 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 ListUserLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.ListUserLinksRequest} message ListUserLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListUserLinksRequest.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 ListUserLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @instance + * @returns {Object.} JSON object + */ + ListUserLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListUserLinksRequest; + })(); + + v1alpha.ListUserLinksResponse = (function() { + + /** + * Properties of a ListUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListUserLinksResponse + * @property {Array.|null} [userLinks] ListUserLinksResponse userLinks + * @property {string|null} [nextPageToken] ListUserLinksResponse nextPageToken + */ + + /** + * Constructs a new ListUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListUserLinksResponse. + * @implements IListUserLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set + */ + function ListUserLinksResponse(properties) { + this.userLinks = []; + 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]]; + } + + /** + * ListUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @instance + */ + ListUserLinksResponse.prototype.userLinks = $util.emptyArray; + + /** + * ListUserLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @instance + */ + ListUserLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListUserLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse instance + */ + ListUserLinksResponse.create = function create(properties) { + return new ListUserLinksResponse(properties); + }; + + /** + * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListUserLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[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 ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListUserLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListUserLinksResponse.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.analytics.admin.v1alpha.ListUserLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListUserLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListUserLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse + */ + ListUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} message ListUserLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListUserLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListUserLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @instance + * @returns {Object.} JSON object + */ + ListUserLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListUserLinksResponse; + })(); + + v1alpha.AuditUserLinksRequest = (function() { + + /** + * Properties of an AuditUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IAuditUserLinksRequest + * @property {string|null} [parent] AuditUserLinksRequest parent + * @property {number|null} [pageSize] AuditUserLinksRequest pageSize + * @property {string|null} [pageToken] AuditUserLinksRequest pageToken + */ + + /** + * Constructs a new AuditUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AuditUserLinksRequest. + * @implements IAuditUserLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set + */ + function AuditUserLinksRequest(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]]; + } + + /** + * AuditUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @instance + */ + AuditUserLinksRequest.prototype.parent = ""; + + /** + * AuditUserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @instance + */ + AuditUserLinksRequest.prototype.pageSize = 0; + + /** + * AuditUserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @instance + */ + AuditUserLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new AuditUserLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest instance + */ + AuditUserLinksRequest.create = function create(properties) { + return new AuditUserLinksRequest(properties); + }; + + /** + * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLinksRequest.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 AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditUserLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLinksRequest.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.analytics.admin.v1alpha.AuditUserLinksRequest(); + 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 an AuditUserLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditUserLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditUserLinksRequest.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 an AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest + */ + AuditUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksRequest(); + 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 an AuditUserLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.AuditUserLinksRequest} message AuditUserLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditUserLinksRequest.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 AuditUserLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @instance + * @returns {Object.} JSON object + */ + AuditUserLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditUserLinksRequest; + })(); + + v1alpha.AuditUserLinksResponse = (function() { + + /** + * Properties of an AuditUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IAuditUserLinksResponse + * @property {Array.|null} [userLinks] AuditUserLinksResponse userLinks + * @property {string|null} [nextPageToken] AuditUserLinksResponse nextPageToken + */ + + /** + * Constructs a new AuditUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AuditUserLinksResponse. + * @implements IAuditUserLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set + */ + function AuditUserLinksResponse(properties) { + this.userLinks = []; + 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]]; + } + + /** + * AuditUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @instance + */ + AuditUserLinksResponse.prototype.userLinks = $util.emptyArray; + + /** + * AuditUserLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @instance + */ + AuditUserLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new AuditUserLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse instance + */ + AuditUserLinksResponse.create = function create(properties) { + return new AuditUserLinksResponse(properties); + }; + + /** + * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.AuditUserLink.encode(message.userLinks[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 AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditUserLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLinksResponse.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.analytics.admin.v1alpha.AuditUserLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.AuditUserLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditUserLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditUserLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AuditUserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates an AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse + */ + AuditUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.AuditUserLink.fromObject(object.userLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from an AuditUserLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} message AuditUserLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditUserLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.AuditUserLink.toObject(message.userLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this AuditUserLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @instance + * @returns {Object.} JSON object + */ + AuditUserLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditUserLinksResponse; + })(); + + v1alpha.CreateUserLinkRequest = (function() { + + /** + * Properties of a CreateUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateUserLinkRequest + * @property {string|null} [parent] CreateUserLinkRequest parent + * @property {boolean|null} [notifyNewUser] CreateUserLinkRequest notifyNewUser + * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] CreateUserLinkRequest userLink + */ + + /** + * Constructs a new CreateUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateUserLinkRequest. + * @implements ICreateUserLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set + */ + function CreateUserLinkRequest(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]]; + } + + /** + * CreateUserLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.parent = ""; + + /** + * CreateUserLinkRequest notifyNewUser. + * @member {boolean} notifyNewUser + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.notifyNewUser = false; + + /** + * CreateUserLinkRequest userLink. + * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.userLink = null; + + /** + * Creates a new CreateUserLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest instance + */ + CreateUserLinkRequest.create = function create(properties) { + return new CreateUserLinkRequest(properties); + }; + + /** + * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateUserLinkRequest.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.notifyNewUser != null && Object.hasOwnProperty.call(message, "notifyNewUser")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUser); + if (message.userLink != null && Object.hasOwnProperty.call(message, "userLink")) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateUserLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateUserLinkRequest.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.analytics.admin.v1alpha.CreateUserLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.notifyNewUser = reader.bool(); + break; + case 3: + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateUserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateUserLinkRequest.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.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) + if (typeof message.notifyNewUser !== "boolean") + return "notifyNewUser: boolean expected"; + if (message.userLink != null && message.hasOwnProperty("userLink")) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); + if (error) + return "userLink." + error; + } + return null; + }; + + /** + * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + */ + CreateUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateUserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateUserLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.notifyNewUser != null) + message.notifyNewUser = Boolean(object.notifyNewUser); + if (object.userLink != null) { + if (typeof object.userLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateUserLinkRequest.userLink: object expected"); + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); + } + return message; + }; + + /** + * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateUserLinkRequest} message CreateUserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateUserLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.notifyNewUser = false; + object.userLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) + object.notifyNewUser = message.notifyNewUser; + if (message.userLink != null && message.hasOwnProperty("userLink")) + object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); + return object; + }; + + /** + * Converts this CreateUserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + CreateUserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateUserLinkRequest; + })(); + + v1alpha.BatchCreateUserLinksRequest = (function() { + + /** + * Properties of a BatchCreateUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IBatchCreateUserLinksRequest + * @property {string|null} [parent] BatchCreateUserLinksRequest parent + * @property {boolean|null} [notifyNewUsers] BatchCreateUserLinksRequest notifyNewUsers + * @property {Array.|null} [requests] BatchCreateUserLinksRequest requests + */ + + /** + * Constructs a new BatchCreateUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a BatchCreateUserLinksRequest. + * @implements IBatchCreateUserLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set + */ + function BatchCreateUserLinksRequest(properties) { + this.requests = []; + 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]]; + } + + /** + * BatchCreateUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @instance + */ + BatchCreateUserLinksRequest.prototype.parent = ""; + + /** + * BatchCreateUserLinksRequest notifyNewUsers. + * @member {boolean} notifyNewUsers + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @instance + */ + BatchCreateUserLinksRequest.prototype.notifyNewUsers = false; + + /** + * BatchCreateUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @instance + */ + BatchCreateUserLinksRequest.prototype.requests = $util.emptyArray; + + /** + * Creates a new BatchCreateUserLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest instance + */ + BatchCreateUserLinksRequest.create = function create(properties) { + return new BatchCreateUserLinksRequest(properties); + }; + + /** + * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateUserLinksRequest.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.notifyNewUsers != null && Object.hasOwnProperty.call(message, "notifyNewUsers")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUsers); + if (message.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateUserLinksRequest.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.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.notifyNewUsers = reader.bool(); + break; + case 3: + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.CreateUserLinkRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchCreateUserLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchCreateUserLinksRequest.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.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) + if (typeof message.notifyNewUsers !== "boolean") + return "notifyNewUsers: boolean expected"; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } + return null; + }; + + /** + * Creates a BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + */ + BatchCreateUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.notifyNewUsers != null) + message.notifyNewUsers = Boolean(object.notifyNewUsers); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.fromObject(object.requests[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchCreateUserLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} message BatchCreateUserLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchCreateUserLinksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.requests = []; + if (options.defaults) { + object.parent = ""; + object.notifyNewUsers = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) + object.notifyNewUsers = message.notifyNewUsers; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.toObject(message.requests[j], options); + } + return object; + }; + + /** + * Converts this BatchCreateUserLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @instance + * @returns {Object.} JSON object + */ + BatchCreateUserLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchCreateUserLinksRequest; + })(); + + v1alpha.BatchCreateUserLinksResponse = (function() { + + /** + * Properties of a BatchCreateUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IBatchCreateUserLinksResponse + * @property {Array.|null} [userLinks] BatchCreateUserLinksResponse userLinks + */ + + /** + * Constructs a new BatchCreateUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a BatchCreateUserLinksResponse. + * @implements IBatchCreateUserLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set + */ + function BatchCreateUserLinksResponse(properties) { + this.userLinks = []; + 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]]; + } + + /** + * BatchCreateUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @instance + */ + BatchCreateUserLinksResponse.prototype.userLinks = $util.emptyArray; + + /** + * Creates a new BatchCreateUserLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse instance + */ + BatchCreateUserLinksResponse.create = function create(properties) { + return new BatchCreateUserLinksResponse(properties); + }; + + /** + * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateUserLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateUserLinksResponse.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.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchCreateUserLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchCreateUserLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } + return null; + }; + + /** + * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + */ + BatchCreateUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} message BatchCreateUserLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchCreateUserLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + } + return object; + }; + + /** + * Converts this BatchCreateUserLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @instance + * @returns {Object.} JSON object + */ + BatchCreateUserLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchCreateUserLinksResponse; + })(); + + v1alpha.UpdateUserLinkRequest = (function() { + + /** + * Properties of an UpdateUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateUserLinkRequest + * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] UpdateUserLinkRequest userLink + */ + + /** + * Constructs a new UpdateUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateUserLinkRequest. + * @implements IUpdateUserLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set + */ + function UpdateUserLinkRequest(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]]; + } + + /** + * UpdateUserLinkRequest userLink. + * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @instance + */ + UpdateUserLinkRequest.prototype.userLink = null; + + /** + * Creates a new UpdateUserLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest instance + */ + UpdateUserLinkRequest.create = function create(properties) { + return new UpdateUserLinkRequest(properties); + }; + + /** + * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateUserLinkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userLink != null && Object.hasOwnProperty.call(message, "userLink")) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateUserLinkRequest.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.analytics.admin.v1alpha.UpdateUserLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateUserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateUserLinkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userLink != null && message.hasOwnProperty("userLink")) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); + if (error) + return "userLink." + error; + } + return null; + }; + + /** + * Creates an UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + */ + UpdateUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); + if (object.userLink != null) { + if (typeof object.userLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateUserLinkRequest.userLink: object expected"); + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); + } + return message; + }; + + /** + * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateUserLinkRequest} message UpdateUserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateUserLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.userLink = null; + if (message.userLink != null && message.hasOwnProperty("userLink")) + object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); + return object; + }; + + /** + * Converts this UpdateUserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateUserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateUserLinkRequest; + })(); + + v1alpha.BatchUpdateUserLinksRequest = (function() { + + /** + * Properties of a BatchUpdateUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IBatchUpdateUserLinksRequest + * @property {string|null} [parent] BatchUpdateUserLinksRequest parent + * @property {Array.|null} [requests] BatchUpdateUserLinksRequest requests + */ + + /** + * Constructs a new BatchUpdateUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a BatchUpdateUserLinksRequest. + * @implements IBatchUpdateUserLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set + */ + function BatchUpdateUserLinksRequest(properties) { + this.requests = []; + 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]]; + } + + /** + * BatchUpdateUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @instance + */ + BatchUpdateUserLinksRequest.prototype.parent = ""; + + /** + * BatchUpdateUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @instance + */ + BatchUpdateUserLinksRequest.prototype.requests = $util.emptyArray; + + /** + * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest instance + */ + BatchUpdateUserLinksRequest.create = function create(properties) { + return new BatchUpdateUserLinksRequest(properties); + }; + + /** + * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchUpdateUserLinksRequest.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.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchUpdateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchUpdateUserLinksRequest.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.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchUpdateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchUpdateUserLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchUpdateUserLinksRequest.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.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } + return null; + }; + + /** + * Creates a BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + */ + BatchUpdateUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.fromObject(object.requests[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchUpdateUserLinksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.requests = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.toObject(message.requests[j], options); + } + return object; + }; + + /** + * Converts this BatchUpdateUserLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @instance + * @returns {Object.} JSON object + */ + BatchUpdateUserLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchUpdateUserLinksRequest; + })(); + + v1alpha.BatchUpdateUserLinksResponse = (function() { + + /** + * Properties of a BatchUpdateUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IBatchUpdateUserLinksResponse + * @property {Array.|null} [userLinks] BatchUpdateUserLinksResponse userLinks + */ + + /** + * Constructs a new BatchUpdateUserLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a BatchUpdateUserLinksResponse. + * @implements IBatchUpdateUserLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set + */ + function BatchUpdateUserLinksResponse(properties) { + this.userLinks = []; + 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]]; + } + + /** + * BatchUpdateUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @instance + */ + BatchUpdateUserLinksResponse.prototype.userLinks = $util.emptyArray; + + /** + * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse instance + */ + BatchUpdateUserLinksResponse.create = function create(properties) { + return new BatchUpdateUserLinksResponse(properties); + }; + + /** + * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchUpdateUserLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchUpdateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchUpdateUserLinksResponse.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.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchUpdateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchUpdateUserLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchUpdateUserLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } + return null; + }; + + /** + * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + */ + BatchUpdateUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchUpdateUserLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + } + return object; + }; + + /** + * Converts this BatchUpdateUserLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @instance + * @returns {Object.} JSON object + */ + BatchUpdateUserLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchUpdateUserLinksResponse; + })(); + + v1alpha.DeleteUserLinkRequest = (function() { + + /** + * Properties of a DeleteUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteUserLinkRequest + * @property {string|null} [name] DeleteUserLinkRequest name + */ + + /** + * Constructs a new DeleteUserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteUserLinkRequest. + * @implements IDeleteUserLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set + */ + function DeleteUserLinkRequest(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]]; + } + + /** + * DeleteUserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @instance + */ + DeleteUserLinkRequest.prototype.name = ""; + + /** + * Creates a new DeleteUserLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest instance + */ + DeleteUserLinkRequest.create = function create(properties) { + return new DeleteUserLinkRequest(properties); + }; + + /** + * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteUserLinkRequest.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 DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteUserLinkRequest.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.analytics.admin.v1alpha.DeleteUserLinkRequest(); + 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 DeleteUserLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteUserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteUserLinkRequest.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 DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + */ + DeleteUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteUserLinkRequest} message DeleteUserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteUserLinkRequest.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 DeleteUserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteUserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteUserLinkRequest; + })(); + + v1alpha.BatchDeleteUserLinksRequest = (function() { + + /** + * Properties of a BatchDeleteUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IBatchDeleteUserLinksRequest + * @property {string|null} [parent] BatchDeleteUserLinksRequest parent + * @property {Array.|null} [requests] BatchDeleteUserLinksRequest requests + */ + + /** + * Constructs a new BatchDeleteUserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a BatchDeleteUserLinksRequest. + * @implements IBatchDeleteUserLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set + */ + function BatchDeleteUserLinksRequest(properties) { + this.requests = []; + 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]]; + } + + /** + * BatchDeleteUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @instance + */ + BatchDeleteUserLinksRequest.prototype.parent = ""; + + /** + * BatchDeleteUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @instance + */ + BatchDeleteUserLinksRequest.prototype.requests = $util.emptyArray; + + /** + * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest instance + */ + BatchDeleteUserLinksRequest.create = function create(properties) { + return new BatchDeleteUserLinksRequest(properties); + }; + + /** + * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeleteUserLinksRequest.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.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeleteUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeleteUserLinksRequest.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.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeleteUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchDeleteUserLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchDeleteUserLinksRequest.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.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } + return null; + }; + + /** + * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + */ + BatchDeleteUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.fromObject(object.requests[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchDeleteUserLinksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.requests = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.toObject(message.requests[j], options); + } + return object; + }; + + /** + * Converts this BatchDeleteUserLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @instance + * @returns {Object.} JSON object + */ + BatchDeleteUserLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchDeleteUserLinksRequest; + })(); + + v1alpha.GetWebDataStreamRequest = (function() { + + /** + * Properties of a GetWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetWebDataStreamRequest + * @property {string|null} [name] GetWebDataStreamRequest name + */ + + /** + * Constructs a new GetWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetWebDataStreamRequest. + * @implements IGetWebDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set + */ + function GetWebDataStreamRequest(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]]; + } + + /** + * GetWebDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @instance + */ + GetWebDataStreamRequest.prototype.name = ""; + + /** + * Creates a new GetWebDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest instance + */ + GetWebDataStreamRequest.create = function create(properties) { + return new GetWebDataStreamRequest(properties); + }; + + /** + * Encodes the specified GetWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetWebDataStreamRequest.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 GetWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetWebDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetWebDataStreamRequest.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.analytics.admin.v1alpha.GetWebDataStreamRequest(); + 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 GetWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetWebDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetWebDataStreamRequest.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 GetWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + */ + GetWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetWebDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.GetWebDataStreamRequest} message GetWebDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetWebDataStreamRequest.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 GetWebDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + GetWebDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetWebDataStreamRequest; + })(); + + v1alpha.DeleteWebDataStreamRequest = (function() { + + /** + * Properties of a DeleteWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteWebDataStreamRequest + * @property {string|null} [name] DeleteWebDataStreamRequest name + */ + + /** + * Constructs a new DeleteWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteWebDataStreamRequest. + * @implements IDeleteWebDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set + */ + function DeleteWebDataStreamRequest(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]]; + } + + /** + * DeleteWebDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @instance + */ + DeleteWebDataStreamRequest.prototype.name = ""; + + /** + * Creates a new DeleteWebDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest instance + */ + DeleteWebDataStreamRequest.create = function create(properties) { + return new DeleteWebDataStreamRequest(properties); + }; + + /** + * Encodes the specified DeleteWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteWebDataStreamRequest.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 DeleteWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteWebDataStreamRequest.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.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + 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 DeleteWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteWebDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteWebDataStreamRequest.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 DeleteWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + */ + DeleteWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteWebDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} message DeleteWebDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteWebDataStreamRequest.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 DeleteWebDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteWebDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteWebDataStreamRequest; + })(); + + v1alpha.UpdateWebDataStreamRequest = (function() { + + /** + * Properties of an UpdateWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateWebDataStreamRequest + * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] UpdateWebDataStreamRequest webDataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebDataStreamRequest updateMask + */ + + /** + * Constructs a new UpdateWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateWebDataStreamRequest. + * @implements IUpdateWebDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set + */ + function UpdateWebDataStreamRequest(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]]; + } + + /** + * UpdateWebDataStreamRequest webDataStream. + * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @instance + */ + UpdateWebDataStreamRequest.prototype.webDataStream = null; + + /** + * UpdateWebDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @instance + */ + UpdateWebDataStreamRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateWebDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest instance + */ + UpdateWebDataStreamRequest.create = function create(properties) { + return new UpdateWebDataStreamRequest(properties); + }; + + /** + * Encodes the specified UpdateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateWebDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, 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 UpdateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateWebDataStreamRequest.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.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.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 UpdateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateWebDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateWebDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); + if (error) + return "webDataStream." + 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 UpdateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + */ + UpdateWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); + if (object.webDataStream != null) { + if (typeof object.webDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.webDataStream: object expected"); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateWebDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} message UpdateWebDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateWebDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.webDataStream = null; + object.updateMask = null; + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) + object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateWebDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateWebDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateWebDataStreamRequest; + })(); + + v1alpha.CreateWebDataStreamRequest = (function() { + + /** + * Properties of a CreateWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateWebDataStreamRequest + * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] CreateWebDataStreamRequest webDataStream + * @property {string|null} [parent] CreateWebDataStreamRequest parent + */ + + /** + * Constructs a new CreateWebDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateWebDataStreamRequest. + * @implements ICreateWebDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set + */ + function CreateWebDataStreamRequest(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]]; + } + + /** + * CreateWebDataStreamRequest webDataStream. + * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @instance + */ + CreateWebDataStreamRequest.prototype.webDataStream = null; + + /** + * CreateWebDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @instance + */ + CreateWebDataStreamRequest.prototype.parent = ""; + + /** + * Creates a new CreateWebDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest instance + */ + CreateWebDataStreamRequest.create = function create(properties) { + return new CreateWebDataStreamRequest(properties); + }; + + /** + * Encodes the specified CreateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateWebDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + return writer; + }; + + /** + * Encodes the specified CreateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateWebDataStreamRequest.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.analytics.admin.v1alpha.CreateWebDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateWebDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateWebDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); + if (error) + return "webDataStream." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a CreateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + */ + CreateWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(); + if (object.webDataStream != null) { + if (typeof object.webDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateWebDataStreamRequest.webDataStream: object expected"); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a CreateWebDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} message CreateWebDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateWebDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.webDataStream = null; + object.parent = ""; + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) + object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this CreateWebDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + CreateWebDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateWebDataStreamRequest; + })(); + + v1alpha.ListWebDataStreamsRequest = (function() { + + /** + * Properties of a ListWebDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListWebDataStreamsRequest + * @property {string|null} [parent] ListWebDataStreamsRequest parent + * @property {number|null} [pageSize] ListWebDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListWebDataStreamsRequest pageToken + */ + + /** + * Constructs a new ListWebDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListWebDataStreamsRequest. + * @implements IListWebDataStreamsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set + */ + function ListWebDataStreamsRequest(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]]; + } + + /** + * ListWebDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @instance + */ + ListWebDataStreamsRequest.prototype.parent = ""; + + /** + * ListWebDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @instance + */ + ListWebDataStreamsRequest.prototype.pageSize = 0; + + /** + * ListWebDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @instance + */ + ListWebDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListWebDataStreamsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest instance + */ + ListWebDataStreamsRequest.create = function create(properties) { + return new ListWebDataStreamsRequest(properties); + }; + + /** + * Encodes the specified ListWebDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWebDataStreamsRequest.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 ListWebDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWebDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWebDataStreamsRequest.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.analytics.admin.v1alpha.ListWebDataStreamsRequest(); + 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 ListWebDataStreamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWebDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListWebDataStreamsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListWebDataStreamsRequest.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 ListWebDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + */ + ListWebDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(); + 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 ListWebDataStreamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} message ListWebDataStreamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListWebDataStreamsRequest.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 ListWebDataStreamsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @instance + * @returns {Object.} JSON object + */ + ListWebDataStreamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListWebDataStreamsRequest; + })(); + + v1alpha.ListWebDataStreamsResponse = (function() { + + /** + * Properties of a ListWebDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListWebDataStreamsResponse + * @property {Array.|null} [webDataStreams] ListWebDataStreamsResponse webDataStreams + * @property {string|null} [nextPageToken] ListWebDataStreamsResponse nextPageToken + */ + + /** + * Constructs a new ListWebDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListWebDataStreamsResponse. + * @implements IListWebDataStreamsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set + */ + function ListWebDataStreamsResponse(properties) { + this.webDataStreams = []; + 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]]; + } + + /** + * ListWebDataStreamsResponse webDataStreams. + * @member {Array.} webDataStreams + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @instance + */ + ListWebDataStreamsResponse.prototype.webDataStreams = $util.emptyArray; + + /** + * ListWebDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @instance + */ + ListWebDataStreamsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListWebDataStreamsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse instance + */ + ListWebDataStreamsResponse.create = function create(properties) { + return new ListWebDataStreamsResponse(properties); + }; + + /** + * Encodes the specified ListWebDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWebDataStreamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.webDataStreams != null && message.webDataStreams.length) + for (var i = 0; i < message.webDataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStreams[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 ListWebDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWebDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWebDataStreamsResponse.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.analytics.admin.v1alpha.ListWebDataStreamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.webDataStreams && message.webDataStreams.length)) + message.webDataStreams = []; + message.webDataStreams.push($root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWebDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListWebDataStreamsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListWebDataStreamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.webDataStreams != null && message.hasOwnProperty("webDataStreams")) { + if (!Array.isArray(message.webDataStreams)) + return "webDataStreams: array expected"; + for (var i = 0; i < message.webDataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStreams[i]); + if (error) + return "webDataStreams." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListWebDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + */ + ListWebDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(); + if (object.webDataStreams) { + if (!Array.isArray(object.webDataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: array expected"); + message.webDataStreams = []; + for (var i = 0; i < object.webDataStreams.length; ++i) { + if (typeof object.webDataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: object expected"); + message.webDataStreams[i] = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStreams[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListWebDataStreamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} message ListWebDataStreamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListWebDataStreamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.webDataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.webDataStreams && message.webDataStreams.length) { + object.webDataStreams = []; + for (var j = 0; j < message.webDataStreams.length; ++j) + object.webDataStreams[j] = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStreams[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListWebDataStreamsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @instance + * @returns {Object.} JSON object + */ + ListWebDataStreamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListWebDataStreamsResponse; + })(); + + v1alpha.GetIosAppDataStreamRequest = (function() { + + /** + * Properties of a GetIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetIosAppDataStreamRequest + * @property {string|null} [name] GetIosAppDataStreamRequest name + */ + + /** + * Constructs a new GetIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetIosAppDataStreamRequest. + * @implements IGetIosAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set + */ + function GetIosAppDataStreamRequest(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]]; + } + + /** + * GetIosAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @instance + */ + GetIosAppDataStreamRequest.prototype.name = ""; + + /** + * Creates a new GetIosAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest instance + */ + GetIosAppDataStreamRequest.create = function create(properties) { + return new GetIosAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified GetIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIosAppDataStreamRequest.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 GetIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIosAppDataStreamRequest.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.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); + 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 GetIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIosAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIosAppDataStreamRequest.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 GetIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + */ + GetIosAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetIosAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} message GetIosAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIosAppDataStreamRequest.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 GetIosAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + GetIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetIosAppDataStreamRequest; + })(); + + v1alpha.DeleteIosAppDataStreamRequest = (function() { + + /** + * Properties of a DeleteIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteIosAppDataStreamRequest + * @property {string|null} [name] DeleteIosAppDataStreamRequest name + */ + + /** + * Constructs a new DeleteIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteIosAppDataStreamRequest. + * @implements IDeleteIosAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set + */ + function DeleteIosAppDataStreamRequest(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]]; + } + + /** + * DeleteIosAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @instance + */ + DeleteIosAppDataStreamRequest.prototype.name = ""; + + /** + * Creates a new DeleteIosAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest instance + */ + DeleteIosAppDataStreamRequest.create = function create(properties) { + return new DeleteIosAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified DeleteIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteIosAppDataStreamRequest.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 DeleteIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteIosAppDataStreamRequest.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.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); + 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 DeleteIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteIosAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteIosAppDataStreamRequest.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 DeleteIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + */ + DeleteIosAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteIosAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteIosAppDataStreamRequest.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 DeleteIosAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteIosAppDataStreamRequest; + })(); + + v1alpha.UpdateIosAppDataStreamRequest = (function() { + + /** + * Properties of an UpdateIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateIosAppDataStreamRequest + * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] UpdateIosAppDataStreamRequest iosAppDataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIosAppDataStreamRequest updateMask + */ + + /** + * Constructs a new UpdateIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateIosAppDataStreamRequest. + * @implements IUpdateIosAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set + */ + function UpdateIosAppDataStreamRequest(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]]; + } + + /** + * UpdateIosAppDataStreamRequest iosAppDataStream. + * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @instance + */ + UpdateIosAppDataStreamRequest.prototype.iosAppDataStream = null; + + /** + * UpdateIosAppDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @instance + */ + UpdateIosAppDataStreamRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIosAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest instance + */ + UpdateIosAppDataStreamRequest.create = function create(properties) { + return new UpdateIosAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified UpdateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIosAppDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, 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 UpdateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIosAppDataStreamRequest.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.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.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 UpdateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateIosAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateIosAppDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); + if (error) + return "iosAppDataStream." + 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 UpdateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + */ + UpdateIosAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); + if (object.iosAppDataStream != null) { + if (typeof object.iosAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.iosAppDataStream: object expected"); + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateIosAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateIosAppDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.iosAppDataStream = null; + object.updateMask = null; + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) + object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateIosAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateIosAppDataStreamRequest; + })(); + + v1alpha.CreateIosAppDataStreamRequest = (function() { + + /** + * Properties of a CreateIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateIosAppDataStreamRequest + * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] CreateIosAppDataStreamRequest iosAppDataStream + * @property {string|null} [parent] CreateIosAppDataStreamRequest parent + */ + + /** + * Constructs a new CreateIosAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateIosAppDataStreamRequest. + * @implements ICreateIosAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest=} [properties] Properties to set + */ + function CreateIosAppDataStreamRequest(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]]; + } + + /** + * CreateIosAppDataStreamRequest iosAppDataStream. + * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @instance + */ + CreateIosAppDataStreamRequest.prototype.iosAppDataStream = null; + + /** + * CreateIosAppDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @instance + */ + CreateIosAppDataStreamRequest.prototype.parent = ""; + + /** + * Creates a new CreateIosAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest instance + */ + CreateIosAppDataStreamRequest.create = function create(properties) { + return new CreateIosAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified CreateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} message CreateIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIosAppDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + return writer; + }; + + /** + * Encodes the specified CreateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} message CreateIosAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIosAppDataStreamRequest.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.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateIosAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIosAppDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); + if (error) + return "iosAppDataStream." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a CreateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest + */ + CreateIosAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(); + if (object.iosAppDataStream != null) { + if (typeof object.iosAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.iosAppDataStream: object expected"); + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a CreateIosAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} message CreateIosAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIosAppDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.iosAppDataStream = null; + object.parent = ""; + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) + object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this CreateIosAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + CreateIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateIosAppDataStreamRequest; + })(); + + v1alpha.ListIosAppDataStreamsRequest = (function() { + + /** + * Properties of a ListIosAppDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListIosAppDataStreamsRequest + * @property {string|null} [parent] ListIosAppDataStreamsRequest parent + * @property {number|null} [pageSize] ListIosAppDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListIosAppDataStreamsRequest pageToken + */ + + /** + * Constructs a new ListIosAppDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListIosAppDataStreamsRequest. + * @implements IListIosAppDataStreamsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set + */ + function ListIosAppDataStreamsRequest(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]]; + } + + /** + * ListIosAppDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @instance + */ + ListIosAppDataStreamsRequest.prototype.parent = ""; + + /** + * ListIosAppDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @instance + */ + ListIosAppDataStreamsRequest.prototype.pageSize = 0; + + /** + * ListIosAppDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @instance + */ + ListIosAppDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListIosAppDataStreamsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest instance + */ + ListIosAppDataStreamsRequest.create = function create(properties) { + return new ListIosAppDataStreamsRequest(properties); + }; + + /** + * Encodes the specified ListIosAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIosAppDataStreamsRequest.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 ListIosAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIosAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIosAppDataStreamsRequest.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.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); + 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 ListIosAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIosAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListIosAppDataStreamsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIosAppDataStreamsRequest.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 ListIosAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + */ + ListIosAppDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); + 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 ListIosAppDataStreamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListIosAppDataStreamsRequest.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 ListIosAppDataStreamsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @instance + * @returns {Object.} JSON object + */ + ListIosAppDataStreamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListIosAppDataStreamsRequest; + })(); + + v1alpha.ListIosAppDataStreamsResponse = (function() { + + /** + * Properties of a ListIosAppDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListIosAppDataStreamsResponse + * @property {Array.|null} [iosAppDataStreams] ListIosAppDataStreamsResponse iosAppDataStreams + * @property {string|null} [nextPageToken] ListIosAppDataStreamsResponse nextPageToken + */ + + /** + * Constructs a new ListIosAppDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListIosAppDataStreamsResponse. + * @implements IListIosAppDataStreamsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set + */ + function ListIosAppDataStreamsResponse(properties) { + this.iosAppDataStreams = []; + 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]]; + } + + /** + * ListIosAppDataStreamsResponse iosAppDataStreams. + * @member {Array.} iosAppDataStreams + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @instance + */ + ListIosAppDataStreamsResponse.prototype.iosAppDataStreams = $util.emptyArray; + + /** + * ListIosAppDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @instance + */ + ListIosAppDataStreamsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListIosAppDataStreamsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse instance + */ + ListIosAppDataStreamsResponse.create = function create(properties) { + return new ListIosAppDataStreamsResponse(properties); + }; + + /** + * Encodes the specified ListIosAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIosAppDataStreamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.iosAppDataStreams != null && message.iosAppDataStreams.length) + for (var i = 0; i < message.iosAppDataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStreams[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 ListIosAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIosAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIosAppDataStreamsResponse.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.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.iosAppDataStreams && message.iosAppDataStreams.length)) + message.iosAppDataStreams = []; + message.iosAppDataStreams.push($root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIosAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListIosAppDataStreamsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIosAppDataStreamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.iosAppDataStreams != null && message.hasOwnProperty("iosAppDataStreams")) { + if (!Array.isArray(message.iosAppDataStreams)) + return "iosAppDataStreams: array expected"; + for (var i = 0; i < message.iosAppDataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStreams[i]); + if (error) + return "iosAppDataStreams." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListIosAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + */ + ListIosAppDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); + if (object.iosAppDataStreams) { + if (!Array.isArray(object.iosAppDataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: array expected"); + message.iosAppDataStreams = []; + for (var i = 0; i < object.iosAppDataStreams.length; ++i) { + if (typeof object.iosAppDataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: object expected"); + message.iosAppDataStreams[i] = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStreams[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListIosAppDataStreamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListIosAppDataStreamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.iosAppDataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.iosAppDataStreams && message.iosAppDataStreams.length) { + object.iosAppDataStreams = []; + for (var j = 0; j < message.iosAppDataStreams.length; ++j) + object.iosAppDataStreams[j] = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStreams[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListIosAppDataStreamsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @instance + * @returns {Object.} JSON object + */ + ListIosAppDataStreamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListIosAppDataStreamsResponse; + })(); + + v1alpha.GetAndroidAppDataStreamRequest = (function() { + + /** + * Properties of a GetAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetAndroidAppDataStreamRequest + * @property {string|null} [name] GetAndroidAppDataStreamRequest name + */ + + /** + * Constructs a new GetAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetAndroidAppDataStreamRequest. + * @implements IGetAndroidAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set + */ + function GetAndroidAppDataStreamRequest(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]]; + } + + /** + * GetAndroidAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @instance + */ + GetAndroidAppDataStreamRequest.prototype.name = ""; + + /** + * Creates a new GetAndroidAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest instance + */ + GetAndroidAppDataStreamRequest.create = function create(properties) { + return new GetAndroidAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified GetAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAndroidAppDataStreamRequest.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 GetAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); + 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 GetAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetAndroidAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAndroidAppDataStreamRequest.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 GetAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + */ + GetAndroidAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAndroidAppDataStreamRequest.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 GetAndroidAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + GetAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetAndroidAppDataStreamRequest; + })(); + + v1alpha.DeleteAndroidAppDataStreamRequest = (function() { + + /** + * Properties of a DeleteAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteAndroidAppDataStreamRequest + * @property {string|null} [name] DeleteAndroidAppDataStreamRequest name + */ + + /** + * Constructs a new DeleteAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteAndroidAppDataStreamRequest. + * @implements IDeleteAndroidAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set + */ + function DeleteAndroidAppDataStreamRequest(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]]; + } + + /** + * DeleteAndroidAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @instance + */ + DeleteAndroidAppDataStreamRequest.prototype.name = ""; + + /** + * Creates a new DeleteAndroidAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest instance + */ + DeleteAndroidAppDataStreamRequest.create = function create(properties) { + return new DeleteAndroidAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified DeleteAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteAndroidAppDataStreamRequest.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 DeleteAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); + 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 DeleteAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteAndroidAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteAndroidAppDataStreamRequest.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 DeleteAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + */ + DeleteAndroidAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteAndroidAppDataStreamRequest.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 DeleteAndroidAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteAndroidAppDataStreamRequest; + })(); + + v1alpha.UpdateAndroidAppDataStreamRequest = (function() { + + /** + * Properties of an UpdateAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateAndroidAppDataStreamRequest + * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] UpdateAndroidAppDataStreamRequest androidAppDataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAndroidAppDataStreamRequest updateMask + */ + + /** + * Constructs a new UpdateAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateAndroidAppDataStreamRequest. + * @implements IUpdateAndroidAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set + */ + function UpdateAndroidAppDataStreamRequest(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]]; + } + + /** + * UpdateAndroidAppDataStreamRequest androidAppDataStream. + * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @instance + */ + UpdateAndroidAppDataStreamRequest.prototype.androidAppDataStream = null; + + /** + * UpdateAndroidAppDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @instance + */ + UpdateAndroidAppDataStreamRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAndroidAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest instance + */ + UpdateAndroidAppDataStreamRequest.create = function create(properties) { + return new UpdateAndroidAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified UpdateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAndroidAppDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, 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 UpdateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.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 UpdateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateAndroidAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateAndroidAppDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); + if (error) + return "androidAppDataStream." + 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 UpdateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + */ + UpdateAndroidAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); + if (object.androidAppDataStream != null) { + if (typeof object.androidAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.androidAppDataStream: object expected"); + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.androidAppDataStream = null; + object.updateMask = null; + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) + object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateAndroidAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateAndroidAppDataStreamRequest; + })(); + + v1alpha.CreateAndroidAppDataStreamRequest = (function() { + + /** + * Properties of a CreateAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateAndroidAppDataStreamRequest + * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] CreateAndroidAppDataStreamRequest androidAppDataStream + * @property {string|null} [parent] CreateAndroidAppDataStreamRequest parent + */ + + /** + * Constructs a new CreateAndroidAppDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateAndroidAppDataStreamRequest. + * @implements ICreateAndroidAppDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest=} [properties] Properties to set + */ + function CreateAndroidAppDataStreamRequest(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]]; + } + + /** + * CreateAndroidAppDataStreamRequest androidAppDataStream. + * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @instance + */ + CreateAndroidAppDataStreamRequest.prototype.androidAppDataStream = null; + + /** + * CreateAndroidAppDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @instance + */ + CreateAndroidAppDataStreamRequest.prototype.parent = ""; + + /** + * Creates a new CreateAndroidAppDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest instance + */ + CreateAndroidAppDataStreamRequest.create = function create(properties) { + return new CreateAndroidAppDataStreamRequest(properties); + }; + + /** + * Encodes the specified CreateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} message CreateAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateAndroidAppDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + return writer; + }; + + /** + * Encodes the specified CreateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} message CreateAndroidAppDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateAndroidAppDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateAndroidAppDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); + if (error) + return "androidAppDataStream." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a CreateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest + */ + CreateAndroidAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(); + if (object.androidAppDataStream != null) { + if (typeof object.androidAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.androidAppDataStream: object expected"); + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a CreateAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} message CreateAndroidAppDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.androidAppDataStream = null; + object.parent = ""; + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) + object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this CreateAndroidAppDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + CreateAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateAndroidAppDataStreamRequest; + })(); + + v1alpha.ListAndroidAppDataStreamsRequest = (function() { + + /** + * Properties of a ListAndroidAppDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListAndroidAppDataStreamsRequest + * @property {string|null} [parent] ListAndroidAppDataStreamsRequest parent + * @property {number|null} [pageSize] ListAndroidAppDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListAndroidAppDataStreamsRequest pageToken + */ + + /** + * Constructs a new ListAndroidAppDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAndroidAppDataStreamsRequest. + * @implements IListAndroidAppDataStreamsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set + */ + function ListAndroidAppDataStreamsRequest(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]]; + } + + /** + * ListAndroidAppDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @instance + */ + ListAndroidAppDataStreamsRequest.prototype.parent = ""; + + /** + * ListAndroidAppDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @instance + */ + ListAndroidAppDataStreamsRequest.prototype.pageSize = 0; + + /** + * ListAndroidAppDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @instance + */ + ListAndroidAppDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest instance + */ + ListAndroidAppDataStreamsRequest.create = function create(properties) { + return new ListAndroidAppDataStreamsRequest(properties); + }; + + /** + * Encodes the specified ListAndroidAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAndroidAppDataStreamsRequest.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 ListAndroidAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAndroidAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAndroidAppDataStreamsRequest.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.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); + 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 ListAndroidAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAndroidAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListAndroidAppDataStreamsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAndroidAppDataStreamsRequest.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 ListAndroidAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + */ + ListAndroidAppDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); + 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 ListAndroidAppDataStreamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAndroidAppDataStreamsRequest.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 ListAndroidAppDataStreamsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @instance + * @returns {Object.} JSON object + */ + ListAndroidAppDataStreamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAndroidAppDataStreamsRequest; + })(); + + v1alpha.ListAndroidAppDataStreamsResponse = (function() { + + /** + * Properties of a ListAndroidAppDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListAndroidAppDataStreamsResponse + * @property {Array.|null} [androidAppDataStreams] ListAndroidAppDataStreamsResponse androidAppDataStreams + * @property {string|null} [nextPageToken] ListAndroidAppDataStreamsResponse nextPageToken + */ + + /** + * Constructs a new ListAndroidAppDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAndroidAppDataStreamsResponse. + * @implements IListAndroidAppDataStreamsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set + */ + function ListAndroidAppDataStreamsResponse(properties) { + this.androidAppDataStreams = []; + 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]]; + } + + /** + * ListAndroidAppDataStreamsResponse androidAppDataStreams. + * @member {Array.} androidAppDataStreams + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @instance + */ + ListAndroidAppDataStreamsResponse.prototype.androidAppDataStreams = $util.emptyArray; + + /** + * ListAndroidAppDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @instance + */ + ListAndroidAppDataStreamsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAndroidAppDataStreamsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse instance + */ + ListAndroidAppDataStreamsResponse.create = function create(properties) { + return new ListAndroidAppDataStreamsResponse(properties); + }; + + /** + * Encodes the specified ListAndroidAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAndroidAppDataStreamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.androidAppDataStreams != null && message.androidAppDataStreams.length) + for (var i = 0; i < message.androidAppDataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStreams[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 ListAndroidAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAndroidAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAndroidAppDataStreamsResponse.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.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.androidAppDataStreams && message.androidAppDataStreams.length)) + message.androidAppDataStreams = []; + message.androidAppDataStreams.push($root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAndroidAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListAndroidAppDataStreamsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAndroidAppDataStreamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.androidAppDataStreams != null && message.hasOwnProperty("androidAppDataStreams")) { + if (!Array.isArray(message.androidAppDataStreams)) + return "androidAppDataStreams: array expected"; + for (var i = 0; i < message.androidAppDataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStreams[i]); + if (error) + return "androidAppDataStreams." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListAndroidAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + */ + ListAndroidAppDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); + if (object.androidAppDataStreams) { + if (!Array.isArray(object.androidAppDataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: array expected"); + message.androidAppDataStreams = []; + for (var i = 0; i < object.androidAppDataStreams.length; ++i) { + if (typeof object.androidAppDataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: object expected"); + message.androidAppDataStreams[i] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStreams[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListAndroidAppDataStreamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAndroidAppDataStreamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.androidAppDataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.androidAppDataStreams && message.androidAppDataStreams.length) { + object.androidAppDataStreams = []; + for (var j = 0; j < message.androidAppDataStreams.length; ++j) + object.androidAppDataStreams[j] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStreams[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListAndroidAppDataStreamsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @instance + * @returns {Object.} JSON object + */ + ListAndroidAppDataStreamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAndroidAppDataStreamsResponse; + })(); + + v1alpha.GetEnhancedMeasurementSettingsRequest = (function() { + + /** + * Properties of a GetEnhancedMeasurementSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetEnhancedMeasurementSettingsRequest + * @property {string|null} [name] GetEnhancedMeasurementSettingsRequest name + */ + + /** + * Constructs a new GetEnhancedMeasurementSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetEnhancedMeasurementSettingsRequest. + * @implements IGetEnhancedMeasurementSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set + */ + function GetEnhancedMeasurementSettingsRequest(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]]; + } + + /** + * GetEnhancedMeasurementSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @instance + */ + GetEnhancedMeasurementSettingsRequest.prototype.name = ""; + + /** + * Creates a new GetEnhancedMeasurementSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest instance + */ + GetEnhancedMeasurementSettingsRequest.create = function create(properties) { + return new GetEnhancedMeasurementSettingsRequest(properties); + }; + + /** + * Encodes the specified GetEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEnhancedMeasurementSettingsRequest.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 GetEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEnhancedMeasurementSettingsRequest.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.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + 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 GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetEnhancedMeasurementSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetEnhancedMeasurementSettingsRequest.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 GetEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + */ + GetEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetEnhancedMeasurementSettingsRequest.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 GetEnhancedMeasurementSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + GetEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetEnhancedMeasurementSettingsRequest; + })(); + + v1alpha.UpdateEnhancedMeasurementSettingsRequest = (function() { + + /** + * Properties of an UpdateEnhancedMeasurementSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateEnhancedMeasurementSettingsRequest + * @property {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null} [enhancedMeasurementSettings] UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnhancedMeasurementSettingsRequest updateMask + */ + + /** + * Constructs a new UpdateEnhancedMeasurementSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateEnhancedMeasurementSettingsRequest. + * @implements IUpdateEnhancedMeasurementSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set + */ + function UpdateEnhancedMeasurementSettingsRequest(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]]; + } + + /** + * UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings. + * @member {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null|undefined} enhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @instance + */ + UpdateEnhancedMeasurementSettingsRequest.prototype.enhancedMeasurementSettings = null; + + /** + * UpdateEnhancedMeasurementSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @instance + */ + UpdateEnhancedMeasurementSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateEnhancedMeasurementSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest instance + */ + UpdateEnhancedMeasurementSettingsRequest.create = function create(properties) { + return new UpdateEnhancedMeasurementSettingsRequest(properties); + }; + + /** + * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEnhancedMeasurementSettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enhancedMeasurementSettings != null && Object.hasOwnProperty.call(message, "enhancedMeasurementSettings")) + $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.encode(message.enhancedMeasurementSettings, 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 UpdateEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEnhancedMeasurementSettingsRequest.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.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.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 UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateEnhancedMeasurementSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateEnhancedMeasurementSettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) { + var error = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify(message.enhancedMeasurementSettings); + if (error) + return "enhancedMeasurementSettings." + 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 UpdateEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + */ + UpdateEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); + if (object.enhancedMeasurementSettings != null) { + if (typeof object.enhancedMeasurementSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.enhancedMeasurementSettings: object expected"); + message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.fromObject(object.enhancedMeasurementSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateEnhancedMeasurementSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enhancedMeasurementSettings = null; + object.updateMask = null; + } + if (message.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) + object.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.toObject(message.enhancedMeasurementSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateEnhancedMeasurementSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateEnhancedMeasurementSettingsRequest; + })(); + + v1alpha.CreateFirebaseLinkRequest = (function() { + + /** + * Properties of a CreateFirebaseLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateFirebaseLinkRequest + * @property {string|null} [parent] CreateFirebaseLinkRequest parent + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink + */ + + /** + * Constructs a new CreateFirebaseLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateFirebaseLinkRequest. + * @implements ICreateFirebaseLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + */ + function CreateFirebaseLinkRequest(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]]; + } + + /** + * CreateFirebaseLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @instance + */ + CreateFirebaseLinkRequest.prototype.parent = ""; + + /** + * CreateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @instance + */ + CreateFirebaseLinkRequest.prototype.firebaseLink = null; + + /** + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance + */ + CreateFirebaseLinkRequest.create = function create(properties) { + return new CreateFirebaseLinkRequest(properties); + }; + + /** + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFirebaseLinkRequest.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.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFirebaseLinkRequest.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.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFirebaseLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFirebaseLinkRequest.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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + return null; + }; + + /** + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + */ + CreateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } + return message; + }; + + /** + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFirebaseLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.firebaseLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + return object; + }; + + /** + * Converts this CreateFirebaseLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @instance + * @returns {Object.} JSON object + */ + CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateFirebaseLinkRequest; + })(); + + v1alpha.UpdateFirebaseLinkRequest = (function() { + + /** + * Properties of an UpdateFirebaseLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateFirebaseLinkRequest + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] UpdateFirebaseLinkRequest firebaseLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFirebaseLinkRequest updateMask + */ + + /** + * Constructs a new UpdateFirebaseLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateFirebaseLinkRequest. + * @implements IUpdateFirebaseLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set + */ + function UpdateFirebaseLinkRequest(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]]; + } + + /** + * UpdateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @instance + */ + UpdateFirebaseLinkRequest.prototype.firebaseLink = null; + + /** + * UpdateFirebaseLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @instance + */ + UpdateFirebaseLinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateFirebaseLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest instance + */ + UpdateFirebaseLinkRequest.create = function create(properties) { + return new UpdateFirebaseLinkRequest(properties); + }; + + /** + * Encodes the specified UpdateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFirebaseLinkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, 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 UpdateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFirebaseLinkRequest.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.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.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 UpdateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateFirebaseLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateFirebaseLinkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + 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 UpdateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest + */ + UpdateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateFirebaseLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateFirebaseLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.firebaseLink = null; + object.updateMask = null; + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateFirebaseLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateFirebaseLinkRequest; + })(); + + v1alpha.DeleteFirebaseLinkRequest = (function() { + + /** + * Properties of a DeleteFirebaseLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteFirebaseLinkRequest + * @property {string|null} [name] DeleteFirebaseLinkRequest name + */ + + /** + * Constructs a new DeleteFirebaseLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteFirebaseLinkRequest. + * @implements IDeleteFirebaseLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + */ + function DeleteFirebaseLinkRequest(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]]; + } + + /** + * DeleteFirebaseLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @instance + */ + DeleteFirebaseLinkRequest.prototype.name = ""; + + /** + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance + */ + DeleteFirebaseLinkRequest.create = function create(properties) { + return new DeleteFirebaseLinkRequest(properties); + }; + + /** + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFirebaseLinkRequest.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 DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFirebaseLinkRequest.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.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + 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 DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFirebaseLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFirebaseLinkRequest.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 DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + */ + DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFirebaseLinkRequest.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 DeleteFirebaseLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteFirebaseLinkRequest; + })(); + + v1alpha.ListFirebaseLinksRequest = (function() { + + /** + * Properties of a ListFirebaseLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListFirebaseLinksRequest + * @property {string|null} [parent] ListFirebaseLinksRequest parent + */ + + /** + * Constructs a new ListFirebaseLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListFirebaseLinksRequest. + * @implements IListFirebaseLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + */ + function ListFirebaseLinksRequest(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]]; + } + + /** + * ListFirebaseLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.parent = ""; + + /** + * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance + */ + ListFirebaseLinksRequest.create = function create(properties) { + return new ListFirebaseLinksRequest(properties); + }; + + /** + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksRequest.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); + return writer; + }; + + /** + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksRequest.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.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFirebaseLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFirebaseLinksRequest.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"; + return null; + }; + + /** + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + */ + ListFirebaseLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFirebaseLinksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this ListFirebaseLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + * @returns {Object.} JSON object + */ + ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListFirebaseLinksRequest; + })(); + + v1alpha.ListFirebaseLinksResponse = (function() { + + /** + * Properties of a ListFirebaseLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListFirebaseLinksResponse + * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks + */ + + /** + * Constructs a new ListFirebaseLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListFirebaseLinksResponse. + * @implements IListFirebaseLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + */ + function ListFirebaseLinksResponse(properties) { + this.firebaseLinks = []; + 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]]; + } + + /** + * ListFirebaseLinksResponse firebaseLinks. + * @member {Array.} firebaseLinks + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @instance + */ + ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; + + /** + * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance + */ + ListFirebaseLinksResponse.create = function create(properties) { + return new ListFirebaseLinksResponse(properties); + }; + + /** + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseLinks != null && message.firebaseLinks.length) + for (var i = 0; i < message.firebaseLinks.length; ++i) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksResponse.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.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFirebaseLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFirebaseLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { + if (!Array.isArray(message.firebaseLinks)) + return "firebaseLinks: array expected"; + for (var i = 0; i < message.firebaseLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); + if (error) + return "firebaseLinks." + error; + } + } + return null; + }; + + /** + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + */ + ListFirebaseLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + if (object.firebaseLinks) { + if (!Array.isArray(object.firebaseLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); + message.firebaseLinks = []; + for (var i = 0; i < object.firebaseLinks.length; ++i) { + if (typeof object.firebaseLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); + message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFirebaseLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.firebaseLinks = []; + if (message.firebaseLinks && message.firebaseLinks.length) { + object.firebaseLinks = []; + for (var j = 0; j < message.firebaseLinks.length; ++j) + object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); + } + return object; + }; + + /** + * Converts this ListFirebaseLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @instance + * @returns {Object.} JSON object + */ + ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListFirebaseLinksResponse; + })(); + + v1alpha.GetGlobalSiteTagRequest = (function() { + + /** + * Properties of a GetGlobalSiteTagRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetGlobalSiteTagRequest + * @property {string|null} [name] GetGlobalSiteTagRequest name + */ + + /** + * Constructs a new GetGlobalSiteTagRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetGlobalSiteTagRequest. + * @implements IGetGlobalSiteTagRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + */ + function GetGlobalSiteTagRequest(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]]; + } + + /** + * GetGlobalSiteTagRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @instance + */ + GetGlobalSiteTagRequest.prototype.name = ""; + + /** + * Creates a new GetGlobalSiteTagRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance + */ + GetGlobalSiteTagRequest.create = function create(properties) { + return new GetGlobalSiteTagRequest(properties); + }; + + /** + * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetGlobalSiteTagRequest.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 GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetGlobalSiteTagRequest.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.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + 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 GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetGlobalSiteTagRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetGlobalSiteTagRequest.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 GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + */ + GetGlobalSiteTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetGlobalSiteTagRequest.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 GetGlobalSiteTagRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @instance + * @returns {Object.} JSON object + */ + GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetGlobalSiteTagRequest; + })(); + + v1alpha.CreateGoogleAdsLinkRequest = (function() { + + /** + * Properties of a CreateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateGoogleAdsLinkRequest + * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink + */ + + /** + * Constructs a new CreateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateGoogleAdsLinkRequest. + * @implements ICreateGoogleAdsLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + */ + function CreateGoogleAdsLinkRequest(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]]; + } + + /** + * CreateGoogleAdsLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @instance + */ + CreateGoogleAdsLinkRequest.prototype.parent = ""; + + /** + * CreateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @instance + */ + CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + + /** + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance + */ + CreateGoogleAdsLinkRequest.create = function create(properties) { + return new CreateGoogleAdsLinkRequest(properties); + }; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateGoogleAdsLinkRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateGoogleAdsLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateGoogleAdsLinkRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + return null; + }; + + /** + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + */ + CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + return message; + }; + + /** + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.googleAdsLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + return object; + }; + + /** + * Converts this CreateGoogleAdsLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @instance + * @returns {Object.} JSON object + */ + CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateGoogleAdsLinkRequest; + })(); + + v1alpha.UpdateGoogleAdsLinkRequest = (function() { + + /** + * Properties of an UpdateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateGoogleAdsLinkRequest + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask + */ + + /** + * Constructs a new UpdateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateGoogleAdsLinkRequest. + * @implements IUpdateGoogleAdsLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + */ + function UpdateGoogleAdsLinkRequest(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]]; + } + + /** + * UpdateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @instance + */ + UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + + /** + * UpdateGoogleAdsLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @instance + */ + UpdateGoogleAdsLinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance + */ + UpdateGoogleAdsLinkRequest.create = function create(properties) { + return new UpdateGoogleAdsLinkRequest(properties); + }; + + /** + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateGoogleAdsLinkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, 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 UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.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 UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateGoogleAdsLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateGoogleAdsLinkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + 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 UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + */ + UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.googleAdsLink = null; + object.updateMask = null; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateGoogleAdsLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateGoogleAdsLinkRequest; + })(); + + v1alpha.DeleteGoogleAdsLinkRequest = (function() { + + /** + * Properties of a DeleteGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteGoogleAdsLinkRequest + * @property {string|null} [name] DeleteGoogleAdsLinkRequest name + */ + + /** + * Constructs a new DeleteGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteGoogleAdsLinkRequest. + * @implements IDeleteGoogleAdsLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + */ + function DeleteGoogleAdsLinkRequest(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]]; + } + + /** + * DeleteGoogleAdsLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @instance + */ + DeleteGoogleAdsLinkRequest.prototype.name = ""; + + /** + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance + */ + DeleteGoogleAdsLinkRequest.create = function create(properties) { + return new DeleteGoogleAdsLinkRequest(properties); + }; + + /** + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteGoogleAdsLinkRequest.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 DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteGoogleAdsLinkRequest.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.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + 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 DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteGoogleAdsLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteGoogleAdsLinkRequest.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 DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + */ + DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteGoogleAdsLinkRequest.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 DeleteGoogleAdsLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteGoogleAdsLinkRequest; + })(); + + v1alpha.ListGoogleAdsLinksRequest = (function() { + + /** + * Properties of a ListGoogleAdsLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListGoogleAdsLinksRequest + * @property {string|null} [parent] ListGoogleAdsLinksRequest parent + * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize + * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken + */ + + /** + * Constructs a new ListGoogleAdsLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListGoogleAdsLinksRequest. + * @implements IListGoogleAdsLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + */ + function ListGoogleAdsLinksRequest(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]]; + } + + /** + * ListGoogleAdsLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.parent = ""; + + /** + * ListGoogleAdsLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.pageSize = 0; + + /** + * ListGoogleAdsLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance + */ + ListGoogleAdsLinksRequest.create = function create(properties) { + return new ListGoogleAdsLinksRequest(properties); + }; + + /** + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksRequest.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 ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + 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 ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListGoogleAdsLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListGoogleAdsLinksRequest.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 ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + */ + ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + 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 ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListGoogleAdsLinksRequest.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 ListGoogleAdsLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + * @returns {Object.} JSON object + */ + ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListGoogleAdsLinksRequest; + })(); + + v1alpha.ListGoogleAdsLinksResponse = (function() { + + /** + * Properties of a ListGoogleAdsLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListGoogleAdsLinksResponse + * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks + * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken + */ + + /** + * Constructs a new ListGoogleAdsLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListGoogleAdsLinksResponse. + * @implements IListGoogleAdsLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + */ + function ListGoogleAdsLinksResponse(properties) { + this.googleAdsLinks = []; + 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]]; + } + + /** + * ListGoogleAdsLinksResponse googleAdsLinks. + * @member {Array.} googleAdsLinks + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @instance + */ + ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; + + /** + * ListGoogleAdsLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @instance + */ + ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance + */ + ListGoogleAdsLinksResponse.create = function create(properties) { + return new ListGoogleAdsLinksResponse(properties); + }; + + /** + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.googleAdsLinks != null && message.googleAdsLinks.length) + for (var i = 0; i < message.googleAdsLinks.length; ++i) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[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 ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksResponse.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.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListGoogleAdsLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListGoogleAdsLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { + if (!Array.isArray(message.googleAdsLinks)) + return "googleAdsLinks: array expected"; + for (var i = 0; i < message.googleAdsLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); + if (error) + return "googleAdsLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + */ + ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + if (object.googleAdsLinks) { + if (!Array.isArray(object.googleAdsLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); + message.googleAdsLinks = []; + for (var i = 0; i < object.googleAdsLinks.length; ++i) { + if (typeof object.googleAdsLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); + message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.googleAdsLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.googleAdsLinks && message.googleAdsLinks.length) { + object.googleAdsLinks = []; + for (var j = 0; j < message.googleAdsLinks.length; ++j) + object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListGoogleAdsLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @instance + * @returns {Object.} JSON object + */ + ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListGoogleAdsLinksResponse; + })(); + + v1alpha.GetDataSharingSettingsRequest = (function() { + + /** + * Properties of a GetDataSharingSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetDataSharingSettingsRequest + * @property {string|null} [name] GetDataSharingSettingsRequest name + */ + + /** + * Constructs a new GetDataSharingSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetDataSharingSettingsRequest. + * @implements IGetDataSharingSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + */ + function GetDataSharingSettingsRequest(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]]; + } + + /** + * GetDataSharingSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @instance + */ + GetDataSharingSettingsRequest.prototype.name = ""; + + /** + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance + */ + GetDataSharingSettingsRequest.create = function create(properties) { + return new GetDataSharingSettingsRequest(properties); + }; + + /** + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataSharingSettingsRequest.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 GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataSharingSettingsRequest.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.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + 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 GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDataSharingSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataSharingSettingsRequest.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 GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + */ + GetDataSharingSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataSharingSettingsRequest.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 GetDataSharingSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataSharingSettingsRequest; + })(); + + v1alpha.Account = (function() { + + /** + * Properties of an Account. + * @memberof google.analytics.admin.v1alpha + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [countryCode] Account countryCode + * @property {boolean|null} [deleted] Account deleted + */ + + /** + * Constructs a new Account. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an Account. + * @implements IAccount + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.name = ""; + + /** + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.createTime = null; + + /** + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.updateTime = null; + + /** + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.displayName = ""; + + /** + * Account countryCode. + * @member {string} countryCode + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.countryCode = ""; + + /** + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.deleted = false; + + /** + * Creates a new Account instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance + */ + Account.create = function create(properties) { + return new Account(properties); + }; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.countryCode != null && Object.hasOwnProperty.call(message, "countryCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.countryCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + return writer; + }; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.displayName = reader.string(); + break; + case 5: + message.countryCode = reader.string(); + break; + case 6: + message.deleted = reader.bool(); + 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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.countryCode != null && message.hasOwnProperty("countryCode")) + if (!$util.isString(message.countryCode)) + return "countryCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; + return null; + }; + + /** + * Creates an Account message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Account} Account + */ + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) + return object; + var message = new $root.google.analytics.admin.v1alpha.Account(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.countryCode != null) + message.countryCode = String(object.countryCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + return message; + }; + + /** + * Creates a plain object from an Account message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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 = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.countryCode = ""; + object.deleted = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.countryCode != null && message.hasOwnProperty("countryCode")) + object.countryCode = message.countryCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; + return object; + }; + + /** + * Converts this Account to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Account + * @instance + * @returns {Object.} JSON object + */ + Account.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Account; + })(); + + v1alpha.Property = (function() { + + /** + * Properties of a Property. + * @memberof google.analytics.admin.v1alpha + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {boolean|null} [deleted] Property deleted + */ + + /** + * Constructs a new Property. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a Property. + * @implements IProperty + * @constructor + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + */ + function Property(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]]; + } + + /** + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.name = ""; + + /** + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.createTime = null; + + /** + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.updateTime = null; + + /** + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.parent = ""; + + /** + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.displayName = ""; + + /** + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.industryCategory = 0; + + /** + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.deleted = false; + + /** + * Creates a new Property instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance + */ + Property.create = function create(properties) { + return new Property(properties); + }; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.deleted); + return writer; + }; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Property message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.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.analytics.admin.v1alpha.Property(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + case 5: + message.displayName = reader.string(); + break; + case 6: + message.industryCategory = reader.int32(); + break; + case 7: + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 9: + message.deleted = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Property message. + * @function verify + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Property.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; + return null; + }; + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Property} Property + */ + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) + return object; + var message = new $root.google.analytics.admin.v1alpha.Property(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": + case 0: + message.industryCategory = 0; + break; + case "AUTOMOTIVE": + case 1: + message.industryCategory = 1; + break; + case "BUSINESS_AND_INDUSTRIAL_MARKETS": + case 2: + message.industryCategory = 2; + break; + case "FINANCE": + case 3: + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; + break; + } + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + return message; + }; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Property.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parent = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.deleted = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; + return object; + }; + + /** + * Converts this Property to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Property + * @instance + * @returns {Object.} JSON object + */ + Property.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Property; + })(); + + v1alpha.AndroidAppDataStream = (function() { + + /** + * Properties of an AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IAndroidAppDataStream + * @property {string|null} [name] AndroidAppDataStream name + * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime + * @property {string|null} [packageName] AndroidAppDataStream packageName + * @property {string|null} [displayName] AndroidAppDataStream displayName + */ + + /** + * Constructs a new AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AndroidAppDataStream. + * @implements IAndroidAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + */ + function AndroidAppDataStream(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]]; + } + + /** + * AndroidAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.name = ""; + + /** + * AndroidAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.firebaseAppId = ""; + + /** + * AndroidAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.createTime = null; + + /** + * AndroidAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.updateTime = null; + + /** + * AndroidAppDataStream packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.packageName = ""; + + /** + * AndroidAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.displayName = ""; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + */ + AndroidAppDataStream.create = function create(properties) { + return new AndroidAppDataStream(properties); + }; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.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.analytics.admin.v1alpha.AndroidAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.packageName = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AndroidAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + */ + AndroidAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.packageName != null) + message.packageName = String(object.packageName); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.packageName = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + * @returns {Object.} JSON object + */ + AndroidAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AndroidAppDataStream; + })(); + + v1alpha.IosAppDataStream = (function() { + + /** + * Properties of an IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IIosAppDataStream + * @property {string|null} [name] IosAppDataStream name + * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime + * @property {string|null} [bundleId] IosAppDataStream bundleId + * @property {string|null} [displayName] IosAppDataStream displayName + */ + + /** + * Constructs a new IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an IosAppDataStream. + * @implements IIosAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + */ + function IosAppDataStream(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]]; + } + + /** + * IosAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.name = ""; + + /** + * IosAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.firebaseAppId = ""; + + /** + * IosAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.createTime = null; + + /** + * IosAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.updateTime = null; + + /** + * IosAppDataStream bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.bundleId = ""; + + /** + * IosAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.displayName = ""; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + */ + IosAppDataStream.create = function create(properties) { + return new IosAppDataStream(properties); + }; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.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.analytics.admin.v1alpha.IosAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.bundleId = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + */ + IosAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IosAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.bundleId = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this IosAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + * @returns {Object.} JSON object + */ + IosAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IosAppDataStream; + })(); + + v1alpha.WebDataStream = (function() { + + /** + * Properties of a WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IWebDataStream + * @property {string|null} [name] WebDataStream name + * @property {string|null} [measurementId] WebDataStream measurementId + * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime + * @property {string|null} [defaultUri] WebDataStream defaultUri + * @property {string|null} [displayName] WebDataStream displayName + */ + + /** + * Constructs a new WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a WebDataStream. + * @implements IWebDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + */ + function WebDataStream(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]]; + } + + /** + * WebDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.name = ""; + + /** + * WebDataStream measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.measurementId = ""; + + /** + * WebDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.firebaseAppId = ""; + + /** + * WebDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.createTime = null; + + /** + * WebDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.updateTime = null; + + /** + * WebDataStream defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.defaultUri = ""; + + /** + * WebDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.displayName = ""; + + /** + * Creates a new WebDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + */ + WebDataStream.create = function create(properties) { + return new WebDataStream(properties); + }; + + /** + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.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.analytics.admin.v1alpha.WebDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.measurementId = reader.string(); + break; + case 3: + message.firebaseAppId = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.defaultUri = reader.string(); + break; + case 7: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WebDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebDataStream.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.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + */ + WebDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.measurementId = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.defaultUri = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this WebDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + * @returns {Object.} JSON object + */ + WebDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return WebDataStream; + })(); + + v1alpha.UserLink = (function() { + + /** + * Properties of a UserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IUserLink + * @property {string|null} [name] UserLink name + * @property {string|null} [emailAddress] UserLink emailAddress + * @property {Array.|null} [directRoles] UserLink directRoles + */ + + /** + * Constructs a new UserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a UserLink. + * @implements IUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + */ + function UserLink(properties) { + this.directRoles = []; + 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]]; + } + + /** + * UserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.name = ""; + + /** + * UserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.emailAddress = ""; + + /** + * UserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.directRoles = $util.emptyArray; + + /** + * Creates a new UserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance + */ + UserLink.create = function create(properties) { + return new UserLink(properties); + }; + + /** + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + return writer; + }; + + /** + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.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.analytics.admin.v1alpha.UserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.emailAddress = reader.string(); + break; + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + return null; + }; + + /** + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + */ + UserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.UserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.directRoles = []; + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + return object; + }; + + /** + * Converts this UserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + * @returns {Object.} JSON object + */ + UserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UserLink; + })(); + + v1alpha.AuditUserLink = (function() { + + /** + * Properties of an AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IAuditUserLink + * @property {string|null} [name] AuditUserLink name + * @property {string|null} [emailAddress] AuditUserLink emailAddress + * @property {Array.|null} [directRoles] AuditUserLink directRoles + * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + */ + + /** + * Constructs a new AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AuditUserLink. + * @implements IAuditUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + */ + function AuditUserLink(properties) { + this.directRoles = []; + this.effectiveRoles = []; + 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]]; + } + + /** + * AuditUserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.name = ""; + + /** + * AuditUserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.emailAddress = ""; + + /** + * AuditUserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.directRoles = $util.emptyArray; + + /** + * AuditUserLink effectiveRoles. + * @member {Array.} effectiveRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + + /** + * Creates a new AuditUserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + */ + AuditUserLink.create = function create(properties) { + return new AuditUserLink(properties); + }; + + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.effectiveRoles != null && message.effectiveRoles.length) + for (var i = 0; i < message.effectiveRoles.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + return writer; + }; + + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.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.analytics.admin.v1alpha.AuditUserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.emailAddress = reader.string(); + break; + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + case 4: + if (!(message.effectiveRoles && message.effectiveRoles.length)) + message.effectiveRoles = []; + message.effectiveRoles.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditUserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditUserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { + if (!Array.isArray(message.effectiveRoles)) + return "effectiveRoles: array expected"; + for (var i = 0; i < message.effectiveRoles.length; ++i) + if (!$util.isString(message.effectiveRoles[i])) + return "effectiveRoles: string[] expected"; + } + return null; + }; + + /** + * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + */ + AuditUserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + if (object.effectiveRoles) { + if (!Array.isArray(object.effectiveRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); + message.effectiveRoles = []; + for (var i = 0; i < object.effectiveRoles.length; ++i) + message.effectiveRoles[i] = String(object.effectiveRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditUserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.directRoles = []; + object.effectiveRoles = []; + } + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + if (message.effectiveRoles && message.effectiveRoles.length) { + object.effectiveRoles = []; + for (var j = 0; j < message.effectiveRoles.length; ++j) + object.effectiveRoles[j] = message.effectiveRoles[j]; + } + return object; + }; + + /** + * Converts this AuditUserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + * @returns {Object.} JSON object + */ + AuditUserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditUserLink; + })(); + + v1alpha.EnhancedMeasurementSettings = (function() { + + /** + * Properties of an EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IEnhancedMeasurementSettings + * @property {string|null} [name] EnhancedMeasurementSettings name + * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled + * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled + * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled + * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled + * @property {boolean|null} [contentViewsEnabled] EnhancedMeasurementSettings contentViewsEnabled + * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled + * @property {boolean|null} [formInteractionsEnabled] EnhancedMeasurementSettings formInteractionsEnabled + * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled + * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled + * @property {boolean|null} [dataTaggedElementClicksEnabled] EnhancedMeasurementSettings dataTaggedElementClicksEnabled + * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled + * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled + * @property {boolean|null} [articlesAndBlogsEnabled] EnhancedMeasurementSettings articlesAndBlogsEnabled + * @property {boolean|null} [productsAndEcommerceEnabled] EnhancedMeasurementSettings productsAndEcommerceEnabled + * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter + * @property {string|null} [urlQueryParameter] EnhancedMeasurementSettings urlQueryParameter + * @property {string|null} [excludedDomains] EnhancedMeasurementSettings excludedDomains + */ + + /** + * Constructs a new EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an EnhancedMeasurementSettings. + * @implements IEnhancedMeasurementSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + */ + function EnhancedMeasurementSettings(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]]; + } + + /** + * EnhancedMeasurementSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.name = ""; + + /** + * EnhancedMeasurementSettings streamEnabled. + * @member {boolean} streamEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.streamEnabled = false; + + /** + * EnhancedMeasurementSettings pageViewsEnabled. + * @member {boolean} pageViewsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; + + /** + * EnhancedMeasurementSettings scrollsEnabled. + * @member {boolean} scrollsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.scrollsEnabled = false; + + /** + * EnhancedMeasurementSettings outboundClicksEnabled. + * @member {boolean} outboundClicksEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; + + /** + * EnhancedMeasurementSettings contentViewsEnabled. + * @member {boolean} contentViewsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.contentViewsEnabled = false; + + /** + * EnhancedMeasurementSettings siteSearchEnabled. + * @member {boolean} siteSearchEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; + + /** + * EnhancedMeasurementSettings formInteractionsEnabled. + * @member {boolean} formInteractionsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.formInteractionsEnabled = false; + + /** + * EnhancedMeasurementSettings videoEngagementEnabled. + * @member {boolean} videoEngagementEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; + + /** + * EnhancedMeasurementSettings fileDownloadsEnabled. + * @member {boolean} fileDownloadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; + + /** + * EnhancedMeasurementSettings dataTaggedElementClicksEnabled. + * @member {boolean} dataTaggedElementClicksEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.dataTaggedElementClicksEnabled = false; + + /** + * EnhancedMeasurementSettings pageLoadsEnabled. + * @member {boolean} pageLoadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageChangesEnabled. + * @member {boolean} pageChangesEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; + + /** + * EnhancedMeasurementSettings articlesAndBlogsEnabled. + * @member {boolean} articlesAndBlogsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.articlesAndBlogsEnabled = false; + + /** + * EnhancedMeasurementSettings productsAndEcommerceEnabled. + * @member {boolean} productsAndEcommerceEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.productsAndEcommerceEnabled = false; + + /** + * EnhancedMeasurementSettings searchQueryParameter. + * @member {string} searchQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; + + /** + * EnhancedMeasurementSettings urlQueryParameter. + * @member {string} urlQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.urlQueryParameter = ""; + + /** + * EnhancedMeasurementSettings excludedDomains. + * @member {string} excludedDomains + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.excludedDomains = ""; + + /** + * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + */ + EnhancedMeasurementSettings.create = function create(properties) { + return new EnhancedMeasurementSettings(properties); + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); + if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); + if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); + if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); + if (message.contentViewsEnabled != null && Object.hasOwnProperty.call(message, "contentViewsEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.contentViewsEnabled); + if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); + if (message.formInteractionsEnabled != null && Object.hasOwnProperty.call(message, "formInteractionsEnabled")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.formInteractionsEnabled); + if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); + if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); + if (message.dataTaggedElementClicksEnabled != null && Object.hasOwnProperty.call(message, "dataTaggedElementClicksEnabled")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.dataTaggedElementClicksEnabled); + if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); + if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); + if (message.articlesAndBlogsEnabled != null && Object.hasOwnProperty.call(message, "articlesAndBlogsEnabled")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.articlesAndBlogsEnabled); + if (message.productsAndEcommerceEnabled != null && Object.hasOwnProperty.call(message, "productsAndEcommerceEnabled")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.productsAndEcommerceEnabled); + if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); + if (message.urlQueryParameter != null && Object.hasOwnProperty.call(message, "urlQueryParameter")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.urlQueryParameter); + if (message.excludedDomains != null && Object.hasOwnProperty.call(message, "excludedDomains")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.excludedDomains); + return writer; + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.streamEnabled = reader.bool(); + break; + case 3: + message.pageViewsEnabled = reader.bool(); + break; + case 4: + message.scrollsEnabled = reader.bool(); + break; + case 5: + message.outboundClicksEnabled = reader.bool(); + break; + case 6: + message.contentViewsEnabled = reader.bool(); + break; + case 7: + message.siteSearchEnabled = reader.bool(); + break; + case 8: + message.formInteractionsEnabled = reader.bool(); + break; + case 9: + message.videoEngagementEnabled = reader.bool(); + break; + case 10: + message.fileDownloadsEnabled = reader.bool(); + break; + case 11: + message.dataTaggedElementClicksEnabled = reader.bool(); + break; + case 12: + message.pageLoadsEnabled = reader.bool(); + break; + case 13: + message.pageChangesEnabled = reader.bool(); + break; + case 14: + message.articlesAndBlogsEnabled = reader.bool(); + break; + case 15: + message.productsAndEcommerceEnabled = reader.bool(); + break; + case 16: + message.searchQueryParameter = reader.string(); + break; + case 17: + message.urlQueryParameter = reader.string(); + break; + case 18: + message.excludedDomains = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnhancedMeasurementSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnhancedMeasurementSettings.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + if (typeof message.streamEnabled !== "boolean") + return "streamEnabled: boolean expected"; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + if (typeof message.pageViewsEnabled !== "boolean") + return "pageViewsEnabled: boolean expected"; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + if (typeof message.scrollsEnabled !== "boolean") + return "scrollsEnabled: boolean expected"; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + if (typeof message.outboundClicksEnabled !== "boolean") + return "outboundClicksEnabled: boolean expected"; + if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) + if (typeof message.contentViewsEnabled !== "boolean") + return "contentViewsEnabled: boolean expected"; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + if (typeof message.siteSearchEnabled !== "boolean") + return "siteSearchEnabled: boolean expected"; + if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) + if (typeof message.formInteractionsEnabled !== "boolean") + return "formInteractionsEnabled: boolean expected"; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + if (typeof message.videoEngagementEnabled !== "boolean") + return "videoEngagementEnabled: boolean expected"; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + if (typeof message.fileDownloadsEnabled !== "boolean") + return "fileDownloadsEnabled: boolean expected"; + if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) + if (typeof message.dataTaggedElementClicksEnabled !== "boolean") + return "dataTaggedElementClicksEnabled: boolean expected"; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + if (typeof message.pageLoadsEnabled !== "boolean") + return "pageLoadsEnabled: boolean expected"; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + if (typeof message.pageChangesEnabled !== "boolean") + return "pageChangesEnabled: boolean expected"; + if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) + if (typeof message.articlesAndBlogsEnabled !== "boolean") + return "articlesAndBlogsEnabled: boolean expected"; + if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) + if (typeof message.productsAndEcommerceEnabled !== "boolean") + return "productsAndEcommerceEnabled: boolean expected"; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + if (!$util.isString(message.searchQueryParameter)) + return "searchQueryParameter: string expected"; + if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) + if (!$util.isString(message.urlQueryParameter)) + return "urlQueryParameter: string expected"; + if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) + if (!$util.isString(message.excludedDomains)) + return "excludedDomains: string expected"; + return null; + }; + + /** + * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + */ + EnhancedMeasurementSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.streamEnabled != null) + message.streamEnabled = Boolean(object.streamEnabled); + if (object.pageViewsEnabled != null) + message.pageViewsEnabled = Boolean(object.pageViewsEnabled); + if (object.scrollsEnabled != null) + message.scrollsEnabled = Boolean(object.scrollsEnabled); + if (object.outboundClicksEnabled != null) + message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); + if (object.contentViewsEnabled != null) + message.contentViewsEnabled = Boolean(object.contentViewsEnabled); + if (object.siteSearchEnabled != null) + message.siteSearchEnabled = Boolean(object.siteSearchEnabled); + if (object.formInteractionsEnabled != null) + message.formInteractionsEnabled = Boolean(object.formInteractionsEnabled); + if (object.videoEngagementEnabled != null) + message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); + if (object.fileDownloadsEnabled != null) + message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); + if (object.dataTaggedElementClicksEnabled != null) + message.dataTaggedElementClicksEnabled = Boolean(object.dataTaggedElementClicksEnabled); + if (object.pageLoadsEnabled != null) + message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); + if (object.pageChangesEnabled != null) + message.pageChangesEnabled = Boolean(object.pageChangesEnabled); + if (object.articlesAndBlogsEnabled != null) + message.articlesAndBlogsEnabled = Boolean(object.articlesAndBlogsEnabled); + if (object.productsAndEcommerceEnabled != null) + message.productsAndEcommerceEnabled = Boolean(object.productsAndEcommerceEnabled); + if (object.searchQueryParameter != null) + message.searchQueryParameter = String(object.searchQueryParameter); + if (object.urlQueryParameter != null) + message.urlQueryParameter = String(object.urlQueryParameter); + if (object.excludedDomains != null) + message.excludedDomains = String(object.excludedDomains); + return message; + }; + + /** + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnhancedMeasurementSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.streamEnabled = false; + object.pageViewsEnabled = false; + object.scrollsEnabled = false; + object.outboundClicksEnabled = false; + object.contentViewsEnabled = false; + object.siteSearchEnabled = false; + object.formInteractionsEnabled = false; + object.videoEngagementEnabled = false; + object.fileDownloadsEnabled = false; + object.dataTaggedElementClicksEnabled = false; + object.pageLoadsEnabled = false; + object.pageChangesEnabled = false; + object.articlesAndBlogsEnabled = false; + object.productsAndEcommerceEnabled = false; + object.searchQueryParameter = ""; + object.urlQueryParameter = ""; + object.excludedDomains = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + object.streamEnabled = message.streamEnabled; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + object.pageViewsEnabled = message.pageViewsEnabled; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + object.scrollsEnabled = message.scrollsEnabled; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + object.outboundClicksEnabled = message.outboundClicksEnabled; + if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) + object.contentViewsEnabled = message.contentViewsEnabled; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + object.siteSearchEnabled = message.siteSearchEnabled; + if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) + object.formInteractionsEnabled = message.formInteractionsEnabled; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + object.videoEngagementEnabled = message.videoEngagementEnabled; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + object.fileDownloadsEnabled = message.fileDownloadsEnabled; + if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) + object.dataTaggedElementClicksEnabled = message.dataTaggedElementClicksEnabled; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + object.pageLoadsEnabled = message.pageLoadsEnabled; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + object.pageChangesEnabled = message.pageChangesEnabled; + if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) + object.articlesAndBlogsEnabled = message.articlesAndBlogsEnabled; + if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) + object.productsAndEcommerceEnabled = message.productsAndEcommerceEnabled; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + object.searchQueryParameter = message.searchQueryParameter; + if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) + object.urlQueryParameter = message.urlQueryParameter; + if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) + object.excludedDomains = message.excludedDomains; + return object; + }; + + /** + * Converts this EnhancedMeasurementSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + * @returns {Object.} JSON object + */ + EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnhancedMeasurementSettings; + })(); + + v1alpha.FirebaseLink = (function() { + + /** + * Properties of a FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @interface IFirebaseLink + * @property {string|null} [name] FirebaseLink name + * @property {string|null} [project] FirebaseLink project + * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess + */ + + /** + * Constructs a new FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a FirebaseLink. + * @implements IFirebaseLink + * @constructor + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + */ + function FirebaseLink(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]]; + } + + /** + * FirebaseLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.name = ""; + + /** + * FirebaseLink project. + * @member {string} project + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.project = ""; + + /** + * FirebaseLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.createTime = null; + + /** + * FirebaseLink maximumUserAccess. + * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.maximumUserAccess = 0; + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + */ + FirebaseLink.create = function create(properties) { + return new FirebaseLink(properties); + }; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.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.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); + return writer; + }; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.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.analytics.admin.v1alpha.FirebaseLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.maximumUserAccess = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FirebaseLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FirebaseLink.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.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + switch (message.maximumUserAccess) { + default: + return "maximumUserAccess: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + */ + FirebaseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + if (object.name != null) + message.name = String(object.name); + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + switch (object.maximumUserAccess) { + case "MAXIMUM_USER_ACCESS_UNSPECIFIED": + case 0: + message.maximumUserAccess = 0; + break; + case "NO_ACCESS": + case 1: + message.maximumUserAccess = 1; + break; + case "READ_AND_ANALYZE": + case 2: + message.maximumUserAccess = 2; + break; + case "EDITOR_WITHOUT_LINK_MANAGEMENT": + case 3: + message.maximumUserAccess = 3; + break; + case "EDITOR_INCLUDING_LINK_MANAGEMENT": + case 4: + message.maximumUserAccess = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FirebaseLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.project = ""; + object.createTime = null; + object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; + return object; + }; + + /** + * Converts this FirebaseLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + * @returns {Object.} JSON object + */ + FirebaseLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FirebaseLink; + })(); + + v1alpha.GlobalSiteTag = (function() { + + /** + * Properties of a GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @interface IGlobalSiteTag + * @property {string|null} [snippet] GlobalSiteTag snippet + */ + + /** + * Constructs a new GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GlobalSiteTag. + * @implements IGlobalSiteTag + * @constructor + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + */ + function GlobalSiteTag(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]]; + } + + /** + * GlobalSiteTag snippet. + * @member {string} snippet + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.snippet = ""; + + /** + * Creates a new GlobalSiteTag instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + */ + GlobalSiteTag.create = function create(properties) { + return new GlobalSiteTag(properties); + }; + + /** + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.snippet); + return writer; + }; + + /** + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.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.analytics.admin.v1alpha.GlobalSiteTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snippet = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalSiteTag message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalSiteTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.snippet != null && message.hasOwnProperty("snippet")) + if (!$util.isString(message.snippet)) + return "snippet: string expected"; + return null; + }; + + /** + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + */ + GlobalSiteTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + return object; + var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + if (object.snippet != null) + message.snippet = String(object.snippet); + return message; + }; + + /** + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalSiteTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.snippet = ""; + if (message.snippet != null && message.hasOwnProperty("snippet")) + object.snippet = message.snippet; + return object; + }; + + /** + * Converts this GlobalSiteTag to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + * @returns {Object.} JSON object + */ + GlobalSiteTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GlobalSiteTag; + })(); + + v1alpha.GoogleAdsLink = (function() { + + /** + * Properties of a GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @interface IGoogleAdsLink + * @property {string|null} [name] GoogleAdsLink name + * @property {string|null} [parent] GoogleAdsLink parent + * @property {string|null} [customerId] GoogleAdsLink customerId + * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled + * @property {string|null} [emailAddress] GoogleAdsLink emailAddress + * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + */ + + /** + * Constructs a new GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GoogleAdsLink. + * @implements IGoogleAdsLink + * @constructor + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + */ + function GoogleAdsLink(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]]; + } + + /** + * GoogleAdsLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.name = ""; + + /** + * GoogleAdsLink parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.parent = ""; + + /** + * GoogleAdsLink customerId. + * @member {string} customerId + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.customerId = ""; + + /** + * GoogleAdsLink canManageClients. + * @member {boolean} canManageClients + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.canManageClients = false; + + /** + * GoogleAdsLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + + /** + * GoogleAdsLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.emailAddress = ""; + + /** + * GoogleAdsLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.createTime = null; + + /** + * GoogleAdsLink updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.updateTime = null; + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + */ + GoogleAdsLink.create = function create(properties) { + return new GoogleAdsLink(properties); + }; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.customerId != null && Object.hasOwnProperty.call(message, "customerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); + if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.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.analytics.admin.v1alpha.GoogleAdsLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.parent = reader.string(); + break; + case 3: + message.customerId = reader.string(); + break; + case 4: + message.canManageClients = reader.bool(); + break; + case 5: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 6: + message.emailAddress = reader.string(); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleAdsLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleAdsLink.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customerId != null && message.hasOwnProperty("customerId")) + if (!$util.isString(message.customerId)) + return "customerId: string expected"; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + if (typeof message.canManageClients !== "boolean") + return "canManageClients: boolean expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + */ + GoogleAdsLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + if (object.name != null) + message.name = String(object.name); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customerId != null) + message.customerId = String(object.customerId); + if (object.canManageClients != null) + message.canManageClients = Boolean(object.canManageClients); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleAdsLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parent = ""; + object.customerId = ""; + object.canManageClients = false; + object.adsPersonalizationEnabled = null; + object.emailAddress = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customerId != null && message.hasOwnProperty("customerId")) + object.customerId = message.customerId; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + object.canManageClients = message.canManageClients; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + return object; + }; + + /** + * Converts this GoogleAdsLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + * @returns {Object.} JSON object + */ + GoogleAdsLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GoogleAdsLink; + })(); + + v1alpha.DataSharingSettings = (function() { + + /** + * Properties of a DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IDataSharingSettings + * @property {string|null} [name] DataSharingSettings name + * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled + * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled + * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled + * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled + * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled + */ + + /** + * Constructs a new DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DataSharingSettings. + * @implements IDataSharingSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + */ + function DataSharingSettings(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]]; + } + + /** + * DataSharingSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.name = ""; + + /** + * DataSharingSettings sharingWithGoogleSupportEnabled. + * @member {boolean} sharingWithGoogleSupportEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. + * @member {boolean} sharingWithGoogleAssignedSalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAnySalesEnabled. + * @member {boolean} sharingWithGoogleAnySalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleProductsEnabled. + * @member {boolean} sharingWithGoogleProductsEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + + /** + * DataSharingSettings sharingWithOthersEnabled. + * @member {boolean} sharingWithOthersEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithOthersEnabled = false; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + */ + DataSharingSettings.create = function create(properties) { + return new DataSharingSettings(properties); + }; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); + if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); + if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); + if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); + if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + return writer; + }; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.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.analytics.admin.v1alpha.DataSharingSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + case 3: + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + case 4: + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + case 5: + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + case 6: + message.sharingWithOthersEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataSharingSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") + return "sharingWithGoogleSupportEnabled: boolean expected"; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") + return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") + return "sharingWithGoogleAnySalesEnabled: boolean expected"; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") + return "sharingWithGoogleProductsEnabled: boolean expected"; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + if (typeof message.sharingWithOthersEnabled !== "boolean") + return "sharingWithOthersEnabled: boolean expected"; + return null; + }; + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + */ + DataSharingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.sharingWithGoogleSupportEnabled != null) + message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); + if (object.sharingWithGoogleAssignedSalesEnabled != null) + message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); + if (object.sharingWithGoogleAnySalesEnabled != null) + message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); + if (object.sharingWithGoogleProductsEnabled != null) + message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); + if (object.sharingWithOthersEnabled != null) + message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + return message; + }; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataSharingSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.sharingWithGoogleSupportEnabled = false; + object.sharingWithGoogleAssignedSalesEnabled = false; + object.sharingWithGoogleAnySalesEnabled = false; + object.sharingWithGoogleProductsEnabled = false; + object.sharingWithOthersEnabled = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + return object; + }; + + /** + * Converts this DataSharingSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + * @returns {Object.} JSON object + */ + DataSharingSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataSharingSettings; + })(); + + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + + /** + * MaximumUserAccess enum. + * @name google.analytics.admin.v1alpha.MaximumUserAccess + * @enum {number} + * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value + * @property {number} NO_ACCESS=1 NO_ACCESS value + * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value + * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value + * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value + */ + v1alpha.MaximumUserAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_ACCESS"] = 1; + values[valuesById[2] = "READ_AND_ANALYZE"] = 2; + values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; + values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; + return values; + })(); + + return v1alpha; + })(); + + return admin; + })(); + + return analytics; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + return values; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + 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]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + case 3: + message.nameField = reader.string(); + break; + case 4: + message.history = reader.int32(); + break; + case 5: + message.plural = reader.string(); + break; + case 6: + message.singular = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pattern = []; + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(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]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.childType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ResourceReference; + })(); + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fullyDecodeReservedExpansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = ""; + + /** + * HttpRule put. + * @member {string} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = ""; + + /** + * HttpRule post. + * @member {string} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = ""; + + /** + * HttpRule delete. + * @member {string} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = ""; + + /** + * HttpRule patch. + * @member {string} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = ""; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.responseBody = reader.string(); + break; + case 11: + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CustomHttpPattern; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.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["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message["package"] = reader.string(); + break; + case 3: + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + case 11: + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + case 4: + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.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["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + 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.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.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.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.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.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + 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 ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.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.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + case 17: + message.proto3Optional = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.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.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.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.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.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.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.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.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + 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 EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(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]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.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.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + 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]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.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.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.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.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(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]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.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.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.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.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; + 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]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = reader.int32(); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 42: + message.phpGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 39: + message.swiftPrefix = reader.string(); + break; + case 40: + message.phpClassPrefix = reader.string(); + break; + case 41: + message.phpNamespace = reader.string(); + break; + case 44: + message.phpMetadataNamespace = reader.string(); + break; + case 45: + message.rubyPackage = reader.string(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1053: + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; + } + } + return null; + }; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1053: + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + 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]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1052: + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + case 1055: + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + return object; + }; + + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1049: + message[".google.api.defaultHost"] = reader.string(); + break; + case 1050: + message[".google.api.oauthScopes"] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; + + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + 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]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 34: + message.idempotencyLevel = reader.int32(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + case 1051: + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + return null; + }; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + 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]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + 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]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; + + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + 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]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(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]]; + } + + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Timestamp; + })(); + + protobuf.DoubleValue = (function() { + + /** + * Properties of a DoubleValue. + * @memberof google.protobuf + * @interface IDoubleValue + * @property {number|null} [value] DoubleValue value + */ + + /** + * Constructs a new DoubleValue. + * @memberof google.protobuf + * @classdesc Represents a DoubleValue. + * @implements IDoubleValue + * @constructor + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + */ + function DoubleValue(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]]; + } + + /** + * DoubleValue value. + * @member {number} value + * @memberof google.protobuf.DoubleValue + * @instance + */ + DoubleValue.prototype.value = 0; + + /** + * Creates a new DoubleValue instance using the specified properties. + * @function create + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + * @returns {google.protobuf.DoubleValue} DoubleValue instance + */ + DoubleValue.create = function create(properties) { + return new DoubleValue(properties); + }; + + /** + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + return writer; + }; + + /** + * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DoubleValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DoubleValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DoubleValue} DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DoubleValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DoubleValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DoubleValue} DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DoubleValue message. + * @function verify + * @memberof google.protobuf.DoubleValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DoubleValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DoubleValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DoubleValue} DoubleValue + */ + DoubleValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DoubleValue) + return object; + var message = new $root.google.protobuf.DoubleValue(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a DoubleValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.DoubleValue} message DoubleValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DoubleValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this DoubleValue to JSON. + * @function toJSON + * @memberof google.protobuf.DoubleValue + * @instance + * @returns {Object.} JSON object + */ + DoubleValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DoubleValue; + })(); + + protobuf.FloatValue = (function() { + + /** + * Properties of a FloatValue. + * @memberof google.protobuf + * @interface IFloatValue + * @property {number|null} [value] FloatValue value + */ + + /** + * Constructs a new FloatValue. + * @memberof google.protobuf + * @classdesc Represents a FloatValue. + * @implements IFloatValue + * @constructor + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + */ + function FloatValue(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]]; + } + + /** + * FloatValue value. + * @member {number} value + * @memberof google.protobuf.FloatValue + * @instance + */ + FloatValue.prototype.value = 0; + + /** + * Creates a new FloatValue instance using the specified properties. + * @function create + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + * @returns {google.protobuf.FloatValue} FloatValue instance + */ + FloatValue.create = function create(properties) { + return new FloatValue(properties); + }; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); + return writer; + }; + + /** + * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FloatValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FloatValue message. + * @function verify + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FloatValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a FloatValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FloatValue} FloatValue + */ + FloatValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FloatValue) + return object; + var message = new $root.google.protobuf.FloatValue(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a FloatValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.FloatValue} message FloatValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FloatValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this FloatValue to JSON. + * @function toJSON + * @memberof google.protobuf.FloatValue + * @instance + * @returns {Object.} JSON object + */ + FloatValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FloatValue; + })(); + + protobuf.Int64Value = (function() { + + /** + * Properties of an Int64Value. + * @memberof google.protobuf + * @interface IInt64Value + * @property {number|Long|null} [value] Int64Value value + */ + + /** + * Constructs a new Int64Value. + * @memberof google.protobuf + * @classdesc Represents an Int64Value. + * @implements IInt64Value + * @constructor + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + */ + function Int64Value(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]]; + } + + /** + * Int64Value value. + * @member {number|Long} value + * @memberof google.protobuf.Int64Value + * @instance + */ + Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Int64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + * @returns {google.protobuf.Int64Value} Int64Value instance + */ + Int64Value.create = function create(properties) { + return new Int64Value(properties); + }; + + /** + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); + return writer; + }; + + /** + * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Int64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int64Value} Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Int64Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Int64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Int64Value} Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Int64Value message. + * @function verify + * @memberof google.protobuf.Int64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + /** + * Creates an Int64Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Int64Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Int64Value} Int64Value + */ + Int64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int64Value) + return object; + var message = new $root.google.protobuf.Int64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = false; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an Int64Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.Int64Value} message Int64Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Int64Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value; + return object; + }; + + /** + * Converts this Int64Value to JSON. + * @function toJSON + * @memberof google.protobuf.Int64Value + * @instance + * @returns {Object.} JSON object + */ + Int64Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Int64Value; + })(); + + protobuf.UInt64Value = (function() { + + /** + * Properties of a UInt64Value. + * @memberof google.protobuf + * @interface IUInt64Value + * @property {number|Long|null} [value] UInt64Value value + */ + + /** + * Constructs a new UInt64Value. + * @memberof google.protobuf + * @classdesc Represents a UInt64Value. + * @implements IUInt64Value + * @constructor + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + */ + function UInt64Value(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]]; + } + + /** + * UInt64Value value. + * @member {number|Long} value + * @memberof google.protobuf.UInt64Value + * @instance + */ + UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new UInt64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + * @returns {google.protobuf.UInt64Value} UInt64Value instance + */ + UInt64Value.create = function create(properties) { + return new UInt64Value(properties); + }; + + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); + return writer; + }; + + /** + * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt64Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt64Value} UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UInt64Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UInt64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UInt64Value} UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt64Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UInt64Value message. + * @function verify + * @memberof google.protobuf.UInt64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + /** + * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UInt64Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UInt64Value} UInt64Value + */ + UInt64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt64Value) + return object; + var message = new $root.google.protobuf.UInt64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = true; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a UInt64Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.UInt64Value} message UInt64Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UInt64Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value; + return object; + }; + + /** + * Converts this UInt64Value to JSON. + * @function toJSON + * @memberof google.protobuf.UInt64Value + * @instance + * @returns {Object.} JSON object + */ + UInt64Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UInt64Value; + })(); + + protobuf.Int32Value = (function() { + + /** + * Properties of an Int32Value. + * @memberof google.protobuf + * @interface IInt32Value + * @property {number|null} [value] Int32Value value + */ + + /** + * Constructs a new Int32Value. + * @memberof google.protobuf + * @classdesc Represents an Int32Value. + * @implements IInt32Value + * @constructor + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + */ + function Int32Value(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]]; + } + + /** + * Int32Value value. + * @member {number} value + * @memberof google.protobuf.Int32Value + * @instance + */ + Int32Value.prototype.value = 0; + + /** + * Creates a new Int32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + * @returns {google.protobuf.Int32Value} Int32Value instance + */ + Int32Value.create = function create(properties) { + return new Int32Value(properties); + }; + + /** + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); + return writer; + }; + + /** + * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Int32Value message. + * @function verify + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + /** + * Creates an Int32Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Int32Value} Int32Value + */ + Int32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int32Value) + return object; + var message = new $root.google.protobuf.Int32Value(); + if (object.value != null) + message.value = object.value | 0; + return message; + }; + + /** + * Creates a plain object from an Int32Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.Int32Value} message Int32Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Int32Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this Int32Value to JSON. + * @function toJSON + * @memberof google.protobuf.Int32Value + * @instance + * @returns {Object.} JSON object + */ + Int32Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Int32Value; + })(); + + protobuf.UInt32Value = (function() { + + /** + * Properties of a UInt32Value. + * @memberof google.protobuf + * @interface IUInt32Value + * @property {number|null} [value] UInt32Value value + */ + + /** + * Constructs a new UInt32Value. + * @memberof google.protobuf + * @classdesc Represents a UInt32Value. + * @implements IUInt32Value + * @constructor + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + */ + function UInt32Value(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]]; + } + + /** + * UInt32Value value. + * @member {number} value + * @memberof google.protobuf.UInt32Value + * @instance + */ + UInt32Value.prototype.value = 0; + + /** + * Creates a new UInt32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + * @returns {google.protobuf.UInt32Value} UInt32Value instance + */ + UInt32Value.create = function create(properties) { + return new UInt32Value(properties); + }; + + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); + return writer; + }; + + /** + * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt32Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt32Value} UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UInt32Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UInt32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UInt32Value} UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt32Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UInt32Value message. + * @function verify + * @memberof google.protobuf.UInt32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + /** + * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UInt32Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UInt32Value} UInt32Value + */ + UInt32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt32Value) + return object; + var message = new $root.google.protobuf.UInt32Value(); + if (object.value != null) + message.value = object.value >>> 0; + return message; + }; + + /** + * Creates a plain object from a UInt32Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.UInt32Value} message UInt32Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UInt32Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this UInt32Value to JSON. + * @function toJSON + * @memberof google.protobuf.UInt32Value + * @instance + * @returns {Object.} JSON object + */ + UInt32Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UInt32Value; + })(); + + protobuf.BoolValue = (function() { + + /** + * Properties of a BoolValue. + * @memberof google.protobuf + * @interface IBoolValue + * @property {boolean|null} [value] BoolValue value + */ + + /** + * Constructs a new BoolValue. + * @memberof google.protobuf + * @classdesc Represents a BoolValue. + * @implements IBoolValue + * @constructor + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + */ + function BoolValue(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]]; + } + + /** + * BoolValue value. + * @member {boolean} value + * @memberof google.protobuf.BoolValue + * @instance + */ + BoolValue.prototype.value = false; + + /** + * Creates a new BoolValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + * @returns {google.protobuf.BoolValue} BoolValue instance + */ + BoolValue.create = function create(properties) { + return new BoolValue(properties); + }; + + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); + return writer; + }; + + /** + * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BoolValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BoolValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BoolValue message. + * @function verify + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BoolValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "boolean") + return "value: boolean expected"; + return null; + }; + + /** + * Creates a BoolValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.BoolValue} BoolValue + */ + BoolValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BoolValue) + return object; + var message = new $root.google.protobuf.BoolValue(); + if (object.value != null) + message.value = Boolean(object.value); + return message; + }; + + /** + * Creates a plain object from a BoolValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.BoolValue} message BoolValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BoolValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = false; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this BoolValue to JSON. + * @function toJSON + * @memberof google.protobuf.BoolValue + * @instance + * @returns {Object.} JSON object + */ + BoolValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BoolValue; + })(); + + protobuf.StringValue = (function() { + + /** + * Properties of a StringValue. + * @memberof google.protobuf + * @interface IStringValue + * @property {string|null} [value] StringValue value + */ + + /** + * Constructs a new StringValue. + * @memberof google.protobuf + * @classdesc Represents a StringValue. + * @implements IStringValue + * @constructor + * @param {google.protobuf.IStringValue=} [properties] Properties to set + */ + function StringValue(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]]; + } + + /** + * StringValue value. + * @member {string} value + * @memberof google.protobuf.StringValue + * @instance + */ + StringValue.prototype.value = ""; + + /** + * Creates a new StringValue instance using the specified properties. + * @function create + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue=} [properties] Properties to set + * @returns {google.protobuf.StringValue} StringValue instance + */ + StringValue.create = function create(properties) { + return new StringValue(properties); + }; + + /** + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StringValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.StringValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.StringValue} StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StringValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.StringValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.StringValue} StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StringValue message. + * @function verify + * @memberof google.protobuf.StringValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates a StringValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.StringValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.StringValue} StringValue + */ + StringValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.StringValue) + return object; + var message = new $root.google.protobuf.StringValue(); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from a StringValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.StringValue} message StringValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this StringValue to JSON. + * @function toJSON + * @memberof google.protobuf.StringValue + * @instance + * @returns {Object.} JSON object + */ + StringValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return StringValue; + })(); + + protobuf.BytesValue = (function() { + + /** + * Properties of a BytesValue. + * @memberof google.protobuf + * @interface IBytesValue + * @property {Uint8Array|null} [value] BytesValue value + */ + + /** + * Constructs a new BytesValue. + * @memberof google.protobuf + * @classdesc Represents a BytesValue. + * @implements IBytesValue + * @constructor + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + */ + function BytesValue(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]]; + } + + /** + * BytesValue value. + * @member {Uint8Array} value + * @memberof google.protobuf.BytesValue + * @instance + */ + BytesValue.prototype.value = $util.newBuffer([]); + + /** + * Creates a new BytesValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + * @returns {google.protobuf.BytesValue} BytesValue instance + */ + BytesValue.create = function create(properties) { + return new BytesValue(properties); + }; + + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BytesValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + return writer; + }; + + /** + * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BytesValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BytesValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BytesValue} BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BytesValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BytesValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.BytesValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.BytesValue} BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BytesValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BytesValue message. + * @function verify + * @memberof google.protobuf.BytesValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BytesValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + /** + * Creates a BytesValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.BytesValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.BytesValue} BytesValue + */ + BytesValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BytesValue) + return object; + var message = new $root.google.protobuf.BytesValue(); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + return message; + }; + + /** + * Creates a plain object from a BytesValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.BytesValue} message BytesValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BytesValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; + + /** + * Converts this BytesValue to JSON. + * @function toJSON + * @memberof google.protobuf.BytesValue + * @instance + * @returns {Object.} JSON object + */ + BytesValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BytesValue; + })(); + + protobuf.Empty = (function() { + + /** + * Properties of an Empty. + * @memberof google.protobuf + * @interface IEmpty + */ + + /** + * Constructs a new Empty. + * @memberof google.protobuf + * @classdesc Represents an Empty. + * @implements IEmpty + * @constructor + * @param {google.protobuf.IEmpty=} [properties] Properties to set + */ + function Empty(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]]; + } + + /** + * Creates a new Empty instance using the specified properties. + * @function create + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance + */ + Empty.create = function create(properties) { + return new Empty(properties); + }; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Empty message. + * @function verify + * @memberof google.protobuf.Empty + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Empty.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Empty + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Empty} Empty + */ + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) + return object; + return new $root.google.protobuf.Empty(); + }; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.Empty} message Empty + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Empty.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Empty to JSON. + * @function toJSON + * @memberof google.protobuf.Empty + * @instance + * @returns {Object.} JSON object + */ + Empty.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Empty; + })(); + + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + 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]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FieldMask; + })(); + + return protobuf; + })(); + + return google; + })(); + + return $root; +}); diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json new file mode 100644 index 00000000000..38841273eeb --- /dev/null +++ b/packages/google-analytics-admin/protos/protos.json @@ -0,0 +1,3076 @@ +{ + "nested": { + "google": { + "nested": { + "analytics": { + "nested": { + "admin": { + "nested": { + "v1alpha": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin", + "java_multiple_files": true, + "java_outer_classname": "ResourcesProto", + "java_package": "com.google.analytics.admin.v1alpha" + }, + "nested": { + "AnalyticsAdminService": { + "options": { + "(google.api.default_host)": "analyticsadmin.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonly" + }, + "methods": { + "GetAccount": { + "requestType": "GetAccountRequest", + "responseType": "Account", + "options": { + "(google.api.http).get": "/v1alpha/{name=accounts/*}", + "(google.api.method_signature)": "name" + } + }, + "ListAccounts": { + "requestType": "ListAccountsRequest", + "responseType": "ListAccountsResponse", + "options": { + "(google.api.http).get": "/v1alpha/accounts" + } + }, + "DeleteAccount": { + "requestType": "DeleteAccountRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=accounts/*}", + "(google.api.method_signature)": "name" + } + }, + "UpdateAccount": { + "requestType": "UpdateAccountRequest", + "responseType": "Account", + "options": { + "(google.api.http).patch": "/v1alpha/{account.name=accounts/*}", + "(google.api.http).body": "account", + "(google.api.method_signature)": "account,update_mask" + } + }, + "ProvisionAccountTicket": { + "requestType": "ProvisionAccountTicketRequest", + "responseType": "ProvisionAccountTicketResponse", + "options": { + "(google.api.http).post": "/v1alpha/accounts:provisionAccountTicket", + "(google.api.http).body": "*" + } + }, + "GetProperty": { + "requestType": "GetPropertyRequest", + "responseType": "Property", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*}", + "(google.api.method_signature)": "name" + } + }, + "ListProperties": { + "requestType": "ListPropertiesRequest", + "responseType": "ListPropertiesResponse", + "options": { + "(google.api.http).get": "/v1alpha/properties" + } + }, + "CreateProperty": { + "requestType": "CreatePropertyRequest", + "responseType": "Property", + "options": { + "(google.api.http).post": "/v1alpha/properties", + "(google.api.http).body": "property", + "(google.api.method_signature)": "property" + } + }, + "DeleteProperty": { + "requestType": "DeletePropertyRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*}", + "(google.api.method_signature)": "name" + } + }, + "UpdateProperty": { + "requestType": "UpdatePropertyRequest", + "responseType": "Property", + "options": { + "(google.api.http).patch": "/v1alpha/{property.name=properties/*}", + "(google.api.http).body": "property", + "(google.api.method_signature)": "property,update_mask" + } + }, + "GetUserLink": { + "requestType": "GetUserLinkRequest", + "responseType": "UserLink", + "options": { + "(google.api.http).get": "/v1alpha/{name=accounts/*/userLinks/*}", + "(google.api.http).additional_bindings.get": "/v1alpha/{name=properties/*/userLinks/*}", + "(google.api.method_signature)": "name" + } + }, + "BatchGetUserLinks": { + "requestType": "BatchGetUserLinksRequest", + "responseType": "BatchGetUserLinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=accounts/*}/userLinks:batchGet", + "(google.api.http).additional_bindings.get": "/v1alpha/{parent=properties/*}/userLinks:batchGet" + } + }, + "ListUserLinks": { + "requestType": "ListUserLinksRequest", + "responseType": "ListUserLinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=accounts/*}/userLinks", + "(google.api.http).additional_bindings.get": "/v1alpha/{parent=properties/*}/userLinks", + "(google.api.method_signature)": "parent" + } + }, + "AuditUserLinks": { + "requestType": "AuditUserLinksRequest", + "responseType": "AuditUserLinksResponse", + "options": { + "(google.api.http).post": "/v1alpha/{parent=accounts/*}/userLinks:audit", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:audit", + "(google.api.http).additional_bindings.body": "*" + } + }, + "CreateUserLink": { + "requestType": "CreateUserLinkRequest", + "responseType": "UserLink", + "options": { + "(google.api.http).post": "/v1alpha/{parent=accounts/*}/userLinks", + "(google.api.http).body": "user_link", + "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks", + "(google.api.http).additional_bindings.body": "user_link", + "(google.api.method_signature)": "parent,user_link" + } + }, + "BatchCreateUserLinks": { + "requestType": "BatchCreateUserLinksRequest", + "responseType": "BatchCreateUserLinksResponse", + "options": { + "(google.api.http).post": "/v1alpha/{parent=accounts/*}/userLinks:batchCreate", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:batchCreate", + "(google.api.http).additional_bindings.body": "*" + } + }, + "UpdateUserLink": { + "requestType": "UpdateUserLinkRequest", + "responseType": "UserLink", + "options": { + "(google.api.http).patch": "/v1alpha/{user_link.name=accounts/*/userLinks/*}", + "(google.api.http).body": "user_link", + "(google.api.http).additional_bindings.patch": "/v1alpha/{user_link.name=properties/*/userLinks/*}", + "(google.api.http).additional_bindings.body": "user_link", + "(google.api.method_signature)": "user_link" + } + }, + "BatchUpdateUserLinks": { + "requestType": "BatchUpdateUserLinksRequest", + "responseType": "BatchUpdateUserLinksResponse", + "options": { + "(google.api.http).post": "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:batchUpdate", + "(google.api.http).additional_bindings.body": "*" + } + }, + "DeleteUserLink": { + "requestType": "DeleteUserLinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=accounts/*/userLinks/*}", + "(google.api.http).additional_bindings.delete": "/v1alpha/{name=properties/*/userLinks/*}", + "(google.api.method_signature)": "name" + } + }, + "BatchDeleteUserLinks": { + "requestType": "BatchDeleteUserLinksRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1alpha/{parent=accounts/*}/userLinks:batchDelete", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:batchDelete", + "(google.api.http).additional_bindings.body": "*" + } + }, + "GetWebDataStream": { + "requestType": "GetWebDataStreamRequest", + "responseType": "WebDataStream", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*}", + "(google.api.method_signature)": "name" + } + }, + "DeleteWebDataStream": { + "requestType": "DeleteWebDataStreamRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/webDataStreams/*}", + "(google.api.method_signature)": "name" + } + }, + "UpdateWebDataStream": { + "requestType": "UpdateWebDataStreamRequest", + "responseType": "WebDataStream", + "options": { + "(google.api.http).patch": "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}", + "(google.api.http).body": "web_data_stream", + "(google.api.method_signature)": "web_data_stream,update_mask" + } + }, + "CreateWebDataStream": { + "requestType": "CreateWebDataStreamRequest", + "responseType": "WebDataStream", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/webDataStreams", + "(google.api.http).body": "web_data_stream", + "(google.api.method_signature)": "parent,web_data_stream" + } + }, + "ListWebDataStreams": { + "requestType": "ListWebDataStreamsRequest", + "responseType": "ListWebDataStreamsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/webDataStreams", + "(google.api.method_signature)": "parent" + } + }, + "GetIosAppDataStream": { + "requestType": "GetIosAppDataStreamRequest", + "responseType": "IosAppDataStream", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/iosAppDataStreams/*}", + "(google.api.method_signature)": "name" + } + }, + "DeleteIosAppDataStream": { + "requestType": "DeleteIosAppDataStreamRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/iosAppDataStreams/*}", + "(google.api.method_signature)": "name" + } + }, + "UpdateIosAppDataStream": { + "requestType": "UpdateIosAppDataStreamRequest", + "responseType": "IosAppDataStream", + "options": { + "(google.api.http).patch": "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}", + "(google.api.http).body": "ios_app_data_stream", + "(google.api.method_signature)": "ios_app_data_stream,update_mask" + } + }, + "CreateIosAppDataStream": { + "requestType": "CreateIosAppDataStreamRequest", + "responseType": "IosAppDataStream", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/iosAppDataStreams", + "(google.api.http).body": "ios_app_data_stream", + "(google.api.method_signature)": "parent,ios_app_data_stream" + } + }, + "ListIosAppDataStreams": { + "requestType": "ListIosAppDataStreamsRequest", + "responseType": "ListIosAppDataStreamsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/iosAppDataStreams", + "(google.api.method_signature)": "parent" + } + }, + "GetAndroidAppDataStream": { + "requestType": "GetAndroidAppDataStreamRequest", + "responseType": "AndroidAppDataStream", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/androidAppDataStreams/*}", + "(google.api.method_signature)": "name" + } + }, + "DeleteAndroidAppDataStream": { + "requestType": "DeleteAndroidAppDataStreamRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*}", + "(google.api.method_signature)": "name" + } + }, + "UpdateAndroidAppDataStream": { + "requestType": "UpdateAndroidAppDataStreamRequest", + "responseType": "AndroidAppDataStream", + "options": { + "(google.api.http).patch": "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}", + "(google.api.http).body": "android_app_data_stream", + "(google.api.method_signature)": "android_app_data_stream,update_mask" + } + }, + "CreateAndroidAppDataStream": { + "requestType": "CreateAndroidAppDataStreamRequest", + "responseType": "AndroidAppDataStream", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/androidAppDataStreams", + "(google.api.http).body": "android_app_data_stream", + "(google.api.method_signature)": "parent,android_app_data_stream" + } + }, + "ListAndroidAppDataStreams": { + "requestType": "ListAndroidAppDataStreamsRequest", + "responseType": "ListAndroidAppDataStreamsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/androidAppDataStreams", + "(google.api.method_signature)": "parent" + } + }, + "GetEnhancedMeasurementSettings": { + "requestType": "GetEnhancedMeasurementSettingsRequest", + "responseType": "EnhancedMeasurementSettings", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", + "(google.api.method_signature)": "name" + } + }, + "UpdateEnhancedMeasurementSettings": { + "requestType": "UpdateEnhancedMeasurementSettingsRequest", + "responseType": "EnhancedMeasurementSettings", + "options": { + "(google.api.http).patch": "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", + "(google.api.http).body": "enhanced_measurement_settings", + "(google.api.method_signature)": "enhanced_measurement_settings,update_mask" + } + }, + "CreateFirebaseLink": { + "requestType": "CreateFirebaseLinkRequest", + "responseType": "FirebaseLink", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/firebaseLinks", + "(google.api.http).body": "firebase_link", + "(google.api.method_signature)": "parent,firebase_link" + } + }, + "UpdateFirebaseLink": { + "requestType": "UpdateFirebaseLinkRequest", + "responseType": "FirebaseLink", + "options": { + "(google.api.http).patch": "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}", + "(google.api.http).body": "firebase_link", + "(google.api.method_signature)": "firebase_link,update_mask" + } + }, + "DeleteFirebaseLink": { + "requestType": "DeleteFirebaseLinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/firebaseLinks/*}", + "(google.api.method_signature)": "name" + } + }, + "ListFirebaseLinks": { + "requestType": "ListFirebaseLinksRequest", + "responseType": "ListFirebaseLinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/firebaseLinks", + "(google.api.method_signature)": "parent" + } + }, + "GetGlobalSiteTag": { + "requestType": "GetGlobalSiteTagRequest", + "responseType": "GlobalSiteTag", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}", + "(google.api.method_signature)": "name" + } + }, + "CreateGoogleAdsLink": { + "requestType": "CreateGoogleAdsLinkRequest", + "responseType": "GoogleAdsLink", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/googleAdsLinks", + "(google.api.http).body": "google_ads_link", + "(google.api.method_signature)": "parent,google_ads_link" + } + }, + "UpdateGoogleAdsLink": { + "requestType": "UpdateGoogleAdsLinkRequest", + "responseType": "GoogleAdsLink", + "options": { + "(google.api.http).patch": "/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}", + "(google.api.http).body": "google_ads_link", + "(google.api.method_signature)": "google_ads_link,update_mask" + } + }, + "DeleteGoogleAdsLink": { + "requestType": "DeleteGoogleAdsLinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/googleAdsLinks/*}", + "(google.api.method_signature)": "name" + } + }, + "ListGoogleAdsLinks": { + "requestType": "ListGoogleAdsLinksRequest", + "responseType": "ListGoogleAdsLinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/googleAdsLinks", + "(google.api.method_signature)": "parent" + } + }, + "GetDataSharingSettings": { + "requestType": "GetDataSharingSettingsRequest", + "responseType": "DataSharingSettings", + "options": { + "(google.api.http).get": "/v1alpha/{name=accounts/*/dataSharingSettings}", + "(google.api.method_signature)": "name" + } + } + } + }, + "GetAccountRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "ListAccountsRequest": { + "fields": { + "pageSize": { + "type": "int32", + "id": 1 + }, + "pageToken": { + "type": "string", + "id": 2 + }, + "showDeleted": { + "type": "bool", + "id": 3 + } + } + }, + "ListAccountsResponse": { + "fields": { + "accounts": { + "rule": "repeated", + "type": "Account", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteAccountRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "UpdateAccountRequest": { + "fields": { + "account": { + "type": "Account", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "ProvisionAccountTicketRequest": { + "fields": { + "account": { + "type": "Account", + "id": 1 + }, + "redirectUri": { + "type": "string", + "id": 2 + } + } + }, + "ProvisionAccountTicketResponse": { + "fields": { + "accountTicketId": { + "type": "string", + "id": 1 + } + } + }, + "GetPropertyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + } + } + }, + "ListPropertiesRequest": { + "fields": { + "filter": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "showDeleted": { + "type": "bool", + "id": 4 + } + } + }, + "ListPropertiesResponse": { + "fields": { + "properties": { + "rule": "repeated", + "type": "Property", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "UpdatePropertyRequest": { + "fields": { + "property": { + "type": "Property", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "CreatePropertyRequest": { + "fields": { + "property": { + "type": "Property", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeletePropertyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + } + } + }, + "GetUserLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + } + } + } + }, + "BatchGetUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "names": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + } + } + } + }, + "BatchGetUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "UserLink", + "id": 1 + } + } + }, + "ListUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "UserLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "AuditUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "AuditUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "AuditUserLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateUserLinkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "notifyNewUser": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "userLink": { + "type": "UserLink", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchCreateUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "notifyNewUsers": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "requests": { + "rule": "repeated", + "type": "CreateUserLinkRequest", + "id": 3 + } + } + }, + "BatchCreateUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "UserLink", + "id": 1 + } + } + }, + "UpdateUserLinkRequest": { + "fields": { + "userLink": { + "type": "UserLink", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchUpdateUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requests": { + "rule": "repeated", + "type": "UpdateUserLinkRequest", + "id": 2 + } + } + }, + "BatchUpdateUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "UserLink", + "id": 1 + } + } + }, + "DeleteUserLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + } + } + } + }, + "BatchDeleteUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requests": { + "rule": "repeated", + "type": "DeleteUserLinkRequest", + "id": 2 + } + } + }, + "GetWebDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" + } + } + } + }, + "DeleteWebDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" + } + } + } + }, + "UpdateWebDataStreamRequest": { + "fields": { + "webDataStream": { + "type": "WebDataStream", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "CreateWebDataStreamRequest": { + "fields": { + "webDataStream": { + "type": "WebDataStream", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" + } + } + } + }, + "ListWebDataStreamsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListWebDataStreamsResponse": { + "fields": { + "webDataStreams": { + "rule": "repeated", + "type": "WebDataStream", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetIosAppDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" + } + } + } + }, + "DeleteIosAppDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" + } + } + } + }, + "UpdateIosAppDataStreamRequest": { + "fields": { + "iosAppDataStream": { + "type": "IosAppDataStream", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "CreateIosAppDataStreamRequest": { + "fields": { + "iosAppDataStream": { + "type": "IosAppDataStream", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/IosAppDataStream" + } + } + } + }, + "ListIosAppDataStreamsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/IosAppDataStream" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListIosAppDataStreamsResponse": { + "fields": { + "iosAppDataStreams": { + "rule": "repeated", + "type": "IosAppDataStream", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetAndroidAppDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + } + } + }, + "DeleteAndroidAppDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + } + } + }, + "UpdateAndroidAppDataStreamRequest": { + "fields": { + "androidAppDataStream": { + "type": "AndroidAppDataStream", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "CreateAndroidAppDataStreamRequest": { + "fields": { + "androidAppDataStream": { + "type": "AndroidAppDataStream", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + } + } + }, + "ListAndroidAppDataStreamsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListAndroidAppDataStreamsResponse": { + "fields": { + "androidAppDataStreams": { + "rule": "repeated", + "type": "AndroidAppDataStream", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetEnhancedMeasurementSettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" + } + } + } + }, + "UpdateEnhancedMeasurementSettingsRequest": { + "fields": { + "enhancedMeasurementSettings": { + "type": "EnhancedMeasurementSettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "CreateFirebaseLinkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" + } + }, + "firebaseLink": { + "type": "FirebaseLink", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateFirebaseLinkRequest": { + "fields": { + "firebaseLink": { + "type": "FirebaseLink", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "DeleteFirebaseLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/FirebaseLink" + } + } + } + }, + "ListFirebaseLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" + } + } + } + }, + "ListFirebaseLinksResponse": { + "fields": { + "firebaseLinks": { + "rule": "repeated", + "type": "FirebaseLink", + "id": 1 + } + } + }, + "GetGlobalSiteTagRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GlobalSiteTag" + } + } + } + }, + "CreateGoogleAdsLinkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" + } + }, + "googleAdsLink": { + "type": "GoogleAdsLink", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateGoogleAdsLinkRequest": { + "fields": { + "googleAdsLink": { + "type": "GoogleAdsLink", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "DeleteGoogleAdsLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GoogleAdsLink" + } + } + } + }, + "ListGoogleAdsLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListGoogleAdsLinksResponse": { + "fields": { + "googleAdsLinks": { + "rule": "repeated", + "type": "GoogleAdsLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetDataSharingSettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataSharingSettings" + } + } + } + }, + "Account": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/Account", + "(google.api.resource).pattern": "accounts/{account}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "countryCode": { + "type": "string", + "id": 5 + }, + "deleted": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "Property": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/Property", + "(google.api.resource).pattern": "properties/{property}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "industryCategory": { + "type": "IndustryCategory", + "id": 6 + }, + "timeZone": { + "type": "string", + "id": 7 + }, + "currencyCode": { + "type": "string", + "id": 8 + }, + "deleted": { + "type": "bool", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "AndroidAppDataStream": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/AndroidAppDataStream", + "(google.api.resource).pattern": "properties/{property}/androidAppDataStreams/{android_app_data_stream}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "firebaseAppId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "packageName": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 6 + } + } + }, + "IosAppDataStream": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/IosAppDataStream", + "(google.api.resource).pattern": "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "firebaseAppId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "bundleId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "displayName": { + "type": "string", + "id": 6 + } + } + }, + "WebDataStream": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/WebDataStream", + "(google.api.resource).pattern": "properties/{property}/webDataStreams/{web_data_stream}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "measurementId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "firebaseAppId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "defaultUri": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UserLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/UserLink", + "(google.api.resource).pattern": "properties/{property}/userLinks/{user_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "emailAddress": { + "type": "string", + "id": 2 + }, + "directRoles": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, + "AuditUserLink": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "emailAddress": { + "type": "string", + "id": 2 + }, + "directRoles": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "effectiveRoles": { + "rule": "repeated", + "type": "string", + "id": 4 + } + } + }, + "EnhancedMeasurementSettings": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/EnhancedMeasurementSettings", + "(google.api.resource).pattern": "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "streamEnabled": { + "type": "bool", + "id": 2 + }, + "pageViewsEnabled": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "scrollsEnabled": { + "type": "bool", + "id": 4 + }, + "outboundClicksEnabled": { + "type": "bool", + "id": 5 + }, + "contentViewsEnabled": { + "type": "bool", + "id": 6 + }, + "siteSearchEnabled": { + "type": "bool", + "id": 7 + }, + "formInteractionsEnabled": { + "type": "bool", + "id": 8 + }, + "videoEngagementEnabled": { + "type": "bool", + "id": 9 + }, + "fileDownloadsEnabled": { + "type": "bool", + "id": 10 + }, + "dataTaggedElementClicksEnabled": { + "type": "bool", + "id": 11 + }, + "pageLoadsEnabled": { + "type": "bool", + "id": 12 + }, + "pageChangesEnabled": { + "type": "bool", + "id": 13 + }, + "articlesAndBlogsEnabled": { + "type": "bool", + "id": 14 + }, + "productsAndEcommerceEnabled": { + "type": "bool", + "id": 15 + }, + "searchQueryParameter": { + "type": "string", + "id": 16, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "urlQueryParameter": { + "type": "string", + "id": 17 + }, + "excludedDomains": { + "type": "string", + "id": 18 + } + } + }, + "FirebaseLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/FirebaseLink", + "(google.api.resource).pattern": "properties/{property}/firebaseLinks/{firebase_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "project": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "maximumUserAccess": { + "type": "MaximumUserAccess", + "id": 4 + } + } + }, + "GlobalSiteTag": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/GlobalSiteTag", + "(google.api.resource).pattern": "properties/{property}/globalSiteTag" + }, + "fields": { + "snippet": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "GoogleAdsLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/GoogleAdsLink", + "(google.api.resource).pattern": "properties/{property}/googleAdsLinks/{google_ads_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "customerId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "canManageClients": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "adsPersonalizationEnabled": { + "type": "google.protobuf.BoolValue", + "id": 5 + }, + "emailAddress": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "DataSharingSettings": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DataSharingSettings", + "(google.api.resource).pattern": "accounts/{account}/dataSharingSettings" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "sharingWithGoogleSupportEnabled": { + "type": "bool", + "id": 2 + }, + "sharingWithGoogleAssignedSalesEnabled": { + "type": "bool", + "id": 3 + }, + "sharingWithGoogleAnySalesEnabled": { + "type": "bool", + "id": 4 + }, + "sharingWithGoogleProductsEnabled": { + "type": "bool", + "id": 5 + }, + "sharingWithOthersEnabled": { + "type": "bool", + "id": 6 + } + } + }, + "IndustryCategory": { + "values": { + "INDUSTRY_CATEGORY_UNSPECIFIED": 0, + "AUTOMOTIVE": 1, + "BUSINESS_AND_INDUSTRIAL_MARKETS": 2, + "FINANCE": 3, + "HEALTHCARE": 4, + "TECHNOLOGY": 5, + "TRAVEL": 6, + "OTHER": 7, + "ARTS_AND_ENTERTAINMENT": 8, + "BEAUTY_AND_FITNESS": 9, + "BOOKS_AND_LITERATURE": 10, + "FOOD_AND_DRINK": 11, + "GAMES": 12, + "HOBBIES_AND_LEISURE": 13, + "HOME_AND_GARDEN": 14, + "INTERNET_AND_TELECOM": 15, + "LAW_AND_GOVERNMENT": 16, + "NEWS": 17, + "ONLINE_COMMUNITIES": 18, + "PEOPLE_AND_SOCIETY": 19, + "PETS_AND_ANIMALS": 20, + "REAL_ESTATE": 21, + "REFERENCE": 22, + "SCIENCE": 23, + "SPORTS": 24, + "JOBS_AND_EDUCATION": 25, + "SHOPPING": 26 + } + }, + "MaximumUserAccess": { + "values": { + "MAXIMUM_USER_ACCESS_UNSPECIFIED": 0, + "NO_ACCESS": 1, + "READ_AND_ANALYZE": 2, + "EDITOR_WITHOUT_LINK_MANAGEMENT": 3, + "EDITOR_INCLUDING_LINK_MANAGEMENT": 4 + } + } + } + } + } + } + } + }, + "api": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "java_multiple_files": true, + "java_outer_classname": "ClientProto", + "java_package": "com.google.api", + "objc_class_prefix": "GAPI", + "cc_enable_arenas": true + }, + "nested": { + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5 + } + }, + "resourceReference": { + "type": "google.api.ResourceReference", + "id": 1055, + "extend": "google.protobuf.FieldOptions" + }, + "resourceDefinition": { + "rule": "repeated", + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.FileOptions" + }, + "resource": { + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.MessageOptions" + }, + "ResourceDescriptor": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "pattern": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "nameField": { + "type": "string", + "id": 3 + }, + "history": { + "type": "History", + "id": 4 + }, + "plural": { + "type": "string", + "id": 5 + }, + "singular": { + "type": "string", + "id": 6 + } + }, + "nested": { + "History": { + "values": { + "HISTORY_UNSPECIFIED": 0, + "ORIGINALLY_SINGLE_PATTERN": 1, + "FUTURE_MULTI_PATTERN": 2 + } + } + } + }, + "ResourceReference": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "childType": { + "type": "string", + "id": 2 + } + } + }, + "http": { + "type": "HttpRule", + "id": 72295728, + "extend": "google.protobuf.MethodOptions" + }, + "Http": { + "fields": { + "rules": { + "rule": "repeated", + "type": "HttpRule", + "id": 1 + }, + "fullyDecodeReservedExpansion": { + "type": "bool", + "id": 2 + } + } + }, + "HttpRule": { + "oneofs": { + "pattern": { + "oneof": [ + "get", + "put", + "post", + "delete", + "patch", + "custom" + ] + } + }, + "fields": { + "selector": { + "type": "string", + "id": 1 + }, + "get": { + "type": "string", + "id": 2 + }, + "put": { + "type": "string", + "id": 3 + }, + "post": { + "type": "string", + "id": 4 + }, + "delete": { + "type": "string", + "id": 5 + }, + "patch": { + "type": "string", + "id": 6 + }, + "custom": { + "type": "CustomHttpPattern", + "id": 8 + }, + "body": { + "type": "string", + "id": 7 + }, + "responseBody": { + "type": "string", + "id": 12 + }, + "additionalBindings": { + "rule": "repeated", + "type": "HttpRule", + "id": 11 + } + } + }, + "CustomHttpPattern": { + "fields": { + "kind": { + "type": "string", + "id": 1 + }, + "path": { + "type": "string", + "id": 2 + } + } + }, + "methodSignature": { + "rule": "repeated", + "type": "string", + "id": 1051, + "extend": "google.protobuf.MethodOptions" + }, + "defaultHost": { + "type": "string", + "id": 1049, + "extend": "google.protobuf.ServiceOptions" + }, + "oauthScopes": { + "type": "string", + "id": 1050, + "extend": "google.protobuf.ServiceOptions" + } + } + }, + "protobuf": { + "options": { + "go_package": "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor", + "java_package": "com.google.protobuf", + "java_outer_classname": "DescriptorProtos", + "csharp_namespace": "Google.Protobuf.Reflection", + "objc_class_prefix": "GPB", + "cc_enable_arenas": true, + "optimize_for": "SPEED" + }, + "nested": { + "FileDescriptorSet": { + "fields": { + "file": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 1 + } + } + }, + "FileDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "package": { + "type": "string", + "id": 2 + }, + "dependency": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "publicDependency": { + "rule": "repeated", + "type": "int32", + "id": 10, + "options": { + "packed": false + } + }, + "weakDependency": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "packed": false + } + }, + "messageType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 4 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 5 + }, + "service": { + "rule": "repeated", + "type": "ServiceDescriptorProto", + "id": 6 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 7 + }, + "options": { + "type": "FileOptions", + "id": 8 + }, + "sourceCodeInfo": { + "type": "SourceCodeInfo", + "id": 9 + }, + "syntax": { + "type": "string", + "id": 12 + } + } + }, + "DescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "field": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 2 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 6 + }, + "nestedType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 3 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 4 + }, + "extensionRange": { + "rule": "repeated", + "type": "ExtensionRange", + "id": 5 + }, + "oneofDecl": { + "rule": "repeated", + "type": "OneofDescriptorProto", + "id": 8 + }, + "options": { + "type": "MessageOptions", + "id": 7 + }, + "reservedRange": { + "rule": "repeated", + "type": "ReservedRange", + "id": 9 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 10 + } + }, + "nested": { + "ExtensionRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "ExtensionRangeOptions", + "id": 3 + } + } + }, + "ReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "ExtensionRangeOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "FieldDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 3 + }, + "label": { + "type": "Label", + "id": 4 + }, + "type": { + "type": "Type", + "id": 5 + }, + "typeName": { + "type": "string", + "id": 6 + }, + "extendee": { + "type": "string", + "id": 2 + }, + "defaultValue": { + "type": "string", + "id": 7 + }, + "oneofIndex": { + "type": "int32", + "id": 9 + }, + "jsonName": { + "type": "string", + "id": 10 + }, + "options": { + "type": "FieldOptions", + "id": 8 + }, + "proto3Optional": { + "type": "bool", + "id": 17 + } + }, + "nested": { + "Type": { + "values": { + "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": { + "values": { + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3 + } + } + } + }, + "OneofDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "options": { + "type": "OneofOptions", + "id": 2 + } + } + }, + "EnumDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "value": { + "rule": "repeated", + "type": "EnumValueDescriptorProto", + "id": 2 + }, + "options": { + "type": "EnumOptions", + "id": 3 + }, + "reservedRange": { + "rule": "repeated", + "type": "EnumReservedRange", + "id": 4 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 5 + } + }, + "nested": { + "EnumReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "EnumValueDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "EnumValueOptions", + "id": 3 + } + } + }, + "ServiceDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "method": { + "rule": "repeated", + "type": "MethodDescriptorProto", + "id": 2 + }, + "options": { + "type": "ServiceOptions", + "id": 3 + } + } + }, + "MethodDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "inputType": { + "type": "string", + "id": 2 + }, + "outputType": { + "type": "string", + "id": 3 + }, + "options": { + "type": "MethodOptions", + "id": 4 + }, + "clientStreaming": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "serverStreaming": { + "type": "bool", + "id": 6, + "options": { + "default": false + } + } + } + }, + "FileOptions": { + "fields": { + "javaPackage": { + "type": "string", + "id": 1 + }, + "javaOuterClassname": { + "type": "string", + "id": 8 + }, + "javaMultipleFiles": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "javaGenerateEqualsAndHash": { + "type": "bool", + "id": 20, + "options": { + "deprecated": true + } + }, + "javaStringCheckUtf8": { + "type": "bool", + "id": 27, + "options": { + "default": false + } + }, + "optimizeFor": { + "type": "OptimizeMode", + "id": 9, + "options": { + "default": "SPEED" + } + }, + "goPackage": { + "type": "string", + "id": 11 + }, + "ccGenericServices": { + "type": "bool", + "id": 16, + "options": { + "default": false + } + }, + "javaGenericServices": { + "type": "bool", + "id": 17, + "options": { + "default": false + } + }, + "pyGenericServices": { + "type": "bool", + "id": 18, + "options": { + "default": false + } + }, + "phpGenericServices": { + "type": "bool", + "id": 42, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 23, + "options": { + "default": false + } + }, + "ccEnableArenas": { + "type": "bool", + "id": 31, + "options": { + "default": true + } + }, + "objcClassPrefix": { + "type": "string", + "id": 36 + }, + "csharpNamespace": { + "type": "string", + "id": 37 + }, + "swiftPrefix": { + "type": "string", + "id": 39 + }, + "phpClassPrefix": { + "type": "string", + "id": 40 + }, + "phpNamespace": { + "type": "string", + "id": 41 + }, + "phpMetadataNamespace": { + "type": "string", + "id": 44 + }, + "rubyPackage": { + "type": "string", + "id": 45 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 38, + 38 + ] + ], + "nested": { + "OptimizeMode": { + "values": { + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3 + } + } + } + }, + "MessageOptions": { + "fields": { + "messageSetWireFormat": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "noStandardDescriptorAccessor": { + "type": "bool", + "id": 2, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "mapEntry": { + "type": "bool", + "id": 7 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 8, + 8 + ], + [ + 9, + 9 + ] + ] + }, + "FieldOptions": { + "fields": { + "ctype": { + "type": "CType", + "id": 1, + "options": { + "default": "STRING" + } + }, + "packed": { + "type": "bool", + "id": 2 + }, + "jstype": { + "type": "JSType", + "id": 6, + "options": { + "default": "JS_NORMAL" + } + }, + "lazy": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "weak": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ] + ], + "nested": { + "CType": { + "values": { + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2 + } + }, + "JSType": { + "values": { + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2 + } + } + } + }, + "OneofOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "EnumOptions": { + "fields": { + "allowAlias": { + "type": "bool", + "id": 2 + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 5, + 5 + ] + ] + }, + "EnumValueOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "ServiceOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "MethodOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "idempotencyLevel": { + "type": "IdempotencyLevel", + "id": 34, + "options": { + "default": "IDEMPOTENCY_UNKNOWN" + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "nested": { + "IdempotencyLevel": { + "values": { + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2 + } + } + } + }, + "UninterpretedOption": { + "fields": { + "name": { + "rule": "repeated", + "type": "NamePart", + "id": 2 + }, + "identifierValue": { + "type": "string", + "id": 3 + }, + "positiveIntValue": { + "type": "uint64", + "id": 4 + }, + "negativeIntValue": { + "type": "int64", + "id": 5 + }, + "doubleValue": { + "type": "double", + "id": 6 + }, + "stringValue": { + "type": "bytes", + "id": 7 + }, + "aggregateValue": { + "type": "string", + "id": 8 + } + }, + "nested": { + "NamePart": { + "fields": { + "namePart": { + "rule": "required", + "type": "string", + "id": 1 + }, + "isExtension": { + "rule": "required", + "type": "bool", + "id": 2 + } + } + } + } + }, + "SourceCodeInfo": { + "fields": { + "location": { + "rule": "repeated", + "type": "Location", + "id": 1 + } + }, + "nested": { + "Location": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "span": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "leadingComments": { + "type": "string", + "id": 3 + }, + "trailingComments": { + "type": "string", + "id": 4 + }, + "leadingDetachedComments": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } + } + } + }, + "GeneratedCodeInfo": { + "fields": { + "annotation": { + "rule": "repeated", + "type": "Annotation", + "id": 1 + } + }, + "nested": { + "Annotation": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "sourceFile": { + "type": "string", + "id": 2 + }, + "begin": { + "type": "int32", + "id": 3 + }, + "end": { + "type": "int32", + "id": 4 + } + } + } + } + }, + "Timestamp": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, + "DoubleValue": { + "fields": { + "value": { + "type": "double", + "id": 1 + } + } + }, + "FloatValue": { + "fields": { + "value": { + "type": "float", + "id": 1 + } + } + }, + "Int64Value": { + "fields": { + "value": { + "type": "int64", + "id": 1 + } + } + }, + "UInt64Value": { + "fields": { + "value": { + "type": "uint64", + "id": 1 + } + } + }, + "Int32Value": { + "fields": { + "value": { + "type": "int32", + "id": 1 + } + } + }, + "UInt32Value": { + "fields": { + "value": { + "type": "uint32", + "id": 1 + } + } + }, + "BoolValue": { + "fields": { + "value": { + "type": "bool", + "id": 1 + } + } + }, + "StringValue": { + "fields": { + "value": { + "type": "string", + "id": 1 + } + } + }, + "BytesValue": { + "fields": { + "value": { + "type": "bytes", + "id": 1 + } + } + }, + "Empty": { + "fields": {} + }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md new file mode 100644 index 00000000000..6ce75c14ae7 --- /dev/null +++ b/packages/google-analytics-admin/samples/README.md @@ -0,0 +1,50 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Google Analytics Admin: Node.js Samples](https://github.com/googleapis/nodejs-analytics-admin) + +[![Open in Cloud Shell][shell_img]][shell_link] + + + +## Table of Contents + +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [Quickstart](#quickstart) + +## Before you begin + +Before running the samples, make sure you've followed the steps outlined in +[Using the client library](https://github.com/googleapis/nodejs-analytics-admin#using-the-client-library). + +`cd samples` + +`npm install` + +`cd ..` + +## Samples + + + +### Quickstart + +View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node samples/quickstart.js` + + + + + + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/README.md +[product-docs]: https://developers.google.com/analytics-admin/ diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json new file mode 100644 index 00000000000..d6d6e4684f5 --- /dev/null +++ b/packages/google-analytics-admin/samples/package.json @@ -0,0 +1,23 @@ +{ + "name": "analytics-admin-samples", + "private": true, + "license": "Apache-2.0", + "author": "Google LLC", + "engines": { + "node": ">=10" + }, + "files": [ + "*.js" + ], + "scripts": { + "test": "c8 mocha --timeout 600000 test/*.js" + }, + "dependencies": { + "@google-analytics/admin": "^0.1.0" + }, + "devDependencies": { + "c8": "^7.1.0", + "chai": "^4.2.0", + "mocha": "^7.1.0" + } +} diff --git a/packages/google-analytics-admin/samples/quickstart.js b/packages/google-analytics-admin/samples/quickstart.js new file mode 100644 index 00000000000..f5b662ab719 --- /dev/null +++ b/packages/google-analytics-admin/samples/quickstart.js @@ -0,0 +1,44 @@ +// 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. +// + +'use strict'; + +async function main( + name = 'my-name' // Get an account for a name. +) { + // [START analytics_admin_quickstart] + // Imports the Google Cloud client library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin'); + + // Creates a client + const client = new AnalyticsAdminServiceClient(); + + // name = 'my-name' // Get an account for a name. + async function getAccount() { + const [account] = await client.getAccount({ + name, + }); + console.info(account); + } + getAccount(); + // [END analytics_admin_quickstart] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/packages/google-analytics-admin/samples/test/quickstart.js b/packages/google-analytics-admin/samples/test/quickstart.js new file mode 100644 index 00000000000..f33a8fab9b8 --- /dev/null +++ b/packages/google-analytics-admin/samples/test/quickstart.js @@ -0,0 +1,37 @@ +// +// 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'; + +// const path = require('path'); +// const {assert} = require('chai'); +// const cp = require('child_process'); +const {describe, it} = require('mocha'); + +// const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +// const cwd = path.join(__dirname, '..'); + +// const name = 'google-cloud-node'; + +describe('Quickstart', () => { + it('should run quickstart', async () => { + // TODO: find out an actual test for our API client: + // const stdout = execSync(`node ./quickstart.js ${name}`, {cwd}); + // assert.match(stdout, /insufficient authentication scopes/); + }); +}); diff --git a/packages/google-analytics-admin/src/index.ts b/packages/google-analytics-admin/src/index.ts new file mode 100644 index 00000000000..8301fe612d0 --- /dev/null +++ b/packages/google-analytics-admin/src/index.ts @@ -0,0 +1,24 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as v1alpha from './v1alpha'; +const AnalyticsAdminServiceClient = v1alpha.AnalyticsAdminServiceClient; +export {v1alpha, AnalyticsAdminServiceClient}; +export default {v1alpha, AnalyticsAdminServiceClient}; +import * as protos from '../protos/protos'; +export {protos}; diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts new file mode 100644 index 00000000000..761b51dec6f --- /dev/null +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -0,0 +1,6390 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as gax from 'google-gax'; +import { + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import * as path from 'path'; + +import {Transform} from 'stream'; +import {RequestType} from 'google-gax/build/src/apitypes'; +import * as protos from '../../protos/protos'; +import * as gapicConfig from './analytics_admin_service_client_config.json'; + +const version = require('../../../package.json').version; + +/** + * Service Interface for the Analytics Admin API (App+Web). + * @class + * @memberof v1alpha + */ +export class AnalyticsAdminServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + analyticsAdminServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of AnalyticsAdminServiceClient. + * + * @param {object} [options] - The configuration object. See the subsequent + * parameters for more details. + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + */ + + constructor(opts?: ClientOptions) { + // Ensure that options include the service address and port. + const staticMembers = this + .constructor as typeof AnalyticsAdminServiceClient; + const servicePath = + opts && opts.servicePath + ? opts.servicePath + : opts && opts.apiEndpoint + ? opts.apiEndpoint + : staticMembers.servicePath; + const port = opts && opts.port ? opts.port : staticMembers.port; + + if (!opts) { + opts = {servicePath, port}; + } + opts.servicePath = opts.servicePath || servicePath; + opts.port = opts.port || port; + + // users can override the config from client side, like retry codes name. + // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546 + // The way to override client config for Showcase API: + // + // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}} + // const showcaseClient = new showcaseClient({ projectId, customConfig }); + opts.clientConfig = opts.clientConfig || {}; + + // If we're running in browser, it's OK to omit `fallback` since + // google-gax has `browser` field in its `package.json`. + // For Electron (which does not respect `browser` field), + // pass `{fallback: true}` to the AnalyticsAdminServiceClient constructor. + this._gaxModule = opts.fallback ? gax.fallback : gax; + + // Create a `gaxGrpc` object, with any grpc-specific options + // sent to the client. + opts.scopes = (this + .constructor as typeof AnalyticsAdminServiceClient).scopes; + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + // For Node.js, pass the path to JSON proto file. + // For browsers, pass the JSON content. + + const nodejsProtoPath = path.join( + __dirname, + '..', + '..', + 'protos', + 'protos.json' + ); + this._protos = this._gaxGrpc.loadProto( + opts.fallback + ? // eslint-disable-next-line @typescript-eslint/no-var-requires + require('../../protos/protos.json') + : nodejsProtoPath + ); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + accountPathTemplate: new this._gaxModule.PathTemplate( + 'accounts/{account}' + ), + accountUserLinkPathTemplate: new this._gaxModule.PathTemplate( + 'accounts/{account}/userLinks/{user_link}' + ), + androidAppDataStreamPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/androidAppDataStreams/{android_app_data_stream}' + ), + dataSharingSettingsPathTemplate: new this._gaxModule.PathTemplate( + 'accounts/{account}/dataSharingSettings' + ), + enhancedMeasurementSettingsPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings' + ), + firebaseLinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/firebaseLinks/{firebase_link}' + ), + globalSiteTagPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/globalSiteTag' + ), + googleAdsLinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/googleAdsLinks/{google_ads_link}' + ), + iosAppDataStreamPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/iosAppDataStreams/{ios_app_data_stream}' + ), + propertyPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}' + ), + propertyUserLinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/userLinks/{user_link}' + ), + webDataStreamPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/webDataStreams/{web_data_stream}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listAccounts: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'accounts' + ), + listProperties: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'properties' + ), + listUserLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'userLinks' + ), + auditUserLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'userLinks' + ), + listWebDataStreams: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'webDataStreams' + ), + listIosAppDataStreams: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'iosAppDataStreams' + ), + listAndroidAppDataStreams: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'androidAppDataStreams' + ), + listGoogleAdsLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'googleAdsLinks' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.analytics.admin.v1alpha.AnalyticsAdminService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.analyticsAdminServiceStub) { + return this.analyticsAdminServiceStub; + } + + // Put together the "service stub" for + // google.analytics.admin.v1alpha.AnalyticsAdminService. + this.analyticsAdminServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.analytics.admin.v1alpha.AnalyticsAdminService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.analytics.admin.v1alpha + .AnalyticsAdminService, + this._opts + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const analyticsAdminServiceStubMethods = [ + 'getAccount', + 'listAccounts', + 'deleteAccount', + 'updateAccount', + 'provisionAccountTicket', + 'getProperty', + 'listProperties', + 'createProperty', + 'deleteProperty', + 'updateProperty', + 'getUserLink', + 'batchGetUserLinks', + 'listUserLinks', + 'auditUserLinks', + 'createUserLink', + 'batchCreateUserLinks', + 'updateUserLink', + 'batchUpdateUserLinks', + 'deleteUserLink', + 'batchDeleteUserLinks', + 'getWebDataStream', + 'deleteWebDataStream', + 'updateWebDataStream', + 'createWebDataStream', + 'listWebDataStreams', + 'getIosAppDataStream', + 'deleteIosAppDataStream', + 'updateIosAppDataStream', + 'createIosAppDataStream', + 'listIosAppDataStreams', + 'getAndroidAppDataStream', + 'deleteAndroidAppDataStream', + 'updateAndroidAppDataStream', + 'createAndroidAppDataStream', + 'listAndroidAppDataStreams', + 'getEnhancedMeasurementSettings', + 'updateEnhancedMeasurementSettings', + 'createFirebaseLink', + 'updateFirebaseLink', + 'deleteFirebaseLink', + 'listFirebaseLinks', + 'getGlobalSiteTag', + 'createGoogleAdsLink', + 'updateGoogleAdsLink', + 'deleteGoogleAdsLink', + 'listGoogleAdsLinks', + 'getDataSharingSettings', + ]; + for (const methodName of analyticsAdminServiceStubMethods) { + const callPromise = this.analyticsAdminServiceStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + this.descriptors.page[methodName] || + this.descriptors.stream[methodName] || + this.descriptors.longrunning[methodName] + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.analyticsAdminServiceStub; + } + + /** + * The DNS address for this API service. + */ + static get servicePath() { + return 'analyticsadmin.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + */ + static get apiEndpoint() { + return 'analyticsadmin.googleapis.com'; + } + + /** + * The port for this API service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/analytics.edit', + 'https://www.googleapis.com/auth/analytics.manage.users', + 'https://www.googleapis.com/auth/analytics.manage.users.readonly', + 'https://www.googleapis.com/auth/analytics.readonly', + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @param {function(Error, string)} callback - the callback to + * be called with the current project Id. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + getAccount( + request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount, + protos.google.analytics.admin.v1alpha.IGetAccountRequest | undefined, + {} | undefined + ] + >; + getAccount( + request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IGetAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAccount( + request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IGetAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for a single Account. + * Throws "Target not found" if no such account found, or if caller does not + * have permissions to access it. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getAccount( + request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IGetAccountRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IGetAccountRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount, + protos.google.analytics.admin.v1alpha.IGetAccountRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getAccount(request, options, callback); + } + deleteAccount( + request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDeleteAccountRequest | undefined, + {} | undefined + ] + >; + deleteAccount( + request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteAccount( + request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Marks target Account as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted accounts. + * However, they can be restored using the Trash Can UI. + * + * If the accounts are not restored before the expiration time, the account + * and all child resources (eg: Properties, GoogleAdsLinks, Streams, + * UserLinks) will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteAccount( + request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDeleteAccountRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteAccount(request, options, callback); + } + updateAccount( + request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount, + protos.google.analytics.admin.v1alpha.IUpdateAccountRequest | undefined, + {} | undefined + ] + >; + updateAccount( + request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAccount( + request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates an account. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Account} request.account + * Required. The account to update. + * The account's `name` field is used to identify the account. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateAccount( + request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAccount, + | protos.google.analytics.admin.v1alpha.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount, + protos.google.analytics.admin.v1alpha.IUpdateAccountRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'account.name': request.account!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateAccount(request, options, callback); + } + provisionAccountTicket( + request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, + ( + | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest + | undefined + ), + {} | undefined + ] + >; + provisionAccountTicket( + request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + > + ): void; + provisionAccountTicket( + request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Requests a ticket for creating an account. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Account} request.account + * The account to create. + * @param {string} request.redirectUri + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Developers Console as a Redirect URI + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ProvisionAccountTicketResponse]{@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + provisionAccountTicket( + request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, + ( + | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.provisionAccountTicket( + request, + options, + callback + ); + } + getProperty( + request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty, + protos.google.analytics.admin.v1alpha.IGetPropertyRequest | undefined, + {} | undefined + ] + >; + getProperty( + request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getProperty( + request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for a single "App+Web" Property. + * + * Throws "Target not found" if no such property found, if property is not + * of the type "App+Web", or if caller does not have permissions to access it. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getProperty( + request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty, + protos.google.analytics.admin.v1alpha.IGetPropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getProperty(request, options, callback); + } + createProperty( + request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty, + protos.google.analytics.admin.v1alpha.ICreatePropertyRequest | undefined, + {} | undefined + ] + >; + createProperty( + request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createProperty( + request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates an "App+Web" property with the specified location and attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Property} request.property + * Required. The property to create. + * Note: the supplied property must specify its parent. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createProperty( + request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty, + protos.google.analytics.admin.v1alpha.ICreatePropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.createProperty(request, options, callback); + } + deleteProperty( + request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | undefined, + {} | undefined + ] + >; + deleteProperty( + request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteProperty( + request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Marks target Property as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted properties. + * However, they can be restored using the Trash Can UI. + * + * If the properties are not restored before the expiration time, the Property + * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found, or is not an App+Web Property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteProperty( + request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteProperty(request, options, callback); + } + updateProperty( + request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty, + protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest | undefined, + {} | undefined + ] + >; + updateProperty( + request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateProperty( + request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Property} request.property + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateProperty( + request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty, + protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'property.name': request.property!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateProperty(request, options, callback); + } + getUserLink( + request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink, + protos.google.analytics.admin.v1alpha.IGetUserLinkRequest | undefined, + {} | undefined + ] + >; + getUserLink( + request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IGetUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getUserLink( + request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IGetUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Gets information about a user's link to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: accounts/1234/userLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getUserLink( + request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IGetUserLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IGetUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink, + protos.google.analytics.admin.v1alpha.IGetUserLinkRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getUserLink(request, options, callback); + } + batchGetUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest + | undefined + ), + {} | undefined + ] + >; + batchGetUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchGetUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Gets information about multiple users' links to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are + * for. The parent of all provided values for the 'names' field must match + * this field. + * Example format: accounts/1234 + * @param {string[]} request.names + * Required. The names of the user links to retrieve. + * A maximum of 1000 user links can be retrieved in a batch. + * Format: accounts/{accountId}/userLinks/{userLinkId} + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchGetUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + batchGetUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.batchGetUserLinks(request, options, callback); + } + createUserLink( + request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink, + protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest | undefined, + {} | undefined + ] + >; + createUserLink( + request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createUserLink( + request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a user link on an account or property. + * + * If the user with the specified email already has permissions on the + * account or property, then the user's existing permissions will be unioned + * with the permissions specified in the new UserLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {boolean} [request.notifyNewUser] + * Optional. If notify_new_user is set, then email new user that they've been given + * permissions on the resource. + * @param {google.analytics.admin.v1alpha.UserLink} request.userLink + * Required. The user link to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createUserLink( + request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink, + protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createUserLink(request, options, callback); + } + batchCreateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest + | undefined + ), + {} | undefined + ] + >; + batchCreateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchCreateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates information about multiple users' links to an account or property. + * + * This method is transactional. If any UserLink cannot be created, none of + * the UserLinks will be created. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are for. + * This field is required. The parent field in the CreateUserLinkRequest + * messages must either be empty or match this field. + * Example format: accounts/1234 + * @param {boolean} [request.notifyNewUsers] + * Optional. If notify_new_users is set, then email new users that they've been given + * permissions on the resource. + * @param {number[]} request.requests + * The requests specifying the user links to create. + * A maximum of 1000 user links can be created in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchCreateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + batchCreateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.batchCreateUserLinks(request, options, callback); + } + updateUserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink, + protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest | undefined, + {} | undefined + ] + >; + updateUserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateUserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a user link on an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.UserLink} request.userLink + * Required. The user link to update. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateUserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IUserLink, + | protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink, + protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'user_link.name': request.userLink!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateUserLink(request, options, callback); + } + batchUpdateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest + | undefined + ), + {} | undefined + ] + >; + batchUpdateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchUpdateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates information about multiple users' links to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are + * for. The parent field in the UpdateUserLinkRequest messages must either be + * empty or match this field. + * Example format: accounts/1234 + * @param {number[]} request.requests + * The requests specifying the user links to update. + * A maximum of 1000 user links can be updated in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchUpdateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + batchUpdateUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, + | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.batchUpdateUserLinks(request, options, callback); + } + deleteUserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest | undefined, + {} | undefined + ] + >; + deleteUserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteUserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a user link on an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: accounts/1234/userLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteUserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteUserLink(request, options, callback); + } + batchDeleteUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest + | undefined + ), + {} | undefined + ] + >; + batchDeleteUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchDeleteUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes information about multiple users' links to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are + * for. The parent of all values for user link names to delete must match this + * field. + * Example format: accounts/1234 + * @param {number[]} request.requests + * The requests specifying the user links to update. + * A maximum of 1000 user links can be updated in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + batchDeleteUserLinks( + request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.batchDeleteUserLinks(request, options, callback); + } + getWebDataStream( + request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream, + ( + | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + getWebDataStream( + request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getWebDataStream( + request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for a single WebDataStream + * + * Throws "Target not found" if no such web data stream found, or if the + * caller does not have permissions to access it. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the web data stream to lookup. + * Format: properties/{property_id}/webDataStreams/{stream_id} + * Example: "properties/123/webDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getWebDataStream( + request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream, + ( + | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getWebDataStream(request, options, callback); + } + deleteWebDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + deleteWebDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteWebDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a web stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the web data stream to delete. + * Format: properties/{property_id}/webDataStreams/{stream_id} + * Example: "properties/123/webDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteWebDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteWebDataStream(request, options, callback); + } + updateWebDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + updateWebDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateWebDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a web stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream + * Required. The web stream to update. + * The `name` field is used to identify the web stream to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateWebDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'web_data_stream.name': request.webDataStream!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateWebDataStream(request, options, callback); + } + createWebDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + createWebDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createWebDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a web stream with the specified location and attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream + * Required. The web stream to create. + * @param {string} request.parent + * Required. The parent resource where this web data stream will be created. + * Format: properties/123 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createWebDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IWebDataStream, + | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createWebDataStream(request, options, callback); + } + getIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + getIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for a single IosAppDataStream + * + * Throws "Target not found" if no such iOS app data stream found, or if the + * caller does not have permissions to access it. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the iOS app data stream to lookup. + * Format: properties/{property_id}/iosAppDataStreams/{stream_id} + * Example: "properties/123/iosAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getIosAppDataStream(request, options, callback); + } + deleteIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + deleteIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes an iOS app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the iOS app data stream to delete. + * Format: properties/{property_id}/iosAppDataStreams/{stream_id} + * Example: "properties/123/iosAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteIosAppDataStream( + request, + options, + callback + ); + } + updateIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + updateIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates an iOS app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.IosAppDataStream} request.iosAppDataStream + * Required. The iOS app stream to update. + * The `name` field is used to identify the iOS app stream to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'ios_app_data_stream.name': request.iosAppDataStream!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateIosAppDataStream( + request, + options, + callback + ); + } + createIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + createIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates an iOS app data stream with the specified location and attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.IosAppDataStream} request.iosAppDataStream + * Required. The iOS app data stream to create. + * @param {string} request.parent + * Required. The parent resource where this ios app data stream will be created. + * Format: properties/123 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createIosAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createIosAppDataStream( + request, + options, + callback + ); + } + getAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + getAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for a single AndroidAppDataStream + * + * Throws "Target not found" if no such android app data stream found, or if + * the caller does not have permissions to access it. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the android app data stream to lookup. + * Format: properties/{property_id}/androidAppDataStreams/{stream_id} + * Example: "properties/123/androidAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getAndroidAppDataStream( + request, + options, + callback + ); + } + deleteAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + deleteAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes an android app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the android app data stream to delete. + * Format: properties/{property_id}/androidAppDataStreams/{stream_id} + * Example: "properties/123/androidAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteAndroidAppDataStream( + request, + options, + callback + ); + } + updateAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + updateAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates an android app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} request.androidAppDataStream + * Required. The android app stream to update. + * The `name` field is used to identify the android app stream to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'android_app_data_stream.name': request.androidAppDataStream!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateAndroidAppDataStream( + request, + options, + callback + ); + } + createAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + createAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates an android app stream with the specified location and attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} request.androidAppDataStream + * Required. The android app stream to create. + * @param {string} request.parent + * Required. The parent resource where this android app data stream will be created. + * Format: properties/123 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createAndroidAppDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createAndroidAppDataStream( + request, + options, + callback + ); + } + getEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Returns the singleton enhanced measurement settings for this web stream. + * Note that the stream must enable enhanced measurement for these settings to + * take effect. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: + * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings + * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getEnhancedMeasurementSettings( + request, + options, + callback + ); + } + updateEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest + | undefined + ), + {} | undefined + ] + >; + updateEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates the singleton enhanced measurement settings for this web stream. + * Note that the stream must enable enhanced measurement for these settings to + * take effect. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} request.enhancedMeasurementSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateEnhancedMeasurementSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'enhanced_measurement_settings.name': + request.enhancedMeasurementSettings!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateEnhancedMeasurementSettings( + request, + options, + callback + ); + } + createFirebaseLink( + request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFirebaseLink, + ( + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + >; + createFirebaseLink( + request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createFirebaseLink( + request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a FirebaseLink. + * + * Properties can have at most one FirebaseLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink + * Required. The Firebase link to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createFirebaseLink( + request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFirebaseLink, + ( + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createFirebaseLink(request, options, callback); + } + updateFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFirebaseLink, + ( + | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + >; + updateFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a FirebaseLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink + * Required. The Firebase link to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFirebaseLink, + ( + | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'firebase_link.name': request.firebaseLink!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateFirebaseLink(request, options, callback); + } + deleteFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + >; + deleteFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a FirebaseLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteFirebaseLink(request, options, callback); + } + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest + | undefined + ), + {} | undefined + ] + >; + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListFirebaseLinksResponse]{@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, + ( + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listFirebaseLinks(request, options, callback); + } + getGlobalSiteTag( + request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + ( + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | undefined + ), + {} | undefined + ] + >; + getGlobalSiteTag( + request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getGlobalSiteTag( + request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Returns the Site Tag for the specified web stream. + * Site Tags are immutable singletons. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/webDataStreams/456/globalSiteTag" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GlobalSiteTag]{@link google.analytics.admin.v1alpha.GlobalSiteTag}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getGlobalSiteTag( + request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + ( + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getGlobalSiteTag(request, options, callback); + } + createGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + >; + createGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a GoogleAdsLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink + * Required. The GoogleAdsLink to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createGoogleAdsLink(request, options, callback); + } + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + >; + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a GoogleAdsLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink + * The GoogleAdsLink to update + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'google_ads_link.name': request.googleAdsLink!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); + } + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + >; + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a GoogleAdsLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: properties/1234/googleAdsLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); + } + getDataSharingSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getDataSharingSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataSharingSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Get data sharing settings on an account. + * Data sharing settings are singletons. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataSharingSettings]{@link google.analytics.admin.v1alpha.DataSharingSettings}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getDataSharingSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getDataSharingSettings( + request, + options, + callback + ); + } + + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + >; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have App+Web properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [Account]{@link google.analytics.admin.v1alpha.Account} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListAccountsRequest]{@link google.analytics.admin.v1alpha.ListAccountsRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListAccountsResponse]{@link google.analytics.admin.v1alpha.ListAccountsResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.listAccounts(request, options, callback); + } + + /** + * Equivalent to {@link listAccounts}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listAccounts} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + */ + listAccountsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listAccounts}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listAccountsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + >; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + /** + * Returns child Properties under the specified parent Account. + * + * Only "App+Web" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [Property]{@link google.analytics.admin.v1alpha.Property} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListPropertiesRequest]{@link google.analytics.admin.v1alpha.ListPropertiesRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListPropertiesResponse]{@link google.analytics.admin.v1alpha.ListPropertiesResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.listProperties(request, options, callback); + } + + /** + * Equivalent to {@link listProperties}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listProperties} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. + */ + listPropertiesStream( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listProperties.createStream( + this.innerApiCalls.listProperties as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listProperties}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listPropertiesAsync( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listProperties.asyncIterate( + this.innerApiCalls['listProperties'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse + ] + >; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + /** + * Lists all user links on an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListUserLinksRequest]{@link google.analytics.admin.v1alpha.ListUserLinksRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListUserLinksResponse]{@link google.analytics.admin.v1alpha.ListUserLinksResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listUserLinks(request, options, callback); + } + + /** + * Equivalent to {@link listUserLinks}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listUserLinks} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. + */ + listUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listUserLinks.createStream( + this.innerApiCalls.listUserLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listUserLinks}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listUserLinks.asyncIterate( + this.innerApiCalls['listUserLinks'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + ] + >; + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): void; + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): void; + /** + * Lists all user links on an account or property, including implicit ones + * that come from effective permissions granted by groups or organization + * admin roles. + * + * If a returned user link does not have direct permissions, they cannot + * be removed from the account or property directly with the DeleteUserLink + * command. They have to be removed from the group/etc that gives them + * permissions, which is currently only usable/discoverable in the GA or GMP + * UIs. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. + * @param {string} request.pageToken + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [AuditUserLinksRequest]{@link google.analytics.admin.v1alpha.AuditUserLinksRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [AuditUserLinksResponse]{@link google.analytics.admin.v1alpha.AuditUserLinksResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.auditUserLinks(request, options, callback); + } + + /** + * Equivalent to {@link auditUserLinks}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link auditUserLinks} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. + * @param {string} request.pageToken + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. + */ + auditUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.auditUserLinks.createStream( + this.innerApiCalls.auditUserLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link auditUserLinks}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. + * @param {string} request.pageToken + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + auditUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.auditUserLinks.asyncIterate( + this.innerApiCalls['auditUserLinks'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream[], + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + ] + >; + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): void; + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): void; + /** + * Returns child web data streams under the specified parent property. + * + * Web data streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant web data streams are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListWebDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListWebDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListWebDataStreamsRequest]{@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListWebDataStreamsResponse]{@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream[], + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listWebDataStreams(request, options, callback); + } + + /** + * Equivalent to {@link listWebDataStreams}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listWebDataStreams} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListWebDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListWebDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} on 'data' event. + */ + listWebDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listWebDataStreams.createStream( + this.innerApiCalls.listWebDataStreams as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listWebDataStreams}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListWebDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListWebDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listWebDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listWebDataStreams.asyncIterate( + this.innerApiCalls['listWebDataStreams'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream[], + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + ] + >; + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IIosAppDataStream + > + ): void; + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IIosAppDataStream + > + ): void; + /** + * Returns child iOS app data streams under the specified parent property. + * + * iOS app data streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant iOS app data streams are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListIosAppDataStreamsRequest]{@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListIosAppDataStreamsResponse]{@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IIosAppDataStream + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IIosAppDataStream + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream[], + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listIosAppDataStreams(request, options, callback); + } + + /** + * Equivalent to {@link listIosAppDataStreams}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listIosAppDataStreams} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} on 'data' event. + */ + listIosAppDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listIosAppDataStreams.createStream( + this.innerApiCalls.listIosAppDataStreams as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listIosAppDataStreams}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listIosAppDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listIosAppDataStreams.asyncIterate( + this.innerApiCalls['listIosAppDataStreams'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + ] + >; + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + > + ): void; + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + > + ): void; + /** + * Returns child android app streams under the specified parent property. + * + * Android app streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant android app streams are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to limit results to app streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListAndroidAppDataStreamsRequest]{@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListAndroidAppDataStreamsResponse]{@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listAndroidAppDataStreams( + request, + options, + callback + ); + } + + /** + * Equivalent to {@link listAndroidAppDataStreams}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listAndroidAppDataStreams} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to limit results to app streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} on 'data' event. + */ + listAndroidAppDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAndroidAppDataStreams.createStream( + this.innerApiCalls.listAndroidAppDataStreams as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listAndroidAppDataStreams}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to limit results to app streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listAndroidAppDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + options?: gax.CallOptions + ): AsyncIterable< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + > { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAndroidAppDataStreams.asyncIterate( + this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable< + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + >; + } + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + ] + >; + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink + > + ): void; + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink + > + ): void; + /** + * Lists GoogleAdsLinks on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListGoogleAdsLinksRequest]{@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListGoogleAdsLinksResponse]{@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); + } + + /** + * Equivalent to {@link listGoogleAdsLinks}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listGoogleAdsLinks} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. + */ + listGoogleAdsLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listGoogleAdsLinks.createStream( + this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listGoogleAdsLinks}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listGoogleAdsLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listGoogleAdsLinks.asyncIterate( + this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified account resource name string. + * + * @param {string} account + * @returns {string} Resource name string. + */ + accountPath(account: string) { + return this.pathTemplates.accountPathTemplate.render({ + account: account, + }); + } + + /** + * Parse the account from Account resource. + * + * @param {string} accountName + * A fully-qualified path representing Account resource. + * @returns {string} A string representing the account. + */ + matchAccountFromAccountName(accountName: string) { + return this.pathTemplates.accountPathTemplate.match(accountName).account; + } + + /** + * Return a fully-qualified accountUserLink resource name string. + * + * @param {string} account + * @param {string} user_link + * @returns {string} Resource name string. + */ + accountUserLinkPath(account: string, userLink: string) { + return this.pathTemplates.accountUserLinkPathTemplate.render({ + account: account, + user_link: userLink, + }); + } + + /** + * Parse the account from AccountUserLink resource. + * + * @param {string} accountUserLinkName + * A fully-qualified path representing account_user_link resource. + * @returns {string} A string representing the account. + */ + matchAccountFromAccountUserLinkName(accountUserLinkName: string) { + return this.pathTemplates.accountUserLinkPathTemplate.match( + accountUserLinkName + ).account; + } + + /** + * Parse the user_link from AccountUserLink resource. + * + * @param {string} accountUserLinkName + * A fully-qualified path representing account_user_link resource. + * @returns {string} A string representing the user_link. + */ + matchUserLinkFromAccountUserLinkName(accountUserLinkName: string) { + return this.pathTemplates.accountUserLinkPathTemplate.match( + accountUserLinkName + ).user_link; + } + + /** + * Return a fully-qualified androidAppDataStream resource name string. + * + * @param {string} property + * @param {string} android_app_data_stream + * @returns {string} Resource name string. + */ + androidAppDataStreamPath(property: string, androidAppDataStream: string) { + return this.pathTemplates.androidAppDataStreamPathTemplate.render({ + property: property, + android_app_data_stream: androidAppDataStream, + }); + } + + /** + * Parse the property from AndroidAppDataStream resource. + * + * @param {string} androidAppDataStreamName + * A fully-qualified path representing AndroidAppDataStream resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromAndroidAppDataStreamName(androidAppDataStreamName: string) { + return this.pathTemplates.androidAppDataStreamPathTemplate.match( + androidAppDataStreamName + ).property; + } + + /** + * Parse the android_app_data_stream from AndroidAppDataStream resource. + * + * @param {string} androidAppDataStreamName + * A fully-qualified path representing AndroidAppDataStream resource. + * @returns {string} A string representing the android_app_data_stream. + */ + matchAndroidAppDataStreamFromAndroidAppDataStreamName( + androidAppDataStreamName: string + ) { + return this.pathTemplates.androidAppDataStreamPathTemplate.match( + androidAppDataStreamName + ).android_app_data_stream; + } + + /** + * Return a fully-qualified dataSharingSettings resource name string. + * + * @param {string} account + * @returns {string} Resource name string. + */ + dataSharingSettingsPath(account: string) { + return this.pathTemplates.dataSharingSettingsPathTemplate.render({ + account: account, + }); + } + + /** + * Parse the account from DataSharingSettings resource. + * + * @param {string} dataSharingSettingsName + * A fully-qualified path representing DataSharingSettings resource. + * @returns {string} A string representing the account. + */ + matchAccountFromDataSharingSettingsName(dataSharingSettingsName: string) { + return this.pathTemplates.dataSharingSettingsPathTemplate.match( + dataSharingSettingsName + ).account; + } + + /** + * Return a fully-qualified enhancedMeasurementSettings resource name string. + * + * @param {string} property + * @param {string} web_data_stream + * @returns {string} Resource name string. + */ + enhancedMeasurementSettingsPath(property: string, webDataStream: string) { + return this.pathTemplates.enhancedMeasurementSettingsPathTemplate.render({ + property: property, + web_data_stream: webDataStream, + }); + } + + /** + * Parse the property from EnhancedMeasurementSettings resource. + * + * @param {string} enhancedMeasurementSettingsName + * A fully-qualified path representing EnhancedMeasurementSettings resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromEnhancedMeasurementSettingsName( + enhancedMeasurementSettingsName: string + ) { + return this.pathTemplates.enhancedMeasurementSettingsPathTemplate.match( + enhancedMeasurementSettingsName + ).property; + } + + /** + * Parse the web_data_stream from EnhancedMeasurementSettings resource. + * + * @param {string} enhancedMeasurementSettingsName + * A fully-qualified path representing EnhancedMeasurementSettings resource. + * @returns {string} A string representing the web_data_stream. + */ + matchWebDataStreamFromEnhancedMeasurementSettingsName( + enhancedMeasurementSettingsName: string + ) { + return this.pathTemplates.enhancedMeasurementSettingsPathTemplate.match( + enhancedMeasurementSettingsName + ).web_data_stream; + } + + /** + * Return a fully-qualified firebaseLink resource name string. + * + * @param {string} property + * @param {string} firebase_link + * @returns {string} Resource name string. + */ + firebaseLinkPath(property: string, firebaseLink: string) { + return this.pathTemplates.firebaseLinkPathTemplate.render({ + property: property, + firebase_link: firebaseLink, + }); + } + + /** + * Parse the property from FirebaseLink resource. + * + * @param {string} firebaseLinkName + * A fully-qualified path representing FirebaseLink resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromFirebaseLinkName(firebaseLinkName: string) { + return this.pathTemplates.firebaseLinkPathTemplate.match(firebaseLinkName) + .property; + } + + /** + * Parse the firebase_link from FirebaseLink resource. + * + * @param {string} firebaseLinkName + * A fully-qualified path representing FirebaseLink resource. + * @returns {string} A string representing the firebase_link. + */ + matchFirebaseLinkFromFirebaseLinkName(firebaseLinkName: string) { + return this.pathTemplates.firebaseLinkPathTemplate.match(firebaseLinkName) + .firebase_link; + } + + /** + * Return a fully-qualified globalSiteTag resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + globalSiteTagPath(property: string) { + return this.pathTemplates.globalSiteTagPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from GlobalSiteTag resource. + * + * @param {string} globalSiteTagName + * A fully-qualified path representing GlobalSiteTag resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromGlobalSiteTagName(globalSiteTagName: string) { + return this.pathTemplates.globalSiteTagPathTemplate.match(globalSiteTagName) + .property; + } + + /** + * Return a fully-qualified googleAdsLink resource name string. + * + * @param {string} property + * @param {string} google_ads_link + * @returns {string} Resource name string. + */ + googleAdsLinkPath(property: string, googleAdsLink: string) { + return this.pathTemplates.googleAdsLinkPathTemplate.render({ + property: property, + google_ads_link: googleAdsLink, + }); + } + + /** + * Parse the property from GoogleAdsLink resource. + * + * @param {string} googleAdsLinkName + * A fully-qualified path representing GoogleAdsLink resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromGoogleAdsLinkName(googleAdsLinkName: string) { + return this.pathTemplates.googleAdsLinkPathTemplate.match(googleAdsLinkName) + .property; + } + + /** + * Parse the google_ads_link from GoogleAdsLink resource. + * + * @param {string} googleAdsLinkName + * A fully-qualified path representing GoogleAdsLink resource. + * @returns {string} A string representing the google_ads_link. + */ + matchGoogleAdsLinkFromGoogleAdsLinkName(googleAdsLinkName: string) { + return this.pathTemplates.googleAdsLinkPathTemplate.match(googleAdsLinkName) + .google_ads_link; + } + + /** + * Return a fully-qualified iosAppDataStream resource name string. + * + * @param {string} property + * @param {string} ios_app_data_stream + * @returns {string} Resource name string. + */ + iosAppDataStreamPath(property: string, iosAppDataStream: string) { + return this.pathTemplates.iosAppDataStreamPathTemplate.render({ + property: property, + ios_app_data_stream: iosAppDataStream, + }); + } + + /** + * Parse the property from IosAppDataStream resource. + * + * @param {string} iosAppDataStreamName + * A fully-qualified path representing IosAppDataStream resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromIosAppDataStreamName(iosAppDataStreamName: string) { + return this.pathTemplates.iosAppDataStreamPathTemplate.match( + iosAppDataStreamName + ).property; + } + + /** + * Parse the ios_app_data_stream from IosAppDataStream resource. + * + * @param {string} iosAppDataStreamName + * A fully-qualified path representing IosAppDataStream resource. + * @returns {string} A string representing the ios_app_data_stream. + */ + matchIosAppDataStreamFromIosAppDataStreamName(iosAppDataStreamName: string) { + return this.pathTemplates.iosAppDataStreamPathTemplate.match( + iosAppDataStreamName + ).ios_app_data_stream; + } + + /** + * Return a fully-qualified property resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + propertyPath(property: string) { + return this.pathTemplates.propertyPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from Property resource. + * + * @param {string} propertyName + * A fully-qualified path representing Property resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromPropertyName(propertyName: string) { + return this.pathTemplates.propertyPathTemplate.match(propertyName).property; + } + + /** + * Return a fully-qualified propertyUserLink resource name string. + * + * @param {string} property + * @param {string} user_link + * @returns {string} Resource name string. + */ + propertyUserLinkPath(property: string, userLink: string) { + return this.pathTemplates.propertyUserLinkPathTemplate.render({ + property: property, + user_link: userLink, + }); + } + + /** + * Parse the property from PropertyUserLink resource. + * + * @param {string} propertyUserLinkName + * A fully-qualified path representing property_user_link resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromPropertyUserLinkName(propertyUserLinkName: string) { + return this.pathTemplates.propertyUserLinkPathTemplate.match( + propertyUserLinkName + ).property; + } + + /** + * Parse the user_link from PropertyUserLink resource. + * + * @param {string} propertyUserLinkName + * A fully-qualified path representing property_user_link resource. + * @returns {string} A string representing the user_link. + */ + matchUserLinkFromPropertyUserLinkName(propertyUserLinkName: string) { + return this.pathTemplates.propertyUserLinkPathTemplate.match( + propertyUserLinkName + ).user_link; + } + + /** + * Return a fully-qualified webDataStream resource name string. + * + * @param {string} property + * @param {string} web_data_stream + * @returns {string} Resource name string. + */ + webDataStreamPath(property: string, webDataStream: string) { + return this.pathTemplates.webDataStreamPathTemplate.render({ + property: property, + web_data_stream: webDataStream, + }); + } + + /** + * Parse the property from WebDataStream resource. + * + * @param {string} webDataStreamName + * A fully-qualified path representing WebDataStream resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromWebDataStreamName(webDataStreamName: string) { + return this.pathTemplates.webDataStreamPathTemplate.match(webDataStreamName) + .property; + } + + /** + * Parse the web_data_stream from WebDataStream resource. + * + * @param {string} webDataStreamName + * A fully-qualified path representing WebDataStream resource. + * @returns {string} A string representing the web_data_stream. + */ + matchWebDataStreamFromWebDataStreamName(webDataStreamName: string) { + return this.pathTemplates.webDataStreamPathTemplate.match(webDataStreamName) + .web_data_stream; + } + + /** + * Terminate the GRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + */ + close(): Promise { + this.initialize(); + if (!this._terminated) { + return this.analyticsAdminServiceStub!.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json new file mode 100644 index 00000000000..7e62d3b7e0c --- /dev/null +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -0,0 +1,274 @@ +{ + "interfaces": { + "google.analytics.admin.v1alpha.AnalyticsAdminService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "unknown_unavailable": [ + "UNKNOWN", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + }, + "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetAccount": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListAccounts": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteAccount": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateAccount": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ProvisionAccountTicket": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListProperties": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetUserLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "BatchGetUserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListUserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "AuditUserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateUserLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "BatchCreateUserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateUserLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "BatchUpdateUserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteUserLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "BatchDeleteUserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetWebDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteWebDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateWebDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateWebDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListWebDataStreams": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetIosAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteIosAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateIosAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateIosAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListIosAppDataStreams": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetAndroidAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteAndroidAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateAndroidAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateAndroidAppDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListAndroidAppDataStreams": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetEnhancedMeasurementSettings": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateEnhancedMeasurementSettings": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFirebaseLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetGlobalSiteTag": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListGoogleAdsLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetDataSharingSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + } + } + } + } +} diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json new file mode 100644 index 00000000000..731e0f166f8 --- /dev/null +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json @@ -0,0 +1,4 @@ +[ + "../../protos/google/analytics/admin/v1alpha/analytics_admin.proto", + "../../protos/google/analytics/admin/v1alpha/resources.proto" +] diff --git a/packages/google-analytics-admin/src/v1alpha/index.ts b/packages/google-analytics-admin/src/v1alpha/index.ts new file mode 100644 index 00000000000..cdc09b4e639 --- /dev/null +++ b/packages/google-analytics-admin/src/v1alpha/index.ts @@ -0,0 +1,19 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +export {AnalyticsAdminServiceClient} from './analytics_admin_service_client'; diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata new file mode 100644 index 00000000000..2b9750b402f --- /dev/null +++ b/packages/google-analytics-admin/synth.metadata @@ -0,0 +1,30 @@ +{ + "sources": [ + { + "git": { + "name": ".", + "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", + "sha": "ba18bba0477008b8f66ee29649a3d30af7d98563" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "58be915cf3b7148b764649da90add697f6367aa7", + "internalRef": "322464556" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "analyticsadmin", + "apiVersion": "v1alpha", + "language": "nodejs", + "generator": "bazel" + } + } + ] +} \ No newline at end of file diff --git a/packages/google-analytics-admin/synth.py b/packages/google-analytics-admin/synth.py index 8fe740596cc..4b269c5a32d 100644 --- a/packages/google-analytics-admin/synth.py +++ b/packages/google-analytics-admin/synth.py @@ -30,7 +30,7 @@ version, bazel_target=f"//google/analytics/admin/{version}:google-analytics-admin-{version}-nodejs" ) - s.copy(library, excludes=[]) + s.copy(library, excludes=["README.md", "package.json"]) # Copy common templates common_templates = gcp.CommonTemplates() diff --git a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js new file mode 100644 index 00000000000..9e32252b8c1 --- /dev/null +++ b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js @@ -0,0 +1,26 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* eslint-disable node/no-missing-require, no-unused-vars */ +const admin = require('@google-analytics/admin'); + +function main() { + const analyticsAdminServiceClient = new admin.AnalyticsAdminServiceClient(); +} + +main(); diff --git a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts new file mode 100644 index 00000000000..5e9bd08b271 --- /dev/null +++ b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts @@ -0,0 +1,25 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {AnalyticsAdminServiceClient} from '@google-analytics/admin'; + +function main() { + new AnalyticsAdminServiceClient(); +} + +main(); diff --git a/packages/google-analytics-admin/system-test/install.ts b/packages/google-analytics-admin/system-test/install.ts new file mode 100644 index 00000000000..4c1ba3eb79a --- /dev/null +++ b/packages/google-analytics-admin/system-test/install.ts @@ -0,0 +1,51 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {packNTest} from 'pack-n-play'; +import {readFileSync} from 'fs'; +import {describe, it} from 'mocha'; + +describe('typescript consumer tests', () => { + it('should have correct type signature for typescript users', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), // path to your module. + sample: { + description: 'typescript based user can use the type definitions', + ts: readFileSync( + './system-test/fixtures/sample/src/index.ts' + ).toString(), + }, + }; + await packNTest(options); // will throw upon error. + }); + + it('should have correct type signature for javascript users', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), // path to your module. + sample: { + description: 'typescript based user can use the type definitions', + ts: readFileSync( + './system-test/fixtures/sample/src/index.js' + ).toString(), + }, + }; + await packNTest(options); // will throw upon error. + }); +}); diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts new file mode 100644 index 00000000000..a16fb58beec --- /dev/null +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -0,0 +1,8029 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as analyticsadminserviceModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf} from 'google-gax'; + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message).toObject( + instance as protobuf.Message, + {defaults: true} + ); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1alpha.AnalyticsAdminServiceClient', () => { + it('has servicePath', () => { + const servicePath = + analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient + .servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + fallback: true, + } + ); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + await client.initialize(); + assert(client.analyticsAdminServiceStub); + }); + + it('has close method', () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.close(); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + + describe('getAccount', () => { + it('invokes getAccount without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ); + client.innerApiCalls.getAccount = stubSimpleCall(expectedResponse); + const [response] = await client.getAccount(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getAccount without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ); + client.innerApiCalls.getAccount = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getAccount( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getAccount with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getAccount = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getAccount(request), expectedError); + assert( + (client.innerApiCalls.getAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteAccount', () => { + it('invokes deleteAccount without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAccount = stubSimpleCall(expectedResponse); + const [response] = await client.deleteAccount(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteAccount without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAccount = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteAccount( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteAccount with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteAccount = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteAccount(request), expectedError); + assert( + (client.innerApiCalls.deleteAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateAccount', () => { + it('invokes updateAccount without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedHeaderRequestParams = 'account.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ); + client.innerApiCalls.updateAccount = stubSimpleCall(expectedResponse); + const [response] = await client.updateAccount(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAccount without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedHeaderRequestParams = 'account.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ); + client.innerApiCalls.updateAccount = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateAccount( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateAccount with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedHeaderRequestParams = 'account.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateAccount = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateAccount(request), expectedError); + assert( + (client.innerApiCalls.updateAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('provisionAccountTicket', () => { + it('invokes provisionAccountTicket without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() + ); + const expectedOptions = {}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() + ); + client.innerApiCalls.provisionAccountTicket = stubSimpleCall( + expectedResponse + ); + const [response] = await client.provisionAccountTicket(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.provisionAccountTicket as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes provisionAccountTicket without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() + ); + const expectedOptions = {}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() + ); + client.innerApiCalls.provisionAccountTicket = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.provisionAccountTicket( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.provisionAccountTicket as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes provisionAccountTicket with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.provisionAccountTicket = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.provisionAccountTicket(request), + expectedError + ); + assert( + (client.innerApiCalls.provisionAccountTicket as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getProperty', () => { + it('invokes getProperty without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetPropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ); + client.innerApiCalls.getProperty = stubSimpleCall(expectedResponse); + const [response] = await client.getProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getProperty without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetPropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ); + client.innerApiCalls.getProperty = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getProperty( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProperty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getProperty with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetPropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getProperty(request), expectedError); + assert( + (client.innerApiCalls.getProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createProperty', () => { + it('invokes createProperty without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() + ); + const expectedOptions = {}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ); + client.innerApiCalls.createProperty = stubSimpleCall(expectedResponse); + const [response] = await client.createProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createProperty without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() + ); + const expectedOptions = {}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ); + client.innerApiCalls.createProperty = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createProperty( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProperty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createProperty with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.createProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createProperty(request), expectedError); + assert( + (client.innerApiCalls.createProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteProperty', () => { + it('invokes deleteProperty without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteProperty = stubSimpleCall(expectedResponse); + const [response] = await client.deleteProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteProperty without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteProperty = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteProperty( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteProperty with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteProperty(request), expectedError); + assert( + (client.innerApiCalls.deleteProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateProperty', () => { + it('invokes updateProperty without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedHeaderRequestParams = 'property.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ); + client.innerApiCalls.updateProperty = stubSimpleCall(expectedResponse); + const [response] = await client.updateProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateProperty without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedHeaderRequestParams = 'property.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ); + client.innerApiCalls.updateProperty = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateProperty( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProperty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateProperty with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedHeaderRequestParams = 'property.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateProperty(request), expectedError); + assert( + (client.innerApiCalls.updateProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getUserLink', () => { + it('invokes getUserLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ); + client.innerApiCalls.getUserLink = stubSimpleCall(expectedResponse); + const [response] = await client.getUserLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getUserLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ); + client.innerApiCalls.getUserLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getUserLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IUserLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getUserLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getUserLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getUserLink(request), expectedError); + assert( + (client.innerApiCalls.getUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('batchGetUserLinks', () => { + it('invokes batchGetUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchGetUserLinksResponse() + ); + client.innerApiCalls.batchGetUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.batchGetUserLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchGetUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchGetUserLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchGetUserLinksResponse() + ); + client.innerApiCalls.batchGetUserLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.batchGetUserLinks( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchGetUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes batchGetUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.batchGetUserLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.batchGetUserLinks(request), expectedError); + assert( + (client.innerApiCalls.batchGetUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createUserLink', () => { + it('invokes createUserLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ); + client.innerApiCalls.createUserLink = stubSimpleCall(expectedResponse); + const [response] = await client.createUserLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createUserLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ); + client.innerApiCalls.createUserLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createUserLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IUserLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createUserLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createUserLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createUserLink(request), expectedError); + assert( + (client.innerApiCalls.createUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('batchCreateUserLinks', () => { + it('invokes batchCreateUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse() + ); + client.innerApiCalls.batchCreateUserLinks = stubSimpleCall( + expectedResponse + ); + const [response] = await client.batchCreateUserLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchCreateUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchCreateUserLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse() + ); + client.innerApiCalls.batchCreateUserLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.batchCreateUserLinks( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchCreateUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes batchCreateUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.batchCreateUserLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.batchCreateUserLinks(request), expectedError); + assert( + (client.innerApiCalls.batchCreateUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateUserLink', () => { + it('invokes updateUserLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() + ); + request.userLink = {}; + request.userLink.name = ''; + const expectedHeaderRequestParams = 'user_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ); + client.innerApiCalls.updateUserLink = stubSimpleCall(expectedResponse); + const [response] = await client.updateUserLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateUserLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() + ); + request.userLink = {}; + request.userLink.name = ''; + const expectedHeaderRequestParams = 'user_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ); + client.innerApiCalls.updateUserLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateUserLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IUserLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateUserLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() + ); + request.userLink = {}; + request.userLink.name = ''; + const expectedHeaderRequestParams = 'user_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateUserLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateUserLink(request), expectedError); + assert( + (client.innerApiCalls.updateUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('batchUpdateUserLinks', () => { + it('invokes batchUpdateUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse() + ); + client.innerApiCalls.batchUpdateUserLinks = stubSimpleCall( + expectedResponse + ); + const [response] = await client.batchUpdateUserLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchUpdateUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchUpdateUserLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse() + ); + client.innerApiCalls.batchUpdateUserLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.batchUpdateUserLinks( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchUpdateUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes batchUpdateUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.batchUpdateUserLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.batchUpdateUserLinks(request), expectedError); + assert( + (client.innerApiCalls.batchUpdateUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteUserLink', () => { + it('invokes deleteUserLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteUserLink = stubSimpleCall(expectedResponse); + const [response] = await client.deleteUserLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteUserLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteUserLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteUserLink( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteUserLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteUserLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteUserLink(request), expectedError); + assert( + (client.innerApiCalls.deleteUserLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('batchDeleteUserLinks', () => { + it('invokes batchDeleteUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.batchDeleteUserLinks = stubSimpleCall( + expectedResponse + ); + const [response] = await client.batchDeleteUserLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchDeleteUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchDeleteUserLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.batchDeleteUserLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.batchDeleteUserLinks( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchDeleteUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes batchDeleteUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.batchDeleteUserLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.batchDeleteUserLinks(request), expectedError); + assert( + (client.innerApiCalls.batchDeleteUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getWebDataStream', () => { + it('invokes getWebDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ); + client.innerApiCalls.getWebDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.getWebDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getWebDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ); + client.innerApiCalls.getWebDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getWebDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IWebDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getWebDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getWebDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getWebDataStream(request), expectedError); + assert( + (client.innerApiCalls.getWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteWebDataStream', () => { + it('invokes deleteWebDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteWebDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.deleteWebDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteWebDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteWebDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteWebDataStream( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteWebDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteWebDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteWebDataStream(request), expectedError); + assert( + (client.innerApiCalls.deleteWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateWebDataStream', () => { + it('invokes updateWebDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + ); + request.webDataStream = {}; + request.webDataStream.name = ''; + const expectedHeaderRequestParams = 'web_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ); + client.innerApiCalls.updateWebDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.updateWebDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateWebDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + ); + request.webDataStream = {}; + request.webDataStream.name = ''; + const expectedHeaderRequestParams = 'web_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ); + client.innerApiCalls.updateWebDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateWebDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IWebDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateWebDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + ); + request.webDataStream = {}; + request.webDataStream.name = ''; + const expectedHeaderRequestParams = 'web_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateWebDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateWebDataStream(request), expectedError); + assert( + (client.innerApiCalls.updateWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createWebDataStream', () => { + it('invokes createWebDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ); + client.innerApiCalls.createWebDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.createWebDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createWebDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ); + client.innerApiCalls.createWebDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createWebDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IWebDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createWebDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createWebDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createWebDataStream(request), expectedError); + assert( + (client.innerApiCalls.createWebDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getIosAppDataStream', () => { + it('invokes getIosAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ); + client.innerApiCalls.getIosAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.getIosAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getIosAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ); + client.innerApiCalls.getIosAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getIosAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IIosAppDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getIosAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getIosAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getIosAppDataStream(request), expectedError); + assert( + (client.innerApiCalls.getIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteIosAppDataStream', () => { + it('invokes deleteIosAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteIosAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.deleteIosAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteIosAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteIosAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteIosAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteIosAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteIosAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteIosAppDataStream(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateIosAppDataStream', () => { + it('invokes updateIosAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + ); + request.iosAppDataStream = {}; + request.iosAppDataStream.name = ''; + const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ); + client.innerApiCalls.updateIosAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.updateIosAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateIosAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + ); + request.iosAppDataStream = {}; + request.iosAppDataStream.name = ''; + const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ); + client.innerApiCalls.updateIosAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateIosAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IIosAppDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateIosAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + ); + request.iosAppDataStream = {}; + request.iosAppDataStream.name = ''; + const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateIosAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateIosAppDataStream(request), + expectedError + ); + assert( + (client.innerApiCalls.updateIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createIosAppDataStream', () => { + it('invokes createIosAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ); + client.innerApiCalls.createIosAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.createIosAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createIosAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ); + client.innerApiCalls.createIosAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createIosAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IIosAppDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createIosAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createIosAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createIosAppDataStream(request), + expectedError + ); + assert( + (client.innerApiCalls.createIosAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getAndroidAppDataStream', () => { + it('invokes getAndroidAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ); + client.innerApiCalls.getAndroidAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.getAndroidAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getAndroidAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ); + client.innerApiCalls.getAndroidAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getAndroidAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getAndroidAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getAndroidAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getAndroidAppDataStream(request), + expectedError + ); + assert( + (client.innerApiCalls.getAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteAndroidAppDataStream', () => { + it('invokes deleteAndroidAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAndroidAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.deleteAndroidAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteAndroidAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAndroidAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteAndroidAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteAndroidAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteAndroidAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteAndroidAppDataStream(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateAndroidAppDataStream', () => { + it('invokes updateAndroidAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + ); + request.androidAppDataStream = {}; + request.androidAppDataStream.name = ''; + const expectedHeaderRequestParams = 'android_app_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ); + client.innerApiCalls.updateAndroidAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.updateAndroidAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAndroidAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + ); + request.androidAppDataStream = {}; + request.androidAppDataStream.name = ''; + const expectedHeaderRequestParams = 'android_app_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ); + client.innerApiCalls.updateAndroidAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateAndroidAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateAndroidAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + ); + request.androidAppDataStream = {}; + request.androidAppDataStream.name = ''; + const expectedHeaderRequestParams = 'android_app_data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateAndroidAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateAndroidAppDataStream(request), + expectedError + ); + assert( + (client.innerApiCalls.updateAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createAndroidAppDataStream', () => { + it('invokes createAndroidAppDataStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ); + client.innerApiCalls.createAndroidAppDataStream = stubSimpleCall( + expectedResponse + ); + const [response] = await client.createAndroidAppDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createAndroidAppDataStream without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ); + client.innerApiCalls.createAndroidAppDataStream = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createAndroidAppDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createAndroidAppDataStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createAndroidAppDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createAndroidAppDataStream(request), + expectedError + ); + assert( + (client.innerApiCalls.createAndroidAppDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getEnhancedMeasurementSettings', () => { + it('invokes getEnhancedMeasurementSettings without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() + ); + client.innerApiCalls.getEnhancedMeasurementSettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.getEnhancedMeasurementSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getEnhancedMeasurementSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getEnhancedMeasurementSettings without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() + ); + client.innerApiCalls.getEnhancedMeasurementSettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getEnhancedMeasurementSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getEnhancedMeasurementSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getEnhancedMeasurementSettings with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getEnhancedMeasurementSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getEnhancedMeasurementSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getEnhancedMeasurementSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateEnhancedMeasurementSettings', () => { + it('invokes updateEnhancedMeasurementSettings without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() + ); + request.enhancedMeasurementSettings = {}; + request.enhancedMeasurementSettings.name = ''; + const expectedHeaderRequestParams = 'enhanced_measurement_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() + ); + client.innerApiCalls.updateEnhancedMeasurementSettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.updateEnhancedMeasurementSettings( + request + ); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateEnhancedMeasurementSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateEnhancedMeasurementSettings without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() + ); + request.enhancedMeasurementSettings = {}; + request.enhancedMeasurementSettings.name = ''; + const expectedHeaderRequestParams = 'enhanced_measurement_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() + ); + client.innerApiCalls.updateEnhancedMeasurementSettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateEnhancedMeasurementSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateEnhancedMeasurementSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateEnhancedMeasurementSettings with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() + ); + request.enhancedMeasurementSettings = {}; + request.enhancedMeasurementSettings.name = ''; + const expectedHeaderRequestParams = 'enhanced_measurement_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateEnhancedMeasurementSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateEnhancedMeasurementSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.updateEnhancedMeasurementSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createFirebaseLink', () => { + it('invokes createFirebaseLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ); + client.innerApiCalls.createFirebaseLink = stubSimpleCall( + expectedResponse + ); + const [response] = await client.createFirebaseLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createFirebaseLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ); + client.innerApiCalls.createFirebaseLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createFirebaseLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IFirebaseLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createFirebaseLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createFirebaseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createFirebaseLink(request), expectedError); + assert( + (client.innerApiCalls.createFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateFirebaseLink', () => { + it('invokes updateFirebaseLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() + ); + request.firebaseLink = {}; + request.firebaseLink.name = ''; + const expectedHeaderRequestParams = 'firebase_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ); + client.innerApiCalls.updateFirebaseLink = stubSimpleCall( + expectedResponse + ); + const [response] = await client.updateFirebaseLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateFirebaseLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() + ); + request.firebaseLink = {}; + request.firebaseLink.name = ''; + const expectedHeaderRequestParams = 'firebase_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ); + client.innerApiCalls.updateFirebaseLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateFirebaseLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IFirebaseLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateFirebaseLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() + ); + request.firebaseLink = {}; + request.firebaseLink.name = ''; + const expectedHeaderRequestParams = 'firebase_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFirebaseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateFirebaseLink(request), expectedError); + assert( + (client.innerApiCalls.updateFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteFirebaseLink', () => { + it('invokes deleteFirebaseLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( + expectedResponse + ); + const [response] = await client.deleteFirebaseLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteFirebaseLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteFirebaseLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteFirebaseLink( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteFirebaseLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteFirebaseLink(request), expectedError); + assert( + (client.innerApiCalls.deleteFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksResponse() + ); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listFirebaseLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksResponse() + ); + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listFirebaseLinks( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listFirebaseLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFirebaseLinks(request), expectedError); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getGlobalSiteTag', () => { + it('invokes getGlobalSiteTag without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GlobalSiteTag() + ); + client.innerApiCalls.getGlobalSiteTag = stubSimpleCall(expectedResponse); + const [response] = await client.getGlobalSiteTag(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getGlobalSiteTag as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getGlobalSiteTag without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GlobalSiteTag() + ); + client.innerApiCalls.getGlobalSiteTag = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getGlobalSiteTag( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IGlobalSiteTag | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getGlobalSiteTag as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getGlobalSiteTag with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getGlobalSiteTag = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getGlobalSiteTag(request), expectedError); + assert( + (client.innerApiCalls.getGlobalSiteTag as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createGoogleAdsLink', () => { + it('invokes createGoogleAdsLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ); + client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( + expectedResponse + ); + const [response] = await client.createGoogleAdsLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createGoogleAdsLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ); + client.innerApiCalls.createGoogleAdsLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createGoogleAdsLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IGoogleAdsLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createGoogleAdsLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createGoogleAdsLink(request), expectedError); + assert( + (client.innerApiCalls.createGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateGoogleAdsLink', () => { + it('invokes updateGoogleAdsLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ); + client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( + expectedResponse + ); + const [response] = await client.updateGoogleAdsLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateGoogleAdsLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ); + client.innerApiCalls.updateGoogleAdsLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateGoogleAdsLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IGoogleAdsLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateGoogleAdsLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateGoogleAdsLink(request), expectedError); + assert( + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteGoogleAdsLink', () => { + it('invokes deleteGoogleAdsLink without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( + expectedResponse + ); + const [response] = await client.deleteGoogleAdsLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteGoogleAdsLink without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteGoogleAdsLink( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteGoogleAdsLink with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); + assert( + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getDataSharingSettings', () => { + it('invokes getDataSharingSettings without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataSharingSettings() + ); + client.innerApiCalls.getDataSharingSettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.getDataSharingSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataSharingSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataSharingSettings without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataSharingSettings() + ); + client.innerApiCalls.getDataSharingSettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getDataSharingSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IDataSharingSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataSharingSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getDataSharingSettings with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getDataSharingSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getDataSharingSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getDataSharingSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listAccounts', () => { + it('invokes listAccounts without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccounts with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountsStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listAccounts + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listAccounts + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + }); + }); + + describe('listProperties', () => { + it('invokes listProperties without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listProperties without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listProperties( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listProperties with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.listProperties = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listProperties(request), expectedError); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listPropertiesStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.descriptors.page.listProperties.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('invokes listPropertiesStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('uses async iteration with listProperties without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listProperties + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listProperties with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listPropertiesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listProperties + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + }); + }); + + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + ]; + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listUserLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + ]; + client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listUserLinks( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listUserLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listUserLinks(request), expectedError); + assert( + (client.innerApiCalls.listUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listUserLinksStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + ]; + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listUserLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.UserLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.listUserLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listUserLinksStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listUserLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.UserLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.listUserLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + ]; + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listUserLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listUserLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listUserLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listUserLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listUserLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + ]; + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.auditUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes auditUserLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + ]; + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.auditUserLinks( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.auditUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes auditUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.auditUserLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.auditUserLinks(request), expectedError); + assert( + (client.innerApiCalls.auditUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes auditUserLinksStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + ]; + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.auditUserLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.auditUserLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes auditUserLinksStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.auditUserLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.auditUserLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with auditUserLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + ]; + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = []; + const iterable = client.auditUserLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.auditUserLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.auditUserLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with auditUserLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.auditUserLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.auditUserLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.auditUserLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + + describe('listWebDataStreams', () => { + it('invokes listWebDataStreams without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + ]; + client.innerApiCalls.listWebDataStreams = stubSimpleCall( + expectedResponse + ); + const [response] = await client.listWebDataStreams(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listWebDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listWebDataStreams without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + ]; + client.innerApiCalls.listWebDataStreams = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listWebDataStreams( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IWebDataStream[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listWebDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listWebDataStreams with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listWebDataStreams = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listWebDataStreams(request), expectedError); + assert( + (client.innerApiCalls.listWebDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listWebDataStreamsStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + ]; + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listWebDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWebDataStreams, request) + ); + assert.strictEqual( + (client.descriptors.page.listWebDataStreams + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listWebDataStreamsStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listWebDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listWebDataStreams, request) + ); + assert.strictEqual( + (client.descriptors.page.listWebDataStreams + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listWebDataStreams without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.WebDataStream() + ), + ]; + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; + const iterable = client.listWebDataStreamsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listWebDataStreams + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listWebDataStreams + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listWebDataStreams with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listWebDataStreamsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listWebDataStreams + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listWebDataStreams + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + + describe('listIosAppDataStreams', () => { + it('invokes listIosAppDataStreams without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + ]; + client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( + expectedResponse + ); + const [response] = await client.listIosAppDataStreams(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listIosAppDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listIosAppDataStreams without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + ]; + client.innerApiCalls.listIosAppDataStreams = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listIosAppDataStreams( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listIosAppDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listIosAppDataStreams with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listIosAppDataStreams(request), + expectedError + ); + assert( + (client.innerApiCalls.listIosAppDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listIosAppDataStreamsStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + ]; + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listIosAppDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + ); + assert.strictEqual( + (client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listIosAppDataStreamsStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listIosAppDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + ); + assert.strictEqual( + (client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listIosAppDataStreams without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.IosAppDataStream() + ), + ]; + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; + const iterable = client.listIosAppDataStreamsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listIosAppDataStreams with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listIosAppDataStreamsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + + describe('listAndroidAppDataStreams', () => { + it('invokes listAndroidAppDataStreams without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + ]; + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( + expectedResponse + ); + const [response] = await client.listAndroidAppDataStreams(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAndroidAppDataStreams without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + ]; + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listAndroidAppDataStreams( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAndroidAppDataStreams with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listAndroidAppDataStreams(request), + expectedError + ); + assert( + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAndroidAppDataStreamsStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + ]; + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listAndroidAppDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + ); + assert.strictEqual( + (client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listAndroidAppDataStreamsStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAndroidAppDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + ); + assert.strictEqual( + (client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listAndroidAppDataStreams without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + ), + ]; + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; + const iterable = client.listAndroidAppDataStreamsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listAndroidAppDataStreams with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listAndroidAppDataStreamsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + ]; + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + expectedResponse + ); + const [response] = await client.listGoogleAdsLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listGoogleAdsLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + ]; + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listGoogleAdsLinks( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listGoogleAdsLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + assert( + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listGoogleAdsLinksStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + ]; + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listGoogleAdsLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.listGoogleAdsLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listGoogleAdsLinksStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listGoogleAdsLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.listGoogleAdsLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listGoogleAdsLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + ), + ]; + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; + const iterable = client.listGoogleAdsLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listGoogleAdsLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listGoogleAdsLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listGoogleAdsLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listGoogleAdsLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listGoogleAdsLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listGoogleAdsLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + + describe('Path templates', () => { + describe('account', () => { + const fakePath = '/rendered/path/account'; + const expectedParameters = { + account: 'accountValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.accountPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.accountPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('accountPath', () => { + const result = client.accountPath('accountValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.accountPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchAccountFromAccountName', () => { + const result = client.matchAccountFromAccountName(fakePath); + assert.strictEqual(result, 'accountValue'); + assert( + (client.pathTemplates.accountPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('accountUserLink', () => { + const fakePath = '/rendered/path/accountUserLink'; + const expectedParameters = { + account: 'accountValue', + user_link: 'userLinkValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.accountUserLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.accountUserLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('accountUserLinkPath', () => { + const result = client.accountUserLinkPath( + 'accountValue', + 'userLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.accountUserLinkPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchAccountFromAccountUserLinkName', () => { + const result = client.matchAccountFromAccountUserLinkName(fakePath); + assert.strictEqual(result, 'accountValue'); + assert( + (client.pathTemplates.accountUserLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserLinkFromAccountUserLinkName', () => { + const result = client.matchUserLinkFromAccountUserLinkName(fakePath); + assert.strictEqual(result, 'userLinkValue'); + assert( + (client.pathTemplates.accountUserLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('androidAppDataStream', () => { + const fakePath = '/rendered/path/androidAppDataStream'; + const expectedParameters = { + property: 'propertyValue', + android_app_data_stream: 'androidAppDataStreamValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.androidAppDataStreamPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.androidAppDataStreamPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('androidAppDataStreamPath', () => { + const result = client.androidAppDataStreamPath( + 'propertyValue', + 'androidAppDataStreamValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.androidAppDataStreamPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromAndroidAppDataStreamName', () => { + const result = client.matchPropertyFromAndroidAppDataStreamName( + fakePath + ); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.androidAppDataStreamPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAndroidAppDataStreamFromAndroidAppDataStreamName', () => { + const result = client.matchAndroidAppDataStreamFromAndroidAppDataStreamName( + fakePath + ); + assert.strictEqual(result, 'androidAppDataStreamValue'); + assert( + (client.pathTemplates.androidAppDataStreamPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataSharingSettings', () => { + const fakePath = '/rendered/path/dataSharingSettings'; + const expectedParameters = { + account: 'accountValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.dataSharingSettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataSharingSettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataSharingSettingsPath', () => { + const result = client.dataSharingSettingsPath('accountValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataSharingSettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchAccountFromDataSharingSettingsName', () => { + const result = client.matchAccountFromDataSharingSettingsName(fakePath); + assert.strictEqual(result, 'accountValue'); + assert( + (client.pathTemplates.dataSharingSettingsPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('enhancedMeasurementSettings', () => { + const fakePath = '/rendered/path/enhancedMeasurementSettings'; + const expectedParameters = { + property: 'propertyValue', + web_data_stream: 'webDataStreamValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.enhancedMeasurementSettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.enhancedMeasurementSettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('enhancedMeasurementSettingsPath', () => { + const result = client.enhancedMeasurementSettingsPath( + 'propertyValue', + 'webDataStreamValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.enhancedMeasurementSettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromEnhancedMeasurementSettingsName', () => { + const result = client.matchPropertyFromEnhancedMeasurementSettingsName( + fakePath + ); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.enhancedMeasurementSettingsPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchWebDataStreamFromEnhancedMeasurementSettingsName', () => { + const result = client.matchWebDataStreamFromEnhancedMeasurementSettingsName( + fakePath + ); + assert.strictEqual(result, 'webDataStreamValue'); + assert( + (client.pathTemplates.enhancedMeasurementSettingsPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('firebaseLink', () => { + const fakePath = '/rendered/path/firebaseLink'; + const expectedParameters = { + property: 'propertyValue', + firebase_link: 'firebaseLinkValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.firebaseLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.firebaseLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('firebaseLinkPath', () => { + const result = client.firebaseLinkPath( + 'propertyValue', + 'firebaseLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.firebaseLinkPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromFirebaseLinkName', () => { + const result = client.matchPropertyFromFirebaseLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.firebaseLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFirebaseLinkFromFirebaseLinkName', () => { + const result = client.matchFirebaseLinkFromFirebaseLinkName(fakePath); + assert.strictEqual(result, 'firebaseLinkValue'); + assert( + (client.pathTemplates.firebaseLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('globalSiteTag', () => { + const fakePath = '/rendered/path/globalSiteTag'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.globalSiteTagPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.globalSiteTagPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('globalSiteTagPath', () => { + const result = client.globalSiteTagPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.globalSiteTagPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromGlobalSiteTagName', () => { + const result = client.matchPropertyFromGlobalSiteTagName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.globalSiteTagPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('googleAdsLink', () => { + const fakePath = '/rendered/path/googleAdsLink'; + const expectedParameters = { + property: 'propertyValue', + google_ads_link: 'googleAdsLinkValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.googleAdsLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.googleAdsLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('googleAdsLinkPath', () => { + const result = client.googleAdsLinkPath( + 'propertyValue', + 'googleAdsLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.googleAdsLinkPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromGoogleAdsLinkName', () => { + const result = client.matchPropertyFromGoogleAdsLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.googleAdsLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchGoogleAdsLinkFromGoogleAdsLinkName', () => { + const result = client.matchGoogleAdsLinkFromGoogleAdsLinkName(fakePath); + assert.strictEqual(result, 'googleAdsLinkValue'); + assert( + (client.pathTemplates.googleAdsLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('iosAppDataStream', () => { + const fakePath = '/rendered/path/iosAppDataStream'; + const expectedParameters = { + property: 'propertyValue', + ios_app_data_stream: 'iosAppDataStreamValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.iosAppDataStreamPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.iosAppDataStreamPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('iosAppDataStreamPath', () => { + const result = client.iosAppDataStreamPath( + 'propertyValue', + 'iosAppDataStreamValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.iosAppDataStreamPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromIosAppDataStreamName', () => { + const result = client.matchPropertyFromIosAppDataStreamName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.iosAppDataStreamPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIosAppDataStreamFromIosAppDataStreamName', () => { + const result = client.matchIosAppDataStreamFromIosAppDataStreamName( + fakePath + ); + assert.strictEqual(result, 'iosAppDataStreamValue'); + assert( + (client.pathTemplates.iosAppDataStreamPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('property', () => { + const fakePath = '/rendered/path/property'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.propertyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.propertyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('propertyPath', () => { + const result = client.propertyPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.propertyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromPropertyName', () => { + const result = client.matchPropertyFromPropertyName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.propertyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('propertyUserLink', () => { + const fakePath = '/rendered/path/propertyUserLink'; + const expectedParameters = { + property: 'propertyValue', + user_link: 'userLinkValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.propertyUserLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.propertyUserLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('propertyUserLinkPath', () => { + const result = client.propertyUserLinkPath( + 'propertyValue', + 'userLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.propertyUserLinkPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromPropertyUserLinkName', () => { + const result = client.matchPropertyFromPropertyUserLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.propertyUserLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchUserLinkFromPropertyUserLinkName', () => { + const result = client.matchUserLinkFromPropertyUserLinkName(fakePath); + assert.strictEqual(result, 'userLinkValue'); + assert( + (client.pathTemplates.propertyUserLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('webDataStream', () => { + const fakePath = '/rendered/path/webDataStream'; + const expectedParameters = { + property: 'propertyValue', + web_data_stream: 'webDataStreamValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.webDataStreamPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.webDataStreamPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('webDataStreamPath', () => { + const result = client.webDataStreamPath( + 'propertyValue', + 'webDataStreamValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.webDataStreamPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromWebDataStreamName', () => { + const result = client.matchPropertyFromWebDataStreamName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.webDataStreamPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchWebDataStreamFromWebDataStreamName', () => { + const result = client.matchWebDataStreamFromWebDataStreamName(fakePath); + assert.strictEqual(result, 'webDataStreamValue'); + assert( + (client.pathTemplates.webDataStreamPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-analytics-admin/tsconfig.json b/packages/google-analytics-admin/tsconfig.json new file mode 100644 index 00000000000..c78f1c884ef --- /dev/null +++ b/packages/google-analytics-admin/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./node_modules/gts/tsconfig-google.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build", + "resolveJsonModule": true, + "lib": [ + "es2018", + "dom" + ] + }, + "include": [ + "src/*.ts", + "src/**/*.ts", + "test/*.ts", + "test/**/*.ts", + "system-test/*.ts" + ] +} diff --git a/packages/google-analytics-admin/webpack.config.js b/packages/google-analytics-admin/webpack.config.js new file mode 100644 index 00000000000..5651a5d7cfd --- /dev/null +++ b/packages/google-analytics-admin/webpack.config.js @@ -0,0 +1,64 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +const path = require('path'); + +module.exports = { + entry: './src/index.ts', + output: { + library: 'AnalyticsAdminService', + filename: './analytics-admin-service.js', + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + resolve: { + alias: { + '../../../package.json': path.resolve(__dirname, 'package.json'), + }, + extensions: ['.js', '.json', '.ts'], + }, + module: { + rules: [ + { + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + { + test: /node_modules[\\/]@grpc[\\/]grpc-js/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]grpc/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]retry-request/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]https?-proxy-agent/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gtoken/, + use: 'null-loader', + }, + ], + }, + mode: 'production', +}; From 48c7369f3bcc69cb760f2eeb2ca1ed26eee97ba2 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Thu, 23 Jul 2020 10:08:07 -0700 Subject: [PATCH 003/142] build: system tests were not configured (#7) --- packages/google-analytics-admin/synth.metadata | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 2b9750b402f..f640c82ce8c 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", - "sha": "ba18bba0477008b8f66ee29649a3d30af7d98563" + "sha": "563ad77b0d57edfebee51b66183d63a7ef1cd1d7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "58be915cf3b7148b764649da90add697f6367aa7", - "internalRef": "322464556" + "sha": "5d0eacc7ba0d9199ef1fcd7c542dd4b53949c285", + "internalRef": "322659285" } } ], From db50ec0c397277d604b1b87a6b498f1a4f564105 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Jul 2020 19:39:56 +0200 Subject: [PATCH 004/142] chore(deps): update dependency mocha to v8 (#5) Co-authored-by: Benjamin E. Coe --- packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 00a4e53d2d5..9502dc151b7 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -42,7 +42,7 @@ "google-gax": "^2.6.3" }, "devDependencies": { - "@types/mocha": "^7.0.2", + "@types/mocha": "^8.0.0", "@types/node": "^14.0.22", "@types/sinon": "^9.0.4", "c8": "^7.2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index d6d6e4684f5..723c11381ee 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -18,6 +18,6 @@ "devDependencies": { "c8": "^7.1.0", "chai": "^4.2.0", - "mocha": "^7.1.0" + "mocha": "^8.0.0" } } From 1f78bf9ba7012a2a1b694971af8c5531d3d48f67 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 27 Jul 2020 16:21:45 -0700 Subject: [PATCH 005/142] feat: add samples (#10) --- packages/google-analytics-admin/package.json | 5 ++- .../samples/package.json | 7 ++- .../samples/quickstart.js | 44 ------------------- .../samples/test/quickstart.js | 37 ---------------- 4 files changed, 10 insertions(+), 83 deletions(-) delete mode 100644 packages/google-analytics-admin/samples/quickstart.js delete mode 100644 packages/google-analytics-admin/samples/test/quickstart.js diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 9502dc151b7..b2b5891e1ed 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -39,7 +39,10 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^2.6.3" + "google-auth-library": "^6.0.5", + "google-gax": "^2.6.3", + "open": "^7.1.0", + "server-destroy": "^1.0.1" }, "devDependencies": { "@types/mocha": "^8.0.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 723c11381ee..f5468a6a66b 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -13,7 +13,12 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^0.1.0" + "@google-analytics/admin": "^0.1.0", + "google-auth-library": "^6.0.5", + "google-gax": "^2.6.3", + "http": "0.0.1-security", + "open": "^7.1.0", + "server-destroy": "^1.0.1" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-analytics-admin/samples/quickstart.js b/packages/google-analytics-admin/samples/quickstart.js deleted file mode 100644 index f5b662ab719..00000000000 --- a/packages/google-analytics-admin/samples/quickstart.js +++ /dev/null @@ -1,44 +0,0 @@ -// 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. -// - -'use strict'; - -async function main( - name = 'my-name' // Get an account for a name. -) { - // [START analytics_admin_quickstart] - // Imports the Google Cloud client library - const {AnalyticsAdminServiceClient} = require('@google-analytics/admin'); - - // Creates a client - const client = new AnalyticsAdminServiceClient(); - - // name = 'my-name' // Get an account for a name. - async function getAccount() { - const [account] = await client.getAccount({ - name, - }); - console.info(account); - } - getAccount(); - // [END analytics_admin_quickstart] -} - -main(...process.argv.slice(2)).catch(err => { - console.error(err.message); - process.exitCode = 1; -}); -process.on('unhandledRejection', err => { - console.error(err.message); - process.exitCode = 1; -}); diff --git a/packages/google-analytics-admin/samples/test/quickstart.js b/packages/google-analytics-admin/samples/test/quickstart.js deleted file mode 100644 index f33a8fab9b8..00000000000 --- a/packages/google-analytics-admin/samples/test/quickstart.js +++ /dev/null @@ -1,37 +0,0 @@ -// -// 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'; - -// const path = require('path'); -// const {assert} = require('chai'); -// const cp = require('child_process'); -const {describe, it} = require('mocha'); - -// const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); - -// const cwd = path.join(__dirname, '..'); - -// const name = 'google-cloud-node'; - -describe('Quickstart', () => { - it('should run quickstart', async () => { - // TODO: find out an actual test for our API client: - // const stdout = execSync(`node ./quickstart.js ${name}`, {cwd}); - // assert.match(stdout, /insufficient authentication scopes/); - }); -}); From 1f020f401a421fe0142810f297bef2dd66ac1d7e Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Tue, 28 Jul 2020 09:36:41 -0700 Subject: [PATCH 006/142] fix: broken docs test (#11) * feat: add samples * fix: npm run lint * fix: linting * fix: broken docs test --- packages/google-analytics-admin/linkinator.config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/linkinator.config.json b/packages/google-analytics-admin/linkinator.config.json index c8424482ed1..8afa5426938 100644 --- a/packages/google-analytics-admin/linkinator.config.json +++ b/packages/google-analytics-admin/linkinator.config.json @@ -5,7 +5,8 @@ "www.googleapis.com", "img.shields.io", "https://developers.google.com/analytics-admin/", - "https://googleapis.dev/nodejs/analytics-admin/latest/index.html" + "https://googleapis.dev/nodejs/analytics-admin/latest/index.html", + "https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js" ], "silent": true, "concurrency": 10 From 54559001d9a23e4ebef0e47fa930bb7fbbff3631 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 28 Jul 2020 09:49:58 -0700 Subject: [PATCH 007/142] build: move gitattributes Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-analytics-admin/.gitattributes | 1 + packages/google-analytics-admin/synth.metadata | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/.gitattributes b/packages/google-analytics-admin/.gitattributes index d4f4169b28b..33739cb74e4 100644 --- a/packages/google-analytics-admin/.gitattributes +++ b/packages/google-analytics-admin/.gitattributes @@ -1,3 +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-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index f640c82ce8c..642f8f83635 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -3,8 +3,8 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", - "sha": "563ad77b0d57edfebee51b66183d63a7ef1cd1d7" + "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", + "sha": "0116de69bd433875ba7baf93d656429e1d265e11" } }, { @@ -14,6 +14,13 @@ "sha": "5d0eacc7ba0d9199ef1fcd7c542dd4b53949c285", "internalRef": "322659285" } + }, + { + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "2686d7075fa456972bf4d08680d99617f5eb32b1" + } } ], "destinations": [ From 257001cf2d39cad652dfe9091c3b9989b56dd60e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2020 11:08:47 -0700 Subject: [PATCH 008/142] chore: release 1.0.0 (#4) * chore: updated samples/package.json [ci skip] * chore: created CHANGELOG.md [ci skip] * chore: updated package.json Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 19 +++++++++++++++++++ packages/google-analytics-admin/package.json | 2 +- .../samples/package.json | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 packages/google-analytics-admin/CHANGELOG.md diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md new file mode 100644 index 00000000000..d3c3fcb5c61 --- /dev/null +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog + +## 1.0.0 (2020-07-28) + + +### ⚠ BREAKING CHANGES + +* initial generation of full library (#1) + +### Features + +* add samples ([#10](https://www.github.com/googleapis/nodejs-analytics-admin/issues/10)) ([1de6156](https://www.github.com/googleapis/nodejs-analytics-admin/commit/1de615633769fe75fdea819bc01f374b65447276)) +* initial generation of full library ([#1](https://www.github.com/googleapis/nodejs-analytics-admin/issues/1)) ([563ad77](https://www.github.com/googleapis/nodejs-analytics-admin/commit/563ad77b0d57edfebee51b66183d63a7ef1cd1d7)) +* initial stubbed out version of library ([0bb2cfd](https://www.github.com/googleapis/nodejs-analytics-admin/commit/0bb2cfd203d065765a07f8f34fa7d82d6dad9726)) + + +### Bug Fixes + +* broken docs test ([#11](https://www.github.com/googleapis/nodejs-analytics-admin/issues/11)) ([51f990f](https://www.github.com/googleapis/nodejs-analytics-admin/commit/51f990f6bbf1b7e1cf5cb5bb66c745d01244f4e5)) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index b2b5891e1ed..f3f0aa7e180 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "0.1.0", + "version": "1.0.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index f5468a6a66b..c0e9545e0f4 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^0.1.0", + "@google-analytics/admin": "^1.0.0", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 94bcd1ad04b4e46b1b22ca37927542d0daf7871b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2020 14:55:02 -0700 Subject: [PATCH 009/142] chore: release 1.1.0 (#16) * chore: updated samples/package.json [ci skip] * chore: updated CHANGELOG.md [ci skip] * chore: updated package.json Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index d3c3fcb5c61..8613b8dd40e 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.1.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.0.0...v1.1.0) (2020-07-29) + + +### Features + +* initial release of library from googleapis organization ([#12](https://www.github.com/googleapis/nodejs-analytics-admin/issues/12)) ([f741199](https://www.github.com/googleapis/nodejs-analytics-admin/commit/f741199acb8544367d61e579ddad40eed45baf45)) + ## 1.0.0 (2020-07-28) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index f3f0aa7e180..f1428278ef6 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.0.0", + "version": "1.1.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index c0e9545e0f4..6a06331deb2 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.0.0", + "@google-analytics/admin": "^1.1.0", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 59dc4bcf4899308e9599b8a6049a1c522f12bd1d Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Fri, 31 Jul 2020 13:40:00 -0700 Subject: [PATCH 010/142] chore: update broken doc link (#19) --- .../.repo-metadata.json | 2 +- packages/google-analytics-admin/README.md | 30 +++++-------------- .../linkinator.config.json | 5 +--- .../google-analytics-admin/samples/README.md | 30 +++++++++++++++---- .../google-analytics-admin/synth.metadata | 10 +++---- 5 files changed, 38 insertions(+), 39 deletions(-) diff --git a/packages/google-analytics-admin/.repo-metadata.json b/packages/google-analytics-admin/.repo-metadata.json index 5192f55972a..903b0df5a4b 100644 --- a/packages/google-analytics-admin/.repo-metadata.json +++ b/packages/google-analytics-admin/.repo-metadata.json @@ -1,7 +1,7 @@ { "name": "analytics-admin", "name_pretty": "Google Analytics Admin", - "product_documentation": "https://developers.google.com/analytics-admin/", + "product_documentation": "https://developers.google.com/analytics", "client_documentation": "https://googleapis.dev/nodejs/analytics-admin/latest/index.html", "issue_tracker": "", "release_level": "alpha", diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index c4c2615068b..c456c18c45c 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -14,6 +14,9 @@ Admin client for Node.js +A comprehensive list of changes in each version may be found in +[the CHANGELOG](https://github.com/googleapis/nodejs-analytics-admin/blob/master/CHANGELOG.md). + * [Google Analytics Admin Node.js Client API Reference][client-docs] * [Google Analytics Admin Documentation][product-docs] * [github.com/googleapis/nodejs-analytics-admin](https://github.com/googleapis/nodejs-analytics-admin) @@ -29,7 +32,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. * [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) @@ -51,26 +54,6 @@ npm install @google-analytics/admin ``` -### Using the client library - -```javascript -// Imports the Google Cloud client library -const {AnalyticsAdminServiceClient} = require('@google-analytics/admin'); - -// Creates a client -const client = new AnalyticsAdminServiceClient(); - -// name = 'my-name' // Get an account for a name. -async function getAccount() { - const [account] = await client.getAccount({ - name, - }); - console.info(account); -} -getAccount(); - -``` - ## Samples @@ -80,7 +63,8 @@ has instructions for running the samples. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | +| Quickstart_installed_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_installed_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) | +| Quickstart_service_account.js | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_service_account.js.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_service_account.js.js,samples/README.md) | @@ -142,7 +126,7 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/nodejs-analytics-admin/blob/master/LICENSE) [client-docs]: https://googleapis.dev/nodejs/analytics-admin/latest/index.html -[product-docs]: https://developers.google.com/analytics-admin/ +[product-docs]: https://developers.google.com/analytics [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 diff --git a/packages/google-analytics-admin/linkinator.config.json b/packages/google-analytics-admin/linkinator.config.json index 8afa5426938..29a223b6db6 100644 --- a/packages/google-analytics-admin/linkinator.config.json +++ b/packages/google-analytics-admin/linkinator.config.json @@ -3,10 +3,7 @@ "skip": [ "https://codecov.io/gh/googleapis/", "www.googleapis.com", - "img.shields.io", - "https://developers.google.com/analytics-admin/", - "https://googleapis.dev/nodejs/analytics-admin/latest/index.html", - "https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js" + "img.shields.io" ], "silent": true, "concurrency": 10 diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 6ce75c14ae7..9c1f28e879a 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -12,7 +12,8 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) - * [Quickstart](#quickstart) + * [Quickstart_installed_oauth2](#quickstart_installed_oauth2) + * [Quickstart_service_account.js](#quickstart_service_account.js) ## Before you begin @@ -29,16 +30,33 @@ Before running the samples, make sure you've followed the steps outlined in -### Quickstart +### Quickstart_installed_oauth2 -View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js). +View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_installed_oauth2.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) __Usage:__ -`node samples/quickstart.js` +`node samples/quickstart_installed_oauth2.js` + + +----- + + + + +### Quickstart_service_account.js + +View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_service_account.js.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_service_account.js.js,samples/README.md) + +__Usage:__ + + +`node samples/quickstart_service_account.js.js` @@ -47,4 +65,4 @@ __Usage:__ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/README.md -[product-docs]: https://developers.google.com/analytics-admin/ +[product-docs]: https://developers.google.com/analytics diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 642f8f83635..3ec402fba8c 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -3,23 +3,23 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "0116de69bd433875ba7baf93d656429e1d265e11" + "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", + "sha": "18d418968236858c39373642c72e1a671f65e049" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5d0eacc7ba0d9199ef1fcd7c542dd4b53949c285", - "internalRef": "322659285" + "sha": "fbf9396664b766a08d92da9d4f31be019a847c39", + "internalRef": "324209019" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2686d7075fa456972bf4d08680d99617f5eb32b1" + "sha": "39b527a39f5cd56d4882b3874fc08eed4756cebe" } } ], From 6961a7d9ee381a94141ae367a326cc6e8da24132 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 31 Jul 2020 13:58:49 -0700 Subject: [PATCH 011/142] chore(node): fix kokoro build path for cloud-rad (#18) * chore(node): fix kokoro build path for cloud-rad Source-Author: F. Hinkelmann Source-Date: Wed Jul 29 00:28:42 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 89d431fb2975fc4e0ed24995a6e6dfc8ff4c24fa Source-Link: https://github.com/googleapis/synthtool/commit/89d431fb2975fc4e0ed24995a6e6dfc8ff4c24fa Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-analytics-admin/protos/protos.d.ts | 2 +- packages/google-analytics-admin/protos/protos.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 970f050339f..825087710b4 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import * as Long from "long"; -import * as $protobuf from "protobufjs"; +import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 095ab969f87..f5d6bf18bce 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("protobufjs/minimal")); + module.exports = factory(require("google-gax").protobufMinimal); })(this, function($protobuf) { "use strict"; From b7708d647e89c8d0a83f2d3ba5582b3173c63f20 Mon Sep 17 00:00:00 2001 From: ikuleshov Date: Mon, 3 Aug 2020 14:30:56 -0700 Subject: [PATCH 012/142] fix: samples and tests updated (#13) * fix: samples and tests updated Samples fixed and updated to use the correct client library. Integration test added. * fix: samples and tests updated Samples fixed and updated to use the correct client library. Integration test added. --- .../samples/package.json | 1 + .../samples/quickstart.js | 67 +++++++++++++++++++ .../system-test/analyticsadmin.ts | 15 +++++ 3 files changed, 83 insertions(+) create mode 100644 packages/google-analytics-admin/samples/quickstart.js create mode 100644 packages/google-analytics-admin/system-test/analyticsadmin.ts diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 6a06331deb2..69feb43b6c1 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -3,6 +3,7 @@ "private": true, "license": "Apache-2.0", "author": "Google LLC", + "repository": "googleapis/nodejs-analytics-admin", "engines": { "node": ">=10" }, diff --git a/packages/google-analytics-admin/samples/quickstart.js b/packages/google-analytics-admin/samples/quickstart.js new file mode 100644 index 00000000000..b43a0bbc774 --- /dev/null +++ b/packages/google-analytics-admin/samples/quickstart.js @@ -0,0 +1,67 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** This application demonstrates the usage of the Analytics Admin API using + service account credentials. For more information on service accounts, see + https://cloud.google.com/iam/docs/understanding-service-accounts + The following document provides instructions on setting service account + credentials for your application: + https://cloud.google.com/docs/authentication/production + In a nutshell, you need to: + 1. Create a service account and download the key JSON file. + https://cloud.google.com/docs/authentication/production#creating_a_service_account + 2. Provide service account credentials using one of the following options: + - set the GOOGLE_APPLICATION_CREDENTIALS environment variable, the API + client will use the value of this variable to find the service account key + JSON file. + https://cloud.google.com/docs/authentication/production#setting_the_environment_variable + OR + - manually pass the path to the service account key JSON file to the API client + by specifying the keyFilename parameter in the constructor. + https://cloud.google.com/docs/authentication/production#passing_the_path_to_the_service_account_key_in_code + */ + +// Imports the Google Analytics Admin API client library +const analyticsAdmin = require('@google-analytics/admin'); + +async function main() { + // Instantiates a client using default credentials. + // TODO(developer): uncomment and use the following line in order to + // manually set the path to the service account JSON file instead of + // using the value from the GOOGLE_APPLICATION_CREDENTIALS environment + // variable. + // const analyticsAdminClient = new analyticsAdmin.AnalyticsAdminServiceClient( + // {keyFilename: "your_key_json_file_path"}); + const analyticsAdminClient = new analyticsAdmin.AnalyticsAdminServiceClient(); + + // Calls listAccounts() method of the Google Analytics Admin API and prints + // the response for each account. + const [accounts] = await analyticsAdminClient.listAccounts(); + + console.log('Accounts:'); + accounts.forEach(account => { + console.log(account); + }); +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/packages/google-analytics-admin/system-test/analyticsadmin.ts b/packages/google-analytics-admin/system-test/analyticsadmin.ts new file mode 100644 index 00000000000..549ac3cafa6 --- /dev/null +++ b/packages/google-analytics-admin/system-test/analyticsadmin.ts @@ -0,0 +1,15 @@ +import * as assert from 'assert'; +import {describe, it} from 'mocha'; + +import {AnalyticsAdminServiceClient} from '../src'; +import {google} from '../protos/protos'; + +describe('AnalyticsAdmin', () => { + const analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + + it('list Google Analytics accounts', async () => { + const request = new google.analytics.admin.v1alpha.ListAccountsRequest(); + const [accounts] = await analyticsAdminServiceClient.listAccounts(request); + assert(accounts.length); + }); +}); From 9269d5b08c0ab7f70b8082c362457de3f0cf68ac Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 3 Aug 2020 18:13:57 -0700 Subject: [PATCH 013/142] fix(docs): update docs with current samples --- packages/google-analytics-admin/README.md | 1 - .../google-analytics-admin/protos/protos.d.ts | 2 +- .../google-analytics-admin/protos/protos.js | 2 +- .../google-analytics-admin/samples/README.md | 18 ------------------ packages/google-analytics-admin/synth.metadata | 8 ++++---- 5 files changed, 6 insertions(+), 25 deletions(-) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index c456c18c45c..797f6dd339c 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -64,7 +64,6 @@ has instructions for running the samples. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | | Quickstart_installed_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_installed_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) | -| Quickstart_service_account.js | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_service_account.js.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_service_account.js.js,samples/README.md) | diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 825087710b4..970f050339f 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import * as Long from "long"; -import {protobuf as $protobuf} from "google-gax"; +import * as $protobuf from "protobufjs"; /** Namespace google. */ export namespace google { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index f5d6bf18bce..095ab969f87 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("google-gax").protobufMinimal); + module.exports = factory(require("protobufjs/minimal")); })(this, function($protobuf) { "use strict"; diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 9c1f28e879a..9288a55eddb 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -13,7 +13,6 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) * [Quickstart_installed_oauth2](#quickstart_installed_oauth2) - * [Quickstart_service_account.js](#quickstart_service_account.js) ## Before you begin @@ -42,23 +41,6 @@ __Usage:__ `node samples/quickstart_installed_oauth2.js` ------ - - - - -### Quickstart_service_account.js - -View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_service_account.js.js). - -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_service_account.js.js,samples/README.md) - -__Usage:__ - - -`node samples/quickstart_service_account.js.js` - - diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 3ec402fba8c..534401e00fb 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", - "sha": "18d418968236858c39373642c72e1a671f65e049" + "sha": "55f4366d75a09b697ac1b7d1ef416cf27448832a" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "fbf9396664b766a08d92da9d4f31be019a847c39", - "internalRef": "324209019" + "sha": "868615a5c1c1059c636bb3d82a555edb1d5a251e", + "internalRef": "324294521" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "39b527a39f5cd56d4882b3874fc08eed4756cebe" + "sha": "4f8f5dc24af79694887385015294e4dbb214c352" } } ], From e1d7a7f788de1d883fed5480cc4f8c3c4c6d826a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 4 Aug 2020 09:50:00 -0700 Subject: [PATCH 014/142] build: update protos (#22) --- packages/google-analytics-admin/protos/protos.d.ts | 2 +- packages/google-analytics-admin/protos/protos.js | 2 +- packages/google-analytics-admin/synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 970f050339f..825087710b4 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import * as Long from "long"; -import * as $protobuf from "protobufjs"; +import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 095ab969f87..f5d6bf18bce 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("protobufjs/minimal")); + module.exports = factory(require("google-gax").protobufMinimal); })(this, function($protobuf) { "use strict"; diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 534401e00fb..3bb052aa304 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -3,8 +3,8 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", - "sha": "55f4366d75a09b697ac1b7d1ef416cf27448832a" + "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", + "sha": "24a452c9472f521e8164911ba4f8e2a3d77e2fca" } }, { From 2e6e2f485c43b0bec4fd37819f953f062a4b5918 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2020 16:56:04 +0000 Subject: [PATCH 015/142] chore: release 1.1.1 (#20) :robot: I have created a release \*beep\* \*boop\* --- ### [1.1.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.1.0...v1.1.1) (2020-08-04) ### Bug Fixes * samples and tests updated ([#13](https://www.github.com/googleapis/nodejs-analytics-admin/issues/13)) ([55f4366](https://www.github.com/googleapis/nodejs-analytics-admin/commit/55f4366d75a09b697ac1b7d1ef416cf27448832a)) * **docs:** update docs with current samples ([24a452c](https://www.github.com/googleapis/nodejs-analytics-admin/commit/24a452c9472f521e8164911ba4f8e2a3d77e2fca)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- packages/google-analytics-admin/CHANGELOG.md | 8 ++++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 8613b8dd40e..bd757e3c920 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.1.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.1.0...v1.1.1) (2020-08-04) + + +### Bug Fixes + +* samples and tests updated ([#13](https://www.github.com/googleapis/nodejs-analytics-admin/issues/13)) ([55f4366](https://www.github.com/googleapis/nodejs-analytics-admin/commit/55f4366d75a09b697ac1b7d1ef416cf27448832a)) +* **docs:** update docs with current samples ([24a452c](https://www.github.com/googleapis/nodejs-analytics-admin/commit/24a452c9472f521e8164911ba4f8e2a3d77e2fca)) + ## [1.1.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.0.0...v1.1.0) (2020-07-29) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index f1428278ef6..31d0f6b8631 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.1.0", + "version": "1.1.1", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 69feb43b6c1..e1768548cd1 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.1.0", + "@google-analytics/admin": "^1.1.1", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 7fc25fd9640942c3a4664a5bf18c389aab02f42e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 8 Aug 2020 11:36:18 -0700 Subject: [PATCH 016/142] build: --credential-file-override is no longer required (#24) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4de22315-84b1-493d-8da2-dfa7688128f5/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/94421c47802f56a44c320257b2b4c190dc7d6b68 --- packages/google-analytics-admin/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 3bb052aa304..8c63a01c8ef 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "24a452c9472f521e8164911ba4f8e2a3d77e2fca" + "sha": "ae8132ac29107a038e72d4a6553b2f40143daf71" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f8f5dc24af79694887385015294e4dbb214c352" + "sha": "94421c47802f56a44c320257b2b4c190dc7d6b68" } } ], From a2dde6676f75b77d160674421c07b3e2fe7f60e3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 11 Aug 2020 11:24:03 -0700 Subject: [PATCH 017/142] build: use gapic-generator-typescript v1.0.7. (#25) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5f7f9c6d-c75a-4c60-8bb8-0026a14cead7/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 325949033 Source-Link: https://github.com/googleapis/googleapis/commit/94006b3cb8d2fb44703cf535da15608eed6bf7db --- .../src/v1alpha/analytics_admin_service_client.ts | 5 ++--- packages/google-analytics-admin/synth.metadata | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 761b51dec6f..2c406e1aea9 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -355,12 +355,11 @@ export class AnalyticsAdminServiceClient { } ); + const descriptor = this.descriptors.page[methodName] || undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - this.descriptors.page[methodName] || - this.descriptors.stream[methodName] || - this.descriptors.longrunning[methodName] + descriptor ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 8c63a01c8ef..095125a9b68 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "ae8132ac29107a038e72d4a6553b2f40143daf71" + "sha": "10ac56bc1afcda44f0306d765a46f531618f031e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "868615a5c1c1059c636bb3d82a555edb1d5a251e", - "internalRef": "324294521" + "sha": "94006b3cb8d2fb44703cf535da15608eed6bf7db", + "internalRef": "325949033" } }, { From 7190ae3b481a8ee11a9da570af64d28df31e330f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 12 Aug 2020 09:36:38 -0700 Subject: [PATCH 018/142] chore: update cloud rad kokoro build job (#26) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b742586e-df31-4aac-8092-78288e9ea8e7/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/bd0deaa1113b588d70449535ab9cbf0f2bd0e72f --- packages/google-analytics-admin/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 095125a9b68..7975a3a1ea1 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "10ac56bc1afcda44f0306d765a46f531618f031e" + "sha": "2461704a90d5de8bd8e70e19fb993eba58e5ccc3" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "94421c47802f56a44c320257b2b4c190dc7d6b68" + "sha": "bd0deaa1113b588d70449535ab9cbf0f2bd0e72f" } } ], From 31655ec2851faf2e3e637e62a05f3fef03cb6f52 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 Aug 2020 09:14:27 -0700 Subject: [PATCH 019/142] build: perform publish using Node 12 (#27) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/c36c6dbc-ab79-4f17-b70b-523b420b2a70/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5747555f7620113d9a2078a48f4c047a99d31b3e --- packages/google-analytics-admin/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 7975a3a1ea1..9e0074778a3 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "2461704a90d5de8bd8e70e19fb993eba58e5ccc3" + "sha": "a9c04bf9593c343fd6de50f4dad24641162c5f29" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "bd0deaa1113b588d70449535ab9cbf0f2bd0e72f" + "sha": "5747555f7620113d9a2078a48f4c047a99d31b3e" } } ], From fc862d797dc2e9d68853a9dc19c92f46ae47f1f2 Mon Sep 17 00:00:00 2001 From: ikuleshov Date: Thu, 13 Aug 2020 14:00:32 -0700 Subject: [PATCH 020/142] docs(samples): added documentation region tags (#28) --- packages/google-analytics-admin/samples/quickstart.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/google-analytics-admin/samples/quickstart.js b/packages/google-analytics-admin/samples/quickstart.js index b43a0bbc774..6748c9a935d 100644 --- a/packages/google-analytics-admin/samples/quickstart.js +++ b/packages/google-analytics-admin/samples/quickstart.js @@ -34,6 +34,7 @@ https://cloud.google.com/docs/authentication/production#passing_the_path_to_the_service_account_key_in_code */ +// [START analytics_admin_quickstart] // Imports the Google Analytics Admin API client library const analyticsAdmin = require('@google-analytics/admin'); @@ -65,3 +66,5 @@ process.on('unhandledRejection', err => { console.error(err.message); process.exitCode = 1; }); + +// [END analytics_admin_quickstart] From 3e5cbe2b0b7f7d66dac04cf65f23f1c2673ee604 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 14 Aug 2020 10:08:15 -0700 Subject: [PATCH 021/142] docs: updates to the readme (#29) --- packages/google-analytics-admin/README.md | 41 ++++++++++++++++++- .../google-analytics-admin/samples/README.md | 18 ++++++++ .../google-analytics-admin/synth.metadata | 2 +- 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 797f6dd339c..da1707d8214 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -32,7 +32,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. * [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) @@ -54,6 +54,44 @@ npm install @google-analytics/admin ``` +### Using the client library + +```javascript +// Imports the Google Analytics Admin API client library +const analyticsAdmin = require('@google-analytics/admin'); + +async function main() { + // Instantiates a client using default credentials. + // TODO(developer): uncomment and use the following line in order to + // manually set the path to the service account JSON file instead of + // using the value from the GOOGLE_APPLICATION_CREDENTIALS environment + // variable. + // const analyticsAdminClient = new analyticsAdmin.AnalyticsAdminServiceClient( + // {keyFilename: "your_key_json_file_path"}); + const analyticsAdminClient = new analyticsAdmin.AnalyticsAdminServiceClient(); + + // Calls listAccounts() method of the Google Analytics Admin API and prints + // the response for each account. + const [accounts] = await analyticsAdminClient.listAccounts(); + + console.log('Accounts:'); + accounts.forEach(account => { + console.log(account); + }); +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); + + +``` + ## Samples @@ -63,6 +101,7 @@ has instructions for running the samples. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | | Quickstart_installed_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_installed_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) | diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 9288a55eddb..0ef448a107a 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -12,6 +12,7 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Quickstart](#quickstart) * [Quickstart_installed_oauth2](#quickstart_installed_oauth2) ## Before you begin @@ -29,6 +30,23 @@ Before running the samples, make sure you've followed the steps outlined in +### Quickstart + +View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node samples/quickstart.js` + + +----- + + + + ### Quickstart_installed_oauth2 View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_installed_oauth2.js). diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 9e0074778a3..915c4c26252 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "a9c04bf9593c343fd6de50f4dad24641162c5f29" + "sha": "2cc6b729f56c08f09c6dcec2c549bf49fb8faa3e" } }, { From 5e61cf6a8c4f6fa01a7cfbc95b92b037e27d6030 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 Aug 2020 22:07:27 -0700 Subject: [PATCH 022/142] chore: start tracking obsolete files (#30) --- .../google-analytics-admin/synth.metadata | 81 ++++++++++++++++++- 1 file changed, 77 insertions(+), 4 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 915c4c26252..cbeaf7e5569 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "2cc6b729f56c08f09c6dcec2c549bf49fb8faa3e" + "sha": "83a9c02f5819430da4f5dce4e4ca658b7c63b812" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "94006b3cb8d2fb44703cf535da15608eed6bf7db", - "internalRef": "325949033" + "sha": "4c5071b615d96ef9dfd6a63d8429090f1f2872bb", + "internalRef": "327369997" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5747555f7620113d9a2078a48f4c047a99d31b3e" + "sha": "1a60ff2a3975c2f5054431588bd95db9c3b862ba" } } ], @@ -33,5 +33,78 @@ "generator": "bazel" } } + ], + "generatedFiles": [ + ".eslintignore", + ".eslintrc.json", + ".gitattributes", + ".github/ISSUE_TEMPLATE/bug_report.md", + ".github/ISSUE_TEMPLATE/feature_request.md", + ".github/ISSUE_TEMPLATE/support_request.md", + ".github/PULL_REQUEST_TEMPLATE.md", + ".github/publish.yml", + ".github/release-please.yml", + ".github/workflows/ci.yaml", + ".gitignore", + ".jsdoc.js", + ".kokoro/.gitattributes", + ".kokoro/common.cfg", + ".kokoro/continuous/node10/common.cfg", + ".kokoro/continuous/node10/docs.cfg", + ".kokoro/continuous/node10/lint.cfg", + ".kokoro/continuous/node10/samples-test.cfg", + ".kokoro/continuous/node10/system-test.cfg", + ".kokoro/continuous/node10/test.cfg", + ".kokoro/continuous/node12/common.cfg", + ".kokoro/continuous/node12/test.cfg", + ".kokoro/docs.sh", + ".kokoro/lint.sh", + ".kokoro/populate-secrets.sh", + ".kokoro/presubmit/node10/common.cfg", + ".kokoro/presubmit/node10/samples-test.cfg", + ".kokoro/presubmit/node10/system-test.cfg", + ".kokoro/presubmit/node12/common.cfg", + ".kokoro/presubmit/node12/test.cfg", + ".kokoro/publish.sh", + ".kokoro/release/docs-devsite.cfg", + ".kokoro/release/docs-devsite.sh", + ".kokoro/release/docs.cfg", + ".kokoro/release/docs.sh", + ".kokoro/release/publish.cfg", + ".kokoro/samples-test.sh", + ".kokoro/system-test.sh", + ".kokoro/test.bat", + ".kokoro/test.sh", + ".kokoro/trampoline.sh", + ".mocharc.js", + ".nycrc", + ".prettierignore", + ".prettierrc.js", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "README.md", + "api-extractor.json", + "linkinator.config.json", + "package-lock.json.2640165376", + "protos/google/analytics/admin/v1alpha/analytics_admin.proto", + "protos/google/analytics/admin/v1alpha/resources.proto", + "protos/protos.d.ts", + "protos/protos.js", + "protos/protos.json", + "renovate.json", + "samples/README.md", + "samples/package-lock.json.3733631643", + "src/index.ts", + "src/v1alpha/analytics_admin_service_client.ts", + "src/v1alpha/analytics_admin_service_client_config.json", + "src/v1alpha/analytics_admin_service_proto_list.json", + "src/v1alpha/index.ts", + "system-test/fixtures/sample/src/index.js", + "system-test/fixtures/sample/src/index.ts", + "system-test/install.ts", + "test/gapic_analytics_admin_service_v1alpha.ts", + "tsconfig.json", + "webpack.config.js" ] } \ No newline at end of file From 058eaa63fc983500a8fa84b4e207d2d33faa7bbd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 28 Aug 2020 11:32:01 -0700 Subject: [PATCH 023/142] fix: move system and samples test from Node 10 to Node 12 (#31) Source-Author: sofisl <55454395+sofisl@users.noreply.github.com> Source-Date: Thu Aug 20 18:29:50 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 05de3e1e14a0b07eab8b474e669164dbd31f81fb Source-Link: https://github.com/googleapis/synthtool/commit/05de3e1e14a0b07eab8b474e669164dbd31f81fb --- packages/google-analytics-admin/synth.metadata | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index cbeaf7e5569..22315ecf670 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "83a9c02f5819430da4f5dce4e4ca658b7c63b812" + "sha": "c6e943c088b584e03fcc6ac3948fd02e887e02e5" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1a60ff2a3975c2f5054431588bd95db9c3b862ba" + "sha": "05de3e1e14a0b07eab8b474e669164dbd31f81fb" } } ], @@ -51,19 +51,19 @@ ".kokoro/common.cfg", ".kokoro/continuous/node10/common.cfg", ".kokoro/continuous/node10/docs.cfg", - ".kokoro/continuous/node10/lint.cfg", - ".kokoro/continuous/node10/samples-test.cfg", - ".kokoro/continuous/node10/system-test.cfg", ".kokoro/continuous/node10/test.cfg", ".kokoro/continuous/node12/common.cfg", + ".kokoro/continuous/node12/lint.cfg", + ".kokoro/continuous/node12/samples-test.cfg", + ".kokoro/continuous/node12/system-test.cfg", ".kokoro/continuous/node12/test.cfg", ".kokoro/docs.sh", ".kokoro/lint.sh", ".kokoro/populate-secrets.sh", ".kokoro/presubmit/node10/common.cfg", - ".kokoro/presubmit/node10/samples-test.cfg", - ".kokoro/presubmit/node10/system-test.cfg", ".kokoro/presubmit/node12/common.cfg", + ".kokoro/presubmit/node12/samples-test.cfg", + ".kokoro/presubmit/node12/system-test.cfg", ".kokoro/presubmit/node12/test.cfg", ".kokoro/publish.sh", ".kokoro/release/docs-devsite.cfg", @@ -86,7 +86,6 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "package-lock.json.2640165376", "protos/google/analytics/admin/v1alpha/analytics_admin.proto", "protos/google/analytics/admin/v1alpha/resources.proto", "protos/protos.d.ts", @@ -94,7 +93,6 @@ "protos/protos.json", "renovate.json", "samples/README.md", - "samples/package-lock.json.3733631643", "src/index.ts", "src/v1alpha/analytics_admin_service_client.ts", "src/v1alpha/analytics_admin_service_client_config.json", From 68d387f5d0acbf52a00acd525e72211603e4939e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2020 13:54:15 -0700 Subject: [PATCH 024/142] chore: release 1.1.2 (#32) * chore: updated samples/package.json [ci skip] * chore: updated CHANGELOG.md [ci skip] * chore: updated package.json Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index bd757e3c920..7c6f2339309 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.1.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.1.1...v1.1.2) (2020-08-28) + + +### Bug Fixes + +* move system and samples test from Node 10 to Node 12 ([#31](https://www.github.com/googleapis/nodejs-analytics-admin/issues/31)) ([bcb2061](https://www.github.com/googleapis/nodejs-analytics-admin/commit/bcb20619c7e13be336bf915c4821004016f67337)) + ### [1.1.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.1.0...v1.1.1) (2020-08-04) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 31d0f6b8631..697c8ea4452 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.1.1", + "version": "1.1.2", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index e1768548cd1..2aae6df10bd 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.1.1", + "@google-analytics/admin": "^1.1.2", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 34c7a89f25988a0dac6a4c8d7c21e98f67f3a311 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 31 Aug 2020 11:07:52 -0700 Subject: [PATCH 025/142] build: track flaky tests for "nightly", add new secrets for tagging (#34) Source-Author: Benjamin E. Coe Source-Date: Wed Aug 26 14:28:22 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 8cf6d2834ad14318e64429c3b94f6443ae83daf9 Source-Link: https://github.com/googleapis/synthtool/commit/8cf6d2834ad14318e64429c3b94f6443ae83daf9 --- packages/google-analytics-admin/synth.metadata | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 22315ecf670..4747744512d 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "c6e943c088b584e03fcc6ac3948fd02e887e02e5" + "sha": "bd8a77583d166c3ff71693f74dfb73af7f82fda1" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "05de3e1e14a0b07eab8b474e669164dbd31f81fb" + "sha": "8cf6d2834ad14318e64429c3b94f6443ae83daf9" } } ], @@ -42,7 +42,6 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", - ".github/publish.yml", ".github/release-please.yml", ".github/workflows/ci.yaml", ".gitignore", From baf20183c76cb08813335e585892eee2a0aeabcf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 12 Sep 2020 14:06:24 -0700 Subject: [PATCH 026/142] build(test): recursively find test files; fail on unsupported dependency versions (#37) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/57acd272-496f-4414-af01-fc62837d5aa1/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/fdd03c161003ab97657cc0218f25c82c89ddf4b6 --- packages/google-analytics-admin/.mocharc.js | 3 ++- packages/google-analytics-admin/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/.mocharc.js b/packages/google-analytics-admin/.mocharc.js index ff7b34fa5d1..0b600509bed 100644 --- a/packages/google-analytics-admin/.mocharc.js +++ b/packages/google-analytics-admin/.mocharc.js @@ -14,7 +14,8 @@ const config = { "enable-source-maps": true, "throw-deprecation": true, - "timeout": 10000 + "timeout": 10000, + "recursive": true } if (process.env.MOCHA_THROW_DEPRECATION === 'false') { delete config['throw-deprecation']; diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 4747744512d..b954e4b24da 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "bd8a77583d166c3ff71693f74dfb73af7f82fda1" + "sha": "e13e35b83cbf89826c2397a57846297f78ca9abf" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8cf6d2834ad14318e64429c3b94f6443ae83daf9" + "sha": "fdd03c161003ab97657cc0218f25c82c89ddf4b6" } } ], From d3fc7921af17c5b9d8cc1feec55d7b6fe71fe202 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 1 Oct 2020 05:03:03 -0700 Subject: [PATCH 027/142] chore: update bucket for cloud-rad (#38) Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Source-Author: F. Hinkelmann Source-Date: Wed Sep 30 14:13:57 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 079dcce498117f9570cebe6e6cff254b38ba3860 Source-Link: https://github.com/googleapis/synthtool/commit/079dcce498117f9570cebe6e6cff254b38ba3860 --- packages/google-analytics-admin/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index b954e4b24da..d2bbf5d0d93 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "e13e35b83cbf89826c2397a57846297f78ca9abf" + "sha": "62f5513fd9846cb14d9b716b612223ac2c92665d" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "fdd03c161003ab97657cc0218f25c82c89ddf4b6" + "sha": "079dcce498117f9570cebe6e6cff254b38ba3860" } } ], From 537084ddd3f59e817b81573caa1f4a30351e296a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 5 Oct 2020 10:42:51 -0700 Subject: [PATCH 028/142] build(node_library): migrate to Trampoline V2 (#39) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/92424049-be37-4899-bb0c-b2b51f64b7af/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9 --- packages/google-analytics-admin/synth.metadata | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index d2bbf5d0d93..8cefb1e9360 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "62f5513fd9846cb14d9b716b612223ac2c92665d" + "sha": "99d64783d5b86d30229ddff394c05f56edc42b74" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "079dcce498117f9570cebe6e6cff254b38ba3860" + "sha": "0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9" } } ], @@ -75,10 +75,12 @@ ".kokoro/test.bat", ".kokoro/test.sh", ".kokoro/trampoline.sh", + ".kokoro/trampoline_v2.sh", ".mocharc.js", ".nycrc", ".prettierignore", ".prettierrc.js", + ".trampolinerc", "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "LICENSE", From 27a8947847b8b89f4dad87e06091db0ba464244a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Oct 2020 16:06:48 -0700 Subject: [PATCH 029/142] feat!: added ListAccountSummaries method (#40) PiperOrigin-RevId: 336969301 Source-Author: Google APIs Source-Date: Tue Oct 13 15:33:17 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 71088f11302e80aae77751d5a915dd2e8b684ec8 Source-Link: https://github.com/googleapis/googleapis/commit/71088f11302e80aae77751d5a915dd2e8b684ec8 --- .../admin/v1alpha/analytics_admin.proto | 32 + .../analytics/admin/v1alpha/resources.proto | 40 + .../google-analytics-admin/protos/protos.d.ts | 417 ++ .../google-analytics-admin/protos/protos.js | 5022 ++++++++++------- .../google-analytics-admin/protos/protos.json | 75 + .../v1alpha/analytics_admin_service_client.ts | 218 + ...analytics_admin_service_client_config.json | 5 + .../google-analytics-admin/synth.metadata | 6 +- .../gapic_analytics_admin_service_v1alpha.ts | 314 ++ 9 files changed, 4095 insertions(+), 2034 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 60d503a9704..566a8fecb04 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -94,6 +94,13 @@ service AnalyticsAdminService { }; } + // Returns summaries of all accounts accessible by the caller. + rpc ListAccountSummaries(ListAccountSummariesRequest) returns (ListAccountSummariesResponse) { + option (google.api.http) = { + get: "/v1alpha/accountSummaries" + }; + } + // Lookup for a single "App+Web" Property. // // Throws "Target not found" if no such property found, if property is not @@ -1342,3 +1349,28 @@ message GetDataSharingSettingsRequest { } ]; } + +// Request message for ListAccountSummaries RPC. +message ListAccountSummariesRequest { + // The maximum number of AccountSummary resources to return. The service may + // return fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 1; + + // A page token, received from a previous `ListAccountSummaries` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListAccountSummaries` + // must match the call that provided the page token. + string page_token = 2; +} + +// Response message for ListAccountSummaries RPC. +message ListAccountSummariesResponse { + // Account summaries of all accounts the caller has access to. + repeated AccountSummary account_summaries = 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-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 79bc304ccbc..1c8d91ba978 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -569,3 +569,43 @@ enum MaximumUserAccess { // the Firebase link. EDITOR_INCLUDING_LINK_MANAGEMENT = 4; } + +// A virtual resource representing an overview of an account and +// all its child App+Web properties. +message AccountSummary { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AccountSummary" + pattern: "accountSummaries/{account_summary}" + }; + + // Resource name for this account summary. + // Format: accountSummaries/{account_id} + // Example: "accountSummaries/1000" + string name = 1; + + // Resource name of account referred to by this account summary + // Format: accounts/{account_id} + // Example: "accounts/1000" + string account = 2 [(google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + }]; + + // Display name for the account referred to in this account summary. + string display_name = 3; + + // List of summaries for child accounts of this account. + repeated PropertySummary property_summaries = 4; +} + +// A virtual resource representing metadata for an App+Web property. +message PropertySummary { + // Resource name of property referred to by this property summary + // Format: properties/{property_id} + // Example: "properties/1000" + string property = 1 [(google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + }]; + + // Display name for the property referred to in this account summary. + string display_name = 2; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 825087710b4..78919f62f33 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -116,6 +116,20 @@ export namespace google { */ public provisionAccountTicket(request: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest): Promise; + /** + * Calls ListAccountSummaries. + * @param request ListAccountSummariesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAccountSummariesResponse + */ + public listAccountSummaries(request: google.analytics.admin.v1alpha.IListAccountSummariesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummariesCallback): void; + + /** + * Calls ListAccountSummaries. + * @param request ListAccountSummariesRequest message or plain object + * @returns Promise + */ + public listAccountSummaries(request: google.analytics.admin.v1alpha.IListAccountSummariesRequest): Promise; + /** * Calls GetProperty. * @param request GetPropertyRequest message or plain object @@ -742,6 +756,13 @@ export namespace google { */ type ProvisionAccountTicketCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) => void; + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. + * @param error Error, if any + * @param [response] ListAccountSummariesResponse + */ + type ListAccountSummariesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountSummariesResponse) => void; + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. * @param error Error, if any @@ -6713,6 +6734,198 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a ListAccountSummariesRequest. */ + interface IListAccountSummariesRequest { + + /** ListAccountSummariesRequest pageSize */ + pageSize?: (number|null); + + /** ListAccountSummariesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListAccountSummariesRequest. */ + class ListAccountSummariesRequest implements IListAccountSummariesRequest { + + /** + * Constructs a new ListAccountSummariesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAccountSummariesRequest); + + /** ListAccountSummariesRequest pageSize. */ + public pageSize: number; + + /** ListAccountSummariesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListAccountSummariesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAccountSummariesRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAccountSummariesRequest): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + + /** + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * @param message ListAccountSummariesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * @param message ListAccountSummariesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAccountSummariesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + + /** + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAccountSummariesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + + /** + * Verifies a ListAccountSummariesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAccountSummariesRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + + /** + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. + * @param message ListAccountSummariesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListAccountSummariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountSummariesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountSummariesResponse. */ + interface IListAccountSummariesResponse { + + /** ListAccountSummariesResponse accountSummaries */ + accountSummaries?: (google.analytics.admin.v1alpha.IAccountSummary[]|null); + + /** ListAccountSummariesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListAccountSummariesResponse. */ + class ListAccountSummariesResponse implements IListAccountSummariesResponse { + + /** + * Constructs a new ListAccountSummariesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAccountSummariesResponse); + + /** ListAccountSummariesResponse accountSummaries. */ + public accountSummaries: google.analytics.admin.v1alpha.IAccountSummary[]; + + /** ListAccountSummariesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListAccountSummariesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAccountSummariesResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAccountSummariesResponse): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + + /** + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * @param message ListAccountSummariesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * @param message ListAccountSummariesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + + /** + * Verifies a ListAccountSummariesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAccountSummariesResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + + /** + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. + * @param message ListAccountSummariesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListAccountSummariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountSummariesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an Account. */ interface IAccount { @@ -8228,6 +8441,210 @@ export namespace google { EDITOR_WITHOUT_LINK_MANAGEMENT = 3, EDITOR_INCLUDING_LINK_MANAGEMENT = 4 } + + /** Properties of an AccountSummary. */ + interface IAccountSummary { + + /** AccountSummary name */ + name?: (string|null); + + /** AccountSummary account */ + account?: (string|null); + + /** AccountSummary displayName */ + displayName?: (string|null); + + /** AccountSummary propertySummaries */ + propertySummaries?: (google.analytics.admin.v1alpha.IPropertySummary[]|null); + } + + /** Represents an AccountSummary. */ + class AccountSummary implements IAccountSummary { + + /** + * Constructs a new AccountSummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccountSummary); + + /** AccountSummary name. */ + public name: string; + + /** AccountSummary account. */ + public account: string; + + /** AccountSummary displayName. */ + public displayName: string; + + /** AccountSummary propertySummaries. */ + public propertySummaries: google.analytics.admin.v1alpha.IPropertySummary[]; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @param [properties] Properties to set + * @returns AccountSummary instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccountSummary): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Verifies an AccountSummary message. + * @param message Plain 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 AccountSummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccountSummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @param message AccountSummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccountSummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PropertySummary. */ + interface IPropertySummary { + + /** PropertySummary property */ + property?: (string|null); + + /** PropertySummary displayName */ + displayName?: (string|null); + } + + /** Represents a PropertySummary. */ + class PropertySummary implements IPropertySummary { + + /** + * Constructs a new PropertySummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IPropertySummary); + + /** PropertySummary property. */ + public property: string; + + /** PropertySummary displayName. */ + public displayName: string; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @param [properties] Properties to set + * @returns PropertySummary instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IPropertySummary): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Verifies a PropertySummary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PropertySummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @param message PropertySummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PropertySummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } } } diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index f5d6bf18bce..dee4e367c5f 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -263,6 +263,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListAccountSummariesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} [response] ListAccountSummariesResponse + */ + + /** + * Calls ListAccountSummaries. + * @function listAccountSummaries + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummariesCallback} callback Node-style callback called with the error, if any, and ListAccountSummariesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listAccountSummaries = function listAccountSummaries(request, callback) { + return this.rpcCall(listAccountSummaries, $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest, $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse, request, callback); + }, "name", { value: "ListAccountSummaries" }); + + /** + * Calls ListAccountSummaries. + * @function listAccountSummaries + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -14376,29 +14409,25 @@ return GetDataSharingSettingsRequest; })(); - v1alpha.Account = (function() { + v1alpha.ListAccountSummariesRequest = (function() { /** - * Properties of an Account. + * Properties of a ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAccount - * @property {string|null} [name] Account name - * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime - * @property {string|null} [displayName] Account displayName - * @property {string|null} [countryCode] Account countryCode - * @property {boolean|null} [deleted] Account deleted + * @interface IListAccountSummariesRequest + * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize + * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken */ /** - * Constructs a new Account. + * Constructs a new ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Account. - * @implements IAccount + * @classdesc Represents a ListAccountSummariesRequest. + * @implements IListAccountSummariesRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set */ - function Account(properties) { + function ListAccountSummariesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14406,140 +14435,88 @@ } /** - * Account name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.name = ""; - - /** - * Account createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.createTime = null; - - /** - * Account updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.updateTime = null; - - /** - * Account displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.displayName = ""; - - /** - * Account countryCode. - * @member {string} countryCode - * @memberof google.analytics.admin.v1alpha.Account + * ListAccountSummariesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - Account.prototype.countryCode = ""; + ListAccountSummariesRequest.prototype.pageSize = 0; /** - * Account deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Account + * ListAccountSummariesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - Account.prototype.deleted = false; + ListAccountSummariesRequest.prototype.pageToken = ""; /** - * Creates a new Account instance using the specified properties. + * Creates a new ListAccountSummariesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Account} Account instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance */ - Account.create = function create(properties) { - return new Account(properties); + ListAccountSummariesRequest.create = function create(properties) { + return new ListAccountSummariesRequest(properties); }; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encode = function encode(message, writer) { + ListAccountSummariesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.countryCode != null && Object.hasOwnProperty.call(message, "countryCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.countryCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + 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); return writer; }; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @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) { + ListAccountSummariesRequest.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.analytics.admin.v1alpha.Account(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.pageSize = reader.int32(); break; case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.displayName = reader.string(); - break; - case 5: - message.countryCode = reader.string(); - break; - case 6: - message.deleted = reader.bool(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -14550,166 +14527,118 @@ }; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @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) { + ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Account message. + * Verifies a ListAccountSummariesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @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) { + ListAccountSummariesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) - if (!$util.isString(message.countryCode)) - return "countryCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean 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 an Account message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest */ - Account.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Account) + ListAccountSummariesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.Account(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.countryCode != null) - message.countryCode = String(object.countryCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); + 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 an Account message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.Account} message Account + * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Account.toObject = function toObject(message, options) { + ListAccountSummariesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.countryCode = ""; - object.deleted = false; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) - object.countryCode = message.countryCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; + 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 Account to JSON. + * Converts this ListAccountSummariesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance * @returns {Object.} JSON object */ - Account.prototype.toJSON = function toJSON() { + ListAccountSummariesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Account; + return ListAccountSummariesRequest; })(); - v1alpha.Property = (function() { + v1alpha.ListAccountSummariesResponse = (function() { /** - * Properties of a Property. + * Properties of a ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IProperty - * @property {string|null} [name] Property name - * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime - * @property {string|null} [parent] Property parent - * @property {string|null} [displayName] Property displayName - * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory - * @property {string|null} [timeZone] Property timeZone - * @property {string|null} [currencyCode] Property currencyCode - * @property {boolean|null} [deleted] Property deleted + * @interface IListAccountSummariesResponse + * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries + * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken */ /** - * Constructs a new Property. + * Constructs a new ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a Property. - * @implements IProperty + * @classdesc Represents a ListAccountSummariesResponse. + * @implements IListAccountSummariesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set */ - function Property(properties) { + function ListAccountSummariesResponse(properties) { + this.accountSummaries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14717,178 +14646,373 @@ } /** - * Property name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Property + * ListAccountSummariesResponse accountSummaries. + * @member {Array.} accountSummaries + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance */ - Property.prototype.name = ""; + ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; /** - * Property createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Property + * ListAccountSummariesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance */ - Property.prototype.createTime = null; + ListAccountSummariesResponse.prototype.nextPageToken = ""; /** - * Property updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance + * Creates a new ListAccountSummariesResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance */ - Property.prototype.updateTime = null; + ListAccountSummariesResponse.create = function create(properties) { + return new ListAccountSummariesResponse(properties); + }; /** - * Property parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.Property + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAccountSummariesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accountSummaries != null && message.accountSummaries.length) + for (var i = 0; i < message.accountSummaries.length; ++i) + $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[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 ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAccountSummariesResponse.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.analytics.admin.v1alpha.ListAccountSummariesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListAccountSummariesResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAccountSummariesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { + if (!Array.isArray(message.accountSummaries)) + return "accountSummaries: array expected"; + for (var i = 0; i < message.accountSummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); + if (error) + return "accountSummaries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + */ + ListAccountSummariesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); + if (object.accountSummaries) { + if (!Array.isArray(object.accountSummaries)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); + message.accountSummaries = []; + for (var i = 0; i < object.accountSummaries.length; ++i) { + if (typeof object.accountSummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); + message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAccountSummariesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.accountSummaries = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.accountSummaries && message.accountSummaries.length) { + object.accountSummaries = []; + for (var j = 0; j < message.accountSummaries.length; ++j) + object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListAccountSummariesResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance + * @returns {Object.} JSON object */ - Property.prototype.parent = ""; + ListAccountSummariesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAccountSummariesResponse; + })(); + + v1alpha.Account = (function() { /** - * Property displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Property + * Properties of an Account. + * @memberof google.analytics.admin.v1alpha + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [countryCode] Account countryCode + * @property {boolean|null} [deleted] Account deleted + */ + + /** + * Constructs a new Account. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an Account. + * @implements IAccount + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account * @instance */ - Property.prototype.displayName = ""; + Account.prototype.name = ""; /** - * Property industryCategory. - * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory - * @memberof google.analytics.admin.v1alpha.Property + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - Property.prototype.industryCategory = 0; + Account.prototype.createTime = null; /** - * Property timeZone. - * @member {string} timeZone - * @memberof google.analytics.admin.v1alpha.Property + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - Property.prototype.timeZone = ""; + Account.prototype.updateTime = null; /** - * Property currencyCode. - * @member {string} currencyCode - * @memberof google.analytics.admin.v1alpha.Property + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - Property.prototype.currencyCode = ""; + Account.prototype.displayName = ""; /** - * Property deleted. + * Account countryCode. + * @member {string} countryCode + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.countryCode = ""; + + /** + * Account deleted. * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - Property.prototype.deleted = false; + Account.prototype.deleted = false; /** - * Creates a new Property instance using the specified properties. + * Creates a new Account instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Property} Property instance + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance */ - Property.create = function create(properties) { - return new Property(properties); + Account.create = function create(properties) { + return new Account(properties); }; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encode = function encode(message, 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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); - if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); - if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.countryCode != null && Object.hasOwnProperty.call(message, "countryCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.countryCode); if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.deleted); + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); return writer; }; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encodeDelimited = function encodeDelimited(message, writer) { + Account.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes an Account message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.Property(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Account(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 3: + case 2: message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - case 4: + case 3: message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - case 2: - message.parent = reader.string(); + case 4: + message.displayName = reader.string(); break; case 5: - message.displayName = reader.string(); + message.countryCode = reader.string(); break; case 6: - message.industryCategory = reader.int32(); - break; - case 7: - message.timeZone = reader.string(); - break; - case 8: - message.currencyCode = reader.string(); - break; - case 9: message.deleted = reader.bool(); break; default: @@ -14900,30 +15024,30 @@ }; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes an Account message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decodeDelimited = function decodeDelimited(reader) { + Account.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Property message. + * Verifies an Account message. * @function verify - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Property.verify = function verify(message) { + Account.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -14939,51 +15063,12 @@ if (error) return "updateTime." + error; } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - switch (message.industryCategory) { - default: - return "industryCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - break; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - if (!$util.isString(message.currencyCode)) - return "currencyCode: string expected"; + if (message.countryCode != null && message.hasOwnProperty("countryCode")) + if (!$util.isString(message.countryCode)) + return "countryCode: string expected"; if (message.deleted != null && message.hasOwnProperty("deleted")) if (typeof message.deleted !== "boolean") return "deleted: boolean expected"; @@ -14991,234 +15076,114 @@ }; /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. + * Creates an Account message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.Account} Account */ - Property.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Property) + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) return object; - var message = new $root.google.analytics.admin.v1alpha.Property(); + var message = new $root.google.analytics.admin.v1alpha.Account(); if (object.name != null) message.name = String(object.name); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.parent != null) - message.parent = String(object.parent); if (object.displayName != null) message.displayName = String(object.displayName); - switch (object.industryCategory) { - case "INDUSTRY_CATEGORY_UNSPECIFIED": - case 0: - message.industryCategory = 0; - break; - case "AUTOMOTIVE": - case 1: - message.industryCategory = 1; - break; - case "BUSINESS_AND_INDUSTRIAL_MARKETS": - case 2: - message.industryCategory = 2; - break; - case "FINANCE": - case 3: - message.industryCategory = 3; - break; - case "HEALTHCARE": - case 4: - message.industryCategory = 4; - break; - case "TECHNOLOGY": - case 5: - message.industryCategory = 5; - break; - case "TRAVEL": - case 6: - message.industryCategory = 6; - break; - case "OTHER": - case 7: - message.industryCategory = 7; - break; - case "ARTS_AND_ENTERTAINMENT": - case 8: - message.industryCategory = 8; - break; - case "BEAUTY_AND_FITNESS": - case 9: - message.industryCategory = 9; - break; - case "BOOKS_AND_LITERATURE": - case 10: - message.industryCategory = 10; - break; - case "FOOD_AND_DRINK": - case 11: - message.industryCategory = 11; - break; - case "GAMES": - case 12: - message.industryCategory = 12; - break; - case "HOBBIES_AND_LEISURE": - case 13: - message.industryCategory = 13; - break; - case "HOME_AND_GARDEN": - case 14: - message.industryCategory = 14; - break; - case "INTERNET_AND_TELECOM": - case 15: - message.industryCategory = 15; - break; - case "LAW_AND_GOVERNMENT": - case 16: - message.industryCategory = 16; - break; - case "NEWS": - case 17: - message.industryCategory = 17; - break; - case "ONLINE_COMMUNITIES": - case 18: - message.industryCategory = 18; - break; - case "PEOPLE_AND_SOCIETY": - case 19: - message.industryCategory = 19; - break; - case "PETS_AND_ANIMALS": - case 20: - message.industryCategory = 20; - break; - case "REAL_ESTATE": - case 21: - message.industryCategory = 21; - break; - case "REFERENCE": - case 22: - message.industryCategory = 22; - break; - case "SCIENCE": - case 23: - message.industryCategory = 23; - break; - case "SPORTS": - case 24: - message.industryCategory = 24; - break; - case "JOBS_AND_EDUCATION": - case 25: - message.industryCategory = 25; - break; - case "SHOPPING": - case 26: - message.industryCategory = 26; - break; - } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.currencyCode != null) - message.currencyCode = String(object.currencyCode); + if (object.countryCode != null) + message.countryCode = String(object.countryCode); if (object.deleted != null) message.deleted = Boolean(object.deleted); return message; }; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. + * Creates a plain object from an Account message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {google.analytics.admin.v1alpha.Account} message Account * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Property.toObject = function toObject(message, options) { + Account.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.parent = ""; object.createTime = null; object.updateTime = null; object.displayName = ""; - object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; - object.timeZone = ""; - object.currencyCode = ""; + object.countryCode = ""; object.deleted = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - object.currencyCode = message.currencyCode; + if (message.countryCode != null && message.hasOwnProperty("countryCode")) + object.countryCode = message.countryCode; if (message.deleted != null && message.hasOwnProperty("deleted")) object.deleted = message.deleted; return object; }; /** - * Converts this Property to JSON. + * Converts this Account to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.Account * @instance * @returns {Object.} JSON object */ - Property.prototype.toJSON = function toJSON() { + Account.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Property; + return Account; })(); - v1alpha.AndroidAppDataStream = (function() { + v1alpha.Property = (function() { /** - * Properties of an AndroidAppDataStream. + * Properties of a Property. * @memberof google.analytics.admin.v1alpha - * @interface IAndroidAppDataStream - * @property {string|null} [name] AndroidAppDataStream name - * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime - * @property {string|null} [packageName] AndroidAppDataStream packageName - * @property {string|null} [displayName] AndroidAppDataStream displayName + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {boolean|null} [deleted] Property deleted */ /** - * Constructs a new AndroidAppDataStream. + * Constructs a new Property. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AndroidAppDataStream. - * @implements IAndroidAppDataStream + * @classdesc Represents a Property. + * @implements IProperty * @constructor - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set */ - function AndroidAppDataStream(properties) { + function Property(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15226,140 +15191,179 @@ } /** - * AndroidAppDataStream name. + * Property name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - AndroidAppDataStream.prototype.name = ""; + Property.prototype.name = ""; /** - * AndroidAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - AndroidAppDataStream.prototype.firebaseAppId = ""; + Property.prototype.createTime = null; /** - * AndroidAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - AndroidAppDataStream.prototype.createTime = null; + Property.prototype.updateTime = null; /** - * AndroidAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - AndroidAppDataStream.prototype.updateTime = null; + Property.prototype.parent = ""; /** - * AndroidAppDataStream packageName. - * @member {string} packageName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - AndroidAppDataStream.prototype.packageName = ""; + Property.prototype.displayName = ""; /** - * AndroidAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - AndroidAppDataStream.prototype.displayName = ""; + Property.prototype.industryCategory = 0; /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.deleted = false; + + /** + * Creates a new Property instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance */ - AndroidAppDataStream.create = function create(properties) { - return new AndroidAppDataStream(properties); + Property.create = function create(properties) { + return new Property(properties); }; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encode = function encode(message, writer) { + Property.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.deleted); return writer; }; /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + Property.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a Property message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decode = function decode(reader, length) { + Property.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.analytics.admin.v1alpha.AndroidAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Property(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.firebaseAppId = reader.string(); - break; case 3: message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; + case 2: + message.parent = reader.string(); + break; case 5: - message.packageName = reader.string(); + message.displayName = reader.string(); break; case 6: - message.displayName = reader.string(); + message.industryCategory = reader.int32(); + break; + case 7: + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 9: + message.deleted = reader.bool(); break; default: reader.skipType(tag & 7); @@ -15370,38 +15374,35 @@ }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a Property message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + Property.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AndroidAppDataStream message. + * Verifies a Property message. * @function verify - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AndroidAppDataStream.verify = function verify(message) { + Property.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) @@ -15412,121 +15413,286 @@ if (error) return "updateTime." + error; } - if (message.packageName != null && message.hasOwnProperty("packageName")) - if (!$util.isString(message.packageName)) - return "packageName: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; return null; }; /** - * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a Property message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.Property} Property */ - AndroidAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) return object; - var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + var message = new $root.google.analytics.admin.v1alpha.Property(); if (object.name != null) message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.packageName != null) - message.packageName = String(object.packageName); + if (object.parent != null) + message.parent = String(object.parent); if (object.displayName != null) message.displayName = String(object.displayName); - return message; - }; - - /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @static - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AndroidAppDataStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": + case 0: + message.industryCategory = 0; + break; + case "AUTOMOTIVE": + case 1: + message.industryCategory = 1; + break; + case "BUSINESS_AND_INDUSTRIAL_MARKETS": + case 2: + message.industryCategory = 2; + break; + case "FINANCE": + case 3: + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; + break; + } + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + return message; + }; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Property.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; if (options.defaults) { object.name = ""; - object.firebaseAppId = ""; + object.parent = ""; object.createTime = null; object.updateTime = null; - object.packageName = ""; object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.deleted = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.packageName != null && message.hasOwnProperty("packageName")) - object.packageName = message.packageName; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; return object; }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this Property to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.Property * @instance * @returns {Object.} JSON object */ - AndroidAppDataStream.prototype.toJSON = function toJSON() { + Property.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AndroidAppDataStream; + return Property; })(); - v1alpha.IosAppDataStream = (function() { + v1alpha.AndroidAppDataStream = (function() { /** - * Properties of an IosAppDataStream. + * Properties of an AndroidAppDataStream. * @memberof google.analytics.admin.v1alpha - * @interface IIosAppDataStream - * @property {string|null} [name] IosAppDataStream name - * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime - * @property {string|null} [bundleId] IosAppDataStream bundleId - * @property {string|null} [displayName] IosAppDataStream displayName + * @interface IAndroidAppDataStream + * @property {string|null} [name] AndroidAppDataStream name + * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime + * @property {string|null} [packageName] AndroidAppDataStream packageName + * @property {string|null} [displayName] AndroidAppDataStream displayName */ /** - * Constructs a new IosAppDataStream. + * Constructs a new AndroidAppDataStream. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an IosAppDataStream. - * @implements IIosAppDataStream + * @classdesc Represents an AndroidAppDataStream. + * @implements IAndroidAppDataStream * @constructor - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set */ - function IosAppDataStream(properties) { + function AndroidAppDataStream(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15534,75 +15700,75 @@ } /** - * IosAppDataStream name. + * AndroidAppDataStream name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @instance */ - IosAppDataStream.prototype.name = ""; + AndroidAppDataStream.prototype.name = ""; /** - * IosAppDataStream firebaseAppId. + * AndroidAppDataStream firebaseAppId. * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @instance */ - IosAppDataStream.prototype.firebaseAppId = ""; + AndroidAppDataStream.prototype.firebaseAppId = ""; /** - * IosAppDataStream createTime. + * AndroidAppDataStream createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @instance */ - IosAppDataStream.prototype.createTime = null; + AndroidAppDataStream.prototype.createTime = null; /** - * IosAppDataStream updateTime. + * AndroidAppDataStream updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @instance */ - IosAppDataStream.prototype.updateTime = null; + AndroidAppDataStream.prototype.updateTime = null; /** - * IosAppDataStream bundleId. - * @member {string} bundleId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * AndroidAppDataStream packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @instance */ - IosAppDataStream.prototype.bundleId = ""; + AndroidAppDataStream.prototype.packageName = ""; /** - * IosAppDataStream displayName. + * AndroidAppDataStream displayName. * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @instance */ - IosAppDataStream.prototype.displayName = ""; + AndroidAppDataStream.prototype.displayName = ""; /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new AndroidAppDataStream instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance */ - IosAppDataStream.create = function create(properties) { - return new IosAppDataStream(properties); + AndroidAppDataStream.create = function create(properties) { + return new AndroidAppDataStream(properties); }; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encode = function encode(message, writer) { + AndroidAppDataStream.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -15613,41 +15779,41 @@ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); return writer; }; /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes an AndroidAppDataStream message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decode = function decode(reader, length) { + AndroidAppDataStream.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.analytics.admin.v1alpha.IosAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15664,7 +15830,7 @@ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 5: - message.bundleId = reader.string(); + message.packageName = reader.string(); break; case 6: message.displayName = reader.string(); @@ -15678,30 +15844,30 @@ }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IosAppDataStream message. + * Verifies an AndroidAppDataStream message. * @function verify - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IosAppDataStream.verify = function verify(message) { + AndroidAppDataStream.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -15720,9 +15886,9 @@ if (error) return "updateTime." + error; } - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - if (!$util.isString(message.bundleId)) - return "bundleId: string expected"; + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; @@ -15730,48 +15896,48 @@ }; /** - * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream */ - IosAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + AndroidAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) return object; - var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); if (object.name != null) message.name = String(object.name); if (object.firebaseAppId != null) message.firebaseAppId = String(object.firebaseAppId); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.bundleId != null) - message.bundleId = String(object.bundleId); + if (object.packageName != null) + message.packageName = String(object.packageName); if (object.displayName != null) message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @static - * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IosAppDataStream.toObject = function toObject(message, options) { + AndroidAppDataStream.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -15780,7 +15946,7 @@ object.firebaseAppId = ""; object.createTime = null; object.updateTime = null; - object.bundleId = ""; + object.packageName = ""; object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) @@ -15791,51 +15957,50 @@ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - object.bundleId = message.bundleId; + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; return object; }; /** - * Converts this IosAppDataStream to JSON. + * Converts this AndroidAppDataStream to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream * @instance * @returns {Object.} JSON object */ - IosAppDataStream.prototype.toJSON = function toJSON() { + AndroidAppDataStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IosAppDataStream; + return AndroidAppDataStream; })(); - v1alpha.WebDataStream = (function() { + v1alpha.IosAppDataStream = (function() { /** - * Properties of a WebDataStream. + * Properties of an IosAppDataStream. * @memberof google.analytics.admin.v1alpha - * @interface IWebDataStream - * @property {string|null} [name] WebDataStream name - * @property {string|null} [measurementId] WebDataStream measurementId - * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime - * @property {string|null} [defaultUri] WebDataStream defaultUri - * @property {string|null} [displayName] WebDataStream displayName + * @interface IIosAppDataStream + * @property {string|null} [name] IosAppDataStream name + * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime + * @property {string|null} [bundleId] IosAppDataStream bundleId + * @property {string|null} [displayName] IosAppDataStream displayName */ /** - * Constructs a new WebDataStream. + * Constructs a new IosAppDataStream. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a WebDataStream. - * @implements IWebDataStream + * @classdesc Represents an IosAppDataStream. + * @implements IIosAppDataStream * @constructor - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set */ - function WebDataStream(properties) { + function IosAppDataStream(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15843,130 +16008,120 @@ } /** - * WebDataStream name. + * IosAppDataStream name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.name = ""; - - /** - * WebDataStream measurementId. - * @member {string} measurementId - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance */ - WebDataStream.prototype.measurementId = ""; + IosAppDataStream.prototype.name = ""; /** - * WebDataStream firebaseAppId. + * IosAppDataStream firebaseAppId. * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance */ - WebDataStream.prototype.firebaseAppId = ""; + IosAppDataStream.prototype.firebaseAppId = ""; /** - * WebDataStream createTime. + * IosAppDataStream createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance */ - WebDataStream.prototype.createTime = null; + IosAppDataStream.prototype.createTime = null; /** - * WebDataStream updateTime. + * IosAppDataStream updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance */ - WebDataStream.prototype.updateTime = null; + IosAppDataStream.prototype.updateTime = null; /** - * WebDataStream defaultUri. - * @member {string} defaultUri - * @memberof google.analytics.admin.v1alpha.WebDataStream + * IosAppDataStream bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance */ - WebDataStream.prototype.defaultUri = ""; + IosAppDataStream.prototype.bundleId = ""; /** - * WebDataStream displayName. + * IosAppDataStream displayName. * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance */ - WebDataStream.prototype.displayName = ""; + IosAppDataStream.prototype.displayName = ""; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new IosAppDataStream instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance */ - WebDataStream.create = function create(properties) { - return new WebDataStream(properties); + IosAppDataStream.create = function create(properties) { + return new IosAppDataStream(properties); }; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encode = function encode(message, writer) { + IosAppDataStream.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); return writer; }; /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes an IosAppDataStream message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decode = function decode(reader, length) { + IosAppDataStream.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.analytics.admin.v1alpha.WebDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15974,21 +16129,18 @@ message.name = reader.string(); break; case 2: - message.measurementId = reader.string(); + message.firebaseAppId = reader.string(); break; case 3: - message.firebaseAppId = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.bundleId = reader.string(); break; case 6: - message.defaultUri = reader.string(); - break; - case 7: message.displayName = reader.string(); break; default: @@ -16000,38 +16152,35 @@ }; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decodeDelimited = function decodeDelimited(reader) { + IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebDataStream message. + * Verifies an IosAppDataStream message. * @function verify - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebDataStream.verify = function verify(message) { + IosAppDataStream.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.measurementId != null && message.hasOwnProperty("measurementId")) - if (!$util.isString(message.measurementId)) - return "measurementId: string expected"; if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) if (!$util.isString(message.firebaseAppId)) return "firebaseAppId: string expected"; @@ -16045,9 +16194,9 @@ if (error) return "updateTime." + error; } - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - if (!$util.isString(message.defaultUri)) - return "defaultUri: string expected"; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; @@ -16055,114 +16204,112 @@ }; /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream */ - WebDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + IosAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) return object; - var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); + var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); if (object.name != null) message.name = String(object.name); - if (object.measurementId != null) - message.measurementId = String(object.measurementId); if (object.firebaseAppId != null) message.firebaseAppId = String(object.firebaseAppId); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.defaultUri != null) - message.defaultUri = String(object.defaultUri); + if (object.bundleId != null) + message.bundleId = String(object.bundleId); if (object.displayName != null) message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static - * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebDataStream.toObject = function toObject(message, options) { + IosAppDataStream.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.measurementId = ""; object.firebaseAppId = ""; object.createTime = null; object.updateTime = null; - object.defaultUri = ""; + object.bundleId = ""; object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - object.measurementId = message.measurementId; if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) object.firebaseAppId = message.firebaseAppId; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - object.defaultUri = message.defaultUri; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; return object; }; /** - * Converts this WebDataStream to JSON. + * Converts this IosAppDataStream to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance * @returns {Object.} JSON object */ - WebDataStream.prototype.toJSON = function toJSON() { + IosAppDataStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WebDataStream; + return IosAppDataStream; })(); - v1alpha.UserLink = (function() { + v1alpha.WebDataStream = (function() { /** - * Properties of a UserLink. + * Properties of a WebDataStream. * @memberof google.analytics.admin.v1alpha - * @interface IUserLink - * @property {string|null} [name] UserLink name - * @property {string|null} [emailAddress] UserLink emailAddress - * @property {Array.|null} [directRoles] UserLink directRoles + * @interface IWebDataStream + * @property {string|null} [name] WebDataStream name + * @property {string|null} [measurementId] WebDataStream measurementId + * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime + * @property {string|null} [defaultUri] WebDataStream defaultUri + * @property {string|null} [displayName] WebDataStream displayName */ /** - * Constructs a new UserLink. + * Constructs a new WebDataStream. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a UserLink. - * @implements IUserLink + * @classdesc Represents a WebDataStream. + * @implements IWebDataStream * @constructor - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set */ - function UserLink(properties) { - this.directRoles = []; + function WebDataStream(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16170,91 +16317,130 @@ } /** - * UserLink name. + * WebDataStream name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - UserLink.prototype.name = ""; + WebDataStream.prototype.name = ""; /** - * UserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.UserLink + * WebDataStream measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - UserLink.prototype.emailAddress = ""; + WebDataStream.prototype.measurementId = ""; /** - * UserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.UserLink + * WebDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - UserLink.prototype.directRoles = $util.emptyArray; + WebDataStream.prototype.firebaseAppId = ""; /** - * Creates a new UserLink instance using the specified properties. + * WebDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.createTime = null; + + /** + * WebDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.updateTime = null; + + /** + * WebDataStream defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.defaultUri = ""; + + /** + * WebDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.displayName = ""; + + /** + * Creates a new WebDataStream instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance */ - UserLink.create = function create(properties) { - return new UserLink(properties); + WebDataStream.create = function create(properties) { + return new WebDataStream(properties); }; /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encode = function encode(message, writer) { + WebDataStream.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); return writer; }; /** - * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encodeDelimited = function encodeDelimited(message, writer) { + WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes a WebDataStream message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decode = function decode(reader, length) { + WebDataStream.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.analytics.admin.v1alpha.UserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.WebDataStream(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16262,12 +16448,22 @@ message.name = reader.string(); break; case 2: - message.emailAddress = reader.string(); + message.measurementId = reader.string(); break; case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); + message.firebaseAppId = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.defaultUri = reader.string(); + break; + case 7: + message.displayName = reader.string(); break; default: reader.skipType(tag & 7); @@ -16278,142 +16474,169 @@ }; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decodeDelimited = function decodeDelimited(reader) { + WebDataStream.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserLink message. + * Verifies a WebDataStream message. * @function verify - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserLink.verify = function verify(message) { + WebDataStream.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.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; return null; }; /** - * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream */ - UserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + WebDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) return object; - var message = new $root.google.analytics.admin.v1alpha.UserLink(); + var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); if (object.name != null) message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - return message; + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; }; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserLink.toObject = function toObject(message, options) { + WebDataStream.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.directRoles = []; if (options.defaults) { object.name = ""; - object.emailAddress = ""; + object.measurementId = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.defaultUri = ""; + object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; - } + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this UserLink to JSON. + * Converts this WebDataStream to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance * @returns {Object.} JSON object */ - UserLink.prototype.toJSON = function toJSON() { + WebDataStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UserLink; + return WebDataStream; })(); - v1alpha.AuditUserLink = (function() { + v1alpha.UserLink = (function() { /** - * Properties of an AuditUserLink. + * Properties of a UserLink. * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLink - * @property {string|null} [name] AuditUserLink name - * @property {string|null} [emailAddress] AuditUserLink emailAddress - * @property {Array.|null} [directRoles] AuditUserLink directRoles - * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + * @interface IUserLink + * @property {string|null} [name] UserLink name + * @property {string|null} [emailAddress] UserLink emailAddress + * @property {Array.|null} [directRoles] UserLink directRoles */ /** - * Constructs a new AuditUserLink. + * Constructs a new UserLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLink. - * @implements IAuditUserLink + * @classdesc Represents a UserLink. + * @implements IUserLink * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set */ - function AuditUserLink(properties) { + function UserLink(properties) { this.directRoles = []; - this.effectiveRoles = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16421,59 +16644,51 @@ } /** - * AuditUserLink name. + * UserLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @instance */ - AuditUserLink.prototype.name = ""; + UserLink.prototype.name = ""; /** - * AuditUserLink emailAddress. + * UserLink emailAddress. * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @instance */ - AuditUserLink.prototype.emailAddress = ""; + UserLink.prototype.emailAddress = ""; /** - * AuditUserLink directRoles. + * UserLink directRoles. * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink - * @instance - */ - AuditUserLink.prototype.directRoles = $util.emptyArray; - - /** - * AuditUserLink effectiveRoles. - * @member {Array.} effectiveRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @instance */ - AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + UserLink.prototype.directRoles = $util.emptyArray; /** - * Creates a new AuditUserLink instance using the specified properties. + * Creates a new UserLink instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance */ - AuditUserLink.create = function create(properties) { - return new AuditUserLink(properties); + UserLink.create = function create(properties) { + return new UserLink(properties); }; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encode = function encode(message, writer) { + UserLink.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -16483,40 +16698,37 @@ if (message.directRoles != null && message.directRoles.length) for (var i = 0; i < message.directRoles.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); - if (message.effectiveRoles != null && message.effectiveRoles.length) - for (var i = 0; i < message.effectiveRoles.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); return writer; }; /** - * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + UserLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes a UserLink message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decode = function decode(reader, length) { + UserLink.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.analytics.admin.v1alpha.AuditUserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UserLink(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16531,11 +16743,6 @@ message.directRoles = []; message.directRoles.push(reader.string()); break; - case 4: - if (!(message.effectiveRoles && message.effectiveRoles.length)) - message.effectiveRoles = []; - message.effectiveRoles.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -16545,30 +16752,30 @@ }; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes a UserLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + UserLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuditUserLink message. + * Verifies a UserLink message. * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserLink.verify = function verify(message) { + UserLink.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -16584,66 +16791,50 @@ if (!$util.isString(message.directRoles[i])) return "directRoles: string[] expected"; } - if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { - if (!Array.isArray(message.effectiveRoles)) - return "effectiveRoles: array expected"; - for (var i = 0; i < message.effectiveRoles.length; ++i) - if (!$util.isString(message.effectiveRoles[i])) - return "effectiveRoles: string[] expected"; - } return null; }; /** - * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink */ - AuditUserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + UserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + var message = new $root.google.analytics.admin.v1alpha.UserLink(); if (object.name != null) message.name = String(object.name); if (object.emailAddress != null) message.emailAddress = String(object.emailAddress); if (object.directRoles) { if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); + throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); message.directRoles = []; for (var i = 0; i < object.directRoles.length; ++i) message.directRoles[i] = String(object.directRoles[i]); } - if (object.effectiveRoles) { - if (!Array.isArray(object.effectiveRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); - message.effectiveRoles = []; - for (var i = 0; i < object.effectiveRoles.length; ++i) - message.effectiveRoles[i] = String(object.effectiveRoles[i]); - } return message; }; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * Creates a plain object from a UserLink message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {google.analytics.admin.v1alpha.UserLink} message UserLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserLink.toObject = function toObject(message, options) { + UserLink.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.directRoles = []; - object.effectiveRoles = []; - } if (options.defaults) { object.name = ""; object.emailAddress = ""; @@ -16657,360 +16848,1254 @@ for (var j = 0; j < message.directRoles.length; ++j) object.directRoles[j] = message.directRoles[j]; } - if (message.effectiveRoles && message.effectiveRoles.length) { - object.effectiveRoles = []; - for (var j = 0; j < message.effectiveRoles.length; ++j) - object.effectiveRoles[j] = message.effectiveRoles[j]; - } return object; }; /** - * Converts this AuditUserLink to JSON. + * Converts this UserLink to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UserLink * @instance * @returns {Object.} JSON object */ - AuditUserLink.prototype.toJSON = function toJSON() { + UserLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuditUserLink; + return UserLink; })(); - v1alpha.EnhancedMeasurementSettings = (function() { + v1alpha.AuditUserLink = (function() { /** - * Properties of an EnhancedMeasurementSettings. + * Properties of an AuditUserLink. * @memberof google.analytics.admin.v1alpha - * @interface IEnhancedMeasurementSettings - * @property {string|null} [name] EnhancedMeasurementSettings name - * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled - * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled - * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled - * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled - * @property {boolean|null} [contentViewsEnabled] EnhancedMeasurementSettings contentViewsEnabled - * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled - * @property {boolean|null} [formInteractionsEnabled] EnhancedMeasurementSettings formInteractionsEnabled - * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled - * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled - * @property {boolean|null} [dataTaggedElementClicksEnabled] EnhancedMeasurementSettings dataTaggedElementClicksEnabled - * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled - * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled - * @property {boolean|null} [articlesAndBlogsEnabled] EnhancedMeasurementSettings articlesAndBlogsEnabled - * @property {boolean|null} [productsAndEcommerceEnabled] EnhancedMeasurementSettings productsAndEcommerceEnabled - * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter - * @property {string|null} [urlQueryParameter] EnhancedMeasurementSettings urlQueryParameter - * @property {string|null} [excludedDomains] EnhancedMeasurementSettings excludedDomains + * @interface IAuditUserLink + * @property {string|null} [name] AuditUserLink name + * @property {string|null} [emailAddress] AuditUserLink emailAddress + * @property {Array.|null} [directRoles] AuditUserLink directRoles + * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles */ /** - * Constructs a new EnhancedMeasurementSettings. + * Constructs a new AuditUserLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an EnhancedMeasurementSettings. - * @implements IEnhancedMeasurementSettings + * @classdesc Represents an AuditUserLink. + * @implements IAuditUserLink * @constructor - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set */ - function EnhancedMeasurementSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + function AuditUserLink(properties) { + this.directRoles = []; + this.effectiveRoles = []; + 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]]; } /** - * EnhancedMeasurementSettings name. + * AuditUserLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.name = ""; - - /** - * EnhancedMeasurementSettings streamEnabled. - * @member {boolean} streamEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - EnhancedMeasurementSettings.prototype.streamEnabled = false; + AuditUserLink.prototype.name = ""; /** - * EnhancedMeasurementSettings pageViewsEnabled. - * @member {boolean} pageViewsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * AuditUserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; + AuditUserLink.prototype.emailAddress = ""; /** - * EnhancedMeasurementSettings scrollsEnabled. - * @member {boolean} scrollsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * AuditUserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - EnhancedMeasurementSettings.prototype.scrollsEnabled = false; + AuditUserLink.prototype.directRoles = $util.emptyArray; /** - * EnhancedMeasurementSettings outboundClicksEnabled. - * @member {boolean} outboundClicksEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * AuditUserLink effectiveRoles. + * @member {Array.} effectiveRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; + AuditUserLink.prototype.effectiveRoles = $util.emptyArray; /** - * EnhancedMeasurementSettings contentViewsEnabled. - * @member {boolean} contentViewsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Creates a new AuditUserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance */ - EnhancedMeasurementSettings.prototype.contentViewsEnabled = false; + AuditUserLink.create = function create(properties) { + return new AuditUserLink(properties); + }; /** - * EnhancedMeasurementSettings siteSearchEnabled. - * @member {boolean} siteSearchEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; + AuditUserLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.effectiveRoles != null && message.effectiveRoles.length) + for (var i = 0; i < message.effectiveRoles.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + return writer; + }; /** - * EnhancedMeasurementSettings formInteractionsEnabled. - * @member {boolean} formInteractionsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.prototype.formInteractionsEnabled = false; + AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * EnhancedMeasurementSettings videoEngagementEnabled. - * @member {boolean} videoEngagementEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Decodes an AuditUserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; + AuditUserLink.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.analytics.admin.v1alpha.AuditUserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.emailAddress = reader.string(); + break; + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + case 4: + if (!(message.effectiveRoles && message.effectiveRoles.length)) + message.effectiveRoles = []; + message.effectiveRoles.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * EnhancedMeasurementSettings fileDownloadsEnabled. - * @member {boolean} fileDownloadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; + AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * EnhancedMeasurementSettings dataTaggedElementClicksEnabled. - * @member {boolean} dataTaggedElementClicksEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Verifies an AuditUserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnhancedMeasurementSettings.prototype.dataTaggedElementClicksEnabled = false; + AuditUserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { + if (!Array.isArray(message.effectiveRoles)) + return "effectiveRoles: array expected"; + for (var i = 0; i < message.effectiveRoles.length; ++i) + if (!$util.isString(message.effectiveRoles[i])) + return "effectiveRoles: string[] expected"; + } + return null; + }; /** - * EnhancedMeasurementSettings pageLoadsEnabled. - * @member {boolean} pageLoadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink */ - EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; + AuditUserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + if (object.effectiveRoles) { + if (!Array.isArray(object.effectiveRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); + message.effectiveRoles = []; + for (var i = 0; i < object.effectiveRoles.length; ++i) + message.effectiveRoles[i] = String(object.effectiveRoles[i]); + } + return message; + }; /** - * EnhancedMeasurementSettings pageChangesEnabled. - * @member {boolean} pageChangesEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; + AuditUserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.directRoles = []; + object.effectiveRoles = []; + } + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + if (message.effectiveRoles && message.effectiveRoles.length) { + object.effectiveRoles = []; + for (var j = 0; j < message.effectiveRoles.length; ++j) + object.effectiveRoles[j] = message.effectiveRoles[j]; + } + return object; + }; + + /** + * Converts this AuditUserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + * @returns {Object.} JSON object + */ + AuditUserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditUserLink; + })(); + + v1alpha.EnhancedMeasurementSettings = (function() { + + /** + * Properties of an EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IEnhancedMeasurementSettings + * @property {string|null} [name] EnhancedMeasurementSettings name + * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled + * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled + * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled + * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled + * @property {boolean|null} [contentViewsEnabled] EnhancedMeasurementSettings contentViewsEnabled + * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled + * @property {boolean|null} [formInteractionsEnabled] EnhancedMeasurementSettings formInteractionsEnabled + * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled + * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled + * @property {boolean|null} [dataTaggedElementClicksEnabled] EnhancedMeasurementSettings dataTaggedElementClicksEnabled + * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled + * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled + * @property {boolean|null} [articlesAndBlogsEnabled] EnhancedMeasurementSettings articlesAndBlogsEnabled + * @property {boolean|null} [productsAndEcommerceEnabled] EnhancedMeasurementSettings productsAndEcommerceEnabled + * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter + * @property {string|null} [urlQueryParameter] EnhancedMeasurementSettings urlQueryParameter + * @property {string|null} [excludedDomains] EnhancedMeasurementSettings excludedDomains + */ + + /** + * Constructs a new EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an EnhancedMeasurementSettings. + * @implements IEnhancedMeasurementSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + */ + function EnhancedMeasurementSettings(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]]; + } + + /** + * EnhancedMeasurementSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.name = ""; + + /** + * EnhancedMeasurementSettings streamEnabled. + * @member {boolean} streamEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.streamEnabled = false; + + /** + * EnhancedMeasurementSettings pageViewsEnabled. + * @member {boolean} pageViewsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; + + /** + * EnhancedMeasurementSettings scrollsEnabled. + * @member {boolean} scrollsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.scrollsEnabled = false; + + /** + * EnhancedMeasurementSettings outboundClicksEnabled. + * @member {boolean} outboundClicksEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; + + /** + * EnhancedMeasurementSettings contentViewsEnabled. + * @member {boolean} contentViewsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.contentViewsEnabled = false; + + /** + * EnhancedMeasurementSettings siteSearchEnabled. + * @member {boolean} siteSearchEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; + + /** + * EnhancedMeasurementSettings formInteractionsEnabled. + * @member {boolean} formInteractionsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.formInteractionsEnabled = false; + + /** + * EnhancedMeasurementSettings videoEngagementEnabled. + * @member {boolean} videoEngagementEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; + + /** + * EnhancedMeasurementSettings fileDownloadsEnabled. + * @member {boolean} fileDownloadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; + + /** + * EnhancedMeasurementSettings dataTaggedElementClicksEnabled. + * @member {boolean} dataTaggedElementClicksEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.dataTaggedElementClicksEnabled = false; + + /** + * EnhancedMeasurementSettings pageLoadsEnabled. + * @member {boolean} pageLoadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageChangesEnabled. + * @member {boolean} pageChangesEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; + + /** + * EnhancedMeasurementSettings articlesAndBlogsEnabled. + * @member {boolean} articlesAndBlogsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.articlesAndBlogsEnabled = false; + + /** + * EnhancedMeasurementSettings productsAndEcommerceEnabled. + * @member {boolean} productsAndEcommerceEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.productsAndEcommerceEnabled = false; + + /** + * EnhancedMeasurementSettings searchQueryParameter. + * @member {string} searchQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; + + /** + * EnhancedMeasurementSettings urlQueryParameter. + * @member {string} urlQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.urlQueryParameter = ""; + + /** + * EnhancedMeasurementSettings excludedDomains. + * @member {string} excludedDomains + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.excludedDomains = ""; + + /** + * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + */ + EnhancedMeasurementSettings.create = function create(properties) { + return new EnhancedMeasurementSettings(properties); + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); + if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); + if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); + if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); + if (message.contentViewsEnabled != null && Object.hasOwnProperty.call(message, "contentViewsEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.contentViewsEnabled); + if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); + if (message.formInteractionsEnabled != null && Object.hasOwnProperty.call(message, "formInteractionsEnabled")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.formInteractionsEnabled); + if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); + if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); + if (message.dataTaggedElementClicksEnabled != null && Object.hasOwnProperty.call(message, "dataTaggedElementClicksEnabled")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.dataTaggedElementClicksEnabled); + if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); + if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); + if (message.articlesAndBlogsEnabled != null && Object.hasOwnProperty.call(message, "articlesAndBlogsEnabled")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.articlesAndBlogsEnabled); + if (message.productsAndEcommerceEnabled != null && Object.hasOwnProperty.call(message, "productsAndEcommerceEnabled")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.productsAndEcommerceEnabled); + if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); + if (message.urlQueryParameter != null && Object.hasOwnProperty.call(message, "urlQueryParameter")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.urlQueryParameter); + if (message.excludedDomains != null && Object.hasOwnProperty.call(message, "excludedDomains")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.excludedDomains); + return writer; + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.streamEnabled = reader.bool(); + break; + case 3: + message.pageViewsEnabled = reader.bool(); + break; + case 4: + message.scrollsEnabled = reader.bool(); + break; + case 5: + message.outboundClicksEnabled = reader.bool(); + break; + case 6: + message.contentViewsEnabled = reader.bool(); + break; + case 7: + message.siteSearchEnabled = reader.bool(); + break; + case 8: + message.formInteractionsEnabled = reader.bool(); + break; + case 9: + message.videoEngagementEnabled = reader.bool(); + break; + case 10: + message.fileDownloadsEnabled = reader.bool(); + break; + case 11: + message.dataTaggedElementClicksEnabled = reader.bool(); + break; + case 12: + message.pageLoadsEnabled = reader.bool(); + break; + case 13: + message.pageChangesEnabled = reader.bool(); + break; + case 14: + message.articlesAndBlogsEnabled = reader.bool(); + break; + case 15: + message.productsAndEcommerceEnabled = reader.bool(); + break; + case 16: + message.searchQueryParameter = reader.string(); + break; + case 17: + message.urlQueryParameter = reader.string(); + break; + case 18: + message.excludedDomains = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnhancedMeasurementSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnhancedMeasurementSettings.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + if (typeof message.streamEnabled !== "boolean") + return "streamEnabled: boolean expected"; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + if (typeof message.pageViewsEnabled !== "boolean") + return "pageViewsEnabled: boolean expected"; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + if (typeof message.scrollsEnabled !== "boolean") + return "scrollsEnabled: boolean expected"; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + if (typeof message.outboundClicksEnabled !== "boolean") + return "outboundClicksEnabled: boolean expected"; + if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) + if (typeof message.contentViewsEnabled !== "boolean") + return "contentViewsEnabled: boolean expected"; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + if (typeof message.siteSearchEnabled !== "boolean") + return "siteSearchEnabled: boolean expected"; + if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) + if (typeof message.formInteractionsEnabled !== "boolean") + return "formInteractionsEnabled: boolean expected"; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + if (typeof message.videoEngagementEnabled !== "boolean") + return "videoEngagementEnabled: boolean expected"; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + if (typeof message.fileDownloadsEnabled !== "boolean") + return "fileDownloadsEnabled: boolean expected"; + if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) + if (typeof message.dataTaggedElementClicksEnabled !== "boolean") + return "dataTaggedElementClicksEnabled: boolean expected"; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + if (typeof message.pageLoadsEnabled !== "boolean") + return "pageLoadsEnabled: boolean expected"; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + if (typeof message.pageChangesEnabled !== "boolean") + return "pageChangesEnabled: boolean expected"; + if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) + if (typeof message.articlesAndBlogsEnabled !== "boolean") + return "articlesAndBlogsEnabled: boolean expected"; + if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) + if (typeof message.productsAndEcommerceEnabled !== "boolean") + return "productsAndEcommerceEnabled: boolean expected"; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + if (!$util.isString(message.searchQueryParameter)) + return "searchQueryParameter: string expected"; + if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) + if (!$util.isString(message.urlQueryParameter)) + return "urlQueryParameter: string expected"; + if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) + if (!$util.isString(message.excludedDomains)) + return "excludedDomains: string expected"; + return null; + }; + + /** + * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + */ + EnhancedMeasurementSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.streamEnabled != null) + message.streamEnabled = Boolean(object.streamEnabled); + if (object.pageViewsEnabled != null) + message.pageViewsEnabled = Boolean(object.pageViewsEnabled); + if (object.scrollsEnabled != null) + message.scrollsEnabled = Boolean(object.scrollsEnabled); + if (object.outboundClicksEnabled != null) + message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); + if (object.contentViewsEnabled != null) + message.contentViewsEnabled = Boolean(object.contentViewsEnabled); + if (object.siteSearchEnabled != null) + message.siteSearchEnabled = Boolean(object.siteSearchEnabled); + if (object.formInteractionsEnabled != null) + message.formInteractionsEnabled = Boolean(object.formInteractionsEnabled); + if (object.videoEngagementEnabled != null) + message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); + if (object.fileDownloadsEnabled != null) + message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); + if (object.dataTaggedElementClicksEnabled != null) + message.dataTaggedElementClicksEnabled = Boolean(object.dataTaggedElementClicksEnabled); + if (object.pageLoadsEnabled != null) + message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); + if (object.pageChangesEnabled != null) + message.pageChangesEnabled = Boolean(object.pageChangesEnabled); + if (object.articlesAndBlogsEnabled != null) + message.articlesAndBlogsEnabled = Boolean(object.articlesAndBlogsEnabled); + if (object.productsAndEcommerceEnabled != null) + message.productsAndEcommerceEnabled = Boolean(object.productsAndEcommerceEnabled); + if (object.searchQueryParameter != null) + message.searchQueryParameter = String(object.searchQueryParameter); + if (object.urlQueryParameter != null) + message.urlQueryParameter = String(object.urlQueryParameter); + if (object.excludedDomains != null) + message.excludedDomains = String(object.excludedDomains); + return message; + }; + + /** + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnhancedMeasurementSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.streamEnabled = false; + object.pageViewsEnabled = false; + object.scrollsEnabled = false; + object.outboundClicksEnabled = false; + object.contentViewsEnabled = false; + object.siteSearchEnabled = false; + object.formInteractionsEnabled = false; + object.videoEngagementEnabled = false; + object.fileDownloadsEnabled = false; + object.dataTaggedElementClicksEnabled = false; + object.pageLoadsEnabled = false; + object.pageChangesEnabled = false; + object.articlesAndBlogsEnabled = false; + object.productsAndEcommerceEnabled = false; + object.searchQueryParameter = ""; + object.urlQueryParameter = ""; + object.excludedDomains = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + object.streamEnabled = message.streamEnabled; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + object.pageViewsEnabled = message.pageViewsEnabled; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + object.scrollsEnabled = message.scrollsEnabled; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + object.outboundClicksEnabled = message.outboundClicksEnabled; + if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) + object.contentViewsEnabled = message.contentViewsEnabled; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + object.siteSearchEnabled = message.siteSearchEnabled; + if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) + object.formInteractionsEnabled = message.formInteractionsEnabled; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + object.videoEngagementEnabled = message.videoEngagementEnabled; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + object.fileDownloadsEnabled = message.fileDownloadsEnabled; + if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) + object.dataTaggedElementClicksEnabled = message.dataTaggedElementClicksEnabled; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + object.pageLoadsEnabled = message.pageLoadsEnabled; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + object.pageChangesEnabled = message.pageChangesEnabled; + if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) + object.articlesAndBlogsEnabled = message.articlesAndBlogsEnabled; + if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) + object.productsAndEcommerceEnabled = message.productsAndEcommerceEnabled; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + object.searchQueryParameter = message.searchQueryParameter; + if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) + object.urlQueryParameter = message.urlQueryParameter; + if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) + object.excludedDomains = message.excludedDomains; + return object; + }; + + /** + * Converts this EnhancedMeasurementSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + * @returns {Object.} JSON object + */ + EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnhancedMeasurementSettings; + })(); + + v1alpha.FirebaseLink = (function() { + + /** + * Properties of a FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @interface IFirebaseLink + * @property {string|null} [name] FirebaseLink name + * @property {string|null} [project] FirebaseLink project + * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess + */ + + /** + * Constructs a new FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a FirebaseLink. + * @implements IFirebaseLink + * @constructor + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + */ + function FirebaseLink(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]]; + } + + /** + * FirebaseLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.name = ""; + + /** + * FirebaseLink project. + * @member {string} project + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.project = ""; + + /** + * FirebaseLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.createTime = null; + + /** + * FirebaseLink maximumUserAccess. + * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.maximumUserAccess = 0; + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + */ + FirebaseLink.create = function create(properties) { + return new FirebaseLink(properties); + }; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.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.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); + return writer; + }; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.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.analytics.admin.v1alpha.FirebaseLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.maximumUserAccess = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FirebaseLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FirebaseLink.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.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + switch (message.maximumUserAccess) { + default: + return "maximumUserAccess: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + */ + FirebaseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + if (object.name != null) + message.name = String(object.name); + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + switch (object.maximumUserAccess) { + case "MAXIMUM_USER_ACCESS_UNSPECIFIED": + case 0: + message.maximumUserAccess = 0; + break; + case "NO_ACCESS": + case 1: + message.maximumUserAccess = 1; + break; + case "READ_AND_ANALYZE": + case 2: + message.maximumUserAccess = 2; + break; + case "EDITOR_WITHOUT_LINK_MANAGEMENT": + case 3: + message.maximumUserAccess = 3; + break; + case "EDITOR_INCLUDING_LINK_MANAGEMENT": + case 4: + message.maximumUserAccess = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FirebaseLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.project = ""; + object.createTime = null; + object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; + return object; + }; /** - * EnhancedMeasurementSettings articlesAndBlogsEnabled. - * @member {boolean} articlesAndBlogsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * Converts this FirebaseLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @instance + * @returns {Object.} JSON object */ - EnhancedMeasurementSettings.prototype.articlesAndBlogsEnabled = false; + FirebaseLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * EnhancedMeasurementSettings productsAndEcommerceEnabled. - * @member {boolean} productsAndEcommerceEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.productsAndEcommerceEnabled = false; + return FirebaseLink; + })(); + + v1alpha.GlobalSiteTag = (function() { /** - * EnhancedMeasurementSettings searchQueryParameter. - * @member {string} searchQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Properties of a GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @interface IGlobalSiteTag + * @property {string|null} [snippet] GlobalSiteTag snippet */ - EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; /** - * EnhancedMeasurementSettings urlQueryParameter. - * @member {string} urlQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Constructs a new GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GlobalSiteTag. + * @implements IGlobalSiteTag + * @constructor + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set */ - EnhancedMeasurementSettings.prototype.urlQueryParameter = ""; + function GlobalSiteTag(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]]; + } /** - * EnhancedMeasurementSettings excludedDomains. - * @member {string} excludedDomains - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * GlobalSiteTag snippet. + * @member {string} snippet + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @instance */ - EnhancedMeasurementSettings.prototype.excludedDomains = ""; + GlobalSiteTag.prototype.snippet = ""; /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * Creates a new GlobalSiteTag instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance */ - EnhancedMeasurementSettings.create = function create(properties) { - return new EnhancedMeasurementSettings(properties); + GlobalSiteTag.create = function create(properties) { + return new GlobalSiteTag(properties); }; /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encode = function encode(message, writer) { + GlobalSiteTag.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); - if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); - if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); - if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); - if (message.contentViewsEnabled != null && Object.hasOwnProperty.call(message, "contentViewsEnabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.contentViewsEnabled); - if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); - if (message.formInteractionsEnabled != null && Object.hasOwnProperty.call(message, "formInteractionsEnabled")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.formInteractionsEnabled); - if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); - if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); - if (message.dataTaggedElementClicksEnabled != null && Object.hasOwnProperty.call(message, "dataTaggedElementClicksEnabled")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.dataTaggedElementClicksEnabled); - if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); - if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); - if (message.articlesAndBlogsEnabled != null && Object.hasOwnProperty.call(message, "articlesAndBlogsEnabled")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.articlesAndBlogsEnabled); - if (message.productsAndEcommerceEnabled != null && Object.hasOwnProperty.call(message, "productsAndEcommerceEnabled")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.productsAndEcommerceEnabled); - if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); - if (message.urlQueryParameter != null && Object.hasOwnProperty.call(message, "urlQueryParameter")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.urlQueryParameter); - if (message.excludedDomains != null && Object.hasOwnProperty.call(message, "excludedDomains")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.excludedDomains); + if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.snippet); return writer; }; /** - * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * Decodes a GlobalSiteTag message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.decode = function decode(reader, length) { + GlobalSiteTag.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.streamEnabled = reader.bool(); - break; - case 3: - message.pageViewsEnabled = reader.bool(); - break; - case 4: - message.scrollsEnabled = reader.bool(); - break; - case 5: - message.outboundClicksEnabled = reader.bool(); - break; - case 6: - message.contentViewsEnabled = reader.bool(); - break; - case 7: - message.siteSearchEnabled = reader.bool(); - break; - case 8: - message.formInteractionsEnabled = reader.bool(); - break; - case 9: - message.videoEngagementEnabled = reader.bool(); - break; - case 10: - message.fileDownloadsEnabled = reader.bool(); - break; - case 11: - message.dataTaggedElementClicksEnabled = reader.bool(); - break; - case 12: - message.pageLoadsEnabled = reader.bool(); - break; - case 13: - message.pageChangesEnabled = reader.bool(); - break; - case 14: - message.articlesAndBlogsEnabled = reader.bool(); - break; - case 15: - message.productsAndEcommerceEnabled = reader.bool(); - break; - case 16: - message.searchQueryParameter = reader.string(); - break; - case 17: - message.urlQueryParameter = reader.string(); - break; - case 18: - message.excludedDomains = reader.string(); + message.snippet = reader.string(); break; default: reader.skipType(tag & 7); @@ -17021,247 +18106,114 @@ }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnhancedMeasurementSettings message. + * Verifies a GlobalSiteTag message. * @function verify - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnhancedMeasurementSettings.verify = function verify(message) { + GlobalSiteTag.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - if (typeof message.streamEnabled !== "boolean") - return "streamEnabled: boolean expected"; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - if (typeof message.pageViewsEnabled !== "boolean") - return "pageViewsEnabled: boolean expected"; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - if (typeof message.scrollsEnabled !== "boolean") - return "scrollsEnabled: boolean expected"; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - if (typeof message.outboundClicksEnabled !== "boolean") - return "outboundClicksEnabled: boolean expected"; - if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) - if (typeof message.contentViewsEnabled !== "boolean") - return "contentViewsEnabled: boolean expected"; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - if (typeof message.siteSearchEnabled !== "boolean") - return "siteSearchEnabled: boolean expected"; - if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) - if (typeof message.formInteractionsEnabled !== "boolean") - return "formInteractionsEnabled: boolean expected"; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - if (typeof message.videoEngagementEnabled !== "boolean") - return "videoEngagementEnabled: boolean expected"; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - if (typeof message.fileDownloadsEnabled !== "boolean") - return "fileDownloadsEnabled: boolean expected"; - if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) - if (typeof message.dataTaggedElementClicksEnabled !== "boolean") - return "dataTaggedElementClicksEnabled: boolean expected"; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - if (typeof message.pageLoadsEnabled !== "boolean") - return "pageLoadsEnabled: boolean expected"; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - if (typeof message.pageChangesEnabled !== "boolean") - return "pageChangesEnabled: boolean expected"; - if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) - if (typeof message.articlesAndBlogsEnabled !== "boolean") - return "articlesAndBlogsEnabled: boolean expected"; - if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) - if (typeof message.productsAndEcommerceEnabled !== "boolean") - return "productsAndEcommerceEnabled: boolean expected"; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - if (!$util.isString(message.searchQueryParameter)) - return "searchQueryParameter: string expected"; - if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) - if (!$util.isString(message.urlQueryParameter)) - return "urlQueryParameter: string expected"; - if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) - if (!$util.isString(message.excludedDomains)) - return "excludedDomains: string expected"; + if (message.snippet != null && message.hasOwnProperty("snippet")) + if (!$util.isString(message.snippet)) + return "snippet: string expected"; return null; }; /** - * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag */ - EnhancedMeasurementSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + GlobalSiteTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) return object; - var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.streamEnabled != null) - message.streamEnabled = Boolean(object.streamEnabled); - if (object.pageViewsEnabled != null) - message.pageViewsEnabled = Boolean(object.pageViewsEnabled); - if (object.scrollsEnabled != null) - message.scrollsEnabled = Boolean(object.scrollsEnabled); - if (object.outboundClicksEnabled != null) - message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); - if (object.contentViewsEnabled != null) - message.contentViewsEnabled = Boolean(object.contentViewsEnabled); - if (object.siteSearchEnabled != null) - message.siteSearchEnabled = Boolean(object.siteSearchEnabled); - if (object.formInteractionsEnabled != null) - message.formInteractionsEnabled = Boolean(object.formInteractionsEnabled); - if (object.videoEngagementEnabled != null) - message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); - if (object.fileDownloadsEnabled != null) - message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); - if (object.dataTaggedElementClicksEnabled != null) - message.dataTaggedElementClicksEnabled = Boolean(object.dataTaggedElementClicksEnabled); - if (object.pageLoadsEnabled != null) - message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); - if (object.pageChangesEnabled != null) - message.pageChangesEnabled = Boolean(object.pageChangesEnabled); - if (object.articlesAndBlogsEnabled != null) - message.articlesAndBlogsEnabled = Boolean(object.articlesAndBlogsEnabled); - if (object.productsAndEcommerceEnabled != null) - message.productsAndEcommerceEnabled = Boolean(object.productsAndEcommerceEnabled); - if (object.searchQueryParameter != null) - message.searchQueryParameter = String(object.searchQueryParameter); - if (object.urlQueryParameter != null) - message.urlQueryParameter = String(object.urlQueryParameter); - if (object.excludedDomains != null) - message.excludedDomains = String(object.excludedDomains); + var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + if (object.snippet != null) + message.snippet = String(object.snippet); return message; }; /** - * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnhancedMeasurementSettings.toObject = function toObject(message, options) { + GlobalSiteTag.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.streamEnabled = false; - object.pageViewsEnabled = false; - object.scrollsEnabled = false; - object.outboundClicksEnabled = false; - object.contentViewsEnabled = false; - object.siteSearchEnabled = false; - object.formInteractionsEnabled = false; - object.videoEngagementEnabled = false; - object.fileDownloadsEnabled = false; - object.dataTaggedElementClicksEnabled = false; - object.pageLoadsEnabled = false; - object.pageChangesEnabled = false; - object.articlesAndBlogsEnabled = false; - object.productsAndEcommerceEnabled = false; - object.searchQueryParameter = ""; - object.urlQueryParameter = ""; - object.excludedDomains = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - object.streamEnabled = message.streamEnabled; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - object.pageViewsEnabled = message.pageViewsEnabled; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - object.scrollsEnabled = message.scrollsEnabled; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - object.outboundClicksEnabled = message.outboundClicksEnabled; - if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) - object.contentViewsEnabled = message.contentViewsEnabled; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - object.siteSearchEnabled = message.siteSearchEnabled; - if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) - object.formInteractionsEnabled = message.formInteractionsEnabled; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - object.videoEngagementEnabled = message.videoEngagementEnabled; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - object.fileDownloadsEnabled = message.fileDownloadsEnabled; - if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) - object.dataTaggedElementClicksEnabled = message.dataTaggedElementClicksEnabled; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - object.pageLoadsEnabled = message.pageLoadsEnabled; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - object.pageChangesEnabled = message.pageChangesEnabled; - if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) - object.articlesAndBlogsEnabled = message.articlesAndBlogsEnabled; - if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) - object.productsAndEcommerceEnabled = message.productsAndEcommerceEnabled; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - object.searchQueryParameter = message.searchQueryParameter; - if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) - object.urlQueryParameter = message.urlQueryParameter; - if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) - object.excludedDomains = message.excludedDomains; + if (options.defaults) + object.snippet = ""; + if (message.snippet != null && message.hasOwnProperty("snippet")) + object.snippet = message.snippet; return object; }; /** - * Converts this EnhancedMeasurementSettings to JSON. + * Converts this GlobalSiteTag to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @instance * @returns {Object.} JSON object */ - EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + GlobalSiteTag.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnhancedMeasurementSettings; + return GlobalSiteTag; })(); - v1alpha.FirebaseLink = (function() { + v1alpha.GoogleAdsLink = (function() { /** - * Properties of a FirebaseLink. + * Properties of a GoogleAdsLink. * @memberof google.analytics.admin.v1alpha - * @interface IFirebaseLink - * @property {string|null} [name] FirebaseLink name - * @property {string|null} [project] FirebaseLink project - * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime - * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess + * @interface IGoogleAdsLink + * @property {string|null} [name] GoogleAdsLink name + * @property {string|null} [parent] GoogleAdsLink parent + * @property {string|null} [customerId] GoogleAdsLink customerId + * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled + * @property {string|null} [emailAddress] GoogleAdsLink emailAddress + * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime */ /** - * Constructs a new FirebaseLink. + * Constructs a new GoogleAdsLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a FirebaseLink. - * @implements IFirebaseLink + * @classdesc Represents a GoogleAdsLink. + * @implements IGoogleAdsLink * @constructor - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set */ - function FirebaseLink(properties) { + function GoogleAdsLink(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17269,100 +18221,140 @@ } /** - * FirebaseLink name. + * GoogleAdsLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.name = ""; + GoogleAdsLink.prototype.name = ""; /** - * FirebaseLink project. - * @member {string} project - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * GoogleAdsLink parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.project = ""; + GoogleAdsLink.prototype.parent = ""; /** - * FirebaseLink createTime. + * GoogleAdsLink customerId. + * @member {string} customerId + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.customerId = ""; + + /** + * GoogleAdsLink canManageClients. + * @member {boolean} canManageClients + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.canManageClients = false; + + /** + * GoogleAdsLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + + /** + * GoogleAdsLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.emailAddress = ""; + + /** + * GoogleAdsLink createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.createTime = null; + GoogleAdsLink.prototype.createTime = null; /** - * FirebaseLink maximumUserAccess. - * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * GoogleAdsLink updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.maximumUserAccess = 0; + GoogleAdsLink.prototype.updateTime = null; /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new GoogleAdsLink instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance */ - FirebaseLink.create = function create(properties) { - return new FirebaseLink(properties); + GoogleAdsLink.create = function create(properties) { + return new GoogleAdsLink(properties); }; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encode = function encode(message, writer) { + GoogleAdsLink.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.project != null && Object.hasOwnProperty.call(message, "project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.customerId != null && Object.hasOwnProperty.call(message, "customerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); + if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes a GoogleAdsLink message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decode = function decode(reader, length) { + GoogleAdsLink.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.analytics.admin.v1alpha.FirebaseLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17370,13 +18362,25 @@ message.name = reader.string(); break; case 2: - message.project = reader.string(); + message.parent = reader.string(); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.customerId = reader.string(); break; case 4: - message.maximumUserAccess = reader.int32(); + message.canManageClients = reader.bool(); + break; + case 5: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 6: + message.emailAddress = reader.string(); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17387,165 +18391,184 @@ }; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FirebaseLink message. + * Verifies a GoogleAdsLink message. * @function verify - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FirebaseLink.verify = function verify(message) { + GoogleAdsLink.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.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customerId != null && message.hasOwnProperty("customerId")) + if (!$util.isString(message.customerId)) + return "customerId: string expected"; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + if (typeof message.canManageClients !== "boolean") + return "canManageClients: boolean expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) return "createTime." + error; } - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - switch (message.maximumUserAccess) { - default: - return "maximumUserAccess: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink */ - FirebaseLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + GoogleAdsLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) return object; - var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); if (object.name != null) message.name = String(object.name); - if (object.project != null) - message.project = String(object.project); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customerId != null) + message.customerId = String(object.customerId); + if (object.canManageClients != null) + message.canManageClients = Boolean(object.canManageClients); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - switch (object.maximumUserAccess) { - case "MAXIMUM_USER_ACCESS_UNSPECIFIED": - case 0: - message.maximumUserAccess = 0; - break; - case "NO_ACCESS": - case 1: - message.maximumUserAccess = 1; - break; - case "READ_AND_ANALYZE": - case 2: - message.maximumUserAccess = 2; - break; - case "EDITOR_WITHOUT_LINK_MANAGEMENT": - case 3: - message.maximumUserAccess = 3; - break; - case "EDITOR_INCLUDING_LINK_MANAGEMENT": - case 4: - message.maximumUserAccess = 4; - break; + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } return message; }; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FirebaseLink.toObject = function toObject(message, options) { + GoogleAdsLink.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.project = ""; + object.parent = ""; + object.customerId = ""; + object.canManageClients = false; + object.adsPersonalizationEnabled = null; + object.emailAddress = ""; object.createTime = null; - object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; + object.updateTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.project != null && message.hasOwnProperty("project")) - object.project = message.project; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customerId != null && message.hasOwnProperty("customerId")) + object.customerId = message.customerId; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + object.canManageClients = message.canManageClients; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this FirebaseLink to JSON. + * Converts this GoogleAdsLink to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance * @returns {Object.} JSON object */ - FirebaseLink.prototype.toJSON = function toJSON() { + GoogleAdsLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FirebaseLink; + return GoogleAdsLink; })(); - v1alpha.GlobalSiteTag = (function() { + v1alpha.DataSharingSettings = (function() { /** - * Properties of a GlobalSiteTag. + * Properties of a DataSharingSettings. * @memberof google.analytics.admin.v1alpha - * @interface IGlobalSiteTag - * @property {string|null} [snippet] GlobalSiteTag snippet + * @interface IDataSharingSettings + * @property {string|null} [name] DataSharingSettings name + * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled + * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled + * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled + * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled + * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled */ /** - * Constructs a new GlobalSiteTag. + * Constructs a new DataSharingSettings. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GlobalSiteTag. - * @implements IGlobalSiteTag + * @classdesc Represents a DataSharingSettings. + * @implements IDataSharingSettings * @constructor - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set */ - function GlobalSiteTag(properties) { + function DataSharingSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17553,75 +18576,140 @@ } /** - * GlobalSiteTag snippet. - * @member {string} snippet - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * DataSharingSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @instance */ - GlobalSiteTag.prototype.snippet = ""; + DataSharingSettings.prototype.name = ""; /** - * Creates a new GlobalSiteTag instance using the specified properties. + * DataSharingSettings sharingWithGoogleSupportEnabled. + * @member {boolean} sharingWithGoogleSupportEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. + * @member {boolean} sharingWithGoogleAssignedSalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAnySalesEnabled. + * @member {boolean} sharingWithGoogleAnySalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleProductsEnabled. + * @member {boolean} sharingWithGoogleProductsEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + + /** + * DataSharingSettings sharingWithOthersEnabled. + * @member {boolean} sharingWithOthersEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithOthersEnabled = false; + + /** + * Creates a new DataSharingSettings instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance */ - GlobalSiteTag.create = function create(properties) { - return new GlobalSiteTag(properties); + DataSharingSettings.create = function create(properties) { + return new DataSharingSettings(properties); }; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encode = function encode(message, writer) { + DataSharingSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.snippet); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); + if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); + if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); + if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); + if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); return writer; }; /** - * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes a DataSharingSettings message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decode = function decode(reader, length) { + DataSharingSettings.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.analytics.admin.v1alpha.GlobalSiteTag(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.snippet = reader.string(); + message.name = reader.string(); + break; + case 2: + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + case 3: + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + case 4: + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + case 5: + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + case 6: + message.sharingWithOthersEnabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -17632,114 +18720,236 @@ }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GlobalSiteTag message. + * Verifies a DataSharingSettings message. * @function verify - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalSiteTag.verify = function verify(message) { + DataSharingSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.snippet != null && message.hasOwnProperty("snippet")) - if (!$util.isString(message.snippet)) - return "snippet: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") + return "sharingWithGoogleSupportEnabled: boolean expected"; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") + return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") + return "sharingWithGoogleAnySalesEnabled: boolean expected"; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") + return "sharingWithGoogleProductsEnabled: boolean expected"; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + if (typeof message.sharingWithOthersEnabled !== "boolean") + return "sharingWithOthersEnabled: boolean expected"; return null; }; /** - * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings */ - GlobalSiteTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + DataSharingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) return object; - var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); - if (object.snippet != null) - message.snippet = String(object.snippet); + var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.sharingWithGoogleSupportEnabled != null) + message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); + if (object.sharingWithGoogleAssignedSalesEnabled != null) + message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); + if (object.sharingWithGoogleAnySalesEnabled != null) + message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); + if (object.sharingWithGoogleProductsEnabled != null) + message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); + if (object.sharingWithOthersEnabled != null) + message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); return message; }; /** - * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalSiteTag.toObject = function toObject(message, options) { + DataSharingSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.snippet = ""; - if (message.snippet != null && message.hasOwnProperty("snippet")) - object.snippet = message.snippet; + if (options.defaults) { + object.name = ""; + object.sharingWithGoogleSupportEnabled = false; + object.sharingWithGoogleAssignedSalesEnabled = false; + object.sharingWithGoogleAnySalesEnabled = false; + object.sharingWithGoogleProductsEnabled = false; + object.sharingWithOthersEnabled = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; return object; }; /** - * Converts this GlobalSiteTag to JSON. + * Converts this DataSharingSettings to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @instance * @returns {Object.} JSON object */ - GlobalSiteTag.prototype.toJSON = function toJSON() { + DataSharingSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GlobalSiteTag; + return DataSharingSettings; })(); - v1alpha.GoogleAdsLink = (function() { + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); - /** - * Properties of a GoogleAdsLink. - * @memberof google.analytics.admin.v1alpha - * @interface IGoogleAdsLink - * @property {string|null} [name] GoogleAdsLink name - * @property {string|null} [parent] GoogleAdsLink parent - * @property {string|null} [customerId] GoogleAdsLink customerId - * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients - * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled - * @property {string|null} [emailAddress] GoogleAdsLink emailAddress - * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + /** + * MaximumUserAccess enum. + * @name google.analytics.admin.v1alpha.MaximumUserAccess + * @enum {number} + * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value + * @property {number} NO_ACCESS=1 NO_ACCESS value + * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value + * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value + * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value + */ + v1alpha.MaximumUserAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_ACCESS"] = 1; + values[valuesById[2] = "READ_AND_ANALYZE"] = 2; + values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; + values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; + return values; + })(); + + v1alpha.AccountSummary = (function() { + + /** + * Properties of an AccountSummary. + * @memberof google.analytics.admin.v1alpha + * @interface IAccountSummary + * @property {string|null} [name] AccountSummary name + * @property {string|null} [account] AccountSummary account + * @property {string|null} [displayName] AccountSummary displayName + * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries */ /** - * Constructs a new GoogleAdsLink. + * Constructs a new AccountSummary. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GoogleAdsLink. - * @implements IGoogleAdsLink + * @classdesc Represents an AccountSummary. + * @implements IAccountSummary * @constructor - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set */ - function GoogleAdsLink(properties) { + function AccountSummary(properties) { + this.propertySummaries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17747,140 +18957,101 @@ } /** - * GoogleAdsLink name. + * AccountSummary name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.name = ""; - - /** - * GoogleAdsLink parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.parent = ""; - - /** - * GoogleAdsLink customerId. - * @member {string} customerId - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.customerId = ""; - - /** - * GoogleAdsLink canManageClients. - * @member {boolean} canManageClients - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.canManageClients = false; - - /** - * GoogleAdsLink adsPersonalizationEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + AccountSummary.prototype.name = ""; /** - * GoogleAdsLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AccountSummary account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.emailAddress = ""; + AccountSummary.prototype.account = ""; /** - * GoogleAdsLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AccountSummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.createTime = null; + AccountSummary.prototype.displayName = ""; /** - * GoogleAdsLink updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AccountSummary propertySummaries. + * @member {Array.} propertySummaries + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.updateTime = null; + AccountSummary.prototype.propertySummaries = $util.emptyArray; /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new AccountSummary instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance */ - GoogleAdsLink.create = function create(properties) { - return new GoogleAdsLink(properties); + AccountSummary.create = function create(properties) { + return new AccountSummary(properties); }; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encode = function encode(message, writer) { + AccountSummary.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - if (message.customerId != null && Object.hasOwnProperty.call(message, "customerId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); - if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.account); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.propertySummaries != null && message.propertySummaries.length) + for (var i = 0; i < message.propertySummaries.length; ++i) + $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes an AccountSummary message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decode = function decode(reader, length) { + AccountSummary.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.analytics.admin.v1alpha.GoogleAdsLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccountSummary(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17888,25 +19059,15 @@ message.name = reader.string(); break; case 2: - message.parent = reader.string(); + message.account = reader.string(); break; case 3: - message.customerId = reader.string(); + message.displayName = reader.string(); break; case 4: - message.canManageClients = reader.bool(); - break; - case 5: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 6: - message.emailAddress = reader.string(); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -17917,325 +19078,240 @@ }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + AccountSummary.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GoogleAdsLink message. + * Verifies an AccountSummary message. * @function verify - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GoogleAdsLink.verify = function verify(message) { + AccountSummary.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.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.customerId != null && message.hasOwnProperty("customerId")) - if (!$util.isString(message.customerId)) - return "customerId: string expected"; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - if (typeof message.canManageClients !== "boolean") - return "canManageClients: boolean expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); - if (error) - return "adsPersonalizationEnabled." + error; - } - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { + if (!Array.isArray(message.propertySummaries)) + return "propertySummaries: array expected"; + for (var i = 0; i < message.propertySummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); + if (error) + return "propertySummaries." + error; + } } return null; }; /** - * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary */ - GoogleAdsLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + AccountSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) return object; - var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); if (object.name != null) message.name = String(object.name); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customerId != null) - message.customerId = String(object.customerId); - if (object.canManageClients != null) - message.canManageClients = Boolean(object.canManageClients); - if (object.adsPersonalizationEnabled != null) { - if (typeof object.adsPersonalizationEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); - } - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.account != null) + message.account = String(object.account); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.propertySummaries) { + if (!Array.isArray(object.propertySummaries)) + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); + message.propertySummaries = []; + for (var i = 0; i < object.propertySummaries.length; ++i) { + if (typeof object.propertySummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); + message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); + } } return message; }; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoogleAdsLink.toObject = function toObject(message, options) { + AccountSummary.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.propertySummaries = []; if (options.defaults) { object.name = ""; - object.parent = ""; - object.customerId = ""; - object.canManageClients = false; - object.adsPersonalizationEnabled = null; - object.emailAddress = ""; - object.createTime = null; - object.updateTime = null; + object.account = ""; + object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customerId != null && message.hasOwnProperty("customerId")) - object.customerId = message.customerId; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - object.canManageClients = message.canManageClients; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertySummaries && message.propertySummaries.length) { + object.propertySummaries = []; + for (var j = 0; j < message.propertySummaries.length; ++j) + object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); + } return object; - }; - - /** - * Converts this GoogleAdsLink to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - * @returns {Object.} JSON object - */ - GoogleAdsLink.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GoogleAdsLink; - })(); - - v1alpha.DataSharingSettings = (function() { - - /** - * Properties of a DataSharingSettings. - * @memberof google.analytics.admin.v1alpha - * @interface IDataSharingSettings - * @property {string|null} [name] DataSharingSettings name - * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled - * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled - * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled - * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled - * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled - */ - - /** - * Constructs a new DataSharingSettings. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DataSharingSettings. - * @implements IDataSharingSettings - * @constructor - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - */ - function DataSharingSettings(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]]; - } + }; /** - * DataSharingSettings name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * Converts this AccountSummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance + * @returns {Object.} JSON object */ - DataSharingSettings.prototype.name = ""; + AccountSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * DataSharingSettings sharingWithGoogleSupportEnabled. - * @member {boolean} sharingWithGoogleSupportEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + return AccountSummary; + })(); + + v1alpha.PropertySummary = (function() { /** - * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. - * @member {boolean} sharingWithGoogleAssignedSalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance + * Properties of a PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @interface IPropertySummary + * @property {string|null} [property] PropertySummary property + * @property {string|null} [displayName] PropertySummary displayName */ - DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; /** - * DataSharingSettings sharingWithGoogleAnySalesEnabled. - * @member {boolean} sharingWithGoogleAnySalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance + * Constructs a new PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a PropertySummary. + * @implements IPropertySummary + * @constructor + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set */ - DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + function PropertySummary(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]]; + } /** - * DataSharingSettings sharingWithGoogleProductsEnabled. - * @member {boolean} sharingWithGoogleProductsEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * PropertySummary property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.PropertySummary * @instance */ - DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + PropertySummary.prototype.property = ""; /** - * DataSharingSettings sharingWithOthersEnabled. - * @member {boolean} sharingWithOthersEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * PropertySummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.PropertySummary * @instance */ - DataSharingSettings.prototype.sharingWithOthersEnabled = false; + PropertySummary.prototype.displayName = ""; /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a new PropertySummary instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance */ - DataSharingSettings.create = function create(properties) { - return new DataSharingSettings(properties); + PropertySummary.create = function create(properties) { + return new PropertySummary(properties); }; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encode = function encode(message, writer) { + PropertySummary.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); - if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); - if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); - if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); - if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); return writer; }; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes a PropertySummary message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decode = function decode(reader, length) { + PropertySummary.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.analytics.admin.v1alpha.DataSharingSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.PropertySummary(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.property = reader.string(); break; case 2: - message.sharingWithGoogleSupportEnabled = reader.bool(); - break; - case 3: - message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); - break; - case 4: - message.sharingWithGoogleAnySalesEnabled = reader.bool(); - break; - case 5: - message.sharingWithGoogleProductsEnabled = reader.bool(); - break; - case 6: - message.sharingWithOthersEnabled = reader.bool(); + message.displayName = reader.string(); break; default: reader.skipType(tag & 7); @@ -18246,212 +19322,96 @@ }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + PropertySummary.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataSharingSettings message. + * Verifies a PropertySummary message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataSharingSettings.verify = function verify(message) { + PropertySummary.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") - return "sharingWithGoogleSupportEnabled: boolean expected"; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") - return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") - return "sharingWithGoogleAnySalesEnabled: boolean expected"; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") - return "sharingWithGoogleProductsEnabled: boolean expected"; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - if (typeof message.sharingWithOthersEnabled !== "boolean") - return "sharingWithOthersEnabled: boolean expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; return null; }; /** - * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary */ - DataSharingSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + PropertySummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) return object; - var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.sharingWithGoogleSupportEnabled != null) - message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); - if (object.sharingWithGoogleAssignedSalesEnabled != null) - message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); - if (object.sharingWithGoogleAnySalesEnabled != null) - message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); - if (object.sharingWithGoogleProductsEnabled != null) - message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); - if (object.sharingWithOthersEnabled != null) - message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); + if (object.property != null) + message.property = String(object.property); + if (object.displayName != null) + message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataSharingSettings.toObject = function toObject(message, options) { + PropertySummary.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.sharingWithGoogleSupportEnabled = false; - object.sharingWithGoogleAssignedSalesEnabled = false; - object.sharingWithGoogleAnySalesEnabled = false; - object.sharingWithGoogleProductsEnabled = false; - object.sharingWithOthersEnabled = false; + object.property = ""; + object.displayName = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this DataSharingSettings to JSON. + * Converts this PropertySummary to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @instance * @returns {Object.} JSON object */ - DataSharingSettings.prototype.toJSON = function toJSON() { + PropertySummary.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataSharingSettings; - })(); - - /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory - * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); - - /** - * MaximumUserAccess enum. - * @name google.analytics.admin.v1alpha.MaximumUserAccess - * @enum {number} - * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value - * @property {number} NO_ACCESS=1 NO_ACCESS value - * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value - * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value - * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value - */ - v1alpha.MaximumUserAccess = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NO_ACCESS"] = 1; - values[valuesById[2] = "READ_AND_ANALYZE"] = 2; - values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; - values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; - return values; + return PropertySummary; })(); return v1alpha; diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 38841273eeb..f25c077be78 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -60,6 +60,13 @@ "(google.api.http).body": "*" } }, + "ListAccountSummaries": { + "requestType": "ListAccountSummariesRequest", + "responseType": "ListAccountSummariesResponse", + "options": { + "(google.api.http).get": "/v1alpha/accountSummaries" + } + }, "GetProperty": { "requestType": "GetPropertyRequest", "responseType": "Property", @@ -1298,6 +1305,31 @@ } } }, + "ListAccountSummariesRequest": { + "fields": { + "pageSize": { + "type": "int32", + "id": 1 + }, + "pageToken": { + "type": "string", + "id": 2 + } + } + }, + "ListAccountSummariesResponse": { + "fields": { + "accountSummaries": { + "rule": "repeated", + "type": "AccountSummary", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "Account": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/Account", @@ -1873,6 +1905,49 @@ "EDITOR_WITHOUT_LINK_MANAGEMENT": 3, "EDITOR_INCLUDING_LINK_MANAGEMENT": 4 } + }, + "AccountSummary": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/AccountSummary", + "(google.api.resource).pattern": "accountSummaries/{account_summary}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "account": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + }, + "displayName": { + "type": "string", + "id": 3 + }, + "propertySummaries": { + "rule": "repeated", + "type": "PropertySummary", + "id": 4 + } + } + }, + "PropertySummary": { + "fields": { + "property": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + }, + "displayName": { + "type": "string", + "id": 2 + } + } } } } diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 2c406e1aea9..e1e28336867 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -165,6 +165,9 @@ export class AnalyticsAdminServiceClient { accountPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}' ), + accountSummaryPathTemplate: new this._gaxModule.PathTemplate( + 'accountSummaries/{account_summary}' + ), accountUserLinkPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}/userLinks/{user_link}' ), @@ -209,6 +212,11 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'accounts' ), + listAccountSummaries: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'accountSummaries' + ), listProperties: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -298,6 +306,7 @@ export class AnalyticsAdminServiceClient { 'deleteAccount', 'updateAccount', 'provisionAccountTicket', + 'listAccountSummaries', 'getProperty', 'listProperties', 'createProperty', @@ -4409,6 +4418,190 @@ export class AnalyticsAdminServiceClient { callSettings ) as AsyncIterable; } + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + >; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options: gax.CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + /** + * Returns summaries of all accounts accessible by the caller. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListAccountSummariesRequest]{@link google.analytics.admin.v1alpha.ListAccountSummariesRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListAccountSummariesResponse]{@link google.analytics.admin.v1alpha.ListAccountSummariesResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + optionsOrCallback?: + | gax.CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.listAccountSummaries(request, options, callback); + } + + /** + * Equivalent to {@link listAccountSummaries}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listAccountSummaries} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + */ + listAccountSummariesStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: gax.CallOptions + ): Transform { + request = request || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.createStream( + this.innerApiCalls.listAccountSummaries as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to {@link listAccountSummaries}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listAccountSummariesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.asyncIterate( + this.innerApiCalls['listAccountSummaries'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } listProperties( request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: gax.CallOptions @@ -5979,6 +6172,31 @@ export class AnalyticsAdminServiceClient { return this.pathTemplates.accountPathTemplate.match(accountName).account; } + /** + * Return a fully-qualified accountSummary resource name string. + * + * @param {string} account_summary + * @returns {string} Resource name string. + */ + accountSummaryPath(accountSummary: string) { + return this.pathTemplates.accountSummaryPathTemplate.render({ + account_summary: accountSummary, + }); + } + + /** + * Parse the account_summary from AccountSummary resource. + * + * @param {string} accountSummaryName + * A fully-qualified path representing AccountSummary resource. + * @returns {string} A string representing the account_summary. + */ + matchAccountSummaryFromAccountSummaryName(accountSummaryName: string) { + return this.pathTemplates.accountSummaryPathTemplate.match( + accountSummaryName + ).account_summary; + } + /** * Return a fully-qualified accountUserLink resource name string. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index 7e62d3b7e0c..68a02375082 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -58,6 +58,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListAccountSummaries": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, "GetProperty": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 8cefb1e9360..97be4add1bc 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "99d64783d5b86d30229ddff394c05f56edc42b74" + "sha": "59d3662b492b9379133d8ae32f2df9f1cb82f720" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "4c5071b615d96ef9dfd6a63d8429090f1f2872bb", - "internalRef": "327369997" + "sha": "71088f11302e80aae77751d5a915dd2e8b684ec8", + "internalRef": "336969301" } }, { diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index a16fb58beec..1dbe616afdc 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -5141,6 +5141,278 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + expectedResponse + ); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('uses async iteration with listAccountSummaries without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = []; + const iterable = client.listAccountSummariesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listAccountSummaries + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccountSummaries with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listAccountSummariesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listAccountSummaries + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + }); + }); + describe('listProperties', () => { it('invokes listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( @@ -7454,6 +7726,48 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('accountSummary', () => { + const fakePath = '/rendered/path/accountSummary'; + const expectedParameters = { + account_summary: 'accountSummaryValue', + }; + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.accountSummaryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.accountSummaryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('accountSummaryPath', () => { + const result = client.accountSummaryPath('accountSummaryValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.accountSummaryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchAccountSummaryFromAccountSummaryName', () => { + const result = client.matchAccountSummaryFromAccountSummaryName( + fakePath + ); + assert.strictEqual(result, 'accountSummaryValue'); + assert( + (client.pathTemplates.accountSummaryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('accountUserLink', () => { const fakePath = '/rendered/path/accountUserLink'; const expectedParameters = { From 9d8db808b1c0c49b509d6a9ac1e06c4adb6fa5fd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Oct 2020 10:08:36 -0700 Subject: [PATCH 030/142] build: only check --engine-strict for production deps (#42) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/75155c02-9dd0-4bb9-8de5-c6ec245fec71/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5451633881133e5573cc271a18e73b18caca8b1b --- packages/google-analytics-admin/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 97be4add1bc..286c98028cf 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "59d3662b492b9379133d8ae32f2df9f1cb82f720" + "sha": "f55c2bfaacb6203bcb31094c61e71a166b0ddeda" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9" + "sha": "5451633881133e5573cc271a18e73b18caca8b1b" } } ], From 59e2ac5615ad225c7c4b0d6af5c355522450a583 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2020 11:05:27 -0700 Subject: [PATCH 031/142] chore: release 1.2.0 (#44) * chore: release 1.2.0 * Update CHANGELOG.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 6 ++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 7c6f2339309..17281b3f578 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.2.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.1.2...v1.2.0) (2020-10-20) + +### Features + +* added ListAccountSummaries method ([#40](https://www.github.com/googleapis/nodejs-analytics-admin/issues/40)) ([f55c2bf](https://www.github.com/googleapis/nodejs-analytics-admin/commit/f55c2bfaacb6203bcb31094c61e71a166b0ddeda)) + ### [1.1.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.1.1...v1.1.2) (2020-08-28) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 697c8ea4452..d3dfc9efcbc 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.1.2", + "version": "1.2.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 2aae6df10bd..4dfed4cfda2 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.1.2", + "@google-analytics/admin": "^1.2.0", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 7408bed417886ce583653e511bde7304e83ffd3b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Oct 2020 10:21:28 -0700 Subject: [PATCH 032/142] docs: renamed App and Web to Google Analytics 4 (GA4) in public documentation (#46) PiperOrigin-RevId: 338527875 Source-Author: Google APIs Source-Date: Thu Oct 22 12:36:23 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 2131e2f755b3c2604e2d08de81a299fd7e377dcd Source-Link: https://github.com/googleapis/googleapis/commit/2131e2f755b3c2604e2d08de81a299fd7e377dcd --- .../analytics/admin/v1alpha/analytics_admin.proto | 14 +++++++------- .../google/analytics/admin/v1alpha/resources.proto | 12 ++++++------ .../src/v1alpha/analytics_admin_service_client.ts | 14 +++++++------- packages/google-analytics-admin/synth.metadata | 6 +++--- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 566a8fecb04..64329904308 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -29,7 +29,7 @@ option java_multiple_files = true; option java_outer_classname = "AnalyticsAdminProto"; option java_package = "com.google.analytics.admin.v1alpha"; -// Service Interface for the Analytics Admin API (App+Web). +// Service Interface for the Analytics Admin API (GA4). service AnalyticsAdminService { option (google.api.default_host) = "analyticsadmin.googleapis.com"; option (google.api.oauth_scopes) = @@ -50,7 +50,7 @@ service AnalyticsAdminService { // Returns all accounts accessible by the caller. // - // Note that these accounts might not currently have App+Web properties. + // Note that these accounts might not currently have GA4 properties. // Soft-deleted (ie: "trashed") accounts are excluded by default. // Returns an empty list if no relevant accounts are found. rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) { @@ -101,10 +101,10 @@ service AnalyticsAdminService { }; } - // Lookup for a single "App+Web" Property. + // Lookup for a single "GA4" Property. // // Throws "Target not found" if no such property found, if property is not - // of the type "App+Web", or if caller does not have permissions to access it. + // of the type "GA4", or if caller does not have permissions to access it. rpc GetProperty(GetPropertyRequest) returns (Property) { option (google.api.http) = { get: "/v1alpha/{name=properties/*}" @@ -114,7 +114,7 @@ service AnalyticsAdminService { // Returns child Properties under the specified parent Account. // - // Only "App+Web" properties will be returned. + // Only "GA4" properties will be returned. // Properties will be excluded if the caller does not have access. // Soft-deleted (ie: "trashed") properties are excluded by default. // Returns an empty list if no relevant properties are found. @@ -124,7 +124,7 @@ service AnalyticsAdminService { }; } - // Creates an "App+Web" property with the specified location and attributes. + // Creates an "GA4" property with the specified location and attributes. rpc CreateProperty(CreatePropertyRequest) returns (Property) { option (google.api.http) = { post: "/v1alpha/properties" @@ -143,7 +143,7 @@ service AnalyticsAdminService { // will be permanently purged. // https://support.google.com/analytics/answer/6154772 // - // Returns an error if the target is not found, or is not an App+Web Property. + // Returns an error if the target is not found, or is not an GA4 Property. rpc DeleteProperty(DeletePropertyRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*}" diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 1c8d91ba978..6128c49da31 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -56,7 +56,7 @@ message Account { bool deleted = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A resource message representing a Google Analytics App+Web property. +// A resource message representing a Google Analytics GA4 property. message Property { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Property" @@ -354,7 +354,7 @@ message EnhancedMeasurementSettings { string excluded_domains = 18; } -// A link between an App+Web property and a Firebase project. +// A link between an GA4 property and a Firebase project. message FirebaseLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/FirebaseLink" @@ -376,7 +376,7 @@ message FirebaseLink { // Output only. Time when this FirebaseLink was originally created. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Maximum user access to the App + Web property allowed to admins of + // Maximum user access to the GA4 property allowed to admins of // the linked Firebase project. MaximumUserAccess maximum_user_access = 4; } @@ -394,7 +394,7 @@ message GlobalSiteTag { string snippet = 1 [(google.api.field_behavior) = IMMUTABLE]; } -// A link between an App+Web property and a Google Ads account. +// A link between an GA4 property and a Google Ads account. message GoogleAdsLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GoogleAdsLink" @@ -571,7 +571,7 @@ enum MaximumUserAccess { } // A virtual resource representing an overview of an account and -// all its child App+Web properties. +// all its child GA4 properties. message AccountSummary { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/AccountSummary" @@ -597,7 +597,7 @@ message AccountSummary { repeated PropertySummary property_summaries = 4; } -// A virtual resource representing metadata for an App+Web property. +// A virtual resource representing metadata for an GA4 property. message PropertySummary { // Resource name of property referred to by this property summary // Format: properties/{property_id} diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index e1e28336867..f0d0dac34a5 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -35,7 +35,7 @@ import * as gapicConfig from './analytics_admin_service_client_config.json'; const version = require('../../../package.json').version; /** - * Service Interface for the Analytics Admin API (App+Web). + * Service Interface for the Analytics Admin API (GA4). * @class * @memberof v1alpha */ @@ -841,10 +841,10 @@ export class AnalyticsAdminServiceClient { > ): void; /** - * Lookup for a single "App+Web" Property. + * Lookup for a single "GA4" Property. * * Throws "Target not found" if no such property found, if property is not - * of the type "App+Web", or if caller does not have permissions to access it. + * of the type "GA4", or if caller does not have permissions to access it. * * @param {Object} request * The request object that will be sent. @@ -934,7 +934,7 @@ export class AnalyticsAdminServiceClient { > ): void; /** - * Creates an "App+Web" property with the specified location and attributes. + * Creates an "GA4" property with the specified location and attributes. * * @param {Object} request * The request object that will be sent. @@ -1026,7 +1026,7 @@ export class AnalyticsAdminServiceClient { * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * - * Returns an error if the target is not found, or is not an App+Web Property. + * Returns an error if the target is not found, or is not an GA4 Property. * * @param {Object} request * The request object that will be sent. @@ -4252,7 +4252,7 @@ export class AnalyticsAdminServiceClient { /** * Returns all accounts accessible by the caller. * - * Note that these accounts might not currently have App+Web properties. + * Note that these accounts might not currently have GA4 properties. * Soft-deleted (ie: "trashed") accounts are excluded by default. * Returns an empty list if no relevant accounts are found. * @@ -4636,7 +4636,7 @@ export class AnalyticsAdminServiceClient { /** * Returns child Properties under the specified parent Account. * - * Only "App+Web" properties will be returned. + * Only "GA4" properties will be returned. * Properties will be excluded if the caller does not have access. * Soft-deleted (ie: "trashed") properties are excluded by default. * Returns an empty list if no relevant properties are found. diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 286c98028cf..c1d7b76e985 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "f55c2bfaacb6203bcb31094c61e71a166b0ddeda" + "sha": "e094b15dfe8389a93a9eb5b6a04afccc72620b2a" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "71088f11302e80aae77751d5a915dd2e8b684ec8", - "internalRef": "336969301" + "sha": "2131e2f755b3c2604e2d08de81a299fd7e377dcd", + "internalRef": "338527875" } }, { From f6611dfcd092086df9d02871d755b5cb3ba98602 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 2 Nov 2020 09:16:14 -0800 Subject: [PATCH 033/142] docs: updated code of conduct (includes update to actions) (#47) * chore: clean up Node.js TOC for cloud-rad Source-Author: F. Hinkelmann Source-Date: Wed Oct 21 09:26:04 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: f96d3b455fe27c3dc7bc37c3c9cd27b1c6d269c8 Source-Link: https://github.com/googleapis/synthtool/commit/f96d3b455fe27c3dc7bc37c3c9cd27b1c6d269c8 * chore: fix Node.js TOC for cloud-rad Source-Author: F. Hinkelmann Source-Date: Wed Oct 21 12:01:24 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 901ddd44e9ef7887ee681b9183bbdea99437fdcc Source-Link: https://github.com/googleapis/synthtool/commit/901ddd44e9ef7887ee681b9183bbdea99437fdcc * chore(docs): update code of conduct of synthtool and templates Source-Author: Christopher Wilcox Source-Date: Thu Oct 22 14:22:01 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 5f6ef0ec5501d33c4667885b37a7685a30d41a76 Source-Link: https://github.com/googleapis/synthtool/commit/5f6ef0ec5501d33c4667885b37a7685a30d41a76 * build(node): update testing matrix Source-Author: Benjamin E. Coe Source-Date: Thu Oct 22 22:32:52 2020 -0500 Source-Repo: googleapis/synthtool Source-Sha: b7413d38b763827c72c0360f0a3d286c84656eeb Source-Link: https://github.com/googleapis/synthtool/commit/b7413d38b763827c72c0360f0a3d286c84656eeb * build(node): don't run prepare during smoke test Source-Author: Benjamin E. Coe Source-Date: Fri Oct 23 17:27:51 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: a783321fd55f010709294455584a553f4b24b944 Source-Link: https://github.com/googleapis/synthtool/commit/a783321fd55f010709294455584a553f4b24b944 * build(node): cleanup production deps before installing dev/production Source-Author: Benjamin E. Coe Source-Date: Mon Oct 26 10:37:03 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 89c849ba5013e45e8fb688b138f33c2ec6083dc5 Source-Link: https://github.com/googleapis/synthtool/commit/89c849ba5013e45e8fb688b138f33c2ec6083dc5 Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> --- .../google-analytics-admin/CODE_OF_CONDUCT.md | 123 +++++++++++++----- .../google-analytics-admin/synth.metadata | 2 +- 2 files changed, 88 insertions(+), 37 deletions(-) diff --git a/packages/google-analytics-admin/CODE_OF_CONDUCT.md b/packages/google-analytics-admin/CODE_OF_CONDUCT.md index 46b2a08ea6d..2add2547a81 100644 --- a/packages/google-analytics-admin/CODE_OF_CONDUCT.md +++ b/packages/google-analytics-admin/CODE_OF_CONDUCT.md @@ -1,43 +1,94 @@ -# Contributor Code of Conduct + +# Code of Conduct -As contributors and maintainers of this project, -and in the interest of fostering an open and welcoming community, -we pledge to respect all people who contribute through reporting issues, -posting feature requests, updating documentation, -submitting pull requests or patches, and other activities. +## Our Pledge -We are committed to making participation in this project -a harassment-free experience for everyone, -regardless of level of experience, gender, gender identity and expression, -sexual orientation, disability, personal appearance, -body size, race, ethnicity, age, religion, or nationality. +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 -* Personal attacks -* Trolling or insulting/derogatory comments -* Public or private harassment -* Publishing other's private information, -such as physical or electronic -addresses, without explicit permission -* Other unethical or unprofessional conduct. +* 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. -By adopting this Code of Conduct, -project maintainers commit themselves to fairly and consistently -applying these principles to every aspect of managing this project. -Project maintainers who do not follow or enforce the Code of Conduct -may be permanently removed from the project team. - -This code of conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. - -Instances of abusive, harassing, or otherwise unacceptable behavior -may be reported by opening an issue -or contacting one or more of the project maintainers. - -This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, -available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) +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-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index c1d7b76e985..344db26089c 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5451633881133e5573cc271a18e73b18caca8b1b" + "sha": "89c849ba5013e45e8fb688b138f33c2ec6083dc5" } } ], From d547f71230230d55ea619d333a23a3bc9171db90 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 2 Nov 2020 15:58:31 -0800 Subject: [PATCH 034/142] build(node): add KOKORO_BUILD_ARTIFACTS_SUBDIR to env (#48) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4517db23-0bde-4f5c-a0d0-6b663836a90c/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/ba9918cd22874245b55734f57470c719b577e591 --- packages/google-analytics-admin/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 344db26089c..8fe90de9ab9 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "e094b15dfe8389a93a9eb5b6a04afccc72620b2a" + "sha": "eaead74af8716b399156d0a1dfda934fdd8c5b4e" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "89c849ba5013e45e8fb688b138f33c2ec6083dc5" + "sha": "ba9918cd22874245b55734f57470c719b577e591" } } ], From 8da895b26950210181015bc3b0220fc05ebd80b9 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 6 Nov 2020 17:09:44 -0800 Subject: [PATCH 035/142] fix: do not modify options object, use defaultScopes (#50) * fix: do not modify options object, use defaultScopes Regenerated the library using gapic-generator-typescript v1.2.1. * fix(deps): require google-gax ^2.9.2 --- packages/google-analytics-admin/package.json | 2 +- .../admin/v1alpha/analytics_admin.proto | 43 +- .../analytics/admin/v1alpha/resources.proto | 216 ++--- .../google-analytics-admin/protos/protos.d.ts | 80 +- .../google-analytics-admin/protos/protos.js | 168 ++-- .../google-analytics-admin/protos/protos.json | 104 ++- packages/google-analytics-admin/src/index.ts | 1 + .../v1alpha/analytics_admin_service_client.ts | 830 +++++++++++------- .../google-analytics-admin/synth.metadata | 16 +- .../system-test/fixtures/sample/src/index.ts | 11 +- .../system-test/install.ts | 18 +- 11 files changed, 847 insertions(+), 642 deletions(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index d3dfc9efcbc..93a48c97d42 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "google-auth-library": "^6.0.5", - "google-gax": "^2.6.3", + "google-gax": "^2.9.2", "open": "^7.1.0", "server-destroy": "^1.0.1" }, diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 64329904308..4df5db3d7d1 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -841,8 +841,8 @@ message CreateUserLinkRequest { } ]; - // Optional. If notify_new_user is set, then email new user that they've been given - // permissions on the resource. + // Optional. If set, then email the new user notifying them that they've been granted + // permissions to the resource. bool notify_new_user = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. The user link to create. @@ -855,15 +855,21 @@ message BatchCreateUserLinksRequest { // This field is required. The parent field in the CreateUserLinkRequest // messages must either be empty or match this field. // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; - // Optional. If notify_new_users is set, then email new users that they've been given - // permissions on the resource. + // Optional. If set, then email the new users notifying them that they've been granted + // permissions to the resource. Regardless of whether this is set or not, + // notify_new_user field inside each individual request is ignored. bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL]; - // The requests specifying the user links to create. + // Required. The requests specifying the user links to create. // A maximum of 1000 user links can be created in a batch. - repeated CreateUserLinkRequest requests = 3; + repeated CreateUserLinkRequest requests = 3 [(google.api.field_behavior) = REQUIRED]; } // Response message for BatchCreateUserLinks RPC. @@ -884,11 +890,16 @@ message BatchUpdateUserLinksRequest { // for. The parent field in the UpdateUserLinkRequest messages must either be // empty or match this field. // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; - // The requests specifying the user links to update. + // Required. The requests specifying the user links to update. // A maximum of 1000 user links can be updated in a batch. - repeated UpdateUserLinkRequest requests = 2; + repeated UpdateUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } // Response message for BatchUpdateUserLinks RPC. @@ -914,11 +925,16 @@ message BatchDeleteUserLinksRequest { // for. The parent of all values for user link names to delete must match this // field. // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; - // The requests specifying the user links to update. + // Required. The requests specifying the user links to update. // A maximum of 1000 user links can be updated in a batch. - repeated DeleteUserLinkRequest requests = 2; + repeated DeleteUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for GetWebDataStream RPC. @@ -1182,6 +1198,7 @@ message ListAndroidAppDataStreamsResponse { message GetEnhancedMeasurementSettingsRequest { // Required. The name of the settings to lookup. // Format: + // // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" string name = 1 [ diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 6128c49da31..ce96dd842b7 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -26,6 +26,111 @@ option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.analytics.admin.v1alpha"; +// Maximum access settings that Firebase user receive on the linked Analytics +// property. +enum MaximumUserAccess { + // Unspecified maximum user access. + MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; + + // Firebase users have no access to the Analytics property. + NO_ACCESS = 1; + + // Firebase users have Read & Analyze access to the Analytics property. + READ_AND_ANALYZE = 2; + + // Firebase users have edit access to the Analytics property, but may not + // manage the Firebase link. + EDITOR_WITHOUT_LINK_MANAGEMENT = 3; + + // Firebase users have edit access to the Analytics property and may manage + // the Firebase link. + EDITOR_INCLUDING_LINK_MANAGEMENT = 4; +} + +// The category selected for this property, used for industry benchmarking. +enum IndustryCategory { + // Industry category unspecified + INDUSTRY_CATEGORY_UNSPECIFIED = 0; + + // Automotive + AUTOMOTIVE = 1; + + // Business and industrial markets + BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + + // Finance + FINANCE = 3; + + // Healthcare + HEALTHCARE = 4; + + // Technology + TECHNOLOGY = 5; + + // Travel + TRAVEL = 6; + + // Other + OTHER = 7; + + // Arts and entertainment + ARTS_AND_ENTERTAINMENT = 8; + + // Beauty and fitness + BEAUTY_AND_FITNESS = 9; + + // Books and literature + BOOKS_AND_LITERATURE = 10; + + // Food and drink + FOOD_AND_DRINK = 11; + + // Games + GAMES = 12; + + // Hobbies and leisure + HOBBIES_AND_LEISURE = 13; + + // Home and garden + HOME_AND_GARDEN = 14; + + // Internet and telecom + INTERNET_AND_TELECOM = 15; + + // Law and government + LAW_AND_GOVERNMENT = 16; + + // News + NEWS = 17; + + // Online communities + ONLINE_COMMUNITIES = 18; + + // People and society + PEOPLE_AND_SOCIETY = 19; + + // Pets and animals + PETS_AND_ANIMALS = 20; + + // Real estate + REAL_ESTATE = 21; + + // Reference + REFERENCE = 22; + + // Science + SCIENCE = 23; + + // Sports + SPORTS = 24; + + // Jobs and education + JOBS_AND_EDUCATION = 25; + + // Shopping + SHOPPING = 26; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -48,7 +153,10 @@ message Account { string display_name = 4 [(google.api.field_behavior) = REQUIRED]; // Country of business. Must be a non-deprecated code for a UN M.49 region. - // https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html + // + // https: + // //unicode.org/cldr/charts/latest/supplem + // // ental/territory_containment_un_m_49.html string country_code = 5; // Output only. Indicates whether this Account is soft-deleted or not. Deleted @@ -280,6 +388,7 @@ message EnhancedMeasurementSettings { // Output only. Resource name of this Data Stream. // Format: + // // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -465,111 +574,6 @@ message DataSharingSettings { bool sharing_with_others_enabled = 6; } -// The category selected for this property, used for industry benchmarking. -enum IndustryCategory { - // Industry category unspecified - INDUSTRY_CATEGORY_UNSPECIFIED = 0; - - // Automotive - AUTOMOTIVE = 1; - - // Business and industrial markets - BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - - // Finance - FINANCE = 3; - - // Healthcare - HEALTHCARE = 4; - - // Technology - TECHNOLOGY = 5; - - // Travel - TRAVEL = 6; - - // Other - OTHER = 7; - - // Arts and entertainment - ARTS_AND_ENTERTAINMENT = 8; - - // Beauty and fitness - BEAUTY_AND_FITNESS = 9; - - // Books and literature - BOOKS_AND_LITERATURE = 10; - - // Food and drink - FOOD_AND_DRINK = 11; - - // Games - GAMES = 12; - - // Hobbies and leisure - HOBBIES_AND_LEISURE = 13; - - // Home and garden - HOME_AND_GARDEN = 14; - - // Internet and telecom - INTERNET_AND_TELECOM = 15; - - // Law and government - LAW_AND_GOVERNMENT = 16; - - // News - NEWS = 17; - - // Online communities - ONLINE_COMMUNITIES = 18; - - // People and society - PEOPLE_AND_SOCIETY = 19; - - // Pets and animals - PETS_AND_ANIMALS = 20; - - // Real estate - REAL_ESTATE = 21; - - // Reference - REFERENCE = 22; - - // Science - SCIENCE = 23; - - // Sports - SPORTS = 24; - - // Jobs and education - JOBS_AND_EDUCATION = 25; - - // Shopping - SHOPPING = 26; -} - -// Maximum access settings that Firebase user receive on the linked Analytics -// property. -enum MaximumUserAccess { - // Unspecified maximum user access. - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; - - // Firebase users have no access to the Analytics property. - NO_ACCESS = 1; - - // Firebase users have Read & Analyze access to the Analytics property. - READ_AND_ANALYZE = 2; - - // Firebase users have edit access to the Analytics property, but may not - // manage the Firebase link. - EDITOR_WITHOUT_LINK_MANAGEMENT = 3; - - // Firebase users have edit access to the Analytics property and may manage - // the Firebase link. - EDITOR_INCLUDING_LINK_MANAGEMENT = 4; -} - // A virtual resource representing an overview of an account and // all its child GA4 properties. message AccountSummary { diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 78919f62f33..326d33675ad 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -6926,6 +6926,46 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** MaximumUserAccess enum. */ + enum MaximumUserAccess { + MAXIMUM_USER_ACCESS_UNSPECIFIED = 0, + NO_ACCESS = 1, + READ_AND_ANALYZE = 2, + EDITOR_WITHOUT_LINK_MANAGEMENT = 3, + EDITOR_INCLUDING_LINK_MANAGEMENT = 4 + } + + /** IndustryCategory enum. */ + enum IndustryCategory { + INDUSTRY_CATEGORY_UNSPECIFIED = 0, + AUTOMOTIVE = 1, + BUSINESS_AND_INDUSTRIAL_MARKETS = 2, + FINANCE = 3, + HEALTHCARE = 4, + TECHNOLOGY = 5, + TRAVEL = 6, + OTHER = 7, + ARTS_AND_ENTERTAINMENT = 8, + BEAUTY_AND_FITNESS = 9, + BOOKS_AND_LITERATURE = 10, + FOOD_AND_DRINK = 11, + GAMES = 12, + HOBBIES_AND_LEISURE = 13, + HOME_AND_GARDEN = 14, + INTERNET_AND_TELECOM = 15, + LAW_AND_GOVERNMENT = 16, + NEWS = 17, + ONLINE_COMMUNITIES = 18, + PEOPLE_AND_SOCIETY = 19, + PETS_AND_ANIMALS = 20, + REAL_ESTATE = 21, + REFERENCE = 22, + SCIENCE = 23, + SPORTS = 24, + JOBS_AND_EDUCATION = 25, + SHOPPING = 26 + } + /** Properties of an Account. */ interface IAccount { @@ -8402,46 +8442,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** IndustryCategory enum. */ - enum IndustryCategory { - INDUSTRY_CATEGORY_UNSPECIFIED = 0, - AUTOMOTIVE = 1, - BUSINESS_AND_INDUSTRIAL_MARKETS = 2, - FINANCE = 3, - HEALTHCARE = 4, - TECHNOLOGY = 5, - TRAVEL = 6, - OTHER = 7, - ARTS_AND_ENTERTAINMENT = 8, - BEAUTY_AND_FITNESS = 9, - BOOKS_AND_LITERATURE = 10, - FOOD_AND_DRINK = 11, - GAMES = 12, - HOBBIES_AND_LEISURE = 13, - HOME_AND_GARDEN = 14, - INTERNET_AND_TELECOM = 15, - LAW_AND_GOVERNMENT = 16, - NEWS = 17, - ONLINE_COMMUNITIES = 18, - PEOPLE_AND_SOCIETY = 19, - PETS_AND_ANIMALS = 20, - REAL_ESTATE = 21, - REFERENCE = 22, - SCIENCE = 23, - SPORTS = 24, - JOBS_AND_EDUCATION = 25, - SHOPPING = 26 - } - - /** MaximumUserAccess enum. */ - enum MaximumUserAccess { - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0, - NO_ACCESS = 1, - READ_AND_ANALYZE = 2, - EDITOR_WITHOUT_LINK_MANAGEMENT = 3, - EDITOR_INCLUDING_LINK_MANAGEMENT = 4 - } - /** Properties of an AccountSummary. */ interface IAccountSummary { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index dee4e367c5f..6a56b90ee2a 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -14850,6 +14850,90 @@ return ListAccountSummariesResponse; })(); + /** + * MaximumUserAccess enum. + * @name google.analytics.admin.v1alpha.MaximumUserAccess + * @enum {number} + * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value + * @property {number} NO_ACCESS=1 NO_ACCESS value + * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value + * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value + * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value + */ + v1alpha.MaximumUserAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_ACCESS"] = 1; + values[valuesById[2] = "READ_AND_ANALYZE"] = 2; + values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; + values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; + return values; + })(); + + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + v1alpha.Account = (function() { /** @@ -18844,90 +18928,6 @@ return DataSharingSettings; })(); - /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory - * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); - - /** - * MaximumUserAccess enum. - * @name google.analytics.admin.v1alpha.MaximumUserAccess - * @enum {number} - * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value - * @property {number} NO_ACCESS=1 NO_ACCESS value - * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value - * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value - * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value - */ - v1alpha.MaximumUserAccess = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NO_ACCESS"] = 1; - values[valuesById[2] = "READ_AND_ANALYZE"] = 2; - values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; - values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; - return values; - })(); - v1alpha.AccountSummary = (function() { /** diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index f25c077be78..73252fd9ac2 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -748,7 +748,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" } }, "notifyNewUsers": { @@ -761,7 +762,10 @@ "requests": { "rule": "repeated", "type": "CreateUserLinkRequest", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -791,13 +795,17 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" } }, "requests": { "rule": "repeated", "type": "UpdateUserLinkRequest", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -828,13 +836,17 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" } }, "requests": { "rule": "repeated", "type": "DeleteUserLinkRequest", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1330,6 +1342,46 @@ } } }, + "MaximumUserAccess": { + "values": { + "MAXIMUM_USER_ACCESS_UNSPECIFIED": 0, + "NO_ACCESS": 1, + "READ_AND_ANALYZE": 2, + "EDITOR_WITHOUT_LINK_MANAGEMENT": 3, + "EDITOR_INCLUDING_LINK_MANAGEMENT": 4 + } + }, + "IndustryCategory": { + "values": { + "INDUSTRY_CATEGORY_UNSPECIFIED": 0, + "AUTOMOTIVE": 1, + "BUSINESS_AND_INDUSTRIAL_MARKETS": 2, + "FINANCE": 3, + "HEALTHCARE": 4, + "TECHNOLOGY": 5, + "TRAVEL": 6, + "OTHER": 7, + "ARTS_AND_ENTERTAINMENT": 8, + "BEAUTY_AND_FITNESS": 9, + "BOOKS_AND_LITERATURE": 10, + "FOOD_AND_DRINK": 11, + "GAMES": 12, + "HOBBIES_AND_LEISURE": 13, + "HOME_AND_GARDEN": 14, + "INTERNET_AND_TELECOM": 15, + "LAW_AND_GOVERNMENT": 16, + "NEWS": 17, + "ONLINE_COMMUNITIES": 18, + "PEOPLE_AND_SOCIETY": 19, + "PETS_AND_ANIMALS": 20, + "REAL_ESTATE": 21, + "REFERENCE": 22, + "SCIENCE": 23, + "SPORTS": 24, + "JOBS_AND_EDUCATION": 25, + "SHOPPING": 26 + } + }, "Account": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/Account", @@ -1866,46 +1918,6 @@ } } }, - "IndustryCategory": { - "values": { - "INDUSTRY_CATEGORY_UNSPECIFIED": 0, - "AUTOMOTIVE": 1, - "BUSINESS_AND_INDUSTRIAL_MARKETS": 2, - "FINANCE": 3, - "HEALTHCARE": 4, - "TECHNOLOGY": 5, - "TRAVEL": 6, - "OTHER": 7, - "ARTS_AND_ENTERTAINMENT": 8, - "BEAUTY_AND_FITNESS": 9, - "BOOKS_AND_LITERATURE": 10, - "FOOD_AND_DRINK": 11, - "GAMES": 12, - "HOBBIES_AND_LEISURE": 13, - "HOME_AND_GARDEN": 14, - "INTERNET_AND_TELECOM": 15, - "LAW_AND_GOVERNMENT": 16, - "NEWS": 17, - "ONLINE_COMMUNITIES": 18, - "PEOPLE_AND_SOCIETY": 19, - "PETS_AND_ANIMALS": 20, - "REAL_ESTATE": 21, - "REFERENCE": 22, - "SCIENCE": 23, - "SPORTS": 24, - "JOBS_AND_EDUCATION": 25, - "SHOPPING": 26 - } - }, - "MaximumUserAccess": { - "values": { - "MAXIMUM_USER_ACCESS_UNSPECIFIED": 0, - "NO_ACCESS": 1, - "READ_AND_ANALYZE": 2, - "EDITOR_WITHOUT_LINK_MANAGEMENT": 3, - "EDITOR_INCLUDING_LINK_MANAGEMENT": 4 - } - }, "AccountSummary": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/AccountSummary", diff --git a/packages/google-analytics-admin/src/index.ts b/packages/google-analytics-admin/src/index.ts index 8301fe612d0..376aa8b3971 100644 --- a/packages/google-analytics-admin/src/index.ts +++ b/packages/google-analytics-admin/src/index.ts @@ -18,6 +18,7 @@ import * as v1alpha from './v1alpha'; const AnalyticsAdminServiceClient = v1alpha.AnalyticsAdminServiceClient; +type AnalyticsAdminServiceClient = v1alpha.AnalyticsAdminServiceClient; export {v1alpha, AnalyticsAdminServiceClient}; export default {v1alpha, AnalyticsAdminServiceClient}; import * as protos from '../protos/protos'; diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index f0d0dac34a5..bd585e63752 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -60,8 +60,10 @@ export class AnalyticsAdminServiceClient { /** * Construct an instance of AnalyticsAdminServiceClient. * - * @param {object} [options] - The configuration object. See the subsequent - * parameters for more details. + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] * @param {string} [options.credentials.private_key] @@ -81,44 +83,34 @@ export class AnalyticsAdminServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. + * TODO(@alexander-fenster): link to gax documentation. + * @param {boolean} fallback - Use HTTP fallback mode. + * In fallback mode, a special browser-compatible transport implementation is used + * instead of gRPC transport. In browser context (if the `window` object is defined) + * the fallback mode is enabled automatically; set `options.fallback` to `false` + * if you need to override this behavior. */ - constructor(opts?: ClientOptions) { - // Ensure that options include the service address and port. + // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof AnalyticsAdminServiceClient; const servicePath = - opts && opts.servicePath - ? opts.servicePath - : opts && opts.apiEndpoint - ? opts.apiEndpoint - : staticMembers.servicePath; - const port = opts && opts.port ? opts.port : staticMembers.port; + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = opts?.fallback ?? typeof window !== 'undefined'; + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); - if (!opts) { - opts = {servicePath, port}; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; } - opts.servicePath = opts.servicePath || servicePath; - opts.port = opts.port || port; - - // users can override the config from client side, like retry codes name. - // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546 - // The way to override client config for Showcase API: - // - // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}} - // const showcaseClient = new showcaseClient({ projectId, customConfig }); - opts.clientConfig = opts.clientConfig || {}; - // If we're running in browser, it's OK to omit `fallback` since - // google-gax has `browser` field in its `package.json`. - // For Electron (which does not respect `browser` field), - // pass `{fallback: true}` to the AnalyticsAdminServiceClient constructor. + // Choose either gRPC or proto-over-HTTP implementation of google-gax. this._gaxModule = opts.fallback ? gax.fallback : gax; - // Create a `gaxGrpc` object, with any grpc-specific options - // sent to the client. - opts.scopes = (this - .constructor as typeof AnalyticsAdminServiceClient).scopes; + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); // Save options to use in initialize() method. @@ -127,6 +119,11 @@ export class AnalyticsAdminServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; if (typeof process !== 'undefined' && 'versions' in process) { @@ -379,6 +376,7 @@ export class AnalyticsAdminServiceClient { /** * The DNS address for this API service. + * @returns {string} The DNS address for this service. */ static get servicePath() { return 'analyticsadmin.googleapis.com'; @@ -387,6 +385,7 @@ export class AnalyticsAdminServiceClient { /** * The DNS address for this API service - same as servicePath(), * exists for compatibility reasons. + * @returns {string} The DNS address for this service. */ static get apiEndpoint() { return 'analyticsadmin.googleapis.com'; @@ -394,6 +393,7 @@ export class AnalyticsAdminServiceClient { /** * The port for this API service. + * @returns {number} The default port for this service. */ static get port() { return 443; @@ -402,6 +402,7 @@ export class AnalyticsAdminServiceClient { /** * The scopes needed to make gRPC calls for every method defined * in this service. + * @returns {string[]} List of default scopes. */ static get scopes() { return [ @@ -416,8 +417,7 @@ export class AnalyticsAdminServiceClient { getProjectId(callback: Callback): void; /** * Return the project ID used by this class. - * @param {function(Error, string)} callback - the callback to - * be called with the current project Id. + * @returns {Promise} A promise that resolves to string containing the project ID. */ getProjectId( callback?: Callback @@ -478,7 +478,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getAccount(request); */ getAccount( request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, @@ -578,7 +582,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteAccount(request); */ deleteAccount( request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, @@ -669,7 +677,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateAccount(request); */ updateAccount( request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, @@ -763,7 +775,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [ProvisionAccountTicketResponse]{@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.provisionAccountTicket(request); */ provisionAccountTicket( request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, @@ -856,7 +872,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getProperty(request); */ getProperty( request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, @@ -945,7 +965,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createProperty(request); */ createProperty( request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, @@ -1038,7 +1062,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteProperty(request); */ deleteProperty( request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, @@ -1130,7 +1158,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateProperty(request); */ updateProperty( request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, @@ -1218,7 +1250,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getUserLink(request); */ getUserLink( request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, @@ -1316,7 +1352,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [BatchGetUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.batchGetUserLinks(request); */ batchGetUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, @@ -1408,15 +1448,19 @@ export class AnalyticsAdminServiceClient { * @param {string} request.parent * Required. Example format: accounts/1234 * @param {boolean} [request.notifyNewUser] - * Optional. If notify_new_user is set, then email new user that they've been given - * permissions on the resource. + * Optional. If set, then email the new user notifying them that they've been granted + * permissions to the resource. * @param {google.analytics.admin.v1alpha.UserLink} request.userLink * Required. The user link to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createUserLink(request); */ createUserLink( request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, @@ -1510,16 +1554,21 @@ export class AnalyticsAdminServiceClient { * messages must either be empty or match this field. * Example format: accounts/1234 * @param {boolean} [request.notifyNewUsers] - * Optional. If notify_new_users is set, then email new users that they've been given - * permissions on the resource. + * Optional. If set, then email the new users notifying them that they've been granted + * permissions to the resource. Regardless of whether this is set or not, + * notify_new_user field inside each individual request is ignored. * @param {number[]} request.requests - * The requests specifying the user links to create. + * Required. The requests specifying the user links to create. * A maximum of 1000 user links can be created in a batch. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [BatchCreateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.batchCreateUserLinks(request); */ batchCreateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, @@ -1610,7 +1659,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateUserLink(request); */ updateUserLink( request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, @@ -1701,13 +1754,17 @@ export class AnalyticsAdminServiceClient { * empty or match this field. * Example format: accounts/1234 * @param {number[]} request.requests - * The requests specifying the user links to update. + * Required. The requests specifying the user links to update. * A maximum of 1000 user links can be updated in a batch. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [BatchUpdateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.batchUpdateUserLinks(request); */ batchUpdateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, @@ -1798,7 +1855,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteUserLink(request); */ deleteUserLink( request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, @@ -1889,13 +1950,17 @@ export class AnalyticsAdminServiceClient { * field. * Example format: accounts/1234 * @param {number[]} request.requests - * The requests specifying the user links to update. + * Required. The requests specifying the user links to update. * A maximum of 1000 user links can be updated in a batch. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.batchDeleteUserLinks(request); */ batchDeleteUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, @@ -1994,7 +2059,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getWebDataStream(request); */ getWebDataStream( request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, @@ -2090,7 +2159,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteWebDataStream(request); */ deleteWebDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, @@ -2187,7 +2260,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateWebDataStream(request); */ updateWebDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, @@ -2284,7 +2361,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createWebDataStream(request); */ createWebDataStream( request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, @@ -2383,7 +2464,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getIosAppDataStream(request); */ getIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, @@ -2479,7 +2564,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteIosAppDataStream(request); */ deleteIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, @@ -2580,7 +2669,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateIosAppDataStream(request); */ updateIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, @@ -2681,7 +2774,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createIosAppDataStream(request); */ createIosAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, @@ -2784,7 +2881,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getAndroidAppDataStream(request); */ getAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, @@ -2884,7 +2985,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteAndroidAppDataStream(request); */ deleteAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, @@ -2985,7 +3090,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateAndroidAppDataStream(request); */ updateAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, @@ -3086,7 +3195,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createAndroidAppDataStream(request); */ createAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, @@ -3183,13 +3296,18 @@ export class AnalyticsAdminServiceClient { * @param {string} request.name * Required. The name of the settings to lookup. * Format: + * * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getEnhancedMeasurementSettings(request); */ getEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, @@ -3292,7 +3410,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateEnhancedMeasurementSettings(request); */ updateEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, @@ -3396,7 +3518,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createFirebaseLink(request); */ createFirebaseLink( request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, @@ -3492,7 +3618,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateFirebaseLink(request); */ updateFirebaseLink( request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, @@ -3587,7 +3717,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteFirebaseLink(request); */ deleteFirebaseLink( request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, @@ -3683,7 +3817,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [ListFirebaseLinksResponse]{@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.listFirebaseLinks(request); */ listFirebaseLinks( request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, @@ -3781,7 +3919,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [GlobalSiteTag]{@link google.analytics.admin.v1alpha.GlobalSiteTag}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getGlobalSiteTag(request); */ getGlobalSiteTag( request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, @@ -3877,7 +4019,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createGoogleAdsLink(request); */ createGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, @@ -3973,7 +4119,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateGoogleAdsLink(request); */ updateGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, @@ -4067,7 +4217,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteGoogleAdsLink(request); */ deleteGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, @@ -4164,7 +4318,11 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [DataSharingSettings]{@link google.analytics.admin.v1alpha.DataSharingSettings}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getDataSharingSettings(request); */ getDataSharingSettings( request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, @@ -4276,19 +4434,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [Account]{@link google.analytics.admin.v1alpha.Account} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListAccountsRequest]{@link google.analytics.admin.v1alpha.ListAccountsRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListAccountsResponse]{@link google.analytics.admin.v1alpha.ListAccountsResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listAccounts( request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, @@ -4329,18 +4482,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listAccounts}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listAccounts} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {number} request.pageSize @@ -4361,6 +4503,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listAccountsStream( request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, @@ -4378,10 +4527,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listAccounts}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listAccounts`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {number} request.pageSize @@ -4401,7 +4549,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listAccountsAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listAccountsAsync( request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, @@ -4468,19 +4627,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListAccountSummariesRequest]{@link google.analytics.admin.v1alpha.ListAccountSummariesRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListAccountSummariesResponse]{@link google.analytics.admin.v1alpha.ListAccountSummariesResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listAccountSummaries( request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, @@ -4521,18 +4675,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listAccountSummaries}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listAccountSummaries} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {number} request.pageSize @@ -4549,6 +4692,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listAccountSummariesStream( request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, @@ -4566,10 +4716,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listAccountSummaries}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listAccountSummaries`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {number} request.pageSize @@ -4585,7 +4734,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listAccountSummariesAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listAccountSummariesAsync( request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, @@ -4673,19 +4833,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [Property]{@link google.analytics.admin.v1alpha.Property} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListPropertiesRequest]{@link google.analytics.admin.v1alpha.ListPropertiesRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListPropertiesResponse]{@link google.analytics.admin.v1alpha.ListPropertiesResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listProperties( request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, @@ -4726,18 +4881,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listProperties}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listProperties} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.filter @@ -4770,6 +4914,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listPropertiesStream( request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, @@ -4787,10 +4938,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listProperties}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listProperties`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter @@ -4822,7 +4972,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listPropertiesAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listPropertiesAsync( request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, @@ -4891,19 +5052,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListUserLinksRequest]{@link google.analytics.admin.v1alpha.ListUserLinksRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListUserLinksResponse]{@link google.analytics.admin.v1alpha.ListUserLinksResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listUserLinks( request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, @@ -4951,18 +5107,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listUserLinks}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listUserLinks} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -4981,6 +5126,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listUserLinksStream( request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, @@ -5005,10 +5157,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listUserLinks}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listUserLinks`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5026,7 +5177,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listUserLinksAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listUserLinksAsync( request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, @@ -5110,19 +5272,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [AuditUserLinksRequest]{@link google.analytics.admin.v1alpha.AuditUserLinksRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [AuditUserLinksResponse]{@link google.analytics.admin.v1alpha.AuditUserLinksResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `auditUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ auditUserLinks( request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, @@ -5170,18 +5327,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link auditUserLinks}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link auditUserLinks} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5200,6 +5346,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `auditUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ auditUserLinksStream( request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, @@ -5224,10 +5377,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link auditUserLinks}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `auditUserLinks`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5245,7 +5397,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.auditUserLinksAsync(request); + * for await (const response of iterable) { + * // process response + * } */ auditUserLinksAsync( request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, @@ -5325,19 +5488,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListWebDataStreamsRequest]{@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListWebDataStreamsResponse]{@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listWebDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listWebDataStreams( request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, @@ -5385,18 +5543,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listWebDataStreams}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listWebDataStreams} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5416,6 +5563,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listWebDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listWebDataStreamsStream( request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, @@ -5440,10 +5594,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listWebDataStreams}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listWebDataStreams`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5462,7 +5615,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listWebDataStreamsAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listWebDataStreamsAsync( request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, @@ -5542,19 +5706,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListIosAppDataStreamsRequest]{@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListIosAppDataStreamsResponse]{@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listIosAppDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listIosAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, @@ -5602,18 +5761,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listIosAppDataStreams}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listIosAppDataStreams} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5633,6 +5781,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listIosAppDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listIosAppDataStreamsStream( request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, @@ -5657,10 +5812,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listIosAppDataStreams}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listIosAppDataStreams`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5679,7 +5833,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listIosAppDataStreamsAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listIosAppDataStreamsAsync( request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, @@ -5761,19 +5926,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListAndroidAppDataStreamsRequest]{@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListAndroidAppDataStreamsResponse]{@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listAndroidAppDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listAndroidAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, @@ -5825,18 +5985,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listAndroidAppDataStreams}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listAndroidAppDataStreams} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5858,6 +6007,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAndroidAppDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listAndroidAppDataStreamsStream( request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, @@ -5882,10 +6038,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listAndroidAppDataStreams}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listAndroidAppDataStreams`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -5906,7 +6061,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listAndroidAppDataStreamsAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listAndroidAppDataStreamsAsync( request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, @@ -5986,19 +6152,14 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListGoogleAdsLinksRequest]{@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListGoogleAdsLinksResponse]{@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listGoogleAdsLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listGoogleAdsLinks( request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, @@ -6046,18 +6207,7 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listGoogleAdsLinks}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listGoogleAdsLinks} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -6076,6 +6226,13 @@ export class AnalyticsAdminServiceClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listGoogleAdsLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listGoogleAdsLinksStream( request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, @@ -6100,10 +6257,9 @@ export class AnalyticsAdminServiceClient { } /** - * Equivalent to {@link listGoogleAdsLinks}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -6121,7 +6277,18 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listGoogleAdsLinksAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listGoogleAdsLinksAsync( request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, @@ -6590,9 +6757,10 @@ export class AnalyticsAdminServiceClient { } /** - * Terminate the GRPC channel and close the client. + * Terminate the gRPC channel and close the client. * * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { this.initialize(); diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 8fe90de9ab9..e5a506de500 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -3,23 +3,15 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "eaead74af8716b399156d0a1dfda934fdd8c5b4e" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2131e2f755b3c2604e2d08de81a299fd7e377dcd", - "internalRef": "338527875" + "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", + "sha": "7f1ae38141775e2ae2f45a2fb30e10ddfbc96664" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ba9918cd22874245b55734f57470c719b577e591" + "sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b" } } ], @@ -87,6 +79,7 @@ "README.md", "api-extractor.json", "linkinator.config.json", + "package-lock.json.2150883559", "protos/google/analytics/admin/v1alpha/analytics_admin.proto", "protos/google/analytics/admin/v1alpha/resources.proto", "protos/protos.d.ts", @@ -94,6 +87,7 @@ "protos/protos.json", "renovate.json", "samples/README.md", + "samples/package-lock.json.903967499", "src/index.ts", "src/v1alpha/analytics_admin_service_client.ts", "src/v1alpha/analytics_admin_service_client_config.json", diff --git a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts index 5e9bd08b271..37e5851709c 100644 --- a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts +++ b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts @@ -18,8 +18,17 @@ import {AnalyticsAdminServiceClient} from '@google-analytics/admin'; +// check that the client class type name can be used +function doStuffWithAnalyticsAdminServiceClient( + client: AnalyticsAdminServiceClient +) { + client.close(); +} + function main() { - new AnalyticsAdminServiceClient(); + // check that the client instance can be created + const analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + doStuffWithAnalyticsAdminServiceClient(analyticsAdminServiceClient); } main(); diff --git a/packages/google-analytics-admin/system-test/install.ts b/packages/google-analytics-admin/system-test/install.ts index 4c1ba3eb79a..39d90f771de 100644 --- a/packages/google-analytics-admin/system-test/install.ts +++ b/packages/google-analytics-admin/system-test/install.ts @@ -20,32 +20,32 @@ import {packNTest} from 'pack-n-play'; import {readFileSync} from 'fs'; import {describe, it} from 'mocha'; -describe('typescript consumer tests', () => { - it('should have correct type signature for typescript users', async function () { +describe('📦 pack-n-play test', () => { + it('TypeScript code', async function () { this.timeout(300000); const options = { - packageDir: process.cwd(), // path to your module. + packageDir: process.cwd(), sample: { - description: 'typescript based user can use the type definitions', + description: 'TypeScript user can use the type definitions', ts: readFileSync( './system-test/fixtures/sample/src/index.ts' ).toString(), }, }; - await packNTest(options); // will throw upon error. + await packNTest(options); }); - it('should have correct type signature for javascript users', async function () { + it('JavaScript code', async function () { this.timeout(300000); const options = { - packageDir: process.cwd(), // path to your module. + packageDir: process.cwd(), sample: { - description: 'typescript based user can use the type definitions', + description: 'JavaScript user can use the library', ts: readFileSync( './system-test/fixtures/sample/src/index.js' ).toString(), }, }; - await packNTest(options); // will throw upon error. + await packNTest(options); }); }); From bcd73e537928565e14084a5a79f3bf45fda1d23f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2020 12:45:39 -0800 Subject: [PATCH 036/142] chore: release 1.2.1 (#51) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 17281b3f578..78cbdc85ee3 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.2.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.0...v1.2.1) (2020-11-07) + + +### Bug Fixes + +* do not modify options object, use defaultScopes ([#50](https://www.github.com/googleapis/nodejs-analytics-admin/issues/50)) ([47d0a11](https://www.github.com/googleapis/nodejs-analytics-admin/commit/47d0a119803f52208f4dfa2b053937214d021ec6)) + ## [1.2.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.1.2...v1.2.0) (2020-10-20) ### Features diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 93a48c97d42..050d23dfa25 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.2.0", + "version": "1.2.1", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 4dfed4cfda2..88f218f0650 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.2.0", + "@google-analytics/admin": "^1.2.1", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From d70c2f0fb58033a69aa89d2a5a7010e8a5dd0027 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 11 Nov 2020 13:06:16 -0800 Subject: [PATCH 037/142] fix: 'requests' field of CreateUserLink, UpdateUserLink, DeleteUserLink methods is now required docs: minor documentation updates (#49) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/71168064-cdb8-4d66-b19f-c6ec37376f04/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 340922897 Source-Link: https://github.com/googleapis/googleapis/commit/b365fff50d84fbe03ea16d02cc73d72fa1fc864d --- packages/google-analytics-admin/synth.metadata | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index e5a506de500..5d123664db0 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -3,10 +3,18 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-analytics-admin.git", + "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", "sha": "7f1ae38141775e2ae2f45a2fb30e10ddfbc96664" } }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "b365fff50d84fbe03ea16d02cc73d72fa1fc864d", + "internalRef": "340922897" + } + }, { "git": { "name": "synthtool", From 5860e0331b706da93d7d63b588a0a5f65317da3b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Nov 2020 16:11:37 -0800 Subject: [PATCH 038/142] chore: release 1.2.2 (#52) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 78cbdc85ee3..aae40d64d4d 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.2.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.1...v1.2.2) (2020-11-11) + + +### Bug Fixes + +* 'requests' field of CreateUserLink, UpdateUserLink, DeleteUserLink methods is now required docs: minor documentation updates ([#49](https://www.github.com/googleapis/nodejs-analytics-admin/issues/49)) ([ae75c0c](https://www.github.com/googleapis/nodejs-analytics-admin/commit/ae75c0c053ed203c0f8b142ce87a8622e0b6ee93)) + ### [1.2.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.0...v1.2.1) (2020-11-07) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 050d23dfa25..70ae20b0efe 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.2.1", + "version": "1.2.2", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 88f218f0650..ee4f2c003ab 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.2.1", + "@google-analytics/admin": "^1.2.2", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 8eedfa9675f3bd52f386de46001f47e6023b4098 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 23 Nov 2020 22:04:18 -0800 Subject: [PATCH 039/142] fix: do not modify options object, use defaultScopes docs: regenerated jsdoc comments with examples build: use gapic-generator-typescript v1.2.1 (#55) * fix: do not modify options object, use defaultScopes docs: regenerated jsdoc comments with examples build: use gapic-generator-typescript v1.2.1 Note: these change require google-gax "^2.9.2". @alexander-fenster will make sure the google-gax version is bumped across libraries. PiperOrigin-RevId: 341102751 Source-Author: Google APIs Source-Date: Fri Nov 6 12:56:54 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: b759c563bacf9cd15749be4d2bdd276d3f48ee29 Source-Link: https://github.com/googleapis/googleapis/commit/b759c563bacf9cd15749be4d2bdd276d3f48ee29 * fix: better fallback feature detection, jsdoc update Use gapic-generator-typescript v1.2.2. PiperOrigin-RevId: 342778480 Source-Author: Google APIs Source-Date: Mon Nov 16 20:22:00 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: c6b1c72942991b1c605fe56a6041e06a86a9443e Source-Link: https://github.com/googleapis/googleapis/commit/c6b1c72942991b1c605fe56a6041e06a86a9443e * fix: linting, updated jsdoc blocks Use gapic-generator-typescript v1.2.3. PiperOrigin-RevId: 342976840 Source-Author: Google APIs Source-Date: Tue Nov 17 17:04:11 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: c979fbeb80d1b940790a69183629d799e4c05b4c Source-Link: https://github.com/googleapis/googleapis/commit/c979fbeb80d1b940790a69183629d799e4c05b4c * fix: use optional chaining for window.fetch feature detection Use gapic-generator-typescript v1.2.4. Committer: @alexander-fenster PiperOrigin-RevId: 343136730 Source-Author: Google APIs Source-Date: Wed Nov 18 12:49:25 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 2cda8d285b66c14da57363201b7e4efbca47d034 Source-Link: https://github.com/googleapis/googleapis/commit/2cda8d285b66c14da57363201b7e4efbca47d034 * fix: mark window as global for linter Use gapic-generator-typescript v1.2.5. Committer: @alexander-fenster PiperOrigin-RevId: 343187793 Source-Author: Google APIs Source-Date: Wed Nov 18 17:10:02 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 5587028631d4d743fd906c4eb4e4e4649a7ee5ce Source-Link: https://github.com/googleapis/googleapis/commit/5587028631d4d743fd906c4eb4e4e4649a7ee5ce --- .../google-analytics-admin/protos/protos.json | 606 ++++++++++++++++-- .../v1alpha/analytics_admin_service_client.ts | 532 +++++++-------- .../google-analytics-admin/synth.metadata | 8 +- 3 files changed, 831 insertions(+), 315 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 73252fd9ac2..adc4cf58379 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -26,14 +26,31 @@ "options": { "(google.api.http).get": "/v1alpha/{name=accounts/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=accounts/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListAccounts": { "requestType": "ListAccountsRequest", "responseType": "ListAccountsResponse", "options": { "(google.api.http).get": "/v1alpha/accounts" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/accounts" + } + } + ] }, "DeleteAccount": { "requestType": "DeleteAccountRequest", @@ -41,7 +58,17 @@ "options": { "(google.api.http).delete": "/v1alpha/{name=accounts/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=accounts/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "UpdateAccount": { "requestType": "UpdateAccountRequest", @@ -50,7 +77,18 @@ "(google.api.http).patch": "/v1alpha/{account.name=accounts/*}", "(google.api.http).body": "account", "(google.api.method_signature)": "account,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{account.name=accounts/*}", + "body": "account" + } + }, + { + "(google.api.method_signature)": "account,update_mask" + } + ] }, "ProvisionAccountTicket": { "requestType": "ProvisionAccountTicketRequest", @@ -58,14 +96,29 @@ "options": { "(google.api.http).post": "/v1alpha/accounts:provisionAccountTicket", "(google.api.http).body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/accounts:provisionAccountTicket", + "body": "*" + } + } + ] }, "ListAccountSummaries": { "requestType": "ListAccountSummariesRequest", "responseType": "ListAccountSummariesResponse", "options": { "(google.api.http).get": "/v1alpha/accountSummaries" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/accountSummaries" + } + } + ] }, "GetProperty": { "requestType": "GetPropertyRequest", @@ -73,14 +126,31 @@ "options": { "(google.api.http).get": "/v1alpha/{name=properties/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListProperties": { "requestType": "ListPropertiesRequest", "responseType": "ListPropertiesResponse", "options": { "(google.api.http).get": "/v1alpha/properties" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/properties" + } + } + ] }, "CreateProperty": { "requestType": "CreatePropertyRequest", @@ -89,7 +159,18 @@ "(google.api.http).post": "/v1alpha/properties", "(google.api.http).body": "property", "(google.api.method_signature)": "property" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/properties", + "body": "property" + } + }, + { + "(google.api.method_signature)": "property" + } + ] }, "DeleteProperty": { "requestType": "DeletePropertyRequest", @@ -97,7 +178,17 @@ "options": { "(google.api.http).delete": "/v1alpha/{name=properties/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "UpdateProperty": { "requestType": "UpdatePropertyRequest", @@ -106,7 +197,18 @@ "(google.api.http).patch": "/v1alpha/{property.name=properties/*}", "(google.api.http).body": "property", "(google.api.method_signature)": "property,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{property.name=properties/*}", + "body": "property" + } + }, + { + "(google.api.method_signature)": "property,update_mask" + } + ] }, "GetUserLink": { "requestType": "GetUserLinkRequest", @@ -115,7 +217,20 @@ "(google.api.http).get": "/v1alpha/{name=accounts/*/userLinks/*}", "(google.api.http).additional_bindings.get": "/v1alpha/{name=properties/*/userLinks/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=accounts/*/userLinks/*}", + "additional_bindings": { + "get": "/v1alpha/{name=properties/*/userLinks/*}" + } + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "BatchGetUserLinks": { "requestType": "BatchGetUserLinksRequest", @@ -123,7 +238,17 @@ "options": { "(google.api.http).get": "/v1alpha/{parent=accounts/*}/userLinks:batchGet", "(google.api.http).additional_bindings.get": "/v1alpha/{parent=properties/*}/userLinks:batchGet" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=accounts/*}/userLinks:batchGet", + "additional_bindings": { + "get": "/v1alpha/{parent=properties/*}/userLinks:batchGet" + } + } + } + ] }, "ListUserLinks": { "requestType": "ListUserLinksRequest", @@ -132,7 +257,20 @@ "(google.api.http).get": "/v1alpha/{parent=accounts/*}/userLinks", "(google.api.http).additional_bindings.get": "/v1alpha/{parent=properties/*}/userLinks", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=accounts/*}/userLinks", + "additional_bindings": { + "get": "/v1alpha/{parent=properties/*}/userLinks" + } + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "AuditUserLinks": { "requestType": "AuditUserLinksRequest", @@ -142,7 +280,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:audit", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=accounts/*}/userLinks:audit", + "body": "*", + "additional_bindings": { + "post": "/v1alpha/{parent=properties/*}/userLinks:audit", + "body": "*" + } + } + } + ] }, "CreateUserLink": { "requestType": "CreateUserLinkRequest", @@ -153,7 +303,22 @@ "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks", "(google.api.http).additional_bindings.body": "user_link", "(google.api.method_signature)": "parent,user_link" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=accounts/*}/userLinks", + "body": "user_link", + "additional_bindings": { + "post": "/v1alpha/{parent=properties/*}/userLinks", + "body": "user_link" + } + } + }, + { + "(google.api.method_signature)": "parent,user_link" + } + ] }, "BatchCreateUserLinks": { "requestType": "BatchCreateUserLinksRequest", @@ -163,7 +328,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:batchCreate", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=accounts/*}/userLinks:batchCreate", + "body": "*", + "additional_bindings": { + "post": "/v1alpha/{parent=properties/*}/userLinks:batchCreate", + "body": "*" + } + } + } + ] }, "UpdateUserLink": { "requestType": "UpdateUserLinkRequest", @@ -174,7 +351,22 @@ "(google.api.http).additional_bindings.patch": "/v1alpha/{user_link.name=properties/*/userLinks/*}", "(google.api.http).additional_bindings.body": "user_link", "(google.api.method_signature)": "user_link" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{user_link.name=accounts/*/userLinks/*}", + "body": "user_link", + "additional_bindings": { + "patch": "/v1alpha/{user_link.name=properties/*/userLinks/*}", + "body": "user_link" + } + } + }, + { + "(google.api.method_signature)": "user_link" + } + ] }, "BatchUpdateUserLinks": { "requestType": "BatchUpdateUserLinksRequest", @@ -184,7 +376,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:batchUpdate", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate", + "body": "*", + "additional_bindings": { + "post": "/v1alpha/{parent=properties/*}/userLinks:batchUpdate", + "body": "*" + } + } + } + ] }, "DeleteUserLink": { "requestType": "DeleteUserLinkRequest", @@ -193,7 +397,20 @@ "(google.api.http).delete": "/v1alpha/{name=accounts/*/userLinks/*}", "(google.api.http).additional_bindings.delete": "/v1alpha/{name=properties/*/userLinks/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=accounts/*/userLinks/*}", + "additional_bindings": { + "delete": "/v1alpha/{name=properties/*/userLinks/*}" + } + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "BatchDeleteUserLinks": { "requestType": "BatchDeleteUserLinksRequest", @@ -203,7 +420,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*}/userLinks:batchDelete", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=accounts/*}/userLinks:batchDelete", + "body": "*", + "additional_bindings": { + "post": "/v1alpha/{parent=properties/*}/userLinks:batchDelete", + "body": "*" + } + } + } + ] }, "GetWebDataStream": { "requestType": "GetWebDataStreamRequest", @@ -211,7 +440,17 @@ "options": { "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/webDataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "DeleteWebDataStream": { "requestType": "DeleteWebDataStreamRequest", @@ -219,7 +458,17 @@ "options": { "(google.api.http).delete": "/v1alpha/{name=properties/*/webDataStreams/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/webDataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "UpdateWebDataStream": { "requestType": "UpdateWebDataStreamRequest", @@ -228,7 +477,18 @@ "(google.api.http).patch": "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}", "(google.api.http).body": "web_data_stream", "(google.api.method_signature)": "web_data_stream,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}", + "body": "web_data_stream" + } + }, + { + "(google.api.method_signature)": "web_data_stream,update_mask" + } + ] }, "CreateWebDataStream": { "requestType": "CreateWebDataStreamRequest", @@ -237,7 +497,18 @@ "(google.api.http).post": "/v1alpha/{parent=properties/*}/webDataStreams", "(google.api.http).body": "web_data_stream", "(google.api.method_signature)": "parent,web_data_stream" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/webDataStreams", + "body": "web_data_stream" + } + }, + { + "(google.api.method_signature)": "parent,web_data_stream" + } + ] }, "ListWebDataStreams": { "requestType": "ListWebDataStreamsRequest", @@ -245,7 +516,17 @@ "options": { "(google.api.http).get": "/v1alpha/{parent=properties/*}/webDataStreams", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/webDataStreams" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetIosAppDataStream": { "requestType": "GetIosAppDataStreamRequest", @@ -253,7 +534,17 @@ "options": { "(google.api.http).get": "/v1alpha/{name=properties/*/iosAppDataStreams/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/iosAppDataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "DeleteIosAppDataStream": { "requestType": "DeleteIosAppDataStreamRequest", @@ -261,7 +552,17 @@ "options": { "(google.api.http).delete": "/v1alpha/{name=properties/*/iosAppDataStreams/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/iosAppDataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "UpdateIosAppDataStream": { "requestType": "UpdateIosAppDataStreamRequest", @@ -270,7 +571,18 @@ "(google.api.http).patch": "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}", "(google.api.http).body": "ios_app_data_stream", "(google.api.method_signature)": "ios_app_data_stream,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}", + "body": "ios_app_data_stream" + } + }, + { + "(google.api.method_signature)": "ios_app_data_stream,update_mask" + } + ] }, "CreateIosAppDataStream": { "requestType": "CreateIosAppDataStreamRequest", @@ -279,7 +591,18 @@ "(google.api.http).post": "/v1alpha/{parent=properties/*}/iosAppDataStreams", "(google.api.http).body": "ios_app_data_stream", "(google.api.method_signature)": "parent,ios_app_data_stream" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/iosAppDataStreams", + "body": "ios_app_data_stream" + } + }, + { + "(google.api.method_signature)": "parent,ios_app_data_stream" + } + ] }, "ListIosAppDataStreams": { "requestType": "ListIosAppDataStreamsRequest", @@ -287,7 +610,17 @@ "options": { "(google.api.http).get": "/v1alpha/{parent=properties/*}/iosAppDataStreams", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/iosAppDataStreams" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetAndroidAppDataStream": { "requestType": "GetAndroidAppDataStreamRequest", @@ -295,7 +628,17 @@ "options": { "(google.api.http).get": "/v1alpha/{name=properties/*/androidAppDataStreams/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/androidAppDataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "DeleteAndroidAppDataStream": { "requestType": "DeleteAndroidAppDataStreamRequest", @@ -303,7 +646,17 @@ "options": { "(google.api.http).delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "UpdateAndroidAppDataStream": { "requestType": "UpdateAndroidAppDataStreamRequest", @@ -312,7 +665,18 @@ "(google.api.http).patch": "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}", "(google.api.http).body": "android_app_data_stream", "(google.api.method_signature)": "android_app_data_stream,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}", + "body": "android_app_data_stream" + } + }, + { + "(google.api.method_signature)": "android_app_data_stream,update_mask" + } + ] }, "CreateAndroidAppDataStream": { "requestType": "CreateAndroidAppDataStreamRequest", @@ -321,7 +685,18 @@ "(google.api.http).post": "/v1alpha/{parent=properties/*}/androidAppDataStreams", "(google.api.http).body": "android_app_data_stream", "(google.api.method_signature)": "parent,android_app_data_stream" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/androidAppDataStreams", + "body": "android_app_data_stream" + } + }, + { + "(google.api.method_signature)": "parent,android_app_data_stream" + } + ] }, "ListAndroidAppDataStreams": { "requestType": "ListAndroidAppDataStreamsRequest", @@ -329,7 +704,17 @@ "options": { "(google.api.http).get": "/v1alpha/{parent=properties/*}/androidAppDataStreams", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/androidAppDataStreams" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetEnhancedMeasurementSettings": { "requestType": "GetEnhancedMeasurementSettingsRequest", @@ -337,7 +722,17 @@ "options": { "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "UpdateEnhancedMeasurementSettings": { "requestType": "UpdateEnhancedMeasurementSettingsRequest", @@ -346,7 +741,18 @@ "(google.api.http).patch": "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", "(google.api.http).body": "enhanced_measurement_settings", "(google.api.method_signature)": "enhanced_measurement_settings,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", + "body": "enhanced_measurement_settings" + } + }, + { + "(google.api.method_signature)": "enhanced_measurement_settings,update_mask" + } + ] }, "CreateFirebaseLink": { "requestType": "CreateFirebaseLinkRequest", @@ -355,7 +761,18 @@ "(google.api.http).post": "/v1alpha/{parent=properties/*}/firebaseLinks", "(google.api.http).body": "firebase_link", "(google.api.method_signature)": "parent,firebase_link" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/firebaseLinks", + "body": "firebase_link" + } + }, + { + "(google.api.method_signature)": "parent,firebase_link" + } + ] }, "UpdateFirebaseLink": { "requestType": "UpdateFirebaseLinkRequest", @@ -364,7 +781,18 @@ "(google.api.http).patch": "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}", "(google.api.http).body": "firebase_link", "(google.api.method_signature)": "firebase_link,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}", + "body": "firebase_link" + } + }, + { + "(google.api.method_signature)": "firebase_link,update_mask" + } + ] }, "DeleteFirebaseLink": { "requestType": "DeleteFirebaseLinkRequest", @@ -372,7 +800,17 @@ "options": { "(google.api.http).delete": "/v1alpha/{name=properties/*/firebaseLinks/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/firebaseLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListFirebaseLinks": { "requestType": "ListFirebaseLinksRequest", @@ -380,7 +818,17 @@ "options": { "(google.api.http).get": "/v1alpha/{parent=properties/*}/firebaseLinks", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/firebaseLinks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetGlobalSiteTag": { "requestType": "GetGlobalSiteTagRequest", @@ -388,7 +836,17 @@ "options": { "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateGoogleAdsLink": { "requestType": "CreateGoogleAdsLinkRequest", @@ -397,7 +855,18 @@ "(google.api.http).post": "/v1alpha/{parent=properties/*}/googleAdsLinks", "(google.api.http).body": "google_ads_link", "(google.api.method_signature)": "parent,google_ads_link" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/googleAdsLinks", + "body": "google_ads_link" + } + }, + { + "(google.api.method_signature)": "parent,google_ads_link" + } + ] }, "UpdateGoogleAdsLink": { "requestType": "UpdateGoogleAdsLinkRequest", @@ -406,7 +875,18 @@ "(google.api.http).patch": "/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}", "(google.api.http).body": "google_ads_link", "(google.api.method_signature)": "google_ads_link,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}", + "body": "google_ads_link" + } + }, + { + "(google.api.method_signature)": "google_ads_link,update_mask" + } + ] }, "DeleteGoogleAdsLink": { "requestType": "DeleteGoogleAdsLinkRequest", @@ -414,7 +894,17 @@ "options": { "(google.api.http).delete": "/v1alpha/{name=properties/*/googleAdsLinks/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/googleAdsLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListGoogleAdsLinks": { "requestType": "ListGoogleAdsLinksRequest", @@ -422,7 +912,17 @@ "options": { "(google.api.http).get": "/v1alpha/{parent=properties/*}/googleAdsLinks", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/googleAdsLinks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetDataSharingSettings": { "requestType": "GetDataSharingSettingsRequest", @@ -430,7 +930,17 @@ "options": { "(google.api.http).get": "/v1alpha/{name=accounts/*/dataSharingSettings}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=accounts/*/dataSharingSettings}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index bd585e63752..dfaa5667e88 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,6 +31,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1alpha/analytics_admin_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './analytics_admin_service_client_config.json'; const version = require('../../../package.json').version; @@ -83,9 +89,9 @@ export class AnalyticsAdminServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -99,7 +105,9 @@ export class AnalyticsAdminServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -434,7 +442,7 @@ export class AnalyticsAdminServiceClient { // ------------------- getAccount( request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAccount, @@ -444,7 +452,7 @@ export class AnalyticsAdminServiceClient { >; getAccount( request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IAccount, | protos.google.analytics.admin.v1alpha.IGetAccountRequest @@ -487,7 +495,7 @@ export class AnalyticsAdminServiceClient { getAccount( request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IAccount, | protos.google.analytics.admin.v1alpha.IGetAccountRequest @@ -510,12 +518,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -530,7 +538,7 @@ export class AnalyticsAdminServiceClient { } deleteAccount( request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -540,7 +548,7 @@ export class AnalyticsAdminServiceClient { >; deleteAccount( request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteAccountRequest @@ -591,7 +599,7 @@ export class AnalyticsAdminServiceClient { deleteAccount( request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteAccountRequest @@ -614,12 +622,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -634,7 +642,7 @@ export class AnalyticsAdminServiceClient { } updateAccount( request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAccount, @@ -644,7 +652,7 @@ export class AnalyticsAdminServiceClient { >; updateAccount( request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IAccount, | protos.google.analytics.admin.v1alpha.IUpdateAccountRequest @@ -686,7 +694,7 @@ export class AnalyticsAdminServiceClient { updateAccount( request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IAccount, | protos.google.analytics.admin.v1alpha.IUpdateAccountRequest @@ -709,12 +717,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -729,7 +737,7 @@ export class AnalyticsAdminServiceClient { } provisionAccountTicket( request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, @@ -742,7 +750,7 @@ export class AnalyticsAdminServiceClient { >; provisionAccountTicket( request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest @@ -784,7 +792,7 @@ export class AnalyticsAdminServiceClient { provisionAccountTicket( request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, | protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest @@ -810,12 +818,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; this.initialize(); @@ -827,7 +835,7 @@ export class AnalyticsAdminServiceClient { } getProperty( request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IProperty, @@ -837,7 +845,7 @@ export class AnalyticsAdminServiceClient { >; getProperty( request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IGetPropertyRequest @@ -881,7 +889,7 @@ export class AnalyticsAdminServiceClient { getProperty( request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IGetPropertyRequest @@ -904,12 +912,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -924,7 +932,7 @@ export class AnalyticsAdminServiceClient { } createProperty( request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IProperty, @@ -934,7 +942,7 @@ export class AnalyticsAdminServiceClient { >; createProperty( request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.ICreatePropertyRequest @@ -974,7 +982,7 @@ export class AnalyticsAdminServiceClient { createProperty( request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.ICreatePropertyRequest @@ -997,12 +1005,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; this.initialize(); @@ -1010,7 +1018,7 @@ export class AnalyticsAdminServiceClient { } deleteProperty( request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1020,7 +1028,7 @@ export class AnalyticsAdminServiceClient { >; deleteProperty( request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest @@ -1071,7 +1079,7 @@ export class AnalyticsAdminServiceClient { deleteProperty( request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest @@ -1094,12 +1102,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1114,7 +1122,7 @@ export class AnalyticsAdminServiceClient { } updateProperty( request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IProperty, @@ -1124,7 +1132,7 @@ export class AnalyticsAdminServiceClient { >; updateProperty( request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest @@ -1167,7 +1175,7 @@ export class AnalyticsAdminServiceClient { updateProperty( request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest @@ -1190,12 +1198,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1210,7 +1218,7 @@ export class AnalyticsAdminServiceClient { } getUserLink( request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IUserLink, @@ -1220,7 +1228,7 @@ export class AnalyticsAdminServiceClient { >; getUserLink( request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IUserLink, | protos.google.analytics.admin.v1alpha.IGetUserLinkRequest @@ -1259,7 +1267,7 @@ export class AnalyticsAdminServiceClient { getUserLink( request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IUserLink, | protos.google.analytics.admin.v1alpha.IGetUserLinkRequest @@ -1282,12 +1290,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1302,7 +1310,7 @@ export class AnalyticsAdminServiceClient { } batchGetUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, @@ -1315,7 +1323,7 @@ export class AnalyticsAdminServiceClient { >; batchGetUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest @@ -1361,7 +1369,7 @@ export class AnalyticsAdminServiceClient { batchGetUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, | protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest @@ -1387,12 +1395,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1407,7 +1415,7 @@ export class AnalyticsAdminServiceClient { } createUserLink( request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IUserLink, @@ -1417,7 +1425,7 @@ export class AnalyticsAdminServiceClient { >; createUserLink( request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IUserLink, | protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest @@ -1465,7 +1473,7 @@ export class AnalyticsAdminServiceClient { createUserLink( request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IUserLink, | protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest @@ -1488,12 +1496,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1508,7 +1516,7 @@ export class AnalyticsAdminServiceClient { } batchCreateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, @@ -1521,7 +1529,7 @@ export class AnalyticsAdminServiceClient { >; batchCreateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest @@ -1573,7 +1581,7 @@ export class AnalyticsAdminServiceClient { batchCreateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, | protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest @@ -1599,12 +1607,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1619,7 +1627,7 @@ export class AnalyticsAdminServiceClient { } updateUserLink( request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IUserLink, @@ -1629,7 +1637,7 @@ export class AnalyticsAdminServiceClient { >; updateUserLink( request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IUserLink, | protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest @@ -1668,7 +1676,7 @@ export class AnalyticsAdminServiceClient { updateUserLink( request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IUserLink, | protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest @@ -1691,12 +1699,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1711,7 +1719,7 @@ export class AnalyticsAdminServiceClient { } batchUpdateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, @@ -1724,7 +1732,7 @@ export class AnalyticsAdminServiceClient { >; batchUpdateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest @@ -1769,7 +1777,7 @@ export class AnalyticsAdminServiceClient { batchUpdateUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, | protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest @@ -1795,12 +1803,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1815,7 +1823,7 @@ export class AnalyticsAdminServiceClient { } deleteUserLink( request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1825,7 +1833,7 @@ export class AnalyticsAdminServiceClient { >; deleteUserLink( request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest @@ -1864,7 +1872,7 @@ export class AnalyticsAdminServiceClient { deleteUserLink( request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest @@ -1887,12 +1895,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1907,7 +1915,7 @@ export class AnalyticsAdminServiceClient { } batchDeleteUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1920,7 +1928,7 @@ export class AnalyticsAdminServiceClient { >; batchDeleteUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest @@ -1965,7 +1973,7 @@ export class AnalyticsAdminServiceClient { batchDeleteUserLinks( request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest @@ -1991,12 +1999,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2011,7 +2019,7 @@ export class AnalyticsAdminServiceClient { } getWebDataStream( request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IWebDataStream, @@ -2024,7 +2032,7 @@ export class AnalyticsAdminServiceClient { >; getWebDataStream( request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IWebDataStream, | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest @@ -2068,7 +2076,7 @@ export class AnalyticsAdminServiceClient { getWebDataStream( request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IWebDataStream, | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest @@ -2094,12 +2102,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2114,7 +2122,7 @@ export class AnalyticsAdminServiceClient { } deleteWebDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -2127,7 +2135,7 @@ export class AnalyticsAdminServiceClient { >; deleteWebDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest @@ -2168,7 +2176,7 @@ export class AnalyticsAdminServiceClient { deleteWebDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest @@ -2194,12 +2202,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2214,7 +2222,7 @@ export class AnalyticsAdminServiceClient { } updateWebDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IWebDataStream, @@ -2227,7 +2235,7 @@ export class AnalyticsAdminServiceClient { >; updateWebDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IWebDataStream, | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest @@ -2269,7 +2277,7 @@ export class AnalyticsAdminServiceClient { updateWebDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IWebDataStream, | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest @@ -2295,12 +2303,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2315,7 +2323,7 @@ export class AnalyticsAdminServiceClient { } createWebDataStream( request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IWebDataStream, @@ -2328,7 +2336,7 @@ export class AnalyticsAdminServiceClient { >; createWebDataStream( request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IWebDataStream, | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest @@ -2370,7 +2378,7 @@ export class AnalyticsAdminServiceClient { createWebDataStream( request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IWebDataStream, | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest @@ -2396,12 +2404,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2416,7 +2424,7 @@ export class AnalyticsAdminServiceClient { } getIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IIosAppDataStream, @@ -2429,7 +2437,7 @@ export class AnalyticsAdminServiceClient { >; getIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IIosAppDataStream, | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest @@ -2473,7 +2481,7 @@ export class AnalyticsAdminServiceClient { getIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IIosAppDataStream, | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest @@ -2499,12 +2507,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2519,7 +2527,7 @@ export class AnalyticsAdminServiceClient { } deleteIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -2532,7 +2540,7 @@ export class AnalyticsAdminServiceClient { >; deleteIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest @@ -2573,7 +2581,7 @@ export class AnalyticsAdminServiceClient { deleteIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest @@ -2599,12 +2607,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2623,7 +2631,7 @@ export class AnalyticsAdminServiceClient { } updateIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IIosAppDataStream, @@ -2636,7 +2644,7 @@ export class AnalyticsAdminServiceClient { >; updateIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IIosAppDataStream, | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest @@ -2678,7 +2686,7 @@ export class AnalyticsAdminServiceClient { updateIosAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IIosAppDataStream, | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest @@ -2704,12 +2712,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2728,7 +2736,7 @@ export class AnalyticsAdminServiceClient { } createIosAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IIosAppDataStream, @@ -2741,7 +2749,7 @@ export class AnalyticsAdminServiceClient { >; createIosAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IIosAppDataStream, | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest @@ -2783,7 +2791,7 @@ export class AnalyticsAdminServiceClient { createIosAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IIosAppDataStream, | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest @@ -2809,12 +2817,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2833,7 +2841,7 @@ export class AnalyticsAdminServiceClient { } getAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, @@ -2846,7 +2854,7 @@ export class AnalyticsAdminServiceClient { >; getAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest @@ -2890,7 +2898,7 @@ export class AnalyticsAdminServiceClient { getAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest @@ -2916,12 +2924,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2940,7 +2948,7 @@ export class AnalyticsAdminServiceClient { } deleteAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -2953,7 +2961,7 @@ export class AnalyticsAdminServiceClient { >; deleteAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest @@ -2994,7 +3002,7 @@ export class AnalyticsAdminServiceClient { deleteAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest @@ -3020,12 +3028,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3044,7 +3052,7 @@ export class AnalyticsAdminServiceClient { } updateAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, @@ -3057,7 +3065,7 @@ export class AnalyticsAdminServiceClient { >; updateAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest @@ -3099,7 +3107,7 @@ export class AnalyticsAdminServiceClient { updateAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest @@ -3125,12 +3133,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3149,7 +3157,7 @@ export class AnalyticsAdminServiceClient { } createAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, @@ -3162,7 +3170,7 @@ export class AnalyticsAdminServiceClient { >; createAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest @@ -3204,7 +3212,7 @@ export class AnalyticsAdminServiceClient { createAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest @@ -3230,12 +3238,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3254,7 +3262,7 @@ export class AnalyticsAdminServiceClient { } getEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, @@ -3267,7 +3275,7 @@ export class AnalyticsAdminServiceClient { >; getEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest @@ -3312,7 +3320,7 @@ export class AnalyticsAdminServiceClient { getEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest @@ -3338,12 +3346,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3362,7 +3370,7 @@ export class AnalyticsAdminServiceClient { } updateEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, @@ -3375,7 +3383,7 @@ export class AnalyticsAdminServiceClient { >; updateEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest @@ -3419,7 +3427,7 @@ export class AnalyticsAdminServiceClient { updateEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest @@ -3445,12 +3453,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3470,7 +3478,7 @@ export class AnalyticsAdminServiceClient { } createFirebaseLink( request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IFirebaseLink, @@ -3483,7 +3491,7 @@ export class AnalyticsAdminServiceClient { >; createFirebaseLink( request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IFirebaseLink, | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest @@ -3527,7 +3535,7 @@ export class AnalyticsAdminServiceClient { createFirebaseLink( request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IFirebaseLink, | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest @@ -3553,12 +3561,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3573,7 +3581,7 @@ export class AnalyticsAdminServiceClient { } updateFirebaseLink( request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IFirebaseLink, @@ -3586,7 +3594,7 @@ export class AnalyticsAdminServiceClient { >; updateFirebaseLink( request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IFirebaseLink, | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest @@ -3627,7 +3635,7 @@ export class AnalyticsAdminServiceClient { updateFirebaseLink( request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IFirebaseLink, | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest @@ -3653,12 +3661,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3673,7 +3681,7 @@ export class AnalyticsAdminServiceClient { } deleteFirebaseLink( request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -3686,7 +3694,7 @@ export class AnalyticsAdminServiceClient { >; deleteFirebaseLink( request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest @@ -3726,7 +3734,7 @@ export class AnalyticsAdminServiceClient { deleteFirebaseLink( request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest @@ -3752,12 +3760,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3772,7 +3780,7 @@ export class AnalyticsAdminServiceClient { } listFirebaseLinks( request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, @@ -3785,7 +3793,7 @@ export class AnalyticsAdminServiceClient { >; listFirebaseLinks( request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest @@ -3826,7 +3834,7 @@ export class AnalyticsAdminServiceClient { listFirebaseLinks( request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest @@ -3852,12 +3860,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3872,7 +3880,7 @@ export class AnalyticsAdminServiceClient { } getGlobalSiteTag( request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IGlobalSiteTag, @@ -3885,7 +3893,7 @@ export class AnalyticsAdminServiceClient { >; getGlobalSiteTag( request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IGlobalSiteTag, | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest @@ -3928,7 +3936,7 @@ export class AnalyticsAdminServiceClient { getGlobalSiteTag( request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IGlobalSiteTag, | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest @@ -3954,12 +3962,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3974,7 +3982,7 @@ export class AnalyticsAdminServiceClient { } createGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IGoogleAdsLink, @@ -3987,7 +3995,7 @@ export class AnalyticsAdminServiceClient { >; createGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IGoogleAdsLink, | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest @@ -4028,7 +4036,7 @@ export class AnalyticsAdminServiceClient { createGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IGoogleAdsLink, | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest @@ -4054,12 +4062,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4074,7 +4082,7 @@ export class AnalyticsAdminServiceClient { } updateGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IGoogleAdsLink, @@ -4087,7 +4095,7 @@ export class AnalyticsAdminServiceClient { >; updateGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IGoogleAdsLink, | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest @@ -4128,7 +4136,7 @@ export class AnalyticsAdminServiceClient { updateGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IGoogleAdsLink, | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest @@ -4154,12 +4162,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4174,7 +4182,7 @@ export class AnalyticsAdminServiceClient { } deleteGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -4187,7 +4195,7 @@ export class AnalyticsAdminServiceClient { >; deleteGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest @@ -4226,7 +4234,7 @@ export class AnalyticsAdminServiceClient { deleteGoogleAdsLink( request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest @@ -4252,12 +4260,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4272,7 +4280,7 @@ export class AnalyticsAdminServiceClient { } getDataSharingSettings( request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IDataSharingSettings, @@ -4285,7 +4293,7 @@ export class AnalyticsAdminServiceClient { >; getDataSharingSettings( request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.analytics.admin.v1alpha.IDataSharingSettings, | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest @@ -4327,7 +4335,7 @@ export class AnalyticsAdminServiceClient { getDataSharingSettings( request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.analytics.admin.v1alpha.IDataSharingSettings, | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest @@ -4353,12 +4361,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4378,7 +4386,7 @@ export class AnalyticsAdminServiceClient { listAccounts( request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAccount[], @@ -4388,7 +4396,7 @@ export class AnalyticsAdminServiceClient { >; listAccounts( request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListAccountsRequest, | protos.google.analytics.admin.v1alpha.IListAccountsResponse @@ -4446,7 +4454,7 @@ export class AnalyticsAdminServiceClient { listAccounts( request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListAccountsRequest, | protos.google.analytics.admin.v1alpha.IListAccountsResponse @@ -4469,12 +4477,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; this.initialize(); @@ -4513,7 +4521,7 @@ export class AnalyticsAdminServiceClient { */ listAccountsStream( request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -4564,7 +4572,7 @@ export class AnalyticsAdminServiceClient { */ listAccountsAsync( request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -4579,7 +4587,7 @@ export class AnalyticsAdminServiceClient { } listAccountSummaries( request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAccountSummary[], @@ -4589,7 +4597,7 @@ export class AnalyticsAdminServiceClient { >; listAccountSummaries( request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse @@ -4639,7 +4647,7 @@ export class AnalyticsAdminServiceClient { listAccountSummaries( request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse @@ -4662,12 +4670,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; this.initialize(); @@ -4702,7 +4710,7 @@ export class AnalyticsAdminServiceClient { */ listAccountSummariesStream( request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -4749,7 +4757,7 @@ export class AnalyticsAdminServiceClient { */ listAccountSummariesAsync( request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -4764,7 +4772,7 @@ export class AnalyticsAdminServiceClient { } listProperties( request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IProperty[], @@ -4774,7 +4782,7 @@ export class AnalyticsAdminServiceClient { >; listProperties( request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListPropertiesRequest, | protos.google.analytics.admin.v1alpha.IListPropertiesResponse @@ -4845,7 +4853,7 @@ export class AnalyticsAdminServiceClient { listProperties( request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListPropertiesRequest, | protos.google.analytics.admin.v1alpha.IListPropertiesResponse @@ -4868,12 +4876,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; this.initialize(); @@ -4924,7 +4932,7 @@ export class AnalyticsAdminServiceClient { */ listPropertiesStream( request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -4987,7 +4995,7 @@ export class AnalyticsAdminServiceClient { */ listPropertiesAsync( request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -5002,7 +5010,7 @@ export class AnalyticsAdminServiceClient { } listUserLinks( request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IUserLink[], @@ -5012,7 +5020,7 @@ export class AnalyticsAdminServiceClient { >; listUserLinks( request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListUserLinksRequest, | protos.google.analytics.admin.v1alpha.IListUserLinksResponse @@ -5064,7 +5072,7 @@ export class AnalyticsAdminServiceClient { listUserLinks( request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListUserLinksRequest, | protos.google.analytics.admin.v1alpha.IListUserLinksResponse @@ -5087,12 +5095,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5136,7 +5144,7 @@ export class AnalyticsAdminServiceClient { */ listUserLinksStream( request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -5192,7 +5200,7 @@ export class AnalyticsAdminServiceClient { */ listUserLinksAsync( request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -5214,7 +5222,7 @@ export class AnalyticsAdminServiceClient { } auditUserLinks( request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAuditUserLink[], @@ -5224,7 +5232,7 @@ export class AnalyticsAdminServiceClient { >; auditUserLinks( request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse @@ -5284,7 +5292,7 @@ export class AnalyticsAdminServiceClient { auditUserLinks( request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse @@ -5307,12 +5315,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5356,7 +5364,7 @@ export class AnalyticsAdminServiceClient { */ auditUserLinksStream( request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -5412,7 +5420,7 @@ export class AnalyticsAdminServiceClient { */ auditUserLinksAsync( request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -5434,7 +5442,7 @@ export class AnalyticsAdminServiceClient { } listWebDataStreams( request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IWebDataStream[], @@ -5444,7 +5452,7 @@ export class AnalyticsAdminServiceClient { >; listWebDataStreams( request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse @@ -5500,7 +5508,7 @@ export class AnalyticsAdminServiceClient { listWebDataStreams( request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse @@ -5523,12 +5531,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5573,7 +5581,7 @@ export class AnalyticsAdminServiceClient { */ listWebDataStreamsStream( request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -5630,7 +5638,7 @@ export class AnalyticsAdminServiceClient { */ listWebDataStreamsAsync( request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -5652,7 +5660,7 @@ export class AnalyticsAdminServiceClient { } listIosAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IIosAppDataStream[], @@ -5662,7 +5670,7 @@ export class AnalyticsAdminServiceClient { >; listIosAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse @@ -5718,7 +5726,7 @@ export class AnalyticsAdminServiceClient { listIosAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse @@ -5741,12 +5749,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5791,7 +5799,7 @@ export class AnalyticsAdminServiceClient { */ listIosAppDataStreamsStream( request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -5848,7 +5856,7 @@ export class AnalyticsAdminServiceClient { */ listIosAppDataStreamsAsync( request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -5870,7 +5878,7 @@ export class AnalyticsAdminServiceClient { } listAndroidAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], @@ -5880,7 +5888,7 @@ export class AnalyticsAdminServiceClient { >; listAndroidAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse @@ -5938,7 +5946,7 @@ export class AnalyticsAdminServiceClient { listAndroidAppDataStreams( request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse @@ -5961,12 +5969,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6017,7 +6025,7 @@ export class AnalyticsAdminServiceClient { */ listAndroidAppDataStreamsStream( request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -6076,7 +6084,7 @@ export class AnalyticsAdminServiceClient { */ listAndroidAppDataStreamsAsync( request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable< protos.google.analytics.admin.v1alpha.IAndroidAppDataStream > { @@ -6102,7 +6110,7 @@ export class AnalyticsAdminServiceClient { } listGoogleAdsLinks( request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], @@ -6112,7 +6120,7 @@ export class AnalyticsAdminServiceClient { >; listGoogleAdsLinks( request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse @@ -6164,7 +6172,7 @@ export class AnalyticsAdminServiceClient { listGoogleAdsLinks( request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse @@ -6187,12 +6195,12 @@ export class AnalyticsAdminServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6236,7 +6244,7 @@ export class AnalyticsAdminServiceClient { */ listGoogleAdsLinksStream( request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -6292,7 +6300,7 @@ export class AnalyticsAdminServiceClient { */ listGoogleAdsLinksAsync( request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 5d123664db0..b241a8ee498 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "7f1ae38141775e2ae2f45a2fb30e10ddfbc96664" + "sha": "63b9aef4b393d71f158a74eac9b367471684cce8" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b365fff50d84fbe03ea16d02cc73d72fa1fc864d", - "internalRef": "340922897" + "sha": "5587028631d4d743fd906c4eb4e4e4649a7ee5ce", + "internalRef": "343187793" } }, { @@ -87,7 +87,6 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "package-lock.json.2150883559", "protos/google/analytics/admin/v1alpha/analytics_admin.proto", "protos/google/analytics/admin/v1alpha/resources.proto", "protos/protos.d.ts", @@ -95,7 +94,6 @@ "protos/protos.json", "renovate.json", "samples/README.md", - "samples/package-lock.json.903967499", "src/index.ts", "src/v1alpha/analytics_admin_service_client.ts", "src/v1alpha/analytics_admin_service_client_config.json", From 164ff382ec5fd5379ab5c34094cd01d9b0a3543f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Nov 2020 16:35:37 +0100 Subject: [PATCH 040/142] chore(deps): update dependency webpack to v5 (#58) --- packages/google-analytics-admin/package.json | 4 +--- .../src/v1alpha/analytics_admin_service_client.ts | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 70ae20b0efe..162252440f0 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -59,9 +59,7 @@ "pack-n-play": "^1.0.0-2", "sinon": "^9.0.2", "ts-loader": "^8.0.0", - "typescript": "^3.9.6", - "webpack": "^4.43.0", - "webpack-cli": "^3.3.12" + "typescript": "^3.9.6" }, "engines": { "node": ">=10.0.0" diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index dfaa5667e88..e53acaad052 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -6085,9 +6085,7 @@ export class AnalyticsAdminServiceClient { listAndroidAppDataStreamsAsync( request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options?: CallOptions - ): AsyncIterable< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream - > { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6104,9 +6102,7 @@ export class AnalyticsAdminServiceClient { this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream - >; + ) as AsyncIterable; } listGoogleAdsLinks( request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, From 2738273ca8b4f70377097bbbf2c9f5776acca071 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Nov 2020 16:42:01 +0100 Subject: [PATCH 041/142] chore(deps): update dependency gts to v3 (#57) --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 162252440f0..3ea0405668e 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -49,7 +49,7 @@ "@types/node": "^14.0.22", "@types/sinon": "^9.0.4", "c8": "^7.2.0", - "gts": "^2.0.2", + "gts": "^3.0.0", "jsdoc": "^3.6.4", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", From 2ab22fbcd59c4392d85610bccd716bce4281e715 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 25 Nov 2020 08:34:57 -0800 Subject: [PATCH 042/142] docs: spelling correction for "targetting" (#61) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b1c0ae50-0eb0-40ae-94e1-24ab7c3527c2/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/15013eff642a7e7e855aed5a29e6e83c39beba2a --- packages/google-analytics-admin/README.md | 2 +- .../google-analytics-admin/synth.metadata | 76 +------------------ 2 files changed, 3 insertions(+), 75 deletions(-) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index da1707d8214..46a1992627a 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -115,7 +115,7 @@ Our client libraries follow the [Node.js release schedule](https://nodejs.org/en Libraries are compatible with all current _active_ and _maintenance_ versions of Node.js. -Client libraries targetting some end-of-life versions of Node.js are available, and +Client libraries targeting some end-of-life versions of Node.js are available, and can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). The dist-tags follow the naming convention `legacy-(version)`. diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index b241a8ee498..b8ab6b4d818 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "63b9aef4b393d71f158a74eac9b367471684cce8" + "sha": "3fc426c9e40592b9912c9a7de6992daca3fec293" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b" + "sha": "15013eff642a7e7e855aed5a29e6e83c39beba2a" } } ], @@ -33,77 +33,5 @@ "generator": "bazel" } } - ], - "generatedFiles": [ - ".eslintignore", - ".eslintrc.json", - ".gitattributes", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/release-please.yml", - ".github/workflows/ci.yaml", - ".gitignore", - ".jsdoc.js", - ".kokoro/.gitattributes", - ".kokoro/common.cfg", - ".kokoro/continuous/node10/common.cfg", - ".kokoro/continuous/node10/docs.cfg", - ".kokoro/continuous/node10/test.cfg", - ".kokoro/continuous/node12/common.cfg", - ".kokoro/continuous/node12/lint.cfg", - ".kokoro/continuous/node12/samples-test.cfg", - ".kokoro/continuous/node12/system-test.cfg", - ".kokoro/continuous/node12/test.cfg", - ".kokoro/docs.sh", - ".kokoro/lint.sh", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/node10/common.cfg", - ".kokoro/presubmit/node12/common.cfg", - ".kokoro/presubmit/node12/samples-test.cfg", - ".kokoro/presubmit/node12/system-test.cfg", - ".kokoro/presubmit/node12/test.cfg", - ".kokoro/publish.sh", - ".kokoro/release/docs-devsite.cfg", - ".kokoro/release/docs-devsite.sh", - ".kokoro/release/docs.cfg", - ".kokoro/release/docs.sh", - ".kokoro/release/publish.cfg", - ".kokoro/samples-test.sh", - ".kokoro/system-test.sh", - ".kokoro/test.bat", - ".kokoro/test.sh", - ".kokoro/trampoline.sh", - ".kokoro/trampoline_v2.sh", - ".mocharc.js", - ".nycrc", - ".prettierignore", - ".prettierrc.js", - ".trampolinerc", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "README.md", - "api-extractor.json", - "linkinator.config.json", - "protos/google/analytics/admin/v1alpha/analytics_admin.proto", - "protos/google/analytics/admin/v1alpha/resources.proto", - "protos/protos.d.ts", - "protos/protos.js", - "protos/protos.json", - "renovate.json", - "samples/README.md", - "src/index.ts", - "src/v1alpha/analytics_admin_service_client.ts", - "src/v1alpha/analytics_admin_service_client_config.json", - "src/v1alpha/analytics_admin_service_proto_list.json", - "src/v1alpha/index.ts", - "system-test/fixtures/sample/src/index.js", - "system-test/fixtures/sample/src/index.ts", - "system-test/install.ts", - "test/gapic_analytics_admin_service_v1alpha.ts", - "tsconfig.json", - "webpack.config.js" ] } \ No newline at end of file From f39a3fbb8b8a5753d70e697606f70705afe6ef20 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2020 19:42:09 +0000 Subject: [PATCH 043/142] chore: release 1.2.3 (#60) :robot: I have created a release \*beep\* \*boop\* --- ### [1.2.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.2...v1.2.3) (2020-11-25) ### Bug Fixes * do not modify options object, use defaultScopes docs: regenerated jsdoc comments with examples build: use gapic-generator-typescript v1.2.1 ([#55](https://www.github.com/googleapis/nodejs-analytics-admin/issues/55)) ([126618a](https://www.github.com/googleapis/nodejs-analytics-admin/commit/126618a4a1fb1c17be5a6a3e3a4b96cdc844b361)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index aae40d64d4d..fb6763aa529 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.2.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.2...v1.2.3) (2020-11-25) + + +### Bug Fixes + +* do not modify options object, use defaultScopes docs: regenerated jsdoc comments with examples build: use gapic-generator-typescript v1.2.1 ([#55](https://www.github.com/googleapis/nodejs-analytics-admin/issues/55)) ([126618a](https://www.github.com/googleapis/nodejs-analytics-admin/commit/126618a4a1fb1c17be5a6a3e3a4b96cdc844b361)) + ### [1.2.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.1...v1.2.2) (2020-11-11) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 3ea0405668e..d3aaa57c46a 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.2.2", + "version": "1.2.3", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index ee4f2c003ab..0e77cf22d57 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.2.2", + "@google-analytics/admin": "^1.2.3", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 74c158aab20a0b9e83edd9dc58a7d746b5345d50 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 4 Dec 2020 08:58:30 -0800 Subject: [PATCH 044/142] chore: generate GAPIC metadata JSON file (#63) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/cb56ba31-8af5-4a2d-bb02-4d94fe4706d8/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 345596855 Source-Link: https://github.com/googleapis/googleapis/commit/d189e871205fea665a9648f7c4676f027495ccaf --- .../src/v1alpha/gapic_metadata.json | 539 ++++++++++++++++++ .../google-analytics-admin/synth.metadata | 6 +- 2 files changed, 542 insertions(+), 3 deletions(-) create mode 100644 packages/google-analytics-admin/src/v1alpha/gapic_metadata.json diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json new file mode 100644 index 00000000000..f0834addedf --- /dev/null +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -0,0 +1,539 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.analytics.admin.v1alpha", + "libraryPackage": "@google-analytics/admin", + "services": { + "AnalyticsAdminService": { + "clients": { + "grpc": { + "libraryClient": "AnalyticsAdminServiceClient", + "rpcs": { + "GetAccount": { + "methods": [ + "getAccount" + ] + }, + "DeleteAccount": { + "methods": [ + "deleteAccount" + ] + }, + "UpdateAccount": { + "methods": [ + "updateAccount" + ] + }, + "ProvisionAccountTicket": { + "methods": [ + "provisionAccountTicket" + ] + }, + "GetProperty": { + "methods": [ + "getProperty" + ] + }, + "CreateProperty": { + "methods": [ + "createProperty" + ] + }, + "DeleteProperty": { + "methods": [ + "deleteProperty" + ] + }, + "UpdateProperty": { + "methods": [ + "updateProperty" + ] + }, + "GetUserLink": { + "methods": [ + "getUserLink" + ] + }, + "BatchGetUserLinks": { + "methods": [ + "batchGetUserLinks" + ] + }, + "CreateUserLink": { + "methods": [ + "createUserLink" + ] + }, + "BatchCreateUserLinks": { + "methods": [ + "batchCreateUserLinks" + ] + }, + "UpdateUserLink": { + "methods": [ + "updateUserLink" + ] + }, + "BatchUpdateUserLinks": { + "methods": [ + "batchUpdateUserLinks" + ] + }, + "DeleteUserLink": { + "methods": [ + "deleteUserLink" + ] + }, + "BatchDeleteUserLinks": { + "methods": [ + "batchDeleteUserLinks" + ] + }, + "GetWebDataStream": { + "methods": [ + "getWebDataStream" + ] + }, + "DeleteWebDataStream": { + "methods": [ + "deleteWebDataStream" + ] + }, + "UpdateWebDataStream": { + "methods": [ + "updateWebDataStream" + ] + }, + "CreateWebDataStream": { + "methods": [ + "createWebDataStream" + ] + }, + "GetIosAppDataStream": { + "methods": [ + "getIosAppDataStream" + ] + }, + "DeleteIosAppDataStream": { + "methods": [ + "deleteIosAppDataStream" + ] + }, + "UpdateIosAppDataStream": { + "methods": [ + "updateIosAppDataStream" + ] + }, + "CreateIosAppDataStream": { + "methods": [ + "createIosAppDataStream" + ] + }, + "GetAndroidAppDataStream": { + "methods": [ + "getAndroidAppDataStream" + ] + }, + "DeleteAndroidAppDataStream": { + "methods": [ + "deleteAndroidAppDataStream" + ] + }, + "UpdateAndroidAppDataStream": { + "methods": [ + "updateAndroidAppDataStream" + ] + }, + "CreateAndroidAppDataStream": { + "methods": [ + "createAndroidAppDataStream" + ] + }, + "GetEnhancedMeasurementSettings": { + "methods": [ + "getEnhancedMeasurementSettings" + ] + }, + "UpdateEnhancedMeasurementSettings": { + "methods": [ + "updateEnhancedMeasurementSettings" + ] + }, + "CreateFirebaseLink": { + "methods": [ + "createFirebaseLink" + ] + }, + "UpdateFirebaseLink": { + "methods": [ + "updateFirebaseLink" + ] + }, + "DeleteFirebaseLink": { + "methods": [ + "deleteFirebaseLink" + ] + }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks" + ] + }, + "GetGlobalSiteTag": { + "methods": [ + "getGlobalSiteTag" + ] + }, + "CreateGoogleAdsLink": { + "methods": [ + "createGoogleAdsLink" + ] + }, + "UpdateGoogleAdsLink": { + "methods": [ + "updateGoogleAdsLink" + ] + }, + "DeleteGoogleAdsLink": { + "methods": [ + "deleteGoogleAdsLink" + ] + }, + "GetDataSharingSettings": { + "methods": [ + "getDataSharingSettings" + ] + }, + "ListAccounts": { + "methods": [ + "listAccounts", + "listAccountsStream", + "listAccountsAsync" + ] + }, + "ListAccountSummaries": { + "methods": [ + "listAccountSummaries", + "listAccountSummariesStream", + "listAccountSummariesAsync" + ] + }, + "ListProperties": { + "methods": [ + "listProperties", + "listPropertiesStream", + "listPropertiesAsync" + ] + }, + "ListUserLinks": { + "methods": [ + "listUserLinks", + "listUserLinksStream", + "listUserLinksAsync" + ] + }, + "AuditUserLinks": { + "methods": [ + "auditUserLinks", + "auditUserLinksStream", + "auditUserLinksAsync" + ] + }, + "ListWebDataStreams": { + "methods": [ + "listWebDataStreams", + "listWebDataStreamsStream", + "listWebDataStreamsAsync" + ] + }, + "ListIosAppDataStreams": { + "methods": [ + "listIosAppDataStreams", + "listIosAppDataStreamsStream", + "listIosAppDataStreamsAsync" + ] + }, + "ListAndroidAppDataStreams": { + "methods": [ + "listAndroidAppDataStreams", + "listAndroidAppDataStreamsStream", + "listAndroidAppDataStreamsAsync" + ] + }, + "ListGoogleAdsLinks": { + "methods": [ + "listGoogleAdsLinks", + "listGoogleAdsLinksStream", + "listGoogleAdsLinksAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "AnalyticsAdminServiceClient", + "rpcs": { + "GetAccount": { + "methods": [ + "getAccount" + ] + }, + "DeleteAccount": { + "methods": [ + "deleteAccount" + ] + }, + "UpdateAccount": { + "methods": [ + "updateAccount" + ] + }, + "ProvisionAccountTicket": { + "methods": [ + "provisionAccountTicket" + ] + }, + "GetProperty": { + "methods": [ + "getProperty" + ] + }, + "CreateProperty": { + "methods": [ + "createProperty" + ] + }, + "DeleteProperty": { + "methods": [ + "deleteProperty" + ] + }, + "UpdateProperty": { + "methods": [ + "updateProperty" + ] + }, + "GetUserLink": { + "methods": [ + "getUserLink" + ] + }, + "BatchGetUserLinks": { + "methods": [ + "batchGetUserLinks" + ] + }, + "CreateUserLink": { + "methods": [ + "createUserLink" + ] + }, + "BatchCreateUserLinks": { + "methods": [ + "batchCreateUserLinks" + ] + }, + "UpdateUserLink": { + "methods": [ + "updateUserLink" + ] + }, + "BatchUpdateUserLinks": { + "methods": [ + "batchUpdateUserLinks" + ] + }, + "DeleteUserLink": { + "methods": [ + "deleteUserLink" + ] + }, + "BatchDeleteUserLinks": { + "methods": [ + "batchDeleteUserLinks" + ] + }, + "GetWebDataStream": { + "methods": [ + "getWebDataStream" + ] + }, + "DeleteWebDataStream": { + "methods": [ + "deleteWebDataStream" + ] + }, + "UpdateWebDataStream": { + "methods": [ + "updateWebDataStream" + ] + }, + "CreateWebDataStream": { + "methods": [ + "createWebDataStream" + ] + }, + "GetIosAppDataStream": { + "methods": [ + "getIosAppDataStream" + ] + }, + "DeleteIosAppDataStream": { + "methods": [ + "deleteIosAppDataStream" + ] + }, + "UpdateIosAppDataStream": { + "methods": [ + "updateIosAppDataStream" + ] + }, + "CreateIosAppDataStream": { + "methods": [ + "createIosAppDataStream" + ] + }, + "GetAndroidAppDataStream": { + "methods": [ + "getAndroidAppDataStream" + ] + }, + "DeleteAndroidAppDataStream": { + "methods": [ + "deleteAndroidAppDataStream" + ] + }, + "UpdateAndroidAppDataStream": { + "methods": [ + "updateAndroidAppDataStream" + ] + }, + "CreateAndroidAppDataStream": { + "methods": [ + "createAndroidAppDataStream" + ] + }, + "GetEnhancedMeasurementSettings": { + "methods": [ + "getEnhancedMeasurementSettings" + ] + }, + "UpdateEnhancedMeasurementSettings": { + "methods": [ + "updateEnhancedMeasurementSettings" + ] + }, + "CreateFirebaseLink": { + "methods": [ + "createFirebaseLink" + ] + }, + "UpdateFirebaseLink": { + "methods": [ + "updateFirebaseLink" + ] + }, + "DeleteFirebaseLink": { + "methods": [ + "deleteFirebaseLink" + ] + }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks" + ] + }, + "GetGlobalSiteTag": { + "methods": [ + "getGlobalSiteTag" + ] + }, + "CreateGoogleAdsLink": { + "methods": [ + "createGoogleAdsLink" + ] + }, + "UpdateGoogleAdsLink": { + "methods": [ + "updateGoogleAdsLink" + ] + }, + "DeleteGoogleAdsLink": { + "methods": [ + "deleteGoogleAdsLink" + ] + }, + "GetDataSharingSettings": { + "methods": [ + "getDataSharingSettings" + ] + }, + "ListAccounts": { + "methods": [ + "listAccounts", + "listAccountsStream", + "listAccountsAsync" + ] + }, + "ListAccountSummaries": { + "methods": [ + "listAccountSummaries", + "listAccountSummariesStream", + "listAccountSummariesAsync" + ] + }, + "ListProperties": { + "methods": [ + "listProperties", + "listPropertiesStream", + "listPropertiesAsync" + ] + }, + "ListUserLinks": { + "methods": [ + "listUserLinks", + "listUserLinksStream", + "listUserLinksAsync" + ] + }, + "AuditUserLinks": { + "methods": [ + "auditUserLinks", + "auditUserLinksStream", + "auditUserLinksAsync" + ] + }, + "ListWebDataStreams": { + "methods": [ + "listWebDataStreams", + "listWebDataStreamsStream", + "listWebDataStreamsAsync" + ] + }, + "ListIosAppDataStreams": { + "methods": [ + "listIosAppDataStreams", + "listIosAppDataStreamsStream", + "listIosAppDataStreamsAsync" + ] + }, + "ListAndroidAppDataStreams": { + "methods": [ + "listAndroidAppDataStreams", + "listAndroidAppDataStreamsStream", + "listAndroidAppDataStreamsAsync" + ] + }, + "ListGoogleAdsLinks": { + "methods": [ + "listGoogleAdsLinks", + "listGoogleAdsLinksStream", + "listGoogleAdsLinksAsync" + ] + } + } + } + } + } + } +} diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index b8ab6b4d818..384c9f60d8a 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "3fc426c9e40592b9912c9a7de6992daca3fec293" + "sha": "d232226aee74ebb3b7de88f132d3fd8b6fcdeab5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5587028631d4d743fd906c4eb4e4e4649a7ee5ce", - "internalRef": "343187793" + "sha": "d189e871205fea665a9648f7c4676f027495ccaf", + "internalRef": "345596855" } }, { From a49d9c652bf99502b83db7b9c4d40bd24c6c6e87 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 8 Dec 2020 14:19:53 -0800 Subject: [PATCH 045/142] build: migrate analytics to the Java microgenerator (#64) Committer: @miraleung PiperOrigin-RevId: 346120301 Source-Author: Google APIs Source-Date: Mon Dec 7 10:13:54 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 70c794b04230f5dafd612300d409dfd7df98ebca Source-Link: https://github.com/googleapis/googleapis/commit/70c794b04230f5dafd612300d409dfd7df98ebca --- .../analytics/admin/v1alpha/resources.proto | 72 ++++++++++++------- .../google-analytics-admin/protos/protos.d.ts | 6 ++ .../google-analytics-admin/protos/protos.js | 25 ++++++- .../google-analytics-admin/protos/protos.json | 4 ++ .../google-analytics-admin/synth.metadata | 6 +- 5 files changed, 82 insertions(+), 31 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index ce96dd842b7..4830e0c3c66 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -144,10 +144,12 @@ message Account { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this account was originally created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when account payload fields were last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name for this account. string display_name = 4 [(google.api.field_behavior) = REQUIRED]; @@ -177,10 +179,12 @@ message Property { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the entity was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when entity payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. Resource name of this property's logical parent. // @@ -216,8 +220,9 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; - // Output only. Indicates whether this Property is soft-deleted or not. Deleted properties - // are excluded from List results unless specifically requested. + // Output only. Indicates whether this Property is soft-deleted or not. + // Deleted properties are excluded from List results unless specifically + // requested. bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -238,10 +243,12 @@ message AndroidAppDataStream { string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. The package name for the app being measured. // Example: "com.example.myandroidapp" @@ -270,10 +277,12 @@ message IosAppDataStream { string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Immutable. The Apple App Store Bundle ID for the app // Example: "com.example.myiosapp" @@ -309,10 +318,12 @@ message WebDataStream { string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. Domain name of the web app being measured, or empty. // Example: "http://www.google.com", "https://www.google.com" @@ -400,8 +411,8 @@ message EnhancedMeasurementSettings { // whether they are respected. bool stream_enabled = 2; - // Output only. If enabled, capture a page view event each time a page loads or the - // website changes the browser history state. + // Output only. If enabled, capture a page view event each time a page loads + // or the website changes the browser history state. bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // If enabled, capture scroll events each time a visitor gets to the bottom of @@ -473,9 +484,9 @@ message FirebaseLink { // Output only. Example format: properties/1234/firebaseLinks/5678 string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. Firebase project resource name. When creating a FirebaseLink, you may - // provide this resource name using either a project number or project ID. - // Once this resource has been created, returned FirebaseLinks will always + // Immutable. Firebase project resource name. When creating a FirebaseLink, + // you may provide this resource name using either a project number or project + // ID. Once this resource has been created, returned FirebaseLinks will always // have a project_name that contains a project number. // // Format: 'projects/{project number}' @@ -483,7 +494,8 @@ message FirebaseLink { string project = 2 [(google.api.field_behavior) = IMMUTABLE]; // Output only. Time when this FirebaseLink was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Maximum user access to the GA4 property allowed to admins of // the linked Firebase project. @@ -498,9 +510,12 @@ message GlobalSiteTag { pattern: "properties/{property}/globalSiteTag" }; - // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of - // every webpage to measure. + // Immutable. JavaScript code snippet to be pasted as the first item into the + // head tag of every webpage to measure. string snippet = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The resource name of this tag. + string name = 2; } // A link between an GA4 property and a Google Ads account. @@ -510,7 +525,8 @@ message GoogleAdsLink { pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" }; - // Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + // Output only. Format: + // properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} // // Note: googleAdsLinkId is not the Google Ads customer ID. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -535,10 +551,12 @@ message GoogleAdsLink { string email_address = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this link was originally created. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this link was last updated. - google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing data sharing settings of a Google Analytics @@ -591,8 +609,8 @@ message AccountSummary { // Format: accounts/{account_id} // Example: "accounts/1000" string account = 2 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - }]; + type: "analyticsadmin.googleapis.com/Account" + }]; // Display name for the account referred to in this account summary. string display_name = 3; @@ -607,8 +625,8 @@ message PropertySummary { // Format: properties/{property_id} // Example: "properties/1000" string property = 1 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Property" - }]; + type: "analyticsadmin.googleapis.com/Property" + }]; // Display name for the property referred to in this account summary. string display_name = 2; diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 326d33675ad..39ce9136182 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -8105,6 +8105,9 @@ export namespace google { /** GlobalSiteTag snippet */ snippet?: (string|null); + + /** GlobalSiteTag name */ + name?: (string|null); } /** Represents a GlobalSiteTag. */ @@ -8119,6 +8122,9 @@ export namespace google { /** GlobalSiteTag snippet. */ public snippet: string; + /** GlobalSiteTag name. */ + public name: string; + /** * Creates a new GlobalSiteTag instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 6a56b90ee2a..aa055dc69d4 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -18093,6 +18093,7 @@ * @memberof google.analytics.admin.v1alpha * @interface IGlobalSiteTag * @property {string|null} [snippet] GlobalSiteTag snippet + * @property {string|null} [name] GlobalSiteTag name */ /** @@ -18118,6 +18119,14 @@ */ GlobalSiteTag.prototype.snippet = ""; + /** + * GlobalSiteTag name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.name = ""; + /** * Creates a new GlobalSiteTag instance using the specified properties. * @function create @@ -18144,6 +18153,8 @@ writer = $Writer.create(); if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.snippet); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); return writer; }; @@ -18181,6 +18192,9 @@ case 1: message.snippet = reader.string(); break; + case 2: + message.name = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -18219,6 +18233,9 @@ if (message.snippet != null && message.hasOwnProperty("snippet")) if (!$util.isString(message.snippet)) return "snippet: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; @@ -18236,6 +18253,8 @@ var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); if (object.snippet != null) message.snippet = String(object.snippet); + if (object.name != null) + message.name = String(object.name); return message; }; @@ -18252,10 +18271,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.snippet = ""; + object.name = ""; + } if (message.snippet != null && message.hasOwnProperty("snippet")) object.snippet = message.snippet; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index adc4cf58379..dc613229325 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -2329,6 +2329,10 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "name": { + "type": "string", + "id": 2 } } }, diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 384c9f60d8a..e61870365c0 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "d232226aee74ebb3b7de88f132d3fd8b6fcdeab5" + "sha": "ac31ff0c0086b0b9ff2c21ddeb832c03299477a7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d189e871205fea665a9648f7c4676f027495ccaf", - "internalRef": "345596855" + "sha": "70c794b04230f5dafd612300d409dfd7df98ebca", + "internalRef": "346120301" } }, { From ac62918fb5ca744f50533202f1c60a9101af0717 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 22 Dec 2020 11:46:15 -0800 Subject: [PATCH 046/142] docs: add instructions for authenticating for system tests (#67) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/305b4f12-f9c7-4cda-8a25-0d5dc36b634b/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/363fe305e9ce34a6cd53951c6ee5f997094b54ee --- packages/google-analytics-admin/CONTRIBUTING.md | 14 ++++++++++++-- packages/google-analytics-admin/README.md | 3 +-- packages/google-analytics-admin/synth.metadata | 4 ++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/google-analytics-admin/CONTRIBUTING.md b/packages/google-analytics-admin/CONTRIBUTING.md index f6c4cf010e3..bd6935b707a 100644 --- a/packages/google-analytics-admin/CONTRIBUTING.md +++ b/packages/google-analytics-admin/CONTRIBUTING.md @@ -37,6 +37,14 @@ accept your pull requests. 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 the Google Analytics Admin 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]. @@ -51,11 +59,9 @@ accept your pull requests. npm test # Run sample integration tests. - gcloud auth application-default login npm run samples-test # Run all system tests. - gcloud auth application-default login npm run system-test 1. Lint (and maybe fix) any changes: @@ -63,3 +69,7 @@ accept your pull requests. 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=analyticsadmin.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 46a1992627a..4b43e85318a 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -96,8 +96,7 @@ process.on('unhandledRejection', err => { ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/master/samples) directory. The samples' `README.md` -has instructions for running the samples. +Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index e61870365c0..b0ba714d30e 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "ac31ff0c0086b0b9ff2c21ddeb832c03299477a7" + "sha": "a4baba570e07b637ec5d8be0a9d98ebec5969559" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "15013eff642a7e7e855aed5a29e6e83c39beba2a" + "sha": "363fe305e9ce34a6cd53951c6ee5f997094b54ee" } } ], From 912e59204f1ff884f463eda49d3bc129f9c81c4d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jan 2021 11:31:10 -0800 Subject: [PATCH 047/142] docs: update year on headings (#68) --- packages/google-analytics-admin/.jsdoc.js | 4 ++-- packages/google-analytics-admin/protos/protos.d.ts | 2 +- packages/google-analytics-admin/protos/protos.js | 2 +- packages/google-analytics-admin/src/index.ts | 2 +- .../src/v1alpha/analytics_admin_service_client.ts | 2 +- packages/google-analytics-admin/src/v1alpha/index.ts | 2 +- packages/google-analytics-admin/synth.metadata | 2 +- .../system-test/fixtures/sample/src/index.js | 2 +- .../system-test/fixtures/sample/src/index.ts | 2 +- packages/google-analytics-admin/system-test/install.ts | 2 +- .../test/gapic_analytics_admin_service_v1alpha.ts | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/google-analytics-admin/.jsdoc.js b/packages/google-analytics-admin/.jsdoc.js index 08cc0a6450e..fad999682e6 100644 --- a/packages/google-analytics-admin/.jsdoc.js +++ b/packages/google-analytics-admin/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2020 Google LLC', + copyright: 'Copyright 2021 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-analytics/admin', diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 39ce9136182..a3684ceeaab 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index aa055dc69d4..d9f73e48859 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/src/index.ts b/packages/google-analytics-admin/src/index.ts index 376aa8b3971..fa92f2174bb 100644 --- a/packages/google-analytics-admin/src/index.ts +++ b/packages/google-analytics-admin/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index e53acaad052..a521bf66a41 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/src/v1alpha/index.ts b/packages/google-analytics-admin/src/v1alpha/index.ts index cdc09b4e639..ab42d795d67 100644 --- a/packages/google-analytics-admin/src/v1alpha/index.ts +++ b/packages/google-analytics-admin/src/v1alpha/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index b0ba714d30e..882659c1f9f 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "a4baba570e07b637ec5d8be0a9d98ebec5969559" + "sha": "0012708844fad057f6949961e16ec01311c5445c" } }, { diff --git a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js index 9e32252b8c1..10cf555e81b 100644 --- a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js +++ b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts index 37e5851709c..ddc40c74ecc 100644 --- a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts +++ b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/system-test/install.ts b/packages/google-analytics-admin/system-test/install.ts index 39d90f771de..d2d61c0396f 100644 --- a/packages/google-analytics-admin/system-test/install.ts +++ b/packages/google-analytics-admin/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 1dbe616afdc..bd83962b44e 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From e5f4a17e1492ee558d09facd5928dae9b209de48 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 7 Jan 2021 11:50:01 -0800 Subject: [PATCH 048/142] chore: release 1.3.0 (#66) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index fb6763aa529..87fa99db059 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.3.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.3...v1.3.0) (2021-01-07) + + +### Features + +* added name field to GlobalSiteTag ([#65](https://www.github.com/googleapis/nodejs-analytics-admin/issues/65)) ([a4baba5](https://www.github.com/googleapis/nodejs-analytics-admin/commit/a4baba570e07b637ec5d8be0a9d98ebec5969559)) + ### [1.2.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.2...v1.2.3) (2020-11-25) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index d3aaa57c46a..e420b8aa40c 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.2.3", + "version": "1.3.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 0e77cf22d57..3d840d96eca 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.2.3", + "@google-analytics/admin": "^1.3.0", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 06f5495f65ca1460b085544d6abef6294594ea3d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 8 Jan 2021 18:42:20 -0800 Subject: [PATCH 049/142] feat: adds style enumeration (#71) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/000e4afe-2dae-4351-a760-a87ad4444ec6/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 350414815 Source-Link: https://github.com/googleapis/googleapis/commit/700afd1f0bafc2155bc5e891504c53d4ac9166f5 --- .../admin/v1alpha/analytics_admin.proto | 2 + .../google-analytics-admin/protos/protos.d.ts | 12 +++ .../google-analytics-admin/protos/protos.js | 78 ++++++++++++++++++- .../google-analytics-admin/protos/protos.json | 13 +++- .../v1alpha/analytics_admin_service_client.ts | 6 ++ .../google-analytics-admin/synth.metadata | 6 +- 6 files changed, 112 insertions(+), 5 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 4df5db3d7d1..e9e986fadce 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -650,11 +650,13 @@ message ListPropertiesRequest { // `firebase_project:`(The id or number of the linked firebase project). // Some examples of filters: // + // ``` // | Filter | Description | // |-----------------------------|-------------------------------------------| // | parent:accounts/123 | The account with account id: 123. | // | firebase_project:project-id | The firebase project with id: project-id. | // | firebase_project:123 | The firebase project with number: 123. | + // ``` string filter = 1 [(google.api.field_behavior) = REQUIRED]; // The maximum number of resources to return. The service may return diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index a3684ceeaab..6a60b3bcd4d 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -8688,6 +8688,9 @@ export namespace google { /** ResourceDescriptor singular */ singular?: (string|null); + + /** ResourceDescriptor style */ + style?: (google.api.ResourceDescriptor.Style[]|null); } /** Represents a ResourceDescriptor. */ @@ -8717,6 +8720,9 @@ export namespace google { /** 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 @@ -8796,6 +8802,12 @@ export namespace google { ORIGINALLY_SINGLE_PATTERN = 1, FUTURE_MULTI_PATTERN = 2 } + + /** Style enum. */ + enum Style { + STYLE_UNSPECIFIED = 0, + DECLARATIVE_FRIENDLY = 1 + } } /** Properties of a ResourceReference. */ diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index d9f73e48859..dbfa7ceb880 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -19489,6 +19489,7 @@ * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history * @property {string|null} [plural] ResourceDescriptor plural * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style */ /** @@ -19501,6 +19502,7 @@ */ function ResourceDescriptor(properties) { this.pattern = []; + this.style = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19555,6 +19557,14 @@ */ ResourceDescriptor.prototype.singular = ""; + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + /** * Creates a new ResourceDescriptor instance using the specified properties. * @function create @@ -19592,6 +19602,12 @@ writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } return writer; }; @@ -19646,6 +19662,16 @@ case 6: message.singular = reader.string(); break; + case 10: + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; default: reader.skipType(tag & 7); break; @@ -19709,6 +19735,18 @@ if (message.singular != null && message.hasOwnProperty("singular")) if (!$util.isString(message.singular)) return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } return null; }; @@ -19753,6 +19791,23 @@ message.plural = String(object.plural); if (object.singular != null) message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } return message; }; @@ -19769,8 +19824,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.pattern = []; + object.style = []; + } if (options.defaults) { object.type = ""; object.nameField = ""; @@ -19793,6 +19850,11 @@ object.plural = message.plural; if (message.singular != null && message.hasOwnProperty("singular")) object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } return object; }; @@ -19823,6 +19885,20 @@ return values; })(); + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); + return ResourceDescriptor; })(); diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index dc613229325..95dc03fbceb 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -2549,6 +2549,11 @@ "singular": { "type": "string", "id": 6 + }, + "style": { + "rule": "repeated", + "type": "Style", + "id": 10 } }, "nested": { @@ -2558,6 +2563,12 @@ "ORIGINALLY_SINGLE_PATTERN": 1, "FUTURE_MULTI_PATTERN": 2 } + }, + "Style": { + "values": { + "STYLE_UNSPECIFIED": 0, + "DECLARATIVE_FRIENDLY": 1 + } } } }, @@ -2680,7 +2691,7 @@ }, "protobuf": { "options": { - "go_package": "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor", + "go_package": "google.golang.org/protobuf/types/descriptorpb", "java_package": "com.google.protobuf", "java_outer_classname": "DescriptorProtos", "csharp_namespace": "Google.Protobuf.Reflection", diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index a521bf66a41..69e6a6bb4da 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -4818,11 +4818,13 @@ export class AnalyticsAdminServiceClient { * `firebase_project:`(The id or number of the linked firebase project). * Some examples of filters: * + * ``` * | Filter | Description | * |-----------------------------|-------------------------------------------| * | parent:accounts/123 | The account with account id: 123. | * | firebase_project:project-id | The firebase project with id: project-id. | * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize * The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. @@ -4899,11 +4901,13 @@ export class AnalyticsAdminServiceClient { * `firebase_project:`(The id or number of the linked firebase project). * Some examples of filters: * + * ``` * | Filter | Description | * |-----------------------------|-------------------------------------------| * | parent:accounts/123 | The account with account id: 123. | * | firebase_project:project-id | The firebase project with id: project-id. | * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize * The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. @@ -4958,11 +4962,13 @@ export class AnalyticsAdminServiceClient { * `firebase_project:`(The id or number of the linked firebase project). * Some examples of filters: * + * ``` * | Filter | Description | * |-----------------------------|-------------------------------------------| * | parent:accounts/123 | The account with account id: 123. | * | firebase_project:project-id | The firebase project with id: project-id. | * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize * The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 882659c1f9f..571368a588d 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "0012708844fad057f6949961e16ec01311c5445c" + "sha": "c9a00f3abf68f25bd1d6ae68fff6f4e4c0ac0e45" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "70c794b04230f5dafd612300d409dfd7df98ebca", - "internalRef": "346120301" + "sha": "700afd1f0bafc2155bc5e891504c53d4ac9166f5", + "internalRef": "350414815" } }, { From b1411965aff287601cc93ab7cf04ec6c58119927 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 12 Jan 2021 18:36:39 +0000 Subject: [PATCH 050/142] chore: release 1.4.0 (#72) :robot: I have created a release \*beep\* \*boop\* --- ## [1.4.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.3.0...v1.4.0) (2021-01-09) ### Features * adds style enumeration ([#70](https://www.github.com/googleapis/nodejs-analytics-admin/issues/70)) ([cffd8f5](https://www.github.com/googleapis/nodejs-analytics-admin/commit/cffd8f53db7a24c1741a2818c168adb674c27c85)) * adds style enumeration ([#71](https://www.github.com/googleapis/nodejs-analytics-admin/issues/71)) ([fd88f82](https://www.github.com/googleapis/nodejs-analytics-admin/commit/fd88f826f3d5cf37c5f1ed7a32a997e7ec6441ed)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 8 ++++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 87fa99db059..3821cacf902 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.4.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.3.0...v1.4.0) (2021-01-09) + + +### Features + +* adds style enumeration ([#70](https://www.github.com/googleapis/nodejs-analytics-admin/issues/70)) ([cffd8f5](https://www.github.com/googleapis/nodejs-analytics-admin/commit/cffd8f53db7a24c1741a2818c168adb674c27c85)) +* adds style enumeration ([#71](https://www.github.com/googleapis/nodejs-analytics-admin/issues/71)) ([fd88f82](https://www.github.com/googleapis/nodejs-analytics-admin/commit/fd88f826f3d5cf37c5f1ed7a32a997e7ec6441ed)) + ## [1.3.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.2.3...v1.3.0) (2021-01-07) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index e420b8aa40c..2e8be5967ab 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.3.0", + "version": "1.4.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 3d840d96eca..0117896efc3 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.3.0", + "@google-analytics/admin": "^1.4.0", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From 926efb0bd4e5d910d949ca469b8dc952d0512c27 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 19 Jan 2021 10:01:10 -0800 Subject: [PATCH 051/142] fix!: remove unused fields from `EnhancedMeasurementSettings` fix!: `update_mask` field is required for all Update operations feat: add pagination support for `ListFirebaseLinks` operation fix!: rename `country_code` field to `region_code` in `Account` fix!: rename `url_query_parameter` field to `uri_query_parameter` in `EnhancedMeasurementSettings` fix!: remove `parent` field from `GoogleAdsLink` (#73) PiperOrigin-RevId: 351651504 Source-Author: Google APIs Source-Date: Wed Jan 13 13:18:19 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 23e7356f4cf449d6e9977698c5d9383b566be7af Source-Link: https://github.com/googleapis/googleapis/commit/23e7356f4cf449d6e9977698c5d9383b566be7af --- .../admin/v1alpha/analytics_admin.proto | 82 ++-- .../analytics/admin/v1alpha/resources.proto | 117 ++--- .../google-analytics-admin/protos/protos.d.ts | 88 ++-- .../google-analytics-admin/protos/protos.js | 324 +++++-------- .../google-analytics-admin/protos/protos.json | 103 ++-- .../v1alpha/analytics_admin_service_client.ts | 368 +++++++++----- .../src/v1alpha/gapic_metadata.json | 24 +- .../google-analytics-admin/synth.metadata | 6 +- .../gapic_analytics_admin_service_v1alpha.ts | 448 +++++++++++++----- 9 files changed, 887 insertions(+), 673 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index e9e986fadce..c5a7308c209 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -23,6 +23,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; option java_multiple_files = true; @@ -39,8 +40,6 @@ service AnalyticsAdminService { "https://www.googleapis.com/auth/analytics.readonly"; // Lookup for a single Account. - // Throws "Target not found" if no such account found, or if caller does not - // have permissions to access it. rpc GetAccount(GetAccountRequest) returns (Account) { option (google.api.http) = { get: "/v1alpha/{name=accounts/*}" @@ -102,9 +101,6 @@ service AnalyticsAdminService { } // Lookup for a single "GA4" Property. - // - // Throws "Target not found" if no such property found, if property is not - // of the type "GA4", or if caller does not have permissions to access it. rpc GetProperty(GetPropertyRequest) returns (Property) { option (google.api.http) = { get: "/v1alpha/{name=properties/*}" @@ -293,9 +289,6 @@ service AnalyticsAdminService { } // Lookup for a single WebDataStream - // - // Throws "Target not found" if no such web data stream found, or if the - // caller does not have permissions to access it. rpc GetWebDataStream(GetWebDataStreamRequest) returns (WebDataStream) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/webDataStreams/*}" @@ -341,9 +334,6 @@ service AnalyticsAdminService { } // Lookup for a single IosAppDataStream - // - // Throws "Target not found" if no such iOS app data stream found, or if the - // caller does not have permissions to access it. rpc GetIosAppDataStream(GetIosAppDataStreamRequest) returns (IosAppDataStream) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" @@ -389,9 +379,6 @@ service AnalyticsAdminService { } // Lookup for a single AndroidAppDataStream - // - // Throws "Target not found" if no such android app data stream found, or if - // the caller does not have permissions to access it. rpc GetAndroidAppDataStream(GetAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" @@ -609,8 +596,10 @@ message UpdateAccountRequest { // The account's `name` field is used to identify the account. Account account = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for ProvisionAccountTicket RPC. @@ -694,8 +683,10 @@ message UpdatePropertyRequest { // updated. Property property = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateProperty RPC. @@ -971,8 +962,10 @@ message UpdateWebDataStreamRequest { // The `name` field is used to identify the web stream to be updated. WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateWebDataStream RPC. @@ -1056,8 +1049,10 @@ message UpdateIosAppDataStreamRequest { // The `name` field is used to identify the iOS app stream to be updated. IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateIosAppDataStream RPC. @@ -1141,8 +1136,10 @@ message UpdateAndroidAppDataStreamRequest { // The `name` field is used to identify the android app stream to be updated. AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateAndroidAppDataStream RPC. @@ -1200,7 +1197,6 @@ message ListAndroidAppDataStreamsResponse { message GetEnhancedMeasurementSettingsRequest { // Required. The name of the settings to lookup. // Format: - // // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" string name = 1 [ @@ -1217,8 +1213,10 @@ message UpdateEnhancedMeasurementSettingsRequest { // The `name` field is used to identify the settings to be updated. EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateFirebaseLink RPC @@ -1241,8 +1239,10 @@ message UpdateFirebaseLinkRequest { // Required. The Firebase link to update. FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteFirebaseLink RPC @@ -1267,12 +1267,30 @@ message ListFirebaseLinksRequest { child_type: "analyticsadmin.googleapis.com/FirebaseLink" } ]; + + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListFirebaseLinks` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListProperties` must + // match the call that provided the page token. + string page_token = 3; } // Response message for ListFirebaseLinks RPC message ListFirebaseLinksResponse { // List of FirebaseLinks. This will have at most one value. repeated FirebaseLink firebase_links = 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. + // Currently, Google Analytics supports only one FirebaseLink per property, + // so this will never be populated. + string next_page_token = 2; } // Request message for GetGlobalSiteTag RPC. @@ -1308,8 +1326,10 @@ message UpdateGoogleAdsLinkRequest { // The GoogleAdsLink to update GoogleAdsLink google_ads_link = 1; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteGoogleAdsLink RPC. diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 4830e0c3c66..41044dec840 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -144,22 +144,16 @@ message Account { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this account was originally created. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when account payload fields were last updated. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name for this account. string display_name = 4 [(google.api.field_behavior) = REQUIRED]; - // Country of business. Must be a non-deprecated code for a UN M.49 region. - // - // https: - // //unicode.org/cldr/charts/latest/supplem - // // ental/territory_containment_un_m_49.html - string country_code = 5; + // Country of business. Must be a Unicode CLDR region code. + string region_code = 5; // Output only. Indicates whether this Account is soft-deleted or not. Deleted // accounts are excluded from List results unless specifically requested. @@ -179,12 +173,10 @@ message Property { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the entity was originally created. - google.protobuf.Timestamp create_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when entity payload fields were last updated. - google.protobuf.Timestamp update_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. Resource name of this property's logical parent. // @@ -220,9 +212,8 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; - // Output only. Indicates whether this Property is soft-deleted or not. - // Deleted properties are excluded from List results unless specifically - // requested. + // Output only. Indicates whether this Property is soft-deleted or not. Deleted properties + // are excluded from List results unless specifically requested. bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -243,12 +234,10 @@ message AndroidAppDataStream { string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. The package name for the app being measured. // Example: "com.example.myandroidapp" @@ -277,12 +266,10 @@ message IosAppDataStream { string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Immutable. The Apple App Store Bundle ID for the app // Example: "com.example.myiosapp" @@ -318,12 +305,10 @@ message WebDataStream { string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. Domain name of the web app being measured, or empty. // Example: "http://www.google.com", "https://www.google.com" @@ -399,7 +384,6 @@ message EnhancedMeasurementSettings { // Output only. Resource name of this Data Stream. // Format: - // // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -411,8 +395,8 @@ message EnhancedMeasurementSettings { // whether they are respected. bool stream_enabled = 2; - // Output only. If enabled, capture a page view event each time a page loads - // or the website changes the browser history state. + // Output only. If enabled, capture a page view event each time a page loads or the + // website changes the browser history state. bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // If enabled, capture scroll events each time a visitor gets to the bottom of @@ -423,18 +407,10 @@ message EnhancedMeasurementSettings { // link that leads them away from your domain. bool outbound_clicks_enabled = 5; - // Capture events when your visitors view content on your site that has - // structured data (eg, articles, blog posts, product details screens, etc.). - bool content_views_enabled = 6; - // If enabled, capture a view search results event each time a visitor // performs a search on your site (based on a query parameter). bool site_search_enabled = 7; - // If enabled, capture a view search results event each time a visitor - // interacts with a form on your site. - bool form_interactions_enabled = 8; - // If enabled, capture video play, progress, and complete events as visitors // view embedded videos on your site. bool video_engagement_enabled = 9; @@ -443,35 +419,20 @@ message EnhancedMeasurementSettings { // a common document, compressed file, application, video, or audio extension. bool file_downloads_enabled = 10; - // If enabled, capture a click event each time a visitor clicks a link or - // element that has data attributes beginning with "data-ga". - bool data_tagged_element_clicks_enabled = 11; - - // If enabled, capture a page view event each time a page loads. - bool page_loads_enabled = 12; + // Output only. If enabled, capture a page view event each time a page loads. + bool page_loads_enabled = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // If enabled, capture a page view event each time the website changes the // browser history state. bool page_changes_enabled = 13; - // Capture events when your visitors view content on your site that has - // articles or blog posts. - bool articles_and_blogs_enabled = 14; - - // Capture events when your visitors view content on your site that has - // product details screens, etc. - bool products_and_ecommerce_enabled = 15; - // Required. URL query parameters to interpret as site search parameters. // Max length is 1024 characters. Must not be empty. string search_query_parameter = 16 [(google.api.field_behavior) = REQUIRED]; // Additional URL query parameters. // Max length is 1024 characters. - string url_query_parameter = 17; - - // Domains to exclude from measurement. Max length is 1024 characters. - string excluded_domains = 18; + string uri_query_parameter = 17; } // A link between an GA4 property and a Firebase project. @@ -484,9 +445,9 @@ message FirebaseLink { // Output only. Example format: properties/1234/firebaseLinks/5678 string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. Firebase project resource name. When creating a FirebaseLink, - // you may provide this resource name using either a project number or project - // ID. Once this resource has been created, returned FirebaseLinks will always + // Immutable. Firebase project resource name. When creating a FirebaseLink, you may + // provide this resource name using either a project number or project ID. + // Once this resource has been created, returned FirebaseLinks will always // have a project_name that contains a project number. // // Format: 'projects/{project number}' @@ -494,8 +455,7 @@ message FirebaseLink { string project = 2 [(google.api.field_behavior) = IMMUTABLE]; // Output only. Time when this FirebaseLink was originally created. - google.protobuf.Timestamp create_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Maximum user access to the GA4 property allowed to admins of // the linked Firebase project. @@ -510,12 +470,13 @@ message GlobalSiteTag { pattern: "properties/{property}/globalSiteTag" }; - // Immutable. JavaScript code snippet to be pasted as the first item into the - // head tag of every webpage to measure. - string snippet = 1 [(google.api.field_behavior) = IMMUTABLE]; + // Output only. Resource name for this GlobalSiteTag resource. + // Format: properties/{propertyId}/globalSiteTag + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The resource name of this tag. - string name = 2; + // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of + // every webpage to measure. + string snippet = 2 [(google.api.field_behavior) = IMMUTABLE]; } // A link between an GA4 property and a Google Ads account. @@ -525,15 +486,11 @@ message GoogleAdsLink { pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" }; - // Output only. Format: - // properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + // Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} // // Note: googleAdsLinkId is not the Google Ads customer ID. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. Format: properties/{propertyId} - string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. Google Ads customer ID. string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; @@ -551,12 +508,10 @@ message GoogleAdsLink { string email_address = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this link was originally created. - google.protobuf.Timestamp create_time = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this link was last updated. - google.protobuf.Timestamp update_time = 8 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing data sharing settings of a Google Analytics @@ -609,8 +564,8 @@ message AccountSummary { // Format: accounts/{account_id} // Example: "accounts/1000" string account = 2 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - }]; + type: "analyticsadmin.googleapis.com/Account" + }]; // Display name for the account referred to in this account summary. string display_name = 3; @@ -625,8 +580,8 @@ message PropertySummary { // Format: properties/{property_id} // Example: "properties/1000" string property = 1 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Property" - }]; + type: "analyticsadmin.googleapis.com/Property" + }]; // Display name for the property referred to in this account summary. string display_name = 2; diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 6a60b3bcd4d..b6722e8a9bc 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -5899,6 +5899,12 @@ export namespace google { /** ListFirebaseLinksRequest parent */ parent?: (string|null); + + /** ListFirebaseLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListFirebaseLinksRequest pageToken */ + pageToken?: (string|null); } /** Represents a ListFirebaseLinksRequest. */ @@ -5913,6 +5919,12 @@ export namespace google { /** ListFirebaseLinksRequest parent. */ public parent: string; + /** ListFirebaseLinksRequest pageSize. */ + public pageSize: number; + + /** ListFirebaseLinksRequest pageToken. */ + public pageToken: string; + /** * Creates a new ListFirebaseLinksRequest instance using the specified properties. * @param [properties] Properties to set @@ -5989,6 +6001,9 @@ export namespace google { /** ListFirebaseLinksResponse firebaseLinks */ firebaseLinks?: (google.analytics.admin.v1alpha.IFirebaseLink[]|null); + + /** ListFirebaseLinksResponse nextPageToken */ + nextPageToken?: (string|null); } /** Represents a ListFirebaseLinksResponse. */ @@ -6003,6 +6018,9 @@ export namespace google { /** ListFirebaseLinksResponse firebaseLinks. */ public firebaseLinks: google.analytics.admin.v1alpha.IFirebaseLink[]; + /** ListFirebaseLinksResponse nextPageToken. */ + public nextPageToken: string; + /** * Creates a new ListFirebaseLinksResponse instance using the specified properties. * @param [properties] Properties to set @@ -6981,8 +6999,8 @@ export namespace google { /** Account displayName */ displayName?: (string|null); - /** Account countryCode */ - countryCode?: (string|null); + /** Account regionCode */ + regionCode?: (string|null); /** Account deleted */ deleted?: (boolean|null); @@ -7009,8 +7027,8 @@ export namespace google { /** Account displayName. */ public displayName: string; - /** Account countryCode. */ - public countryCode: string; + /** Account regionCode. */ + public regionCode: string; /** Account deleted. */ public deleted: boolean; @@ -7818,44 +7836,26 @@ export namespace google { /** EnhancedMeasurementSettings outboundClicksEnabled */ outboundClicksEnabled?: (boolean|null); - /** EnhancedMeasurementSettings contentViewsEnabled */ - contentViewsEnabled?: (boolean|null); - /** EnhancedMeasurementSettings siteSearchEnabled */ siteSearchEnabled?: (boolean|null); - /** EnhancedMeasurementSettings formInteractionsEnabled */ - formInteractionsEnabled?: (boolean|null); - /** EnhancedMeasurementSettings videoEngagementEnabled */ videoEngagementEnabled?: (boolean|null); /** EnhancedMeasurementSettings fileDownloadsEnabled */ fileDownloadsEnabled?: (boolean|null); - /** EnhancedMeasurementSettings dataTaggedElementClicksEnabled */ - dataTaggedElementClicksEnabled?: (boolean|null); - /** EnhancedMeasurementSettings pageLoadsEnabled */ pageLoadsEnabled?: (boolean|null); /** EnhancedMeasurementSettings pageChangesEnabled */ pageChangesEnabled?: (boolean|null); - /** EnhancedMeasurementSettings articlesAndBlogsEnabled */ - articlesAndBlogsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings productsAndEcommerceEnabled */ - productsAndEcommerceEnabled?: (boolean|null); - /** EnhancedMeasurementSettings searchQueryParameter */ searchQueryParameter?: (string|null); - /** EnhancedMeasurementSettings urlQueryParameter */ - urlQueryParameter?: (string|null); - - /** EnhancedMeasurementSettings excludedDomains */ - excludedDomains?: (string|null); + /** EnhancedMeasurementSettings uriQueryParameter */ + uriQueryParameter?: (string|null); } /** Represents an EnhancedMeasurementSettings. */ @@ -7882,44 +7882,26 @@ export namespace google { /** EnhancedMeasurementSettings outboundClicksEnabled. */ public outboundClicksEnabled: boolean; - /** EnhancedMeasurementSettings contentViewsEnabled. */ - public contentViewsEnabled: boolean; - /** EnhancedMeasurementSettings siteSearchEnabled. */ public siteSearchEnabled: boolean; - /** EnhancedMeasurementSettings formInteractionsEnabled. */ - public formInteractionsEnabled: boolean; - /** EnhancedMeasurementSettings videoEngagementEnabled. */ public videoEngagementEnabled: boolean; /** EnhancedMeasurementSettings fileDownloadsEnabled. */ public fileDownloadsEnabled: boolean; - /** EnhancedMeasurementSettings dataTaggedElementClicksEnabled. */ - public dataTaggedElementClicksEnabled: boolean; - /** EnhancedMeasurementSettings pageLoadsEnabled. */ public pageLoadsEnabled: boolean; /** EnhancedMeasurementSettings pageChangesEnabled. */ public pageChangesEnabled: boolean; - /** EnhancedMeasurementSettings articlesAndBlogsEnabled. */ - public articlesAndBlogsEnabled: boolean; - - /** EnhancedMeasurementSettings productsAndEcommerceEnabled. */ - public productsAndEcommerceEnabled: boolean; - /** EnhancedMeasurementSettings searchQueryParameter. */ public searchQueryParameter: string; - /** EnhancedMeasurementSettings urlQueryParameter. */ - public urlQueryParameter: string; - - /** EnhancedMeasurementSettings excludedDomains. */ - public excludedDomains: string; + /** EnhancedMeasurementSettings uriQueryParameter. */ + public uriQueryParameter: string; /** * Creates a new EnhancedMeasurementSettings instance using the specified properties. @@ -8103,11 +8085,11 @@ export namespace google { /** Properties of a GlobalSiteTag. */ interface IGlobalSiteTag { - /** GlobalSiteTag snippet */ - snippet?: (string|null); - /** GlobalSiteTag name */ name?: (string|null); + + /** GlobalSiteTag snippet */ + snippet?: (string|null); } /** Represents a GlobalSiteTag. */ @@ -8119,12 +8101,12 @@ export namespace google { */ constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); - /** GlobalSiteTag snippet. */ - public snippet: string; - /** GlobalSiteTag name. */ public name: string; + /** GlobalSiteTag snippet. */ + public snippet: string; + /** * Creates a new GlobalSiteTag instance using the specified properties. * @param [properties] Properties to set @@ -8202,9 +8184,6 @@ export namespace google { /** GoogleAdsLink name */ name?: (string|null); - /** GoogleAdsLink parent */ - parent?: (string|null); - /** GoogleAdsLink customerId */ customerId?: (string|null); @@ -8236,9 +8215,6 @@ export namespace google { /** GoogleAdsLink name. */ public name: string; - /** GoogleAdsLink parent. */ - public parent: string; - /** GoogleAdsLink customerId. */ public customerId: string; diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index dbfa7ceb880..b299e151692 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -12562,6 +12562,8 @@ * @memberof google.analytics.admin.v1alpha * @interface IListFirebaseLinksRequest * @property {string|null} [parent] ListFirebaseLinksRequest parent + * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize + * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken */ /** @@ -12587,6 +12589,22 @@ */ ListFirebaseLinksRequest.prototype.parent = ""; + /** + * ListFirebaseLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageSize = 0; + + /** + * ListFirebaseLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageToken = ""; + /** * Creates a new ListFirebaseLinksRequest instance using the specified properties. * @function create @@ -12613,6 +12631,10 @@ 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; }; @@ -12650,6 +12672,12 @@ 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; @@ -12688,6 +12716,12 @@ 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; }; @@ -12705,6 +12739,10 @@ var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); 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; }; @@ -12721,10 +12759,17 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + 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; }; @@ -12749,6 +12794,7 @@ * @memberof google.analytics.admin.v1alpha * @interface IListFirebaseLinksResponse * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks + * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken */ /** @@ -12775,6 +12821,14 @@ */ ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; + /** + * ListFirebaseLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @instance + */ + ListFirebaseLinksResponse.prototype.nextPageToken = ""; + /** * Creates a new ListFirebaseLinksResponse instance using the specified properties. * @function create @@ -12802,6 +12856,8 @@ if (message.firebaseLinks != null && message.firebaseLinks.length) for (var i = 0; i < message.firebaseLinks.length; ++i) $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[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; }; @@ -12841,6 +12897,9 @@ message.firebaseLinks = []; message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); break; + case 2: + message.nextPageToken = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -12885,6 +12944,9 @@ return "firebaseLinks." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; @@ -12910,6 +12972,8 @@ message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; @@ -12928,11 +12992,15 @@ var object = {}; if (options.arrays || options.defaults) object.firebaseLinks = []; + if (options.defaults) + object.nextPageToken = ""; if (message.firebaseLinks && message.firebaseLinks.length) { object.firebaseLinks = []; for (var j = 0; j < message.firebaseLinks.length; ++j) object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; @@ -14944,7 +15012,7 @@ * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime * @property {string|null} [displayName] Account displayName - * @property {string|null} [countryCode] Account countryCode + * @property {string|null} [regionCode] Account regionCode * @property {boolean|null} [deleted] Account deleted */ @@ -14996,12 +15064,12 @@ Account.prototype.displayName = ""; /** - * Account countryCode. - * @member {string} countryCode + * Account regionCode. + * @member {string} regionCode * @memberof google.analytics.admin.v1alpha.Account * @instance */ - Account.prototype.countryCode = ""; + Account.prototype.regionCode = ""; /** * Account deleted. @@ -15043,8 +15111,8 @@ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.countryCode != null && Object.hasOwnProperty.call(message, "countryCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.countryCode); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); return writer; @@ -15094,7 +15162,7 @@ message.displayName = reader.string(); break; case 5: - message.countryCode = reader.string(); + message.regionCode = reader.string(); break; case 6: message.deleted = reader.bool(); @@ -15150,9 +15218,9 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) - if (!$util.isString(message.countryCode)) - return "countryCode: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; if (message.deleted != null && message.hasOwnProperty("deleted")) if (typeof message.deleted !== "boolean") return "deleted: boolean expected"; @@ -15185,8 +15253,8 @@ } if (object.displayName != null) message.displayName = String(object.displayName); - if (object.countryCode != null) - message.countryCode = String(object.countryCode); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); if (object.deleted != null) message.deleted = Boolean(object.deleted); return message; @@ -15210,7 +15278,7 @@ object.createTime = null; object.updateTime = null; object.displayName = ""; - object.countryCode = ""; + object.regionCode = ""; object.deleted = false; } if (message.name != null && message.hasOwnProperty("name")) @@ -15221,8 +15289,8 @@ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) - object.countryCode = message.countryCode; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; if (message.deleted != null && message.hasOwnProperty("deleted")) object.deleted = message.deleted; return object; @@ -17248,19 +17316,13 @@ * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled - * @property {boolean|null} [contentViewsEnabled] EnhancedMeasurementSettings contentViewsEnabled * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled - * @property {boolean|null} [formInteractionsEnabled] EnhancedMeasurementSettings formInteractionsEnabled * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled - * @property {boolean|null} [dataTaggedElementClicksEnabled] EnhancedMeasurementSettings dataTaggedElementClicksEnabled * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled - * @property {boolean|null} [articlesAndBlogsEnabled] EnhancedMeasurementSettings articlesAndBlogsEnabled - * @property {boolean|null} [productsAndEcommerceEnabled] EnhancedMeasurementSettings productsAndEcommerceEnabled * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter - * @property {string|null} [urlQueryParameter] EnhancedMeasurementSettings urlQueryParameter - * @property {string|null} [excludedDomains] EnhancedMeasurementSettings excludedDomains + * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter */ /** @@ -17318,14 +17380,6 @@ */ EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; - /** - * EnhancedMeasurementSettings contentViewsEnabled. - * @member {boolean} contentViewsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.contentViewsEnabled = false; - /** * EnhancedMeasurementSettings siteSearchEnabled. * @member {boolean} siteSearchEnabled @@ -17334,14 +17388,6 @@ */ EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; - /** - * EnhancedMeasurementSettings formInteractionsEnabled. - * @member {boolean} formInteractionsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.formInteractionsEnabled = false; - /** * EnhancedMeasurementSettings videoEngagementEnabled. * @member {boolean} videoEngagementEnabled @@ -17358,14 +17404,6 @@ */ EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; - /** - * EnhancedMeasurementSettings dataTaggedElementClicksEnabled. - * @member {boolean} dataTaggedElementClicksEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.dataTaggedElementClicksEnabled = false; - /** * EnhancedMeasurementSettings pageLoadsEnabled. * @member {boolean} pageLoadsEnabled @@ -17382,22 +17420,6 @@ */ EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; - /** - * EnhancedMeasurementSettings articlesAndBlogsEnabled. - * @member {boolean} articlesAndBlogsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.articlesAndBlogsEnabled = false; - - /** - * EnhancedMeasurementSettings productsAndEcommerceEnabled. - * @member {boolean} productsAndEcommerceEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.productsAndEcommerceEnabled = false; - /** * EnhancedMeasurementSettings searchQueryParameter. * @member {string} searchQueryParameter @@ -17407,20 +17429,12 @@ EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; /** - * EnhancedMeasurementSettings urlQueryParameter. - * @member {string} urlQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.urlQueryParameter = ""; - - /** - * EnhancedMeasurementSettings excludedDomains. - * @member {string} excludedDomains + * EnhancedMeasurementSettings uriQueryParameter. + * @member {string} uriQueryParameter * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @instance */ - EnhancedMeasurementSettings.prototype.excludedDomains = ""; + EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; /** * Creates a new EnhancedMeasurementSettings instance using the specified properties. @@ -17456,32 +17470,20 @@ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); - if (message.contentViewsEnabled != null && Object.hasOwnProperty.call(message, "contentViewsEnabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.contentViewsEnabled); if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); - if (message.formInteractionsEnabled != null && Object.hasOwnProperty.call(message, "formInteractionsEnabled")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.formInteractionsEnabled); if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); - if (message.dataTaggedElementClicksEnabled != null && Object.hasOwnProperty.call(message, "dataTaggedElementClicksEnabled")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.dataTaggedElementClicksEnabled); if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); - if (message.articlesAndBlogsEnabled != null && Object.hasOwnProperty.call(message, "articlesAndBlogsEnabled")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.articlesAndBlogsEnabled); - if (message.productsAndEcommerceEnabled != null && Object.hasOwnProperty.call(message, "productsAndEcommerceEnabled")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.productsAndEcommerceEnabled); if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); - if (message.urlQueryParameter != null && Object.hasOwnProperty.call(message, "urlQueryParameter")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.urlQueryParameter); - if (message.excludedDomains != null && Object.hasOwnProperty.call(message, "excludedDomains")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.excludedDomains); + if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); return writer; }; @@ -17531,44 +17533,26 @@ case 5: message.outboundClicksEnabled = reader.bool(); break; - case 6: - message.contentViewsEnabled = reader.bool(); - break; case 7: message.siteSearchEnabled = reader.bool(); break; - case 8: - message.formInteractionsEnabled = reader.bool(); - break; case 9: message.videoEngagementEnabled = reader.bool(); break; case 10: message.fileDownloadsEnabled = reader.bool(); break; - case 11: - message.dataTaggedElementClicksEnabled = reader.bool(); - break; case 12: message.pageLoadsEnabled = reader.bool(); break; case 13: message.pageChangesEnabled = reader.bool(); break; - case 14: - message.articlesAndBlogsEnabled = reader.bool(); - break; - case 15: - message.productsAndEcommerceEnabled = reader.bool(); - break; case 16: message.searchQueryParameter = reader.string(); break; case 17: - message.urlQueryParameter = reader.string(); - break; - case 18: - message.excludedDomains = reader.string(); + message.uriQueryParameter = reader.string(); break; default: reader.skipType(tag & 7); @@ -17620,45 +17604,27 @@ if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) if (typeof message.outboundClicksEnabled !== "boolean") return "outboundClicksEnabled: boolean expected"; - if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) - if (typeof message.contentViewsEnabled !== "boolean") - return "contentViewsEnabled: boolean expected"; if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) if (typeof message.siteSearchEnabled !== "boolean") return "siteSearchEnabled: boolean expected"; - if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) - if (typeof message.formInteractionsEnabled !== "boolean") - return "formInteractionsEnabled: boolean expected"; if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) if (typeof message.videoEngagementEnabled !== "boolean") return "videoEngagementEnabled: boolean expected"; if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) if (typeof message.fileDownloadsEnabled !== "boolean") return "fileDownloadsEnabled: boolean expected"; - if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) - if (typeof message.dataTaggedElementClicksEnabled !== "boolean") - return "dataTaggedElementClicksEnabled: boolean expected"; if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) if (typeof message.pageLoadsEnabled !== "boolean") return "pageLoadsEnabled: boolean expected"; if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) if (typeof message.pageChangesEnabled !== "boolean") return "pageChangesEnabled: boolean expected"; - if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) - if (typeof message.articlesAndBlogsEnabled !== "boolean") - return "articlesAndBlogsEnabled: boolean expected"; - if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) - if (typeof message.productsAndEcommerceEnabled !== "boolean") - return "productsAndEcommerceEnabled: boolean expected"; if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) if (!$util.isString(message.searchQueryParameter)) return "searchQueryParameter: string expected"; - if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) - if (!$util.isString(message.urlQueryParameter)) - return "urlQueryParameter: string expected"; - if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) - if (!$util.isString(message.excludedDomains)) - return "excludedDomains: string expected"; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + if (!$util.isString(message.uriQueryParameter)) + return "uriQueryParameter: string expected"; return null; }; @@ -17684,32 +17650,20 @@ message.scrollsEnabled = Boolean(object.scrollsEnabled); if (object.outboundClicksEnabled != null) message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); - if (object.contentViewsEnabled != null) - message.contentViewsEnabled = Boolean(object.contentViewsEnabled); if (object.siteSearchEnabled != null) message.siteSearchEnabled = Boolean(object.siteSearchEnabled); - if (object.formInteractionsEnabled != null) - message.formInteractionsEnabled = Boolean(object.formInteractionsEnabled); if (object.videoEngagementEnabled != null) message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); if (object.fileDownloadsEnabled != null) message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); - if (object.dataTaggedElementClicksEnabled != null) - message.dataTaggedElementClicksEnabled = Boolean(object.dataTaggedElementClicksEnabled); if (object.pageLoadsEnabled != null) message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); if (object.pageChangesEnabled != null) message.pageChangesEnabled = Boolean(object.pageChangesEnabled); - if (object.articlesAndBlogsEnabled != null) - message.articlesAndBlogsEnabled = Boolean(object.articlesAndBlogsEnabled); - if (object.productsAndEcommerceEnabled != null) - message.productsAndEcommerceEnabled = Boolean(object.productsAndEcommerceEnabled); if (object.searchQueryParameter != null) message.searchQueryParameter = String(object.searchQueryParameter); - if (object.urlQueryParameter != null) - message.urlQueryParameter = String(object.urlQueryParameter); - if (object.excludedDomains != null) - message.excludedDomains = String(object.excludedDomains); + if (object.uriQueryParameter != null) + message.uriQueryParameter = String(object.uriQueryParameter); return message; }; @@ -17732,19 +17686,13 @@ object.pageViewsEnabled = false; object.scrollsEnabled = false; object.outboundClicksEnabled = false; - object.contentViewsEnabled = false; object.siteSearchEnabled = false; - object.formInteractionsEnabled = false; object.videoEngagementEnabled = false; object.fileDownloadsEnabled = false; - object.dataTaggedElementClicksEnabled = false; object.pageLoadsEnabled = false; object.pageChangesEnabled = false; - object.articlesAndBlogsEnabled = false; - object.productsAndEcommerceEnabled = false; object.searchQueryParameter = ""; - object.urlQueryParameter = ""; - object.excludedDomains = ""; + object.uriQueryParameter = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -17756,32 +17704,20 @@ object.scrollsEnabled = message.scrollsEnabled; if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) object.outboundClicksEnabled = message.outboundClicksEnabled; - if (message.contentViewsEnabled != null && message.hasOwnProperty("contentViewsEnabled")) - object.contentViewsEnabled = message.contentViewsEnabled; if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) object.siteSearchEnabled = message.siteSearchEnabled; - if (message.formInteractionsEnabled != null && message.hasOwnProperty("formInteractionsEnabled")) - object.formInteractionsEnabled = message.formInteractionsEnabled; if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) object.videoEngagementEnabled = message.videoEngagementEnabled; if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) object.fileDownloadsEnabled = message.fileDownloadsEnabled; - if (message.dataTaggedElementClicksEnabled != null && message.hasOwnProperty("dataTaggedElementClicksEnabled")) - object.dataTaggedElementClicksEnabled = message.dataTaggedElementClicksEnabled; if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) object.pageLoadsEnabled = message.pageLoadsEnabled; if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) object.pageChangesEnabled = message.pageChangesEnabled; - if (message.articlesAndBlogsEnabled != null && message.hasOwnProperty("articlesAndBlogsEnabled")) - object.articlesAndBlogsEnabled = message.articlesAndBlogsEnabled; - if (message.productsAndEcommerceEnabled != null && message.hasOwnProperty("productsAndEcommerceEnabled")) - object.productsAndEcommerceEnabled = message.productsAndEcommerceEnabled; if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) object.searchQueryParameter = message.searchQueryParameter; - if (message.urlQueryParameter != null && message.hasOwnProperty("urlQueryParameter")) - object.urlQueryParameter = message.urlQueryParameter; - if (message.excludedDomains != null && message.hasOwnProperty("excludedDomains")) - object.excludedDomains = message.excludedDomains; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + object.uriQueryParameter = message.uriQueryParameter; return object; }; @@ -18092,8 +18028,8 @@ * Properties of a GlobalSiteTag. * @memberof google.analytics.admin.v1alpha * @interface IGlobalSiteTag - * @property {string|null} [snippet] GlobalSiteTag snippet * @property {string|null} [name] GlobalSiteTag name + * @property {string|null} [snippet] GlobalSiteTag snippet */ /** @@ -18112,20 +18048,20 @@ } /** - * GlobalSiteTag snippet. - * @member {string} snippet + * GlobalSiteTag name. + * @member {string} name * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @instance */ - GlobalSiteTag.prototype.snippet = ""; + GlobalSiteTag.prototype.name = ""; /** - * GlobalSiteTag name. - * @member {string} name + * GlobalSiteTag snippet. + * @member {string} snippet * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @instance */ - GlobalSiteTag.prototype.name = ""; + GlobalSiteTag.prototype.snippet = ""; /** * Creates a new GlobalSiteTag instance using the specified properties. @@ -18151,10 +18087,10 @@ GlobalSiteTag.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.snippet); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); return writer; }; @@ -18190,10 +18126,10 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.snippet = reader.string(); + message.name = reader.string(); break; case 2: - message.name = reader.string(); + message.snippet = reader.string(); break; default: reader.skipType(tag & 7); @@ -18230,12 +18166,12 @@ GlobalSiteTag.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.snippet != null && message.hasOwnProperty("snippet")) - if (!$util.isString(message.snippet)) - return "snippet: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.snippet != null && message.hasOwnProperty("snippet")) + if (!$util.isString(message.snippet)) + return "snippet: string expected"; return null; }; @@ -18251,10 +18187,10 @@ if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) return object; var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); - if (object.snippet != null) - message.snippet = String(object.snippet); if (object.name != null) message.name = String(object.name); + if (object.snippet != null) + message.snippet = String(object.snippet); return message; }; @@ -18272,13 +18208,13 @@ options = {}; var object = {}; if (options.defaults) { - object.snippet = ""; object.name = ""; + object.snippet = ""; } - if (message.snippet != null && message.hasOwnProperty("snippet")) - object.snippet = message.snippet; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.snippet != null && message.hasOwnProperty("snippet")) + object.snippet = message.snippet; return object; }; @@ -18303,7 +18239,6 @@ * @memberof google.analytics.admin.v1alpha * @interface IGoogleAdsLink * @property {string|null} [name] GoogleAdsLink name - * @property {string|null} [parent] GoogleAdsLink parent * @property {string|null} [customerId] GoogleAdsLink customerId * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled @@ -18335,14 +18270,6 @@ */ GoogleAdsLink.prototype.name = ""; - /** - * GoogleAdsLink parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.parent = ""; - /** * GoogleAdsLink customerId. * @member {string} customerId @@ -18417,8 +18344,6 @@ writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); if (message.customerId != null && Object.hasOwnProperty.call(message, "customerId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) @@ -18468,9 +18393,6 @@ case 1: message.name = reader.string(); break; - case 2: - message.parent = reader.string(); - break; case 3: message.customerId = reader.string(); break; @@ -18527,9 +18449,6 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; if (message.customerId != null && message.hasOwnProperty("customerId")) if (!$util.isString(message.customerId)) return "customerId: string expected"; @@ -18571,8 +18490,6 @@ var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); if (object.name != null) message.name = String(object.name); - if (object.parent != null) - message.parent = String(object.parent); if (object.customerId != null) message.customerId = String(object.customerId); if (object.canManageClients != null) @@ -18612,7 +18529,6 @@ var object = {}; if (options.defaults) { object.name = ""; - object.parent = ""; object.customerId = ""; object.canManageClients = false; object.adsPersonalizationEnabled = null; @@ -18622,8 +18538,6 @@ } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; if (message.customerId != null && message.hasOwnProperty("customerId")) object.customerId = message.customerId; if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 95dc03fbceb..3d0ab797176 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -1008,7 +1008,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1091,7 +1094,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1395,7 +1401,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1486,7 +1495,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1577,7 +1589,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1656,7 +1671,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1690,7 +1708,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1715,6 +1736,14 @@ "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 } } }, @@ -1724,6 +1753,10 @@ "rule": "repeated", "type": "FirebaseLink", "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } } }, @@ -1766,7 +1799,10 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -1926,7 +1962,7 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "countryCode": { + "regionCode": { "type": "string", "id": 5 }, @@ -2227,18 +2263,10 @@ "type": "bool", "id": 5 }, - "contentViewsEnabled": { - "type": "bool", - "id": 6 - }, "siteSearchEnabled": { "type": "bool", "id": 7 }, - "formInteractionsEnabled": { - "type": "bool", - "id": 8 - }, "videoEngagementEnabled": { "type": "bool", "id": 9 @@ -2247,26 +2275,17 @@ "type": "bool", "id": 10 }, - "dataTaggedElementClicksEnabled": { - "type": "bool", - "id": 11 - }, "pageLoadsEnabled": { "type": "bool", - "id": 12 + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "pageChangesEnabled": { "type": "bool", "id": 13 }, - "articlesAndBlogsEnabled": { - "type": "bool", - "id": 14 - }, - "productsAndEcommerceEnabled": { - "type": "bool", - "id": 15 - }, "searchQueryParameter": { "type": "string", "id": 16, @@ -2274,13 +2293,9 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "urlQueryParameter": { + "uriQueryParameter": { "type": "string", "id": 17 - }, - "excludedDomains": { - "type": "string", - "id": 18 } } }, @@ -2323,16 +2338,19 @@ "(google.api.resource).pattern": "properties/{property}/globalSiteTag" }, "fields": { - "snippet": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IMMUTABLE" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "name": { + "snippet": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } } } }, @@ -2349,13 +2367,6 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "parent": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, "customerId": { "type": "string", "id": 3, diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 69e6a6bb4da..d2770eb8148 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -252,6 +252,11 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'androidAppDataStreams' ), + listFirebaseLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'firebaseLinks' + ), listGoogleAdsLinks: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -473,8 +478,6 @@ export class AnalyticsAdminServiceClient { ): void; /** * Lookup for a single Account. - * Throws "Target not found" if no such account found, or if caller does not - * have permissions to access it. * * @param {Object} request * The request object that will be sent. @@ -680,7 +683,9 @@ export class AnalyticsAdminServiceClient { * Required. The account to update. * The account's `name` field is used to identify the account. * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -867,9 +872,6 @@ export class AnalyticsAdminServiceClient { /** * Lookup for a single "GA4" Property. * - * Throws "Target not found" if no such property found, if property is not - * of the type "GA4", or if caller does not have permissions to access it. - * * @param {Object} request * The request object that will be sent. * @param {string} request.name @@ -1161,7 +1163,9 @@ export class AnalyticsAdminServiceClient { * The property's `name` field is used to identify the property to be * updated. * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2054,9 +2058,6 @@ export class AnalyticsAdminServiceClient { /** * Lookup for a single WebDataStream * - * Throws "Target not found" if no such web data stream found, or if the - * caller does not have permissions to access it. - * * @param {Object} request * The request object that will be sent. * @param {string} request.name @@ -2263,7 +2264,9 @@ export class AnalyticsAdminServiceClient { * Required. The web stream to update. * The `name` field is used to identify the web stream to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2459,9 +2462,6 @@ export class AnalyticsAdminServiceClient { /** * Lookup for a single IosAppDataStream * - * Throws "Target not found" if no such iOS app data stream found, or if the - * caller does not have permissions to access it. - * * @param {Object} request * The request object that will be sent. * @param {string} request.name @@ -2672,7 +2672,9 @@ export class AnalyticsAdminServiceClient { * Required. The iOS app stream to update. * The `name` field is used to identify the iOS app stream to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2876,9 +2878,6 @@ export class AnalyticsAdminServiceClient { /** * Lookup for a single AndroidAppDataStream * - * Throws "Target not found" if no such android app data stream found, or if - * the caller does not have permissions to access it. - * * @param {Object} request * The request object that will be sent. * @param {string} request.name @@ -3093,7 +3092,9 @@ export class AnalyticsAdminServiceClient { * Required. The android app stream to update. * The `name` field is used to identify the android app stream to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3304,7 +3305,6 @@ export class AnalyticsAdminServiceClient { * @param {string} request.name * Required. The name of the settings to lookup. * Format: - * * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" * @param {object} [options] @@ -3413,7 +3413,9 @@ export class AnalyticsAdminServiceClient { * Required. The settings to update. * The `name` field is used to identify the settings to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3621,7 +3623,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink * Required. The Firebase link to update. * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3778,106 +3782,6 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteFirebaseLink(request, options, callback); } - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, - ( - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest - | undefined - ), - {} | undefined - ] - >; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest - | null - | undefined, - {} | null | undefined - > - ): void; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest - | null - | undefined, - {} | null | undefined - > - ): void; - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ListFirebaseLinksResponse]{@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.listFirebaseLinks(request); - */ - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse, - ( - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - this.initialize(); - return this.innerApiCalls.listFirebaseLinks(request, options, callback); - } getGlobalSiteTag( request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, options?: CallOptions @@ -4122,7 +4026,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink * The GoogleAdsLink to update * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -6110,6 +6016,222 @@ export class AnalyticsAdminServiceClient { callSettings ) as AsyncIterable; } + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + ] + >; + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IFirebaseLink + > + ): void; + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IFirebaseLink + > + ): void; + /** + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listFirebaseLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IFirebaseLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IFirebaseLink + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listFirebaseLinks(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listFirebaseLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listFirebaseLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listFirebaseLinks.createStream( + this.innerApiCalls.listFirebaseLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFirebaseLinks`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listFirebaseLinksAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listFirebaseLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listFirebaseLinks.asyncIterate( + this.innerApiCalls['listFirebaseLinks'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } listGoogleAdsLinks( request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index f0834addedf..c2037d93bf9 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -175,11 +175,6 @@ "deleteFirebaseLink" ] }, - "ListFirebaseLinks": { - "methods": [ - "listFirebaseLinks" - ] - }, "GetGlobalSiteTag": { "methods": [ "getGlobalSiteTag" @@ -261,6 +256,13 @@ "listAndroidAppDataStreamsAsync" ] }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks", + "listFirebaseLinksStream", + "listFirebaseLinksAsync" + ] + }, "ListGoogleAdsLinks": { "methods": [ "listGoogleAdsLinks", @@ -438,11 +440,6 @@ "deleteFirebaseLink" ] }, - "ListFirebaseLinks": { - "methods": [ - "listFirebaseLinks" - ] - }, "GetGlobalSiteTag": { "methods": [ "getGlobalSiteTag" @@ -524,6 +521,13 @@ "listAndroidAppDataStreamsAsync" ] }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks", + "listFirebaseLinksStream", + "listFirebaseLinksAsync" + ] + }, "ListGoogleAdsLinks": { "methods": [ "listGoogleAdsLinks", diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 571368a588d..77767679543 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "c9a00f3abf68f25bd1d6ae68fff6f4e4c0ac0e45" + "sha": "e5e58aee0e7fedbdad2e2fd68201332ab81d318d" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "700afd1f0bafc2155bc5e891504c53d4ac9166f5", - "internalRef": "350414815" + "sha": "23e7356f4cf449d6e9977698c5d9383b566be7af", + "internalRef": "351651504" } }, { diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index bd83962b44e..e4a1cb06d7e 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -4151,124 +4151,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listFirebaseLinks', () => { - it('invokes listFirebaseLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksResponse() - ); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listFirebaseLinks(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listFirebaseLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksResponse() - ); - client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback( - expectedResponse - ); - const promise = new Promise((resolve, reject) => { - client.listFirebaseLinks( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes listFirebaseLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.listFirebaseLinks(request), expectedError); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('getGlobalSiteTag', () => { it('invokes getGlobalSiteTag without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( @@ -7353,6 +7235,336 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + ]; + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listFirebaseLinks without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + ]; + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listFirebaseLinks( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listFirebaseLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFirebaseLinks(request), expectedError); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listFirebaseLinksStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + ]; + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listFirebaseLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.listFirebaseLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listFirebaseLinksStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listFirebaseLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) + ); + assert.strictEqual( + (client.descriptors.page.listFirebaseLinks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listFirebaseLinks without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FirebaseLink() + ), + ]; + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; + const iterable = client.listFirebaseLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listFirebaseLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listFirebaseLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listFirebaseLinks with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listFirebaseLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listFirebaseLinks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listFirebaseLinks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + describe('listGoogleAdsLinks', () => { it('invokes listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( From d8d682050bd86cfa0df64271972830926e993ee1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Jan 2021 17:43:44 -0800 Subject: [PATCH 052/142] chore: release 2.0.0 (#74) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 24 +++++++++++++++++++ packages/google-analytics-admin/package.json | 2 +- .../samples/package.json | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 3821cacf902..6310a9ebd96 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [2.0.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.4.0...v2.0.0) (2021-01-19) + + +### ⚠ BREAKING CHANGES + +* `update_mask` field is required for all Update operations +* rename `country_code` field to `region_code` in `Account` +* rename `url_query_parameter` field to `uri_query_parameter` in `EnhancedMeasurementSettings` +* remove `parent` field from `GoogleAdsLink` (#73) +* remove unused fields from `EnhancedMeasurementSettings` + +### Features + +* add pagination support for `ListFirebaseLinks` operation ([57205d1](https://www.github.com/googleapis/nodejs-analytics-admin/commit/57205d16409af361342f77261767d77e84582965)) + + +### Bug Fixes + +* `update_mask` field is required for all Update operations ([57205d1](https://www.github.com/googleapis/nodejs-analytics-admin/commit/57205d16409af361342f77261767d77e84582965)) +* remove `parent` field from `GoogleAdsLink` ([#73](https://www.github.com/googleapis/nodejs-analytics-admin/issues/73)) ([57205d1](https://www.github.com/googleapis/nodejs-analytics-admin/commit/57205d16409af361342f77261767d77e84582965)) +* remove unused fields from `EnhancedMeasurementSettings` ([57205d1](https://www.github.com/googleapis/nodejs-analytics-admin/commit/57205d16409af361342f77261767d77e84582965)) +* rename `country_code` field to `region_code` in `Account` ([57205d1](https://www.github.com/googleapis/nodejs-analytics-admin/commit/57205d16409af361342f77261767d77e84582965)) +* rename `url_query_parameter` field to `uri_query_parameter` in `EnhancedMeasurementSettings` ([57205d1](https://www.github.com/googleapis/nodejs-analytics-admin/commit/57205d16409af361342f77261767d77e84582965)) + ## [1.4.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.3.0...v1.4.0) (2021-01-09) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 2e8be5967ab..9809f7417a6 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "1.4.0", + "version": "2.0.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 0117896efc3..da4fce86b83 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^1.4.0", + "@google-analytics/admin": "^2.0.0", "google-auth-library": "^6.0.5", "google-gax": "^2.6.3", "http": "0.0.1-security", From f581a059c48d82f84cd719579f38b093f67b3e19 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 27 Jan 2021 08:44:12 -0800 Subject: [PATCH 053/142] refactor(nodejs): move build cop to flakybot (#76) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/6beadd04-5b03-401e-9ccb-223912fefc50/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/57c23fa5705499a4181095ced81f0ee0933b64f6 --- packages/google-analytics-admin/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 77767679543..aff24e9de77 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "e5e58aee0e7fedbdad2e2fd68201332ab81d318d" + "sha": "c104cceacb5f6f299117c63fba69d709d2937f75" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "363fe305e9ce34a6cd53951c6ee5f997094b54ee" + "sha": "57c23fa5705499a4181095ced81f0ee0933b64f6" } } ], From 5837d5852380ab613c3fa7b27f895e796ab9d2fd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 3 Feb 2021 19:00:16 -0800 Subject: [PATCH 054/142] chore: add UNORDERED_LIST to protos (#78) autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. Co-authored-by: Justin Beckwith --- packages/google-analytics-admin/protos/protos.d.ts | 3 ++- packages/google-analytics-admin/protos/protos.js | 7 +++++++ packages/google-analytics-admin/protos/protos.json | 3 ++- packages/google-analytics-admin/synth.metadata | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index b6722e8a9bc..5295a176981 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -8641,7 +8641,8 @@ export namespace google { REQUIRED = 2, OUTPUT_ONLY = 3, INPUT_ONLY = 4, - IMMUTABLE = 5 + IMMUTABLE = 5, + UNORDERED_LIST = 6 } /** Properties of a ResourceDescriptor. */ diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index b299e151692..7ea353e8894 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -19379,6 +19379,7 @@ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value * @property {number} INPUT_ONLY=4 INPUT_ONLY value * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value */ api.FieldBehavior = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -19388,6 +19389,7 @@ values[valuesById[3] = "OUTPUT_ONLY"] = 3; values[valuesById[4] = "INPUT_ONLY"] = 4; values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; return values; })(); @@ -26459,6 +26461,7 @@ case 3: case 4: case 5: + case 6: break; } } @@ -26559,6 +26562,10 @@ case 5: message[".google.api.fieldBehavior"][i] = 5; break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; } } if (object[".google.api.resourceReference"] != null) { diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 3d0ab797176..c1a94fe6469 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -2515,7 +2515,8 @@ "REQUIRED": 2, "OUTPUT_ONLY": 3, "INPUT_ONLY": 4, - "IMMUTABLE": 5 + "IMMUTABLE": 5, + "UNORDERED_LIST": 6 } }, "resourceReference": { diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index aff24e9de77..3db7ea94eaf 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "c104cceacb5f6f299117c63fba69d709d2937f75" + "sha": "a264ca93f5ef4d53df02ae3ce632566e4f17764e" } }, { From 4ddc5f4d44213c0f4bbc4f84af1a19ea54331fe9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Feb 2021 19:22:12 +0100 Subject: [PATCH 055/142] fix(deps): update dependency google-auth-library to v7 (#79) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-auth-library](https://togithub.com/googleapis/google-auth-library-nodejs) | [`^6.0.5` -> `^7.0.0`](https://renovatebot.com/diffs/npm/google-auth-library/6.1.6/7.0.0) | [![age](https://badges.renovateapi.com/packages/npm/google-auth-library/7.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/google-auth-library/7.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/google-auth-library/7.0.0/compatibility-slim/6.1.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/google-auth-library/7.0.0/confidence-slim/6.1.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-nodejs ### [`v7.0.0`](https://togithub.com/googleapis/google-auth-library-nodejs/blob/master/CHANGELOG.md#​700-httpswwwgithubcomgoogleapisgoogle-auth-library-nodejscomparev616v700-2021-02-08) [Compare Source](https://togithub.com/googleapis/google-auth-library-nodejs/compare/v6.1.6...v7.0.0) ##### ⚠ BREAKING CHANGES - integrates external_accounts with `GoogleAuth` and ADC ([#​1052](https://togithub.com/googleapis/google-auth-library-nodejs/issues/1052)) - workload identity federation support ([#​1131](https://togithub.com/googleapis/google-auth-library-nodejs/issues/1131)) ##### Features - adds service account impersonation to `ExternalAccountClient` ([#​1041](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1041)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - adds text/json credential_source support to IdentityPoolClients ([#​1059](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1059)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - defines `ExternalAccountClient` used to instantiate external account clients ([#​1050](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1050)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - defines `IdentityPoolClient` used for K8s and Azure workloads ([#​1042](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1042)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - defines ExternalAccountClient abstract class for external_account credentials ([#​1030](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1030)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - get AWS region from environment variable ([#​1067](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1067)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - implements AWS signature version 4 for signing requests ([#​1047](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1047)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - implements the OAuth token exchange spec based on rfc8693 ([#​1026](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1026)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - integrates external_accounts with `GoogleAuth` and ADC ([#​1052](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1052)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) - workload identity federation support ([#​1131](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1131)) ([997f124](https://www.github.com/googleapis/google-auth-library-nodejs/commit/997f124a5c02dfa44879a759bf701a9fa4c3ba90)) ##### Bug Fixes - **deps:** update dependency puppeteer to v6 ([#​1129](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1129)) ([5240fb0](https://www.github.com/googleapis/google-auth-library-nodejs/commit/5240fb0e7ba5503d562659a0d1d7c952bc44ce0e)) - **deps:** update dependency puppeteer to v7 ([#​1134](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1134)) ([02d0d73](https://www.github.com/googleapis/google-auth-library-nodejs/commit/02d0d73a5f0d2fc7de9b13b160e4e7074652f9d0)) ##### [6.1.6](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v6.1.5...v6.1.6) (2021-01-27) ##### Bug Fixes - call addSharedMetadataHeaders even when token has not expired ([#​1116](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1116)) ([aad043d](https://www.github.com/googleapis/google-auth-library-nodejs/commit/aad043d20df3f1e44f56c58a21f15000b6fe970d)) ##### [6.1.5](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v6.1.4...v6.1.5) (2021-01-22) ##### Bug Fixes - support PEM and p12 when using factory ([#​1120](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1120)) ([c2ead4c](https://www.github.com/googleapis/google-auth-library-nodejs/commit/c2ead4cc7650f100b883c9296fce628f17085992)) ##### [6.1.4](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v6.1.3...v6.1.4) (2020-12-22) ##### Bug Fixes - move accessToken to headers instead of parameter ([#​1108](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1108)) ([67b0cc3](https://www.github.com/googleapis/google-auth-library-nodejs/commit/67b0cc3077860a1583bcf18ce50aeff58bbb5496)) ##### [6.1.3](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v6.1.2...v6.1.3) (2020-10-22) ##### Bug Fixes - **deps:** update dependency gaxios to v4 ([#​1086](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1086)) ([f2678ff](https://www.github.com/googleapis/google-auth-library-nodejs/commit/f2678ff5f8f5a0ee33924278b58e0a6e3122cb12)) ##### [6.1.2](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v6.1.1...v6.1.2) (2020-10-19) ##### Bug Fixes - update gcp-metadata to catch a json-bigint security fix ([#​1078](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1078)) ([125fe09](https://www.github.com/googleapis/google-auth-library-nodejs/commit/125fe0924a2206ebb0c83ece9947524e7b135803)) ##### [6.1.1](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v6.1.0...v6.1.1) (2020-10-06) ##### Bug Fixes - **deps:** upgrade gtoken ([#​1064](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1064)) ([9116f24](https://www.github.com/googleapis/google-auth-library-nodejs/commit/9116f247486d6376feca505bbfa42a91d5e579e2))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 9809f7417a6..eb0bcdcaac6 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -39,7 +39,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-auth-library": "^6.0.5", + "google-auth-library": "^7.0.0", "google-gax": "^2.9.2", "open": "^7.1.0", "server-destroy": "^1.0.1" diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index da4fce86b83..55b124a1af9 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@google-analytics/admin": "^2.0.0", - "google-auth-library": "^6.0.5", + "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", "open": "^7.1.0", From fc7c36772f677b74a00fd8ba63cd04bdd076ee89 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Feb 2021 18:34:09 +0000 Subject: [PATCH 056/142] chore: release 2.0.1 (#80) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.0...v2.0.1) (2021-02-09) ### Bug Fixes * **deps:** update dependency google-auth-library to v7 ([#79](https://www.github.com/googleapis/nodejs-analytics-admin/issues/79)) ([8e0e55b](https://www.github.com/googleapis/nodejs-analytics-admin/commit/8e0e55b1ac2c69cee0eaac6102efdc7a105e758e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 6310a9ebd96..87c105c63b1 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.0...v2.0.1) (2021-02-09) + + +### Bug Fixes + +* **deps:** update dependency google-auth-library to v7 ([#79](https://www.github.com/googleapis/nodejs-analytics-admin/issues/79)) ([8e0e55b](https://www.github.com/googleapis/nodejs-analytics-admin/commit/8e0e55b1ac2c69cee0eaac6102efdc7a105e758e)) + ## [2.0.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v1.4.0...v2.0.0) (2021-01-19) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index eb0bcdcaac6..f40e41e95c7 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "2.0.0", + "version": "2.0.1", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 55b124a1af9..18b5a4be6e2 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^2.0.0", + "@google-analytics/admin": "^2.0.1", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From f6d3a2512f73011cd27c6f1f82d9f798a24fba83 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 16:30:27 -0800 Subject: [PATCH 057/142] fix: add `https://www.googleapis.com/auth/analytics.edit` OAuth2 scope to the list of acceptable scopes for all read only methods of the Admin API docs: update the documentation of the `update_mask` field used by Update() methods (#81) PiperOrigin-RevId: 359531616 Source-Author: Google APIs Source-Date: Thu Feb 25 08:46:37 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 2a9e7295e6fe864d0a748ff5a7c44d2da6e6d15a Source-Link: https://github.com/googleapis/googleapis/commit/2a9e7295e6fe864d0a748ff5a7c44d2da6e6d15a --- .../admin/v1alpha/analytics_admin.proto | 70 ++++++++++++------- .../analytics/admin/v1alpha/resources.proto | 2 +- .../v1alpha/analytics_admin_service_client.ts | 68 +++++++++++------- .../google-analytics-admin/synth.metadata | 6 +- 4 files changed, 89 insertions(+), 57 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index c5a7308c209..712cc601fd1 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -358,7 +358,15 @@ service AnalyticsAdminService { option (google.api.method_signature) = "ios_app_data_stream,update_mask"; } - // Creates an iOS app data stream with the specified location and attributes. + // Creates an iOS app stream with the specified location and attributes. + // + // Note that an iOS app stream must be linked to a Firebase app to receive + // traffic. + // + // To create a working app stream, make sure your property is linked to a + // Firebase project. Then, use the Firebase API to create a Firebase app, + // which will also create an appropriate data stream in Analytics (may take up + // to 24 hours). rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" @@ -403,7 +411,15 @@ service AnalyticsAdminService { option (google.api.method_signature) = "android_app_data_stream,update_mask"; } - // Creates an android app stream with the specified location and attributes. + // Creates an Android app stream with the specified location and attributes. + // + // Note that an Android app stream must be linked to a Firebase app to receive + // traffic. + // + // To create a working app stream, make sure your property is linked to a + // Firebase project. Then, use the Firebase API to create a Firebase app, + // which will also create an appropriate data stream in Analytics (may take up + // to 24 hours). rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" @@ -596,9 +612,9 @@ message UpdateAccountRequest { // The account's `name` field is used to identify the account. Account account = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -683,9 +699,9 @@ message UpdatePropertyRequest { // updated. Property property = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -962,9 +978,9 @@ message UpdateWebDataStreamRequest { // The `name` field is used to identify the web stream to be updated. WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1049,9 +1065,9 @@ message UpdateIosAppDataStreamRequest { // The `name` field is used to identify the iOS app stream to be updated. IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1136,9 +1152,9 @@ message UpdateAndroidAppDataStreamRequest { // The `name` field is used to identify the android app stream to be updated. AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1213,9 +1229,9 @@ message UpdateEnhancedMeasurementSettingsRequest { // The `name` field is used to identify the settings to be updated. EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1239,9 +1255,9 @@ message UpdateFirebaseLinkRequest { // Required. The Firebase link to update. FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1326,9 +1342,9 @@ message UpdateGoogleAdsLinkRequest { // The GoogleAdsLink to update GoogleAdsLink google_ads_link = 1; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 41044dec840..3dfa5422ebd 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index d2770eb8148..887bf71d963 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -683,9 +683,9 @@ export class AnalyticsAdminServiceClient { * Required. The account to update. * The account's `name` field is used to identify the account. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1163,9 +1163,9 @@ export class AnalyticsAdminServiceClient { * The property's `name` field is used to identify the property to be * updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2264,9 +2264,9 @@ export class AnalyticsAdminServiceClient { * Required. The web stream to update. * The `name` field is used to identify the web stream to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2672,9 +2672,9 @@ export class AnalyticsAdminServiceClient { * Required. The iOS app stream to update. * The `name` field is used to identify the iOS app stream to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2771,7 +2771,15 @@ export class AnalyticsAdminServiceClient { > ): void; /** - * Creates an iOS app data stream with the specified location and attributes. + * Creates an iOS app stream with the specified location and attributes. + * + * Note that an iOS app stream must be linked to a Firebase app to receive + * traffic. + * + * To create a working app stream, make sure your property is linked to a + * Firebase project. Then, use the Firebase API to create a Firebase app, + * which will also create an appropriate data stream in Analytics (may take up + * to 24 hours). * * @param {Object} request * The request object that will be sent. @@ -3092,9 +3100,9 @@ export class AnalyticsAdminServiceClient { * Required. The android app stream to update. * The `name` field is used to identify the android app stream to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3191,7 +3199,15 @@ export class AnalyticsAdminServiceClient { > ): void; /** - * Creates an android app stream with the specified location and attributes. + * Creates an Android app stream with the specified location and attributes. + * + * Note that an Android app stream must be linked to a Firebase app to receive + * traffic. + * + * To create a working app stream, make sure your property is linked to a + * Firebase project. Then, use the Firebase API to create a Firebase app, + * which will also create an appropriate data stream in Analytics (may take up + * to 24 hours). * * @param {Object} request * The request object that will be sent. @@ -3413,9 +3429,9 @@ export class AnalyticsAdminServiceClient { * Required. The settings to update. * The `name` field is used to identify the settings to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3623,9 +3639,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink * Required. The Firebase link to update. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4026,9 +4042,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink * The GoogleAdsLink to update * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 3db7ea94eaf..744acb99aaf 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "a264ca93f5ef4d53df02ae3ce632566e4f17764e" + "sha": "8242432db044fbf0f51c1b45ecdbf91bf2311aaa" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "23e7356f4cf449d6e9977698c5d9383b566be7af", - "internalRef": "351651504" + "sha": "2a9e7295e6fe864d0a748ff5a7c44d2da6e6d15a", + "internalRef": "359531616" } }, { From 3b343ddbd93556f1dd0eb0c8bfd382702bcc2c60 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 7 Mar 2021 09:02:13 -0800 Subject: [PATCH 058/142] build: update gapic-generator-typescript to v1.2.10. (#84) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/abbc5b7d-e5d5-4439-b106-9589b89ddd97/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361273630 Source-Link: https://github.com/googleapis/googleapis/commit/5477122b3e8037a1dc5bc920536158edbd151dc4 --- packages/google-analytics-admin/synth.metadata | 6 +++--- packages/google-analytics-admin/webpack.config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata index 744acb99aaf..e74f24168e5 100644 --- a/packages/google-analytics-admin/synth.metadata +++ b/packages/google-analytics-admin/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "8242432db044fbf0f51c1b45ecdbf91bf2311aaa" + "sha": "655a893e8c89a9a18b32db256df2ba28adafc948" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2a9e7295e6fe864d0a748ff5a7c44d2da6e6d15a", - "internalRef": "359531616" + "sha": "5477122b3e8037a1dc5bc920536158edbd151dc4", + "internalRef": "361273630" } }, { diff --git a/packages/google-analytics-admin/webpack.config.js b/packages/google-analytics-admin/webpack.config.js index 5651a5d7cfd..27157b29125 100644 --- a/packages/google-analytics-admin/webpack.config.js +++ b/packages/google-analytics-admin/webpack.config.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 392695e312a3f0ca82494f2b3370157e7ad8c991 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 8 Mar 2021 10:23:13 -0800 Subject: [PATCH 059/142] chore: release 2.0.2 (#85) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 87c105c63b1..3902fcf1515 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.1...v2.0.2) (2021-03-07) + + +### Bug Fixes + +* add `https://www.googleapis.com/auth/analytics.edit` OAuth2 scope to the list of acceptable scopes for all read only methods of the Admin API docs: update the documentation of the `update_mask` field used by Update() methods ([#81](https://www.github.com/googleapis/nodejs-analytics-admin/issues/81)) ([655a893](https://www.github.com/googleapis/nodejs-analytics-admin/commit/655a893e8c89a9a18b32db256df2ba28adafc948)) + ### [2.0.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.0...v2.0.1) (2021-02-09) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index f40e41e95c7..11eda5b4316 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "2.0.1", + "version": "2.0.2", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 18b5a4be6e2..f1ca440f125 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^2.0.1", + "@google-analytics/admin": "^2.0.2", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From f69a74fc736504ec53040a72913a230d94d45e43 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 8 Mar 2021 20:44:59 +0100 Subject: [PATCH 060/142] fix(deps): update dependency open to v8 (#83) --- packages/google-analytics-admin/package.json | 1 - packages/google-analytics-admin/samples/package.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 11eda5b4316..a7fadcd990d 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -41,7 +41,6 @@ "dependencies": { "google-auth-library": "^7.0.0", "google-gax": "^2.9.2", - "open": "^7.1.0", "server-destroy": "^1.0.1" }, "devDependencies": { diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index f1ca440f125..8c8e6a4b9f5 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -5,7 +5,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-analytics-admin", "engines": { - "node": ">=10" + "node": ">=12" }, "files": [ "*.js" @@ -18,7 +18,7 @@ "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", - "open": "^7.1.0", + "open": "^8.0.0", "server-destroy": "^1.0.1" }, "devDependencies": { From 2d03b498937b8ba62f7ed4d731d13d7f00675f9c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 8 Mar 2021 12:06:40 -0800 Subject: [PATCH 061/142] chore: release 2.0.3 (#86) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 3902fcf1515..b2d87ee4a88 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.2...v2.0.3) (2021-03-08) + + +### Bug Fixes + +* **deps:** update dependency open to v8 ([#83](https://www.github.com/googleapis/nodejs-analytics-admin/issues/83)) ([e8643f6](https://www.github.com/googleapis/nodejs-analytics-admin/commit/e8643f61c5135f03ff75a4bc3361a4cfc8e2b97d)) + ### [2.0.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.1...v2.0.2) (2021-03-07) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index a7fadcd990d..861613cef40 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "2.0.2", + "version": "2.0.3", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 8c8e6a4b9f5..1b22dc52970 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^2.0.2", + "@google-analytics/admin": "^2.0.3", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 60d846a5254edc3eb310df236ea7ebae60dcddd6 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Thu, 18 Mar 2021 15:46:56 -0700 Subject: [PATCH 062/142] chore: migrate to owl bot (#87) --- .../.github/.OwlBot.yaml | 23 ++++++++++ .../.repo-metadata.json | 15 +++---- .../google-analytics-admin/synth.metadata | 37 ---------------- packages/google-analytics-admin/synth.py | 42 ------------------- 4 files changed, 31 insertions(+), 86 deletions(-) create mode 100644 packages/google-analytics-admin/.github/.OwlBot.yaml delete mode 100644 packages/google-analytics-admin/synth.metadata delete mode 100644 packages/google-analytics-admin/synth.py diff --git a/packages/google-analytics-admin/.github/.OwlBot.yaml b/packages/google-analytics-admin/.github/.OwlBot.yaml new file mode 100644 index 00000000000..8628fb65baf --- /dev/null +++ b/packages/google-analytics-admin/.github/.OwlBot.yaml @@ -0,0 +1,23 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +docker: + image: gcr.io/repo-automation-bots/owlbot-nodejs:latest + +deep-remove-regex: + - /owl-bot-staging + +deep-copy-regex: + - source: /google/analytics/admin/(.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + diff --git a/packages/google-analytics-admin/.repo-metadata.json b/packages/google-analytics-admin/.repo-metadata.json index 903b0df5a4b..2b2f3ae9b60 100644 --- a/packages/google-analytics-admin/.repo-metadata.json +++ b/packages/google-analytics-admin/.repo-metadata.json @@ -1,13 +1,14 @@ { - "name": "analytics-admin", - "name_pretty": "Google Analytics Admin", - "product_documentation": "https://developers.google.com/analytics", "client_documentation": "https://googleapis.dev/nodejs/analytics-admin/latest/index.html", - "issue_tracker": "", + "api_id": "analyticsadmin.googleapis.com", + "distribution_name": "@google-analytics/admin", "release_level": "alpha", + "default_version": "v1alpha", "language": "nodejs", + "name_pretty": "Google Analytics Admin", "repo": "googleapis/nodejs-analytics-admin", - "distribution_name": "@google-analytics/admin", - "api_id": "analyticsadmin.googleapis.com", - "requires_billing": false + "product_documentation": "https://developers.google.com/analytics", + "requires_billing": false, + "name": "analytics-admin", + "issue_tracker": "" } diff --git a/packages/google-analytics-admin/synth.metadata b/packages/google-analytics-admin/synth.metadata deleted file mode 100644 index e74f24168e5..00000000000 --- a/packages/google-analytics-admin/synth.metadata +++ /dev/null @@ -1,37 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-analytics-admin.git", - "sha": "655a893e8c89a9a18b32db256df2ba28adafc948" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5477122b3e8037a1dc5bc920536158edbd151dc4", - "internalRef": "361273630" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "57c23fa5705499a4181095ced81f0ee0933b64f6" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "analyticsadmin", - "apiVersion": "v1alpha", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/packages/google-analytics-admin/synth.py b/packages/google-analytics-admin/synth.py deleted file mode 100644 index 4b269c5a32d..00000000000 --- a/packages/google-analytics-admin/synth.py +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -"""This script is used to synthesize generated parts of this library.""" - -import synthtool as s -import synthtool.gcp as gcp -import synthtool.languages.node as node -import subprocess -import logging - -logging.basicConfig(level=logging.DEBUG) - -# run the gapic generator -gapic = gcp.GAPICBazel() -versions = ['v1alpha'] -for version in versions: - library = gapic.node_library( - 'analyticsadmin', - version, - bazel_target=f"//google/analytics/admin/{version}:google-analytics-admin-{version}-nodejs" - ) - s.copy(library, excludes=["README.md", "package.json"]) - -# Copy common templates -common_templates = gcp.CommonTemplates() -templates = common_templates.node_library( - source_location='build/src', versions=['v1alpha']) -s.copy(templates, excludes=[]) - -node.postprocess_gapic_library() - From c2df5800e3906576b112979df1ff0493df1aa076 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Mar 2021 17:52:25 +0100 Subject: [PATCH 063/142] chore(deps): update dependency sinon to v10 (#93) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^9.0.2` -> `^10.0.0`](https://renovatebot.com/diffs/npm/sinon/9.2.4/10.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/compatibility-slim/9.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/confidence-slim/9.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v10.0.0`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1000--2021-03-22) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v9.2.4...v10.0.0) ================== - Upgrade nise to 4.1.0 - Use [@​sinonjs/eslint-config](https://togithub.com/sinonjs/eslint-config)[@​4](https://togithub.com/4) => Adopts ES2017 => Drops support for IE 11, Legacy Edge and legacy Safari
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 861613cef40..2b724afef1a 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -56,7 +56,7 @@ "mocha": "^8.0.1", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^9.0.2", + "sinon": "^10.0.0", "ts-loader": "^8.0.0", "typescript": "^3.9.6" }, From 8db10fcbce1fc3004f4375b0d0d3a599ad29fe9a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 31 Mar 2021 07:39:07 -0700 Subject: [PATCH 064/142] build: update .OwlBot.lock with new version of post-processor (#95) Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-analytics-admin/src/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/src/index.ts b/packages/google-analytics-admin/src/index.ts index fa92f2174bb..f8818063737 100644 --- a/packages/google-analytics-admin/src/index.ts +++ b/packages/google-analytics-admin/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -12,13 +12,15 @@ // 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 ** +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** import * as v1alpha from './v1alpha'; + const AnalyticsAdminServiceClient = v1alpha.AnalyticsAdminServiceClient; type AnalyticsAdminServiceClient = v1alpha.AnalyticsAdminServiceClient; + export {v1alpha, AnalyticsAdminServiceClient}; export default {v1alpha, AnalyticsAdminServiceClient}; import * as protos from '../protos/protos'; From 9eb3e7d1d90e8774af214e21ed94eec2b32328cc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Apr 2021 23:10:24 +0200 Subject: [PATCH 065/142] chore(deps): update dependency @types/sinon to v10 (#100) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/sinon](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^9.0.4` -> `^10.0.0`](https://renovatebot.com/diffs/npm/@types%2fsinon/9.0.11/10.0.0) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/compatibility-slim/9.0.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/confidence-slim/9.0.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 2b724afef1a..650bc9821f1 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -46,7 +46,7 @@ "devDependencies": { "@types/mocha": "^8.0.0", "@types/node": "^14.0.22", - "@types/sinon": "^9.0.4", + "@types/sinon": "^10.0.0", "c8": "^7.2.0", "gts": "^3.0.0", "jsdoc": "^3.6.4", From c24b5eca1675e29dd595a19a85a8d8e60514b6ec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Apr 2021 00:56:58 +0200 Subject: [PATCH 066/142] chore(deps): update dependency ts-loader to v9 (#104) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ts-loader](https://togithub.com/TypeStrong/ts-loader) | [`^8.0.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/ts-loader/8.1.0/9.0.0) | [![age](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/compatibility-slim/8.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/confidence-slim/8.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
TypeStrong/ts-loader ### [`v9.0.0`](https://togithub.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md#v900) [Compare Source](https://togithub.com/TypeStrong/ts-loader/compare/v8.1.0...v9.0.0) Breaking changes: - minimum webpack version: 5 - minimum node version: 12 Changes: - [webpack 5 migration](https://togithub.com/TypeStrong/ts-loader/pull/1251) - thanks [@​johnnyreilly](https://togithub.com/johnnyreilly), [@​jonwallsten](https://togithub.com/jonwallsten), [@​sokra](https://togithub.com/sokra), [@​appzuka](https://togithub.com/appzuka), [@​alexander-akait](https://togithub.com/alexander-akait)
--- ### Configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 650bc9821f1..37b3850971f 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -57,7 +57,7 @@ "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^10.0.0", - "ts-loader": "^8.0.0", + "ts-loader": "^9.0.0", "typescript": "^3.9.6" }, "engines": { From 668d65f1aa329a7527a20439828f6168668be938 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Apr 2021 10:29:06 -0700 Subject: [PATCH 067/142] fix!: remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API (#105) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix!: remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API feat: add `SearchChangeHistoryEvents` method to the API fix!: update `DeleteProperty` method to return the deleted property data as `Property` type instead of returning an empty response feat: add `ActorType`, `ActionType`, `ChangeHistoryResourceType`, `ChangeHistoryEvent`, `ChangeHistoryChange` types used by `SearchChangeHistoryEvents` method fix!: update `time_zone` field of `Property` type to be required feat: add `delete_time`, `expire_time` output only fields to `Property` type fix!: remove `deleted` field from `Property` type PiperOrigin-RevId: 370749341 Source-Link: https://github.com/googleapis/googleapis/commit/2375bb4a8f2c885883c4e13d93c359c40700259b Source-Link: https://github.com/googleapis/googleapis-gen/commit/ee560452477d92572edb133386e7129532db8ba6 * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- .../admin/v1alpha/analytics_admin.proto | 134 +- .../analytics/admin/v1alpha/resources.proto | 145 +- .../google-analytics-admin/protos/protos.d.ts | 899 ++- .../google-analytics-admin/protos/protos.js | 6982 ++++++++++------- .../google-analytics-admin/protos/protos.json | 323 +- .../v1alpha/analytics_admin_service_client.ts | 510 +- ...analytics_admin_service_client_config.json | 15 +- .../src/v1alpha/gapic_metadata.json | 34 +- .../gapic_analytics_admin_service_v1alpha.ts | 593 +- 9 files changed, 5946 insertions(+), 3689 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 712cc601fd1..872d6abbb0a 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -140,7 +140,7 @@ service AnalyticsAdminService { // https://support.google.com/analytics/answer/6154772 // // Returns an error if the target is not found, or is not an GA4 Property. - rpc DeleteProperty(DeletePropertyRequest) returns (google.protobuf.Empty) { + rpc DeleteProperty(DeletePropertyRequest) returns (Property) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*}" }; @@ -358,23 +358,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "ios_app_data_stream,update_mask"; } - // Creates an iOS app stream with the specified location and attributes. - // - // Note that an iOS app stream must be linked to a Firebase app to receive - // traffic. - // - // To create a working app stream, make sure your property is linked to a - // Firebase project. Then, use the Firebase API to create a Firebase app, - // which will also create an appropriate data stream in Analytics (may take up - // to 24 hours). - rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" - body: "ios_app_data_stream" - }; - option (google.api.method_signature) = "parent,ios_app_data_stream"; - } - // Returns child iOS app data streams under the specified parent property. // // iOS app data streams will be excluded if the caller does not have access. @@ -411,23 +394,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "android_app_data_stream,update_mask"; } - // Creates an Android app stream with the specified location and attributes. - // - // Note that an Android app stream must be linked to a Firebase app to receive - // traffic. - // - // To create a working app stream, make sure your property is linked to a - // Firebase project. Then, use the Firebase API to create a Firebase app, - // which will also create an appropriate data stream in Analytics (may take up - // to 24 hours). - rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" - body: "android_app_data_stream" - }; - option (google.api.method_signature) = "parent,android_app_data_stream"; - } - // Returns child android app streams under the specified parent property. // // Android app streams will be excluded if the caller does not have access. @@ -548,6 +514,15 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Searches through all changes to an account or its children given the + // specified set of filters. + rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { + option (google.api.http) = { + post: "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents" + body: "*" + }; + } } // Request message for GetAccount RPC. @@ -1071,21 +1046,6 @@ message UpdateIosAppDataStreamRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for CreateIosAppDataStream RPC. -message CreateIosAppDataStreamRequest { - // Required. The iOS app data stream to create. - IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this ios app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; -} - // Request message for ListIosAppDataStreams RPC. message ListIosAppDataStreamsRequest { // Required. The name of the parent property. @@ -1158,21 +1118,6 @@ message UpdateAndroidAppDataStreamRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for CreateAndroidAppDataStream RPC. -message CreateAndroidAppDataStreamRequest { - // Required. The android app stream to create. - AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this android app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; -} - // Request message for ListAndroidAppDataStreams RPC. message ListAndroidAppDataStreamsRequest { // Required. The name of the parent property. @@ -1429,3 +1374,62 @@ message ListAccountSummariesResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for SearchChangeHistoryEvents RPC. +message SearchChangeHistoryEventsRequest { + // Required. The account resource for which to return change history resources. + string account = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; + + // Optional. Resource name for a child property. If set, only return changes + // made to this property or its child resources. + string property = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Optional. If set, only return changes if they are for a resource that matches at + // least one of these types. + repeated ChangeHistoryResourceType resource_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes that match one or more of these types of + // actions. + repeated ActionType action = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes if they are made by a user in this list. + repeated string actor_email = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made after this time (inclusive). + google.protobuf.Timestamp earliest_change_time = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made before this time (inclusive). + google.protobuf.Timestamp latest_change_time = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of ChangeHistoryEvent items to return. + // The service may return fewer than this value, even if there are additional + // pages. If unspecified, at most 50 items will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `SearchChangeHistoryEvents` must match the call that + // provided the page token. + string page_token = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for SearchAccounts RPC. +message SearchChangeHistoryEventsResponse { + // Results that were accessible to the caller. + repeated ChangeHistoryEvent change_history_events = 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-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 3dfa5422ebd..568d74715c9 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -131,6 +131,64 @@ enum IndustryCategory { SHOPPING = 26; } +// Different kinds of actors that can make changes to Google Analytics +// resources. +enum ActorType { + // Unknown or unspecified actor type. + ACTOR_TYPE_UNSPECIFIED = 0; + + // Changes made by the user specified in actor_email. + USER = 1; + + // Changes made by the Google Analytics system. + SYSTEM = 2; + + // Changes made by Google Analytics support team staff. + SUPPORT = 3; +} + +// Types of actions that may change a resource. +enum ActionType { + // Action type unknown or not specified. + ACTION_TYPE_UNSPECIFIED = 0; + + // Resource was created in this change. + CREATED = 1; + + // Resource was updated in this change. + UPDATED = 2; + + // Resource was deleted in this change. + DELETED = 3; +} + +// Types of resources whose changes may be returned from change history. +enum ChangeHistoryResourceType { + // Resource type unknown or not specified. + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Account resource + ACCOUNT = 1; + + // Property resource + PROPERTY = 2; + + // WebDataStream resource + WEB_DATA_STREAM = 3; + + // AndroidAppDataStream resource + ANDROID_APP_DATA_STREAM = 4; + + // IosAppDataStream resource + IOS_APP_DATA_STREAM = 5; + + // FirebaseLink resource + FIREBASE_LINK = 6; + + // GoogleAdsLink resource + GOOGLE_ADS_LINK = 7; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -194,7 +252,7 @@ message Property { // Example: AUTOMOTIVE, FOOD_AND_DRINK IndustryCategory industry_category = 6; - // Reporting Time Zone, used as the day boundary for reports, regardless of + // Required. Reporting Time Zone, used as the day boundary for reports, regardless of // where the data originates. If the time zone honors DST, Analytics will // automatically adjust for the changes. // @@ -203,7 +261,7 @@ message Property { // // Format: https://www.iana.org/time-zones // Example: "America/Los_Angeles" - string time_zone = 7; + string time_zone = 7 [(google.api.field_behavior) = REQUIRED]; // The currency type used in reports involving monetary values. // @@ -212,9 +270,14 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; - // Output only. Indicates whether this Property is soft-deleted or not. Deleted properties - // are excluded from List results unless specifically requested. - bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If set, the time at which this property was trashed. If not set, then this + // property is not currently in the trash can. + google.protobuf.Timestamp delete_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, the time at which this trashed property will be permanently + // deleted. If not set, then this property is not currently in the trash can + // and is not slated to be deleted. + google.protobuf.Timestamp expire_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing a Google Analytics Android app stream. @@ -586,3 +649,75 @@ message PropertySummary { // Display name for the property referred to in this account summary. string display_name = 2; } + +// A set of changes within a Google Analytics account or its child properties +// that resulted from the same cause. Common causes would be updates made in the +// Google Analytics UI, changes from customer support, or automatic Google +// Analytics system changes. +message ChangeHistoryEvent { + // ID of this change history event. This ID is unique across Google Analytics. + string id = 1; + + // Time when change was made. + google.protobuf.Timestamp change_time = 2; + + // The type of actor that made this change. + ActorType actor_type = 3; + + // Email address of the Google account that made the change. This will be a + // valid email address if the actor field is set to USER, and empty otherwise. + // Google accounts that have been deleted will cause an error. + string user_actor_email = 4; + + // If true, then the list of changes returned was filtered, and does not + // represent all changes that occurred in this event. + bool changes_filtered = 5; + + // A list of changes made in this change history event that fit the filters + // specified in SearchChangeHistoryEventsRequest. + repeated ChangeHistoryChange changes = 6; +} + +// A description of a change to a single Google Analytics resource. +message ChangeHistoryChange { + // A snapshot of a resource as before or after the result of a change in + // change history. + message ChangeHistoryResource { + oneof resource { + // A snapshot of an Account resource in change history. + Account account = 1; + + // A snapshot of a Property resource in change history. + Property property = 2; + + // A snapshot of a WebDataStream resource in change history. + WebDataStream web_data_stream = 3; + + // A snapshot of an AndroidAppDataStream resource in change history. + AndroidAppDataStream android_app_data_stream = 4; + + // A snapshot of an IosAppDataStream resource in change history. + IosAppDataStream ios_app_data_stream = 5; + + // A snapshot of a FirebaseLink resource in change history. + FirebaseLink firebase_link = 6; + + // A snapshot of a GoogleAdsLink resource in change history. + GoogleAdsLink google_ads_link = 7; + } + } + + // Resource name of the resource whose changes are described by this entry. + string resource = 1; + + // The type of action that changed this resource. + ActionType action = 2; + + // Resource contents from before the change was made. If this resource was + // created in this change, this field will be missing. + ChangeHistoryResource resource_before_change = 3; + + // Resource contents from after the change was made. If this resource was + // deleted in this change, this field will be missing. + ChangeHistoryResource resource_after_change = 4; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 5295a176981..0c2cc49ca69 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -175,7 +175,7 @@ export namespace google { /** * Calls DeleteProperty. * @param request DeletePropertyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * @param callback Node-style callback called with the error, if any, and Property */ public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback): void; @@ -184,7 +184,7 @@ export namespace google { * @param request DeletePropertyRequest message or plain object * @returns Promise */ - public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest): Promise; + public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest): Promise; /** * Calls UpdateProperty. @@ -452,20 +452,6 @@ export namespace google { */ public updateIosAppDataStream(request: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest): Promise; - /** - * Calls CreateIosAppDataStream. - * @param request CreateIosAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IosAppDataStream - */ - public createIosAppDataStream(request: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateIosAppDataStreamCallback): void; - - /** - * Calls CreateIosAppDataStream. - * @param request CreateIosAppDataStreamRequest message or plain object - * @returns Promise - */ - public createIosAppDataStream(request: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest): Promise; - /** * Calls ListIosAppDataStreams. * @param request ListIosAppDataStreamsRequest message or plain object @@ -522,20 +508,6 @@ export namespace google { */ public updateAndroidAppDataStream(request: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest): Promise; - /** - * Calls CreateAndroidAppDataStream. - * @param request CreateAndroidAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AndroidAppDataStream - */ - public createAndroidAppDataStream(request: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAndroidAppDataStreamCallback): void; - - /** - * Calls CreateAndroidAppDataStream. - * @param request CreateAndroidAppDataStreamRequest message or plain object - * @returns Promise - */ - public createAndroidAppDataStream(request: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest): Promise; - /** * Calls ListAndroidAppDataStreams. * @param request ListAndroidAppDataStreamsRequest message or plain object @@ -717,6 +689,20 @@ export namespace google { * @returns Promise */ public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): Promise; + + /** + * Calls SearchChangeHistoryEvents. + * @param request SearchChangeHistoryEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + */ + public searchChangeHistoryEvents(request: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback): void; + + /** + * Calls SearchChangeHistoryEvents. + * @param request SearchChangeHistoryEventsRequest message or plain object + * @returns Promise + */ + public searchChangeHistoryEvents(request: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest): Promise; } namespace AnalyticsAdminService { @@ -787,9 +773,9 @@ export namespace google { /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. * @param error Error, if any - * @param [response] Empty + * @param [response] Property */ - type DeletePropertyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeletePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. @@ -924,13 +910,6 @@ export namespace google { */ type UpdateIosAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.IosAppDataStream) => void; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createIosAppDataStream}. - * @param error Error, if any - * @param [response] IosAppDataStream - */ - type CreateIosAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.IosAppDataStream) => void; - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listIosAppDataStreams}. * @param error Error, if any @@ -959,13 +938,6 @@ export namespace google { */ type UpdateAndroidAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AndroidAppDataStream) => void; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAndroidAppDataStream}. - * @param error Error, if any - * @param [response] AndroidAppDataStream - */ - type CreateAndroidAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AndroidAppDataStream) => void; - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAndroidAppDataStreams}. * @param error Error, if any @@ -1056,6 +1028,13 @@ export namespace google { * @param [response] DataSharingSettings */ type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataSharingSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * @param error Error, if any + * @param [response] SearchChangeHistoryEventsResponse + */ + type SearchChangeHistoryEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) => void; } /** Properties of a GetAccountRequest. */ @@ -4562,102 +4541,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIosAppDataStreamRequest. */ - interface ICreateIosAppDataStreamRequest { - - /** CreateIosAppDataStreamRequest iosAppDataStream */ - iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** CreateIosAppDataStreamRequest parent */ - parent?: (string|null); - } - - /** Represents a CreateIosAppDataStreamRequest. */ - class CreateIosAppDataStreamRequest implements ICreateIosAppDataStreamRequest { - - /** - * Constructs a new CreateIosAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest); - - /** CreateIosAppDataStreamRequest iosAppDataStream. */ - public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** CreateIosAppDataStreamRequest parent. */ - public parent: string; - - /** - * Creates a new CreateIosAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIosAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; - - /** - * Encodes the specified CreateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. - * @param message CreateIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. - * @param message CreateIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; - - /** - * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; - - /** - * Verifies a CreateIosAppDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIosAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; - - /** - * Creates a plain object from a CreateIosAppDataStreamRequest message. Also converts values to other types if specified. - * @param message CreateIosAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateIosAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a ListIosAppDataStreamsRequest. */ interface IListIosAppDataStreamsRequest { @@ -5132,102 +5015,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a CreateAndroidAppDataStreamRequest. */ - interface ICreateAndroidAppDataStreamRequest { - - /** CreateAndroidAppDataStreamRequest androidAppDataStream */ - androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** CreateAndroidAppDataStreamRequest parent */ - parent?: (string|null); - } - - /** Represents a CreateAndroidAppDataStreamRequest. */ - class CreateAndroidAppDataStreamRequest implements ICreateAndroidAppDataStreamRequest { - - /** - * Constructs a new CreateAndroidAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest); - - /** CreateAndroidAppDataStreamRequest androidAppDataStream. */ - public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** CreateAndroidAppDataStreamRequest parent. */ - public parent: string; - - /** - * Creates a new CreateAndroidAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateAndroidAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; - - /** - * Encodes the specified CreateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. - * @param message CreateAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. - * @param message CreateAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; - - /** - * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; - - /** - * Verifies a CreateAndroidAppDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateAndroidAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; - - /** - * Creates a plain object from a CreateAndroidAppDataStreamRequest message. Also converts values to other types if specified. - * @param message CreateAndroidAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateAndroidAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a ListAndroidAppDataStreamsRequest. */ interface IListAndroidAppDataStreamsRequest { @@ -6944,6 +6731,240 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SearchChangeHistoryEventsRequest. */ + interface ISearchChangeHistoryEventsRequest { + + /** SearchChangeHistoryEventsRequest account */ + account?: (string|null); + + /** SearchChangeHistoryEventsRequest property */ + property?: (string|null); + + /** SearchChangeHistoryEventsRequest resourceType */ + resourceType?: (google.analytics.admin.v1alpha.ChangeHistoryResourceType[]|null); + + /** SearchChangeHistoryEventsRequest action */ + action?: (google.analytics.admin.v1alpha.ActionType[]|null); + + /** SearchChangeHistoryEventsRequest actorEmail */ + actorEmail?: (string[]|null); + + /** SearchChangeHistoryEventsRequest earliestChangeTime */ + earliestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest latestChangeTime */ + latestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest pageSize */ + pageSize?: (number|null); + + /** SearchChangeHistoryEventsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a SearchChangeHistoryEventsRequest. */ + class SearchChangeHistoryEventsRequest implements ISearchChangeHistoryEventsRequest { + + /** + * Constructs a new SearchChangeHistoryEventsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest); + + /** SearchChangeHistoryEventsRequest account. */ + public account: string; + + /** SearchChangeHistoryEventsRequest property. */ + public property: string; + + /** SearchChangeHistoryEventsRequest resourceType. */ + public resourceType: google.analytics.admin.v1alpha.ChangeHistoryResourceType[]; + + /** SearchChangeHistoryEventsRequest action. */ + public action: google.analytics.admin.v1alpha.ActionType[]; + + /** SearchChangeHistoryEventsRequest actorEmail. */ + public actorEmail: string[]; + + /** SearchChangeHistoryEventsRequest earliestChangeTime. */ + public earliestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest latestChangeTime. */ + public latestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest pageSize. */ + public pageSize: number; + + /** SearchChangeHistoryEventsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchChangeHistoryEventsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + + /** + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @param message SearchChangeHistoryEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @param message SearchChangeHistoryEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchChangeHistoryEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + + /** + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchChangeHistoryEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + + /** + * Verifies a SearchChangeHistoryEventsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchChangeHistoryEventsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + + /** + * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. + * @param message SearchChangeHistoryEventsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchChangeHistoryEventsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SearchChangeHistoryEventsResponse. */ + interface ISearchChangeHistoryEventsResponse { + + /** SearchChangeHistoryEventsResponse changeHistoryEvents */ + changeHistoryEvents?: (google.analytics.admin.v1alpha.IChangeHistoryEvent[]|null); + + /** SearchChangeHistoryEventsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchChangeHistoryEventsResponse. */ + class SearchChangeHistoryEventsResponse implements ISearchChangeHistoryEventsResponse { + + /** + * Constructs a new SearchChangeHistoryEventsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse); + + /** SearchChangeHistoryEventsResponse changeHistoryEvents. */ + public changeHistoryEvents: google.analytics.admin.v1alpha.IChangeHistoryEvent[]; + + /** SearchChangeHistoryEventsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchChangeHistoryEventsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + + /** + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @param message SearchChangeHistoryEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @param message SearchChangeHistoryEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchChangeHistoryEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + + /** + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchChangeHistoryEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + + /** + * Verifies a SearchChangeHistoryEventsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchChangeHistoryEventsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + + /** + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * @param message SearchChangeHistoryEventsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchChangeHistoryEventsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** MaximumUserAccess enum. */ enum MaximumUserAccess { MAXIMUM_USER_ACCESS_UNSPECIFIED = 0, @@ -6984,6 +7005,34 @@ export namespace google { SHOPPING = 26 } + /** ActorType enum. */ + enum ActorType { + ACTOR_TYPE_UNSPECIFIED = 0, + USER = 1, + SYSTEM = 2, + SUPPORT = 3 + } + + /** ActionType enum. */ + enum ActionType { + ACTION_TYPE_UNSPECIFIED = 0, + CREATED = 1, + UPDATED = 2, + DELETED = 3 + } + + /** ChangeHistoryResourceType enum. */ + enum ChangeHistoryResourceType { + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, + ACCOUNT = 1, + PROPERTY = 2, + WEB_DATA_STREAM = 3, + ANDROID_APP_DATA_STREAM = 4, + IOS_APP_DATA_STREAM = 5, + FIREBASE_LINK = 6, + GOOGLE_ADS_LINK = 7 + } + /** Properties of an Account. */ interface IAccount { @@ -7131,8 +7180,11 @@ export namespace google { /** Property currencyCode */ currencyCode?: (string|null); - /** Property deleted */ - deleted?: (boolean|null); + /** Property deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); } /** Represents a Property. */ @@ -7168,8 +7220,11 @@ export namespace google { /** Property currencyCode. */ public currencyCode: string; - /** Property deleted. */ - public deleted: boolean; + /** Property deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); /** * Creates a new Property instance using the specified properties. @@ -8627,6 +8682,366 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a ChangeHistoryEvent. */ + interface IChangeHistoryEvent { + + /** ChangeHistoryEvent id */ + id?: (string|null); + + /** ChangeHistoryEvent changeTime */ + changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType */ + actorType?: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType|null); + + /** ChangeHistoryEvent userActorEmail */ + userActorEmail?: (string|null); + + /** ChangeHistoryEvent changesFiltered */ + changesFiltered?: (boolean|null); + + /** ChangeHistoryEvent changes */ + changes?: (google.analytics.admin.v1alpha.IChangeHistoryChange[]|null); + } + + /** Represents a ChangeHistoryEvent. */ + class ChangeHistoryEvent implements IChangeHistoryEvent { + + /** + * Constructs a new ChangeHistoryEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent); + + /** ChangeHistoryEvent id. */ + public id: string; + + /** ChangeHistoryEvent changeTime. */ + public changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType. */ + public actorType: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType); + + /** ChangeHistoryEvent userActorEmail. */ + public userActorEmail: string; + + /** ChangeHistoryEvent changesFiltered. */ + public changesFiltered: boolean; + + /** ChangeHistoryEvent changes. */ + public changes: google.analytics.admin.v1alpha.IChangeHistoryChange[]; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryEvent instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Verifies a ChangeHistoryEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryEvent + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @param message ChangeHistoryEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeHistoryChange. */ + interface IChangeHistoryChange { + + /** ChangeHistoryChange resource */ + resource?: (string|null); + + /** ChangeHistoryChange action */ + action?: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType|null); + + /** ChangeHistoryChange resourceBeforeChange */ + resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange */ + resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + } + + /** Represents a ChangeHistoryChange. */ + class ChangeHistoryChange implements IChangeHistoryChange { + + /** + * Constructs a new ChangeHistoryChange. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange); + + /** ChangeHistoryChange resource. */ + public resource: string; + + /** ChangeHistoryChange action. */ + public action: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType); + + /** ChangeHistoryChange resourceBeforeChange. */ + public resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange. */ + public resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryChange instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Verifies a ChangeHistoryChange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryChange + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @param message ChangeHistoryChange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ChangeHistoryChange { + + /** Properties of a ChangeHistoryResource. */ + interface IChangeHistoryResource { + + /** ChangeHistoryResource account */ + account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource webDataStream */ + webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** ChangeHistoryResource androidAppDataStream */ + androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** ChangeHistoryResource iosAppDataStream */ + iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** ChangeHistoryResource firebaseLink */ + firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + } + + /** Represents a ChangeHistoryResource. */ + class ChangeHistoryResource implements IChangeHistoryResource { + + /** + * Constructs a new ChangeHistoryResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource); + + /** ChangeHistoryResource account. */ + public account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource webDataStream. */ + public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** ChangeHistoryResource androidAppDataStream. */ + public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** ChangeHistoryResource iosAppDataStream. */ + public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** ChangeHistoryResource firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** ChangeHistoryResource resource. */ + public resource?: ("account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryResource instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Verifies a ChangeHistoryResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryResource + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @param message ChangeHistoryResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } } } } diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 7ea353e8894..d4628bc179d 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -401,7 +401,7 @@ * @typedef DeletePropertyCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * @param {google.analytics.admin.v1alpha.Property} [response] Property */ /** @@ -410,12 +410,12 @@ * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback} callback Node-style callback called with the error, if any, and Property * @returns {undefined} * @variation 1 */ Object.defineProperty(AnalyticsAdminService.prototype.deleteProperty = function deleteProperty(request, callback) { - return this.rpcCall(deleteProperty, $root.google.analytics.admin.v1alpha.DeletePropertyRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteProperty, $root.google.analytics.admin.v1alpha.DeletePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); }, "name", { value: "DeleteProperty" }); /** @@ -424,7 +424,7 @@ * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object - * @returns {Promise} Promise + * @returns {Promise} Promise * @variation 2 */ @@ -1055,39 +1055,6 @@ * @variation 2 */ - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createIosAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateIosAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.IosAppDataStream} [response] IosAppDataStream - */ - - /** - * Calls CreateIosAppDataStream. - * @function createIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} request CreateIosAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and IosAppDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.createIosAppDataStream = function createIosAppDataStream(request, callback) { - return this.rpcCall(createIosAppDataStream, $root.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, $root.google.analytics.admin.v1alpha.IosAppDataStream, request, callback); - }, "name", { value: "CreateIosAppDataStream" }); - - /** - * Calls CreateIosAppDataStream. - * @function createIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} request CreateIosAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listIosAppDataStreams}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -1220,39 +1187,6 @@ * @variation 2 */ - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAndroidAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateAndroidAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} [response] AndroidAppDataStream - */ - - /** - * Calls CreateAndroidAppDataStream. - * @function createAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} request CreateAndroidAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and AndroidAppDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.createAndroidAppDataStream = function createAndroidAppDataStream(request, callback) { - return this.rpcCall(createAndroidAppDataStream, $root.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, $root.google.analytics.admin.v1alpha.AndroidAppDataStream, request, callback); - }, "name", { value: "CreateAndroidAppDataStream" }); - - /** - * Calls CreateAndroidAppDataStream. - * @function createAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} request CreateAndroidAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAndroidAppDataStreams}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -1682,6 +1616,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef SearchChangeHistoryEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} [response] SearchChangeHistoryEventsResponse + */ + + /** + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback} callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.searchChangeHistoryEvents = function searchChangeHistoryEvents(request, callback) { + return this.rpcCall(searchChangeHistoryEvents, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, request, callback); + }, "name", { value: "SearchChangeHistoryEvents" }); + + /** + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return AnalyticsAdminService; })(); @@ -9576,221 +9543,6 @@ return UpdateIosAppDataStreamRequest; })(); - v1alpha.CreateIosAppDataStreamRequest = (function() { - - /** - * Properties of a CreateIosAppDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @interface ICreateIosAppDataStreamRequest - * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] CreateIosAppDataStreamRequest iosAppDataStream - * @property {string|null} [parent] CreateIosAppDataStreamRequest parent - */ - - /** - * Constructs a new CreateIosAppDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateIosAppDataStreamRequest. - * @implements ICreateIosAppDataStreamRequest - * @constructor - * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest=} [properties] Properties to set - */ - function CreateIosAppDataStreamRequest(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]]; - } - - /** - * CreateIosAppDataStreamRequest iosAppDataStream. - * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @instance - */ - CreateIosAppDataStreamRequest.prototype.iosAppDataStream = null; - - /** - * CreateIosAppDataStreamRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @instance - */ - CreateIosAppDataStreamRequest.prototype.parent = ""; - - /** - * Creates a new CreateIosAppDataStreamRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest instance - */ - CreateIosAppDataStreamRequest.create = function create(properties) { - return new CreateIosAppDataStreamRequest(properties); - }; - - /** - * Encodes the specified CreateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} message CreateIosAppDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIosAppDataStreamRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - return writer; - }; - - /** - * Encodes the specified CreateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest} message CreateIosAppDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIosAppDataStreamRequest.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.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateIosAppDataStreamRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateIosAppDataStreamRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); - if (error) - return "iosAppDataStream." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - return null; - }; - - /** - * Creates a CreateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} CreateIosAppDataStreamRequest - */ - CreateIosAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(); - if (object.iosAppDataStream != null) { - if (typeof object.iosAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.iosAppDataStream: object expected"); - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); - } - if (object.parent != null) - message.parent = String(object.parent); - return message; - }; - - /** - * Creates a plain object from a CreateIosAppDataStreamRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} message CreateIosAppDataStreamRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateIosAppDataStreamRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.iosAppDataStream = null; - object.parent = ""; - } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) - object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - return object; - }; - - /** - * Converts this CreateIosAppDataStreamRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - * @instance - * @returns {Object.} JSON object - */ - CreateIosAppDataStreamRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateIosAppDataStreamRequest; - })(); - v1alpha.ListIosAppDataStreamsRequest = (function() { /** @@ -10848,25 +10600,26 @@ return UpdateAndroidAppDataStreamRequest; })(); - v1alpha.CreateAndroidAppDataStreamRequest = (function() { + v1alpha.ListAndroidAppDataStreamsRequest = (function() { /** - * Properties of a CreateAndroidAppDataStreamRequest. + * Properties of a ListAndroidAppDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateAndroidAppDataStreamRequest - * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] CreateAndroidAppDataStreamRequest androidAppDataStream - * @property {string|null} [parent] CreateAndroidAppDataStreamRequest parent + * @interface IListAndroidAppDataStreamsRequest + * @property {string|null} [parent] ListAndroidAppDataStreamsRequest parent + * @property {number|null} [pageSize] ListAndroidAppDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListAndroidAppDataStreamsRequest pageToken */ /** - * Constructs a new CreateAndroidAppDataStreamRequest. + * Constructs a new ListAndroidAppDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateAndroidAppDataStreamRequest. - * @implements ICreateAndroidAppDataStreamRequest + * @classdesc Represents a ListAndroidAppDataStreamsRequest. + * @implements IListAndroidAppDataStreamsRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set */ - function CreateAndroidAppDataStreamRequest(properties) { + function ListAndroidAppDataStreamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10874,249 +10627,33 @@ } /** - * CreateAndroidAppDataStreamRequest androidAppDataStream. - * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * ListAndroidAppDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @instance */ - CreateAndroidAppDataStreamRequest.prototype.androidAppDataStream = null; + ListAndroidAppDataStreamsRequest.prototype.parent = ""; /** - * CreateAndroidAppDataStreamRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + * ListAndroidAppDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @instance */ - CreateAndroidAppDataStreamRequest.prototype.parent = ""; + ListAndroidAppDataStreamsRequest.prototype.pageSize = 0; /** - * Creates a new CreateAndroidAppDataStreamRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest instance + * ListAndroidAppDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @instance */ - CreateAndroidAppDataStreamRequest.create = function create(properties) { - return new CreateAndroidAppDataStreamRequest(properties); - }; + ListAndroidAppDataStreamsRequest.prototype.pageToken = ""; /** - * Encodes the specified CreateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} message CreateAndroidAppDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateAndroidAppDataStreamRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - return writer; - }; - - /** - * Encodes the specified CreateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest} message CreateAndroidAppDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateAndroidAppDataStreamRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateAndroidAppDataStreamRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); - if (error) - return "androidAppDataStream." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - return null; - }; - - /** - * Creates a CreateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} CreateAndroidAppDataStreamRequest - */ - CreateAndroidAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(); - if (object.androidAppDataStream != null) { - if (typeof object.androidAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.androidAppDataStream: object expected"); - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); - } - if (object.parent != null) - message.parent = String(object.parent); - return message; - }; - - /** - * Creates a plain object from a CreateAndroidAppDataStreamRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} message CreateAndroidAppDataStreamRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateAndroidAppDataStreamRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.androidAppDataStream = null; - object.parent = ""; - } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) - object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - return object; - }; - - /** - * Converts this CreateAndroidAppDataStreamRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - * @instance - * @returns {Object.} JSON object - */ - CreateAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateAndroidAppDataStreamRequest; - })(); - - v1alpha.ListAndroidAppDataStreamsRequest = (function() { - - /** - * Properties of a ListAndroidAppDataStreamsRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IListAndroidAppDataStreamsRequest - * @property {string|null} [parent] ListAndroidAppDataStreamsRequest parent - * @property {number|null} [pageSize] ListAndroidAppDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListAndroidAppDataStreamsRequest pageToken - */ - - /** - * Constructs a new ListAndroidAppDataStreamsRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAndroidAppDataStreamsRequest. - * @implements IListAndroidAppDataStreamsRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set - */ - function ListAndroidAppDataStreamsRequest(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]]; - } - - /** - * ListAndroidAppDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.parent = ""; - - /** - * ListAndroidAppDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListAndroidAppDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest instance @@ -14918,113 +14455,35 @@ return ListAccountSummariesResponse; })(); - /** - * MaximumUserAccess enum. - * @name google.analytics.admin.v1alpha.MaximumUserAccess - * @enum {number} - * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value - * @property {number} NO_ACCESS=1 NO_ACCESS value - * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value - * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value - * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value - */ - v1alpha.MaximumUserAccess = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NO_ACCESS"] = 1; - values[valuesById[2] = "READ_AND_ANALYZE"] = 2; - values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; - values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; - return values; - })(); - - /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory - * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); - - v1alpha.Account = (function() { + v1alpha.SearchChangeHistoryEventsRequest = (function() { /** - * Properties of an Account. + * Properties of a SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAccount - * @property {string|null} [name] Account name - * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime - * @property {string|null} [displayName] Account displayName - * @property {string|null} [regionCode] Account regionCode - * @property {boolean|null} [deleted] Account deleted + * @interface ISearchChangeHistoryEventsRequest + * @property {string|null} [account] SearchChangeHistoryEventsRequest account + * @property {string|null} [property] SearchChangeHistoryEventsRequest property + * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType + * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action + * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail + * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime + * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime + * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize + * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken */ /** - * Constructs a new Account. + * Constructs a new SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Account. - * @implements IAccount + * @classdesc Represents a SearchChangeHistoryEventsRequest. + * @implements ISearchChangeHistoryEventsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set */ - function Account(properties) { + function SearchChangeHistoryEventsRequest(properties) { + this.resourceType = []; + this.action = []; + this.actorEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15032,140 +14491,204 @@ } /** - * Account name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Account + * SearchChangeHistoryEventsRequest account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Account.prototype.name = ""; + SearchChangeHistoryEventsRequest.prototype.account = ""; /** - * Account createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Account + * SearchChangeHistoryEventsRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Account.prototype.createTime = null; + SearchChangeHistoryEventsRequest.prototype.property = ""; /** - * Account updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Account + * SearchChangeHistoryEventsRequest resourceType. + * @member {Array.} resourceType + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Account.prototype.updateTime = null; + SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; /** - * Account displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Account + * SearchChangeHistoryEventsRequest action. + * @member {Array.} action + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Account.prototype.displayName = ""; + SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; /** - * Account regionCode. - * @member {string} regionCode - * @memberof google.analytics.admin.v1alpha.Account + * SearchChangeHistoryEventsRequest actorEmail. + * @member {Array.} actorEmail + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Account.prototype.regionCode = ""; + SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; /** - * Account deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Account + * SearchChangeHistoryEventsRequest earliestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Account.prototype.deleted = false; + SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; /** - * Creates a new Account instance using the specified properties. + * SearchChangeHistoryEventsRequest latestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; + + /** + * SearchChangeHistoryEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.pageSize = 0; + + /** + * SearchChangeHistoryEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.pageToken = ""; + + /** + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Account} Account instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance */ - Account.create = function create(properties) { - return new Account(properties); + SearchChangeHistoryEventsRequest.create = function create(properties) { + return new SearchChangeHistoryEventsRequest(properties); }; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encode = function encode(message, writer) { + SearchChangeHistoryEventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); + if (message.resourceType != null && message.resourceType.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.resourceType.length; ++i) + writer.int32(message.resourceType[i]); + writer.ldelim(); + } + if (message.action != null && message.action.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.action.length; ++i) + writer.int32(message.action[i]); + writer.ldelim(); + } + if (message.actorEmail != null && message.actorEmail.length) + for (var i = 0; i < message.actorEmail.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); + if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); return writer; }; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @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) { + SearchChangeHistoryEventsRequest.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.analytics.admin.v1alpha.Account(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.account = reader.string(); break; case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.property = reader.string(); break; case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.resourceType && message.resourceType.length)) + message.resourceType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.resourceType.push(reader.int32()); + } else + message.resourceType.push(reader.int32()); break; case 4: - message.displayName = reader.string(); + if (!(message.action && message.action.length)) + message.action = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.action.push(reader.int32()); + } else + message.action.push(reader.int32()); break; case 5: - message.regionCode = reader.string(); + if (!(message.actorEmail && message.actorEmail.length)) + message.actorEmail = []; + message.actorEmail.push(reader.string()); break; case 6: - message.deleted = reader.bool(); + message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.pageSize = reader.int32(); + break; + case 9: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15176,166 +14699,292 @@ }; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @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) { + SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Account message. + * Verifies a SearchChangeHistoryEventsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @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) { + SearchChangeHistoryEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) { + if (!Array.isArray(message.resourceType)) + return "resourceType: array expected"; + for (var i = 0; i < message.resourceType.length; ++i) + switch (message.resourceType[i]) { + default: + return "resourceType: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + if (message.action != null && message.hasOwnProperty("action")) { + if (!Array.isArray(message.action)) + return "action: array expected"; + for (var i = 0; i < message.action.length; ++i) + switch (message.action[i]) { + default: + return "action: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { + if (!Array.isArray(message.actorEmail)) + return "actorEmail: array expected"; + for (var i = 0; i < message.actorEmail.length; ++i) + if (!$util.isString(message.actorEmail[i])) + return "actorEmail: string[] expected"; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); if (error) - return "createTime." + error; + return "earliestChangeTime." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); if (error) - return "updateTime." + error; + return "latestChangeTime." + error; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - if (!$util.isString(message.regionCode)) - return "regionCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean 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 an Account message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest */ - Account.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Account) + SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.Account(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + if (object.account != null) + message.account = String(object.account); + if (object.property != null) + message.property = String(object.property); + if (object.resourceType) { + if (!Array.isArray(object.resourceType)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.resourceType: array expected"); + message.resourceType = []; + for (var i = 0; i < object.resourceType.length; ++i) + switch (object.resourceType[i]) { + default: + case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType[i] = 0; + break; + case "ACCOUNT": + case 1: + message.resourceType[i] = 1; + break; + case "PROPERTY": + case 2: + message.resourceType[i] = 2; + break; + case "WEB_DATA_STREAM": + case 3: + message.resourceType[i] = 3; + break; + case "ANDROID_APP_DATA_STREAM": + case 4: + message.resourceType[i] = 4; + break; + case "IOS_APP_DATA_STREAM": + case 5: + message.resourceType[i] = 5; + break; + case "FIREBASE_LINK": + case 6: + message.resourceType[i] = 6; + break; + case "GOOGLE_ADS_LINK": + case 7: + message.resourceType[i] = 7; + break; + } + } + if (object.action) { + if (!Array.isArray(object.action)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.action: array expected"); + message.action = []; + for (var i = 0; i < object.action.length; ++i) + switch (object.action[i]) { + default: + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action[i] = 0; + break; + case "CREATED": + case 1: + message.action[i] = 1; + break; + case "UPDATED": + case 2: + message.action[i] = 2; + break; + case "DELETED": + case 3: + message.action[i] = 3; + break; + } + } + if (object.actorEmail) { + if (!Array.isArray(object.actorEmail)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.actorEmail: array expected"); + message.actorEmail = []; + for (var i = 0; i < object.actorEmail.length; ++i) + message.actorEmail[i] = String(object.actorEmail[i]); + } + if (object.earliestChangeTime != null) { + if (typeof object.earliestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); + message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); + } + if (object.latestChangeTime != null) { + if (typeof object.latestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); + message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.regionCode != null) - message.regionCode = String(object.regionCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); + 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 an Account message. Also converts values to other types if specified. + * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.Account} message Account + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Account.toObject = function toObject(message, options) { + SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.resourceType = []; + object.action = []; + object.actorEmail = []; + } if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.regionCode = ""; - object.deleted = false; + object.account = ""; + object.property = ""; + object.earliestChangeTime = null; + object.latestChangeTime = null; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - object.regionCode = message.regionCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.resourceType && message.resourceType.length) { + object.resourceType = []; + for (var j = 0; j < message.resourceType.length; ++j) + object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; + } + if (message.action && message.action.length) { + object.action = []; + for (var j = 0; j < message.action.length; ++j) + object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; + } + if (message.actorEmail && message.actorEmail.length) { + object.actorEmail = []; + for (var j = 0; j < message.actorEmail.length; ++j) + object.actorEmail[j] = message.actorEmail[j]; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) + object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) + object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); + 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 Account to JSON. + * Converts this SearchChangeHistoryEventsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance * @returns {Object.} JSON object */ - Account.prototype.toJSON = function toJSON() { + SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Account; + return SearchChangeHistoryEventsRequest; })(); - v1alpha.Property = (function() { + v1alpha.SearchChangeHistoryEventsResponse = (function() { /** - * Properties of a Property. + * Properties of a SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IProperty - * @property {string|null} [name] Property name - * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime - * @property {string|null} [parent] Property parent - * @property {string|null} [displayName] Property displayName - * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory - * @property {string|null} [timeZone] Property timeZone - * @property {string|null} [currencyCode] Property currencyCode - * @property {boolean|null} [deleted] Property deleted + * @interface ISearchChangeHistoryEventsResponse + * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents + * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken */ /** - * Constructs a new Property. + * Constructs a new SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a Property. - * @implements IProperty + * @classdesc Represents a SearchChangeHistoryEventsResponse. + * @implements ISearchChangeHistoryEventsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set */ - function Property(properties) { + function SearchChangeHistoryEventsResponse(properties) { + this.changeHistoryEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15343,179 +14992,91 @@ } /** - * Property name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsResponse changeHistoryEvents. + * @member {Array.} changeHistoryEvents + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - Property.prototype.name = ""; + SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; /** - * Property createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - Property.prototype.createTime = null; + SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; /** - * Property updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @static + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance */ - Property.prototype.updateTime = null; + SearchChangeHistoryEventsResponse.create = function create(properties) { + return new SearchChangeHistoryEventsResponse(properties); + }; /** - * Property parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.parent = ""; - - /** - * Property displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.displayName = ""; - - /** - * Property industryCategory. - * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.industryCategory = 0; - - /** - * Property timeZone. - * @member {string} timeZone - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.timeZone = ""; - - /** - * Property currencyCode. - * @member {string} currencyCode - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.currencyCode = ""; - - /** - * Property deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.deleted = false; - - /** - * Creates a new Property instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Property} Property instance - */ - Property.create = function create(properties) { - return new Property(properties); - }; - - /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encode = function encode(message, writer) { + SearchChangeHistoryEventsResponse.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); - if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); - if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.deleted); + if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) + for (var i = 0; i < message.changeHistoryEvents.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.encode(message.changeHistoryEvents[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 Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decode = function decode(reader, length) { + SearchChangeHistoryEventsResponse.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.analytics.admin.v1alpha.Property(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) + message.changeHistoryEvents = []; + message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); break; case 2: - message.parent = reader.string(); - break; - case 5: - message.displayName = reader.string(); - break; - case 6: - message.industryCategory = reader.int32(); - break; - case 7: - message.timeZone = reader.string(); - break; - case 8: - message.currencyCode = reader.string(); - break; - case 9: - message.deleted = reader.bool(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15526,159 +15087,959 @@ }; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decodeDelimited = function decodeDelimited(reader) { + SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Property message. + * Verifies a SearchChangeHistoryEventsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Property.verify = function verify(message) { + SearchChangeHistoryEventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - switch (message.industryCategory) { - default: - return "industryCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - break; + if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { + if (!Array.isArray(message.changeHistoryEvents)) + return "changeHistoryEvents: array expected"; + for (var i = 0; i < message.changeHistoryEvents.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); + if (error) + return "changeHistoryEvents." + error; } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - if (!$util.isString(message.currencyCode)) - return "currencyCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse */ - Property.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Property) + SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.Property(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + if (object.changeHistoryEvents) { + if (!Array.isArray(object.changeHistoryEvents)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); + message.changeHistoryEvents = []; + for (var i = 0; i < object.changeHistoryEvents.length; ++i) { + if (typeof object.changeHistoryEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); + message.changeHistoryEvents[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); + } } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @static + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changeHistoryEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.changeHistoryEvents && message.changeHistoryEvents.length) { + object.changeHistoryEvents = []; + for (var j = 0; j < message.changeHistoryEvents.length; ++j) + object.changeHistoryEvents[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); } - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.industryCategory) { - case "INDUSTRY_CATEGORY_UNSPECIFIED": - case 0: - message.industryCategory = 0; - break; - case "AUTOMOTIVE": - case 1: - message.industryCategory = 1; - break; - case "BUSINESS_AND_INDUSTRIAL_MARKETS": - case 2: - message.industryCategory = 2; - break; - case "FINANCE": - case 3: - message.industryCategory = 3; - break; - case "HEALTHCARE": - case 4: - message.industryCategory = 4; - break; - case "TECHNOLOGY": - case 5: - message.industryCategory = 5; - break; - case "TRAVEL": - case 6: - message.industryCategory = 6; - break; - case "OTHER": - case 7: - message.industryCategory = 7; - break; - case "ARTS_AND_ENTERTAINMENT": - case 8: + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this SearchChangeHistoryEventsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @instance + * @returns {Object.} JSON object + */ + SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SearchChangeHistoryEventsResponse; + })(); + + /** + * MaximumUserAccess enum. + * @name google.analytics.admin.v1alpha.MaximumUserAccess + * @enum {number} + * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value + * @property {number} NO_ACCESS=1 NO_ACCESS value + * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value + * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value + * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value + */ + v1alpha.MaximumUserAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_ACCESS"] = 1; + values[valuesById[2] = "READ_AND_ANALYZE"] = 2; + values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; + values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; + return values; + })(); + + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + + /** + * ActorType enum. + * @name google.analytics.admin.v1alpha.ActorType + * @enum {number} + * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} SUPPORT=3 SUPPORT value + */ + v1alpha.ActorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "SUPPORT"] = 3; + return values; + })(); + + /** + * ActionType enum. + * @name google.analytics.admin.v1alpha.ActionType + * @enum {number} + * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value + * @property {number} CREATED=1 CREATED value + * @property {number} UPDATED=2 UPDATED value + * @property {number} DELETED=3 DELETED value + */ + v1alpha.ActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "UPDATED"] = 2; + values[valuesById[3] = "DELETED"] = 3; + return values; + })(); + + /** + * ChangeHistoryResourceType enum. + * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType + * @enum {number} + * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} ACCOUNT=1 ACCOUNT value + * @property {number} PROPERTY=2 PROPERTY value + * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value + * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value + * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value + * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value + * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value + */ + v1alpha.ChangeHistoryResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACCOUNT"] = 1; + values[valuesById[2] = "PROPERTY"] = 2; + values[valuesById[3] = "WEB_DATA_STREAM"] = 3; + values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; + values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; + values[valuesById[6] = "FIREBASE_LINK"] = 6; + values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; + return values; + })(); + + v1alpha.Account = (function() { + + /** + * Properties of an Account. + * @memberof google.analytics.admin.v1alpha + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [regionCode] Account regionCode + * @property {boolean|null} [deleted] Account deleted + */ + + /** + * Constructs a new Account. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an Account. + * @implements IAccount + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.name = ""; + + /** + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.createTime = null; + + /** + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.updateTime = null; + + /** + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.displayName = ""; + + /** + * Account regionCode. + * @member {string} regionCode + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.regionCode = ""; + + /** + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.deleted = false; + + /** + * Creates a new Account instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance + */ + Account.create = function create(properties) { + return new Account(properties); + }; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + return writer; + }; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.displayName = reader.string(); + break; + case 5: + message.regionCode = reader.string(); + break; + case 6: + message.deleted = reader.bool(); + 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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; + return null; + }; + + /** + * Creates an Account message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Account} Account + */ + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) + return object; + var message = new $root.google.analytics.admin.v1alpha.Account(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + return message; + }; + + /** + * Creates a plain object from an Account message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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 = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.regionCode = ""; + object.deleted = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; + return object; + }; + + /** + * Converts this Account to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Account + * @instance + * @returns {Object.} JSON object + */ + Account.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Account; + })(); + + v1alpha.Property = (function() { + + /** + * Properties of a Property. + * @memberof google.analytics.admin.v1alpha + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + */ + + /** + * Constructs a new Property. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a Property. + * @implements IProperty + * @constructor + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + */ + function Property(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]]; + } + + /** + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.name = ""; + + /** + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.createTime = null; + + /** + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.updateTime = null; + + /** + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.parent = ""; + + /** + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.displayName = ""; + + /** + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.industryCategory = 0; + + /** + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.deleteTime = null; + + /** + * Property expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.expireTime = null; + + /** + * Creates a new Property instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance + */ + Property.create = function create(properties) { + return new Property(properties); + }; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Property message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.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.analytics.admin.v1alpha.Property(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + case 5: + message.displayName = reader.string(); + break; + case 6: + message.industryCategory = reader.int32(); + break; + case 7: + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 11: + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Property message. + * @function verify + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Property.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + return null; + }; + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Property} Property + */ + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) + return object; + var message = new $root.google.analytics.admin.v1alpha.Property(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": + case 0: + message.industryCategory = 0; + break; + case "AUTOMOTIVE": + case 1: + message.industryCategory = 1; + break; + case "BUSINESS_AND_INDUSTRIAL_MARKETS": + case 2: + message.industryCategory = 2; + break; + case "FINANCE": + case 3: + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: message.industryCategory = 8; break; case "BEAUTY_AND_FITNESS": @@ -15754,97 +16115,725 @@ message.industryCategory = 26; break; } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.currencyCode != null) - message.currencyCode = String(object.currencyCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + return message; + }; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Property.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parent = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.deleteTime = null; + object.expireTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + return object; + }; + + /** + * Converts this Property to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Property + * @instance + * @returns {Object.} JSON object + */ + Property.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Property; + })(); + + v1alpha.AndroidAppDataStream = (function() { + + /** + * Properties of an AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IAndroidAppDataStream + * @property {string|null} [name] AndroidAppDataStream name + * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime + * @property {string|null} [packageName] AndroidAppDataStream packageName + * @property {string|null} [displayName] AndroidAppDataStream displayName + */ + + /** + * Constructs a new AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AndroidAppDataStream. + * @implements IAndroidAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + */ + function AndroidAppDataStream(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]]; + } + + /** + * AndroidAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.name = ""; + + /** + * AndroidAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.firebaseAppId = ""; + + /** + * AndroidAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.createTime = null; + + /** + * AndroidAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.updateTime = null; + + /** + * AndroidAppDataStream packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.packageName = ""; + + /** + * AndroidAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.displayName = ""; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + */ + AndroidAppDataStream.create = function create(properties) { + return new AndroidAppDataStream(properties); + }; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.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.analytics.admin.v1alpha.AndroidAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.packageName = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AndroidAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + */ + AndroidAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.packageName != null) + message.packageName = String(object.packageName); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.packageName = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + * @returns {Object.} JSON object + */ + AndroidAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AndroidAppDataStream; + })(); + + v1alpha.IosAppDataStream = (function() { + + /** + * Properties of an IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IIosAppDataStream + * @property {string|null} [name] IosAppDataStream name + * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime + * @property {string|null} [bundleId] IosAppDataStream bundleId + * @property {string|null} [displayName] IosAppDataStream displayName + */ + + /** + * Constructs a new IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an IosAppDataStream. + * @implements IIosAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + */ + function IosAppDataStream(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]]; + } + + /** + * IosAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.name = ""; + + /** + * IosAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.firebaseAppId = ""; + + /** + * IosAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.createTime = null; + + /** + * IosAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.updateTime = null; + + /** + * IosAppDataStream bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.bundleId = ""; + + /** + * IosAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.displayName = ""; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + */ + IosAppDataStream.create = function create(properties) { + return new IosAppDataStream(properties); + }; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.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.analytics.admin.v1alpha.IosAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.bundleId = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } return message; }; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + */ + IosAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @static - * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Property.toObject = function toObject(message, options) { + IosAppDataStream.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.parent = ""; + object.firebaseAppId = ""; object.createTime = null; object.updateTime = null; + object.bundleId = ""; object.displayName = ""; - object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; - object.timeZone = ""; - object.currencyCode = ""; - object.deleted = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - object.currencyCode = message.currencyCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; return object; }; /** - * Converts this Property to JSON. + * Converts this IosAppDataStream to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.IosAppDataStream * @instance * @returns {Object.} JSON object */ - Property.prototype.toJSON = function toJSON() { + IosAppDataStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Property; + return IosAppDataStream; })(); - v1alpha.AndroidAppDataStream = (function() { + v1alpha.WebDataStream = (function() { /** - * Properties of an AndroidAppDataStream. + * Properties of a WebDataStream. * @memberof google.analytics.admin.v1alpha - * @interface IAndroidAppDataStream - * @property {string|null} [name] AndroidAppDataStream name - * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime - * @property {string|null} [packageName] AndroidAppDataStream packageName - * @property {string|null} [displayName] AndroidAppDataStream displayName + * @interface IWebDataStream + * @property {string|null} [name] WebDataStream name + * @property {string|null} [measurementId] WebDataStream measurementId + * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime + * @property {string|null} [defaultUri] WebDataStream defaultUri + * @property {string|null} [displayName] WebDataStream displayName */ /** - * Constructs a new AndroidAppDataStream. + * Constructs a new WebDataStream. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AndroidAppDataStream. - * @implements IAndroidAppDataStream + * @classdesc Represents a WebDataStream. + * @implements IWebDataStream * @constructor - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set */ - function AndroidAppDataStream(properties) { + function WebDataStream(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15852,120 +16841,130 @@ } /** - * AndroidAppDataStream name. + * WebDataStream name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - AndroidAppDataStream.prototype.name = ""; + WebDataStream.prototype.name = ""; /** - * AndroidAppDataStream firebaseAppId. + * WebDataStream measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.measurementId = ""; + + /** + * WebDataStream firebaseAppId. * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - AndroidAppDataStream.prototype.firebaseAppId = ""; + WebDataStream.prototype.firebaseAppId = ""; /** - * AndroidAppDataStream createTime. + * WebDataStream createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - AndroidAppDataStream.prototype.createTime = null; + WebDataStream.prototype.createTime = null; /** - * AndroidAppDataStream updateTime. + * WebDataStream updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - AndroidAppDataStream.prototype.updateTime = null; + WebDataStream.prototype.updateTime = null; /** - * AndroidAppDataStream packageName. - * @member {string} packageName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * WebDataStream defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - AndroidAppDataStream.prototype.packageName = ""; + WebDataStream.prototype.defaultUri = ""; /** - * AndroidAppDataStream displayName. + * WebDataStream displayName. * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance */ - AndroidAppDataStream.prototype.displayName = ""; + WebDataStream.prototype.displayName = ""; /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new WebDataStream instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance */ - AndroidAppDataStream.create = function create(properties) { - return new AndroidAppDataStream(properties); + WebDataStream.create = function create(properties) { + return new WebDataStream(properties); }; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encode = function encode(message, writer) { + WebDataStream.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); return writer; }; /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a WebDataStream message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decode = function decode(reader, length) { + WebDataStream.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.analytics.admin.v1alpha.AndroidAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.WebDataStream(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15973,18 +16972,21 @@ message.name = reader.string(); break; case 2: - message.firebaseAppId = reader.string(); + message.measurementId = reader.string(); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.firebaseAppId = reader.string(); break; case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 5: - message.packageName = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 6: + message.defaultUri = reader.string(); + break; + case 7: message.displayName = reader.string(); break; default: @@ -15996,35 +16998,38 @@ }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + WebDataStream.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AndroidAppDataStream message. + * Verifies a WebDataStream message. * @function verify - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AndroidAppDataStream.verify = function verify(message) { + WebDataStream.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.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) if (!$util.isString(message.firebaseAppId)) return "firebaseAppId: string expected"; @@ -16038,9 +17043,9 @@ if (error) return "updateTime." + error; } - if (message.packageName != null && message.hasOwnProperty("packageName")) - if (!$util.isString(message.packageName)) - return "packageName: string expected"; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; @@ -16048,111 +17053,114 @@ }; /** - * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream */ - AndroidAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + WebDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) return object; - var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); if (object.name != null) message.name = String(object.name); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); if (object.firebaseAppId != null) message.firebaseAppId = String(object.firebaseAppId); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.packageName != null) - message.packageName = String(object.packageName); + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); if (object.displayName != null) message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @static - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AndroidAppDataStream.toObject = function toObject(message, options) { + WebDataStream.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; + object.measurementId = ""; object.firebaseAppId = ""; object.createTime = null; object.updateTime = null; - object.packageName = ""; + object.defaultUri = ""; object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) object.firebaseAppId = message.firebaseAppId; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.packageName != null && message.hasOwnProperty("packageName")) - object.packageName = message.packageName; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; return object; }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this WebDataStream to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.WebDataStream * @instance * @returns {Object.} JSON object */ - AndroidAppDataStream.prototype.toJSON = function toJSON() { + WebDataStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AndroidAppDataStream; + return WebDataStream; })(); - v1alpha.IosAppDataStream = (function() { + v1alpha.UserLink = (function() { /** - * Properties of an IosAppDataStream. + * Properties of a UserLink. * @memberof google.analytics.admin.v1alpha - * @interface IIosAppDataStream - * @property {string|null} [name] IosAppDataStream name - * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime - * @property {string|null} [bundleId] IosAppDataStream bundleId - * @property {string|null} [displayName] IosAppDataStream displayName + * @interface IUserLink + * @property {string|null} [name] UserLink name + * @property {string|null} [emailAddress] UserLink emailAddress + * @property {Array.|null} [directRoles] UserLink directRoles */ /** - * Constructs a new IosAppDataStream. + * Constructs a new UserLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an IosAppDataStream. - * @implements IIosAppDataStream + * @classdesc Represents a UserLink. + * @implements IUserLink * @constructor - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set */ - function IosAppDataStream(properties) { + function UserLink(properties) { + this.directRoles = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16160,120 +17168,91 @@ } /** - * IosAppDataStream name. + * UserLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.name = ""; - - /** - * IosAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.firebaseAppId = ""; - - /** - * IosAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.createTime = null; - - /** - * IosAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @instance */ - IosAppDataStream.prototype.updateTime = null; + UserLink.prototype.name = ""; /** - * IosAppDataStream bundleId. - * @member {string} bundleId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * UserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.UserLink * @instance */ - IosAppDataStream.prototype.bundleId = ""; + UserLink.prototype.emailAddress = ""; /** - * IosAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * UserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.UserLink * @instance */ - IosAppDataStream.prototype.displayName = ""; + UserLink.prototype.directRoles = $util.emptyArray; /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new UserLink instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance */ - IosAppDataStream.create = function create(properties) { - return new IosAppDataStream(properties); + UserLink.create = function create(properties) { + return new UserLink(properties); }; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encode = function encode(message, writer) { + UserLink.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); return writer; }; /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + UserLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes a UserLink message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decode = function decode(reader, length) { + UserLink.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.analytics.admin.v1alpha.IosAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UserLink(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16281,19 +17260,12 @@ message.name = reader.string(); break; case 2: - message.firebaseAppId = reader.string(); + message.emailAddress = reader.string(); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.bundleId = reader.string(); - break; - case 6: - message.displayName = reader.string(); + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -16304,164 +17276,142 @@ }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a UserLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + UserLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IosAppDataStream message. + * Verifies a UserLink message. * @function verify - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IosAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; } - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - if (!$util.isString(message.bundleId)) - return "bundleId: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink */ - IosAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + UserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) return object; - var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + var message = new $root.google.analytics.admin.v1alpha.UserLink(); if (object.name != null) message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); } - if (object.bundleId != null) - message.bundleId = String(object.bundleId); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from a UserLink message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @static - * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {google.analytics.admin.v1alpha.UserLink} message UserLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IosAppDataStream.toObject = function toObject(message, options) { + UserLink.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.directRoles = []; if (options.defaults) { object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.bundleId = ""; - object.displayName = ""; + object.emailAddress = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - object.bundleId = message.bundleId; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } return object; }; /** - * Converts this IosAppDataStream to JSON. + * Converts this UserLink to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UserLink * @instance * @returns {Object.} JSON object */ - IosAppDataStream.prototype.toJSON = function toJSON() { + UserLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IosAppDataStream; + return UserLink; })(); - v1alpha.WebDataStream = (function() { + v1alpha.AuditUserLink = (function() { /** - * Properties of a WebDataStream. + * Properties of an AuditUserLink. * @memberof google.analytics.admin.v1alpha - * @interface IWebDataStream - * @property {string|null} [name] WebDataStream name - * @property {string|null} [measurementId] WebDataStream measurementId - * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime - * @property {string|null} [defaultUri] WebDataStream defaultUri - * @property {string|null} [displayName] WebDataStream displayName + * @interface IAuditUserLink + * @property {string|null} [name] AuditUserLink name + * @property {string|null} [emailAddress] AuditUserLink emailAddress + * @property {Array.|null} [directRoles] AuditUserLink directRoles + * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles */ /** - * Constructs a new WebDataStream. + * Constructs a new AuditUserLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a WebDataStream. - * @implements IWebDataStream + * @classdesc Represents an AuditUserLink. + * @implements IAuditUserLink * @constructor - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set */ - function WebDataStream(properties) { + function AuditUserLink(properties) { + this.directRoles = []; + this.effectiveRoles = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16469,130 +17419,102 @@ } /** - * WebDataStream name. + * AuditUserLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.name = ""; - - /** - * WebDataStream measurementId. - * @member {string} measurementId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.measurementId = ""; - - /** - * WebDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.firebaseAppId = ""; - - /** - * WebDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - WebDataStream.prototype.createTime = null; + AuditUserLink.prototype.name = ""; /** - * WebDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.WebDataStream + * AuditUserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - WebDataStream.prototype.updateTime = null; + AuditUserLink.prototype.emailAddress = ""; /** - * WebDataStream defaultUri. - * @member {string} defaultUri - * @memberof google.analytics.admin.v1alpha.WebDataStream + * AuditUserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - WebDataStream.prototype.defaultUri = ""; + AuditUserLink.prototype.directRoles = $util.emptyArray; /** - * WebDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.WebDataStream + * AuditUserLink effectiveRoles. + * @member {Array.} effectiveRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance */ - WebDataStream.prototype.displayName = ""; + AuditUserLink.prototype.effectiveRoles = $util.emptyArray; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new AuditUserLink instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance */ - WebDataStream.create = function create(properties) { - return new WebDataStream(properties); + AuditUserLink.create = function create(properties) { + return new AuditUserLink(properties); }; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encode = function encode(message, writer) { + AuditUserLink.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.effectiveRoles != null && message.effectiveRoles.length) + for (var i = 0; i < message.effectiveRoles.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); return writer; }; /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes an AuditUserLink message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decode = function decode(reader, length) { + AuditUserLink.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.analytics.admin.v1alpha.WebDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16600,22 +17522,17 @@ message.name = reader.string(); break; case 2: - message.measurementId = reader.string(); - break; - case 3: - message.firebaseAppId = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.defaultUri = reader.string(); + message.emailAddress = reader.string(); break; - case 7: - message.displayName = reader.string(); + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + case 4: + if (!(message.effectiveRoles && message.effectiveRoles.length)) + message.effectiveRoles = []; + message.effectiveRoles.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -16626,169 +17543,169 @@ }; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decodeDelimited = function decodeDelimited(reader) { + AuditUserLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebDataStream message. + * Verifies an AuditUserLink message. * @function verify - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebDataStream.verify = function verify(message) { + AuditUserLink.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.measurementId != null && message.hasOwnProperty("measurementId")) - if (!$util.isString(message.measurementId)) - return "measurementId: string expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { + if (!Array.isArray(message.effectiveRoles)) + return "effectiveRoles: array expected"; + for (var i = 0; i < message.effectiveRoles.length; ++i) + if (!$util.isString(message.effectiveRoles[i])) + return "effectiveRoles: string[] expected"; } - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - if (!$util.isString(message.defaultUri)) - return "defaultUri: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink */ - WebDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + AuditUserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) return object; - var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); + var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); if (object.name != null) message.name = String(object.name); - if (object.measurementId != null) - message.measurementId = String(object.measurementId); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.effectiveRoles) { + if (!Array.isArray(object.effectiveRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); + message.effectiveRoles = []; + for (var i = 0; i < object.effectiveRoles.length; ++i) + message.effectiveRoles[i] = String(object.effectiveRoles[i]); } - if (object.defaultUri != null) - message.defaultUri = String(object.defaultUri); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @static - * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebDataStream.toObject = function toObject(message, options) { + AuditUserLink.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.directRoles = []; + object.effectiveRoles = []; + } if (options.defaults) { object.name = ""; - object.measurementId = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.defaultUri = ""; - object.displayName = ""; + object.emailAddress = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - object.measurementId = message.measurementId; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - object.defaultUri = message.defaultUri; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + if (message.effectiveRoles && message.effectiveRoles.length) { + object.effectiveRoles = []; + for (var j = 0; j < message.effectiveRoles.length; ++j) + object.effectiveRoles[j] = message.effectiveRoles[j]; + } return object; }; /** - * Converts this WebDataStream to JSON. + * Converts this AuditUserLink to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.AuditUserLink * @instance * @returns {Object.} JSON object */ - WebDataStream.prototype.toJSON = function toJSON() { + AuditUserLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WebDataStream; + return AuditUserLink; })(); - v1alpha.UserLink = (function() { + v1alpha.EnhancedMeasurementSettings = (function() { /** - * Properties of a UserLink. + * Properties of an EnhancedMeasurementSettings. * @memberof google.analytics.admin.v1alpha - * @interface IUserLink - * @property {string|null} [name] UserLink name - * @property {string|null} [emailAddress] UserLink emailAddress - * @property {Array.|null} [directRoles] UserLink directRoles + * @interface IEnhancedMeasurementSettings + * @property {string|null} [name] EnhancedMeasurementSettings name + * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled + * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled + * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled + * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled + * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled + * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled + * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled + * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled + * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled + * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter + * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter */ /** - * Constructs a new UserLink. + * Constructs a new EnhancedMeasurementSettings. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a UserLink. - * @implements IUserLink + * @classdesc Represents an EnhancedMeasurementSettings. + * @implements IEnhancedMeasurementSettings * @constructor - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set */ - function UserLink(properties) { - this.directRoles = []; + function EnhancedMeasurementSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16796,91 +17713,180 @@ } /** - * UserLink name. + * EnhancedMeasurementSettings name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.name = ""; + + /** + * EnhancedMeasurementSettings streamEnabled. + * @member {boolean} streamEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.streamEnabled = false; + + /** + * EnhancedMeasurementSettings pageViewsEnabled. + * @member {boolean} pageViewsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; + + /** + * EnhancedMeasurementSettings scrollsEnabled. + * @member {boolean} scrollsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.scrollsEnabled = false; + + /** + * EnhancedMeasurementSettings outboundClicksEnabled. + * @member {boolean} outboundClicksEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; + + /** + * EnhancedMeasurementSettings siteSearchEnabled. + * @member {boolean} siteSearchEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; + + /** + * EnhancedMeasurementSettings videoEngagementEnabled. + * @member {boolean} videoEngagementEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; + + /** + * EnhancedMeasurementSettings fileDownloadsEnabled. + * @member {boolean} fileDownloadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageLoadsEnabled. + * @member {boolean} pageLoadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageChangesEnabled. + * @member {boolean} pageChangesEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @instance */ - UserLink.prototype.name = ""; + EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; /** - * UserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.UserLink + * EnhancedMeasurementSettings searchQueryParameter. + * @member {string} searchQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @instance */ - UserLink.prototype.emailAddress = ""; + EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; /** - * UserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.UserLink + * EnhancedMeasurementSettings uriQueryParameter. + * @member {string} uriQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @instance */ - UserLink.prototype.directRoles = $util.emptyArray; + EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; /** - * Creates a new UserLink instance using the specified properties. + * Creates a new EnhancedMeasurementSettings instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance */ - UserLink.create = function create(properties) { - return new UserLink(properties); + EnhancedMeasurementSettings.create = function create(properties) { + return new EnhancedMeasurementSettings(properties); }; /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encode = function encode(message, writer) { + EnhancedMeasurementSettings.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); + if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); + if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); + if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); + if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); + if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); + if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); + if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); + if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); + if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); + if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); return writer; }; /** - * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encodeDelimited = function encodeDelimited(message, writer) { + EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decode = function decode(reader, length) { + EnhancedMeasurementSettings.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.analytics.admin.v1alpha.UserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16888,12 +17894,37 @@ message.name = reader.string(); break; case 2: - message.emailAddress = reader.string(); + message.streamEnabled = reader.bool(); break; case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); + message.pageViewsEnabled = reader.bool(); + break; + case 4: + message.scrollsEnabled = reader.bool(); + break; + case 5: + message.outboundClicksEnabled = reader.bool(); + break; + case 7: + message.siteSearchEnabled = reader.bool(); + break; + case 9: + message.videoEngagementEnabled = reader.bool(); + break; + case 10: + message.fileDownloadsEnabled = reader.bool(); + break; + case 12: + message.pageLoadsEnabled = reader.bool(); + break; + case 13: + message.pageChangesEnabled = reader.bool(); + break; + case 16: + message.searchQueryParameter = reader.string(); + break; + case 17: + message.uriQueryParameter = reader.string(); break; default: reader.skipType(tag & 7); @@ -16904,142 +17935,199 @@ }; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decodeDelimited = function decodeDelimited(reader) { + EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserLink message. + * Verifies an EnhancedMeasurementSettings message. * @function verify - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserLink.verify = function verify(message) { + EnhancedMeasurementSettings.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.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; - } + if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + if (typeof message.streamEnabled !== "boolean") + return "streamEnabled: boolean expected"; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + if (typeof message.pageViewsEnabled !== "boolean") + return "pageViewsEnabled: boolean expected"; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + if (typeof message.scrollsEnabled !== "boolean") + return "scrollsEnabled: boolean expected"; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + if (typeof message.outboundClicksEnabled !== "boolean") + return "outboundClicksEnabled: boolean expected"; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + if (typeof message.siteSearchEnabled !== "boolean") + return "siteSearchEnabled: boolean expected"; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + if (typeof message.videoEngagementEnabled !== "boolean") + return "videoEngagementEnabled: boolean expected"; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + if (typeof message.fileDownloadsEnabled !== "boolean") + return "fileDownloadsEnabled: boolean expected"; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + if (typeof message.pageLoadsEnabled !== "boolean") + return "pageLoadsEnabled: boolean expected"; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + if (typeof message.pageChangesEnabled !== "boolean") + return "pageChangesEnabled: boolean expected"; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + if (!$util.isString(message.searchQueryParameter)) + return "searchQueryParameter: string expected"; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + if (!$util.isString(message.uriQueryParameter)) + return "uriQueryParameter: string expected"; return null; }; /** - * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings */ - UserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + EnhancedMeasurementSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) return object; - var message = new $root.google.analytics.admin.v1alpha.UserLink(); + var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); if (object.name != null) message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); - } + if (object.streamEnabled != null) + message.streamEnabled = Boolean(object.streamEnabled); + if (object.pageViewsEnabled != null) + message.pageViewsEnabled = Boolean(object.pageViewsEnabled); + if (object.scrollsEnabled != null) + message.scrollsEnabled = Boolean(object.scrollsEnabled); + if (object.outboundClicksEnabled != null) + message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); + if (object.siteSearchEnabled != null) + message.siteSearchEnabled = Boolean(object.siteSearchEnabled); + if (object.videoEngagementEnabled != null) + message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); + if (object.fileDownloadsEnabled != null) + message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); + if (object.pageLoadsEnabled != null) + message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); + if (object.pageChangesEnabled != null) + message.pageChangesEnabled = Boolean(object.pageChangesEnabled); + if (object.searchQueryParameter != null) + message.searchQueryParameter = String(object.searchQueryParameter); + if (object.uriQueryParameter != null) + message.uriQueryParameter = String(object.uriQueryParameter); return message; }; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @static - * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserLink.toObject = function toObject(message, options) { + EnhancedMeasurementSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.directRoles = []; if (options.defaults) { object.name = ""; - object.emailAddress = ""; + object.streamEnabled = false; + object.pageViewsEnabled = false; + object.scrollsEnabled = false; + object.outboundClicksEnabled = false; + object.siteSearchEnabled = false; + object.videoEngagementEnabled = false; + object.fileDownloadsEnabled = false; + object.pageLoadsEnabled = false; + object.pageChangesEnabled = false; + object.searchQueryParameter = ""; + object.uriQueryParameter = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; - } + if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + object.streamEnabled = message.streamEnabled; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + object.pageViewsEnabled = message.pageViewsEnabled; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + object.scrollsEnabled = message.scrollsEnabled; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + object.outboundClicksEnabled = message.outboundClicksEnabled; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + object.siteSearchEnabled = message.siteSearchEnabled; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + object.videoEngagementEnabled = message.videoEngagementEnabled; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + object.fileDownloadsEnabled = message.fileDownloadsEnabled; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + object.pageLoadsEnabled = message.pageLoadsEnabled; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + object.pageChangesEnabled = message.pageChangesEnabled; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + object.searchQueryParameter = message.searchQueryParameter; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + object.uriQueryParameter = message.uriQueryParameter; return object; }; /** - * Converts this UserLink to JSON. + * Converts this EnhancedMeasurementSettings to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings * @instance * @returns {Object.} JSON object */ - UserLink.prototype.toJSON = function toJSON() { + EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UserLink; + return EnhancedMeasurementSettings; })(); - v1alpha.AuditUserLink = (function() { + v1alpha.FirebaseLink = (function() { /** - * Properties of an AuditUserLink. + * Properties of a FirebaseLink. * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLink - * @property {string|null} [name] AuditUserLink name - * @property {string|null} [emailAddress] AuditUserLink emailAddress - * @property {Array.|null} [directRoles] AuditUserLink directRoles - * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + * @interface IFirebaseLink + * @property {string|null} [name] FirebaseLink name + * @property {string|null} [project] FirebaseLink project + * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess */ /** - * Constructs a new AuditUserLink. + * Constructs a new FirebaseLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLink. - * @implements IAuditUserLink + * @classdesc Represents a FirebaseLink. + * @implements IFirebaseLink * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set */ - function AuditUserLink(properties) { - this.directRoles = []; - this.effectiveRoles = []; + function FirebaseLink(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17047,102 +18135,100 @@ } /** - * AuditUserLink name. + * FirebaseLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @instance */ - AuditUserLink.prototype.name = ""; + FirebaseLink.prototype.name = ""; /** - * AuditUserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * FirebaseLink project. + * @member {string} project + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @instance */ - AuditUserLink.prototype.emailAddress = ""; + FirebaseLink.prototype.project = ""; /** - * AuditUserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * FirebaseLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @instance */ - AuditUserLink.prototype.directRoles = $util.emptyArray; + FirebaseLink.prototype.createTime = null; /** - * AuditUserLink effectiveRoles. - * @member {Array.} effectiveRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * FirebaseLink maximumUserAccess. + * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @instance */ - AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + FirebaseLink.prototype.maximumUserAccess = 0; /** - * Creates a new AuditUserLink instance using the specified properties. + * Creates a new FirebaseLink instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance */ - AuditUserLink.create = function create(properties) { - return new AuditUserLink(properties); + FirebaseLink.create = function create(properties) { + return new FirebaseLink(properties); }; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encode = function encode(message, writer) { + FirebaseLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); - if (message.effectiveRoles != null && message.effectiveRoles.length) - for (var i = 0; i < message.effectiveRoles.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); return writer; }; /** - * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes a FirebaseLink message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decode = function decode(reader, length) { + FirebaseLink.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.analytics.admin.v1alpha.AuditUserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17150,17 +18236,13 @@ message.name = reader.string(); break; case 2: - message.emailAddress = reader.string(); + message.project = reader.string(); break; case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - if (!(message.effectiveRoles && message.effectiveRoles.length)) - message.effectiveRoles = []; - message.effectiveRoles.push(reader.string()); + message.maximumUserAccess = reader.int32(); break; default: reader.skipType(tag & 7); @@ -17171,169 +18253,166 @@ }; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + FirebaseLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuditUserLink message. + * Verifies a FirebaseLink message. * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserLink.verify = function verify(message) { + FirebaseLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; - } - if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { - if (!Array.isArray(message.effectiveRoles)) - return "effectiveRoles: array expected"; - for (var i = 0; i < message.effectiveRoles.length; ++i) - if (!$util.isString(message.effectiveRoles[i])) - return "effectiveRoles: string[] expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + switch (message.maximumUserAccess) { + default: + return "maximumUserAccess: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } return null; }; /** - * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink */ - AuditUserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + FirebaseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); if (object.name != null) message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.effectiveRoles) { - if (!Array.isArray(object.effectiveRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); - message.effectiveRoles = []; - for (var i = 0; i < object.effectiveRoles.length; ++i) - message.effectiveRoles[i] = String(object.effectiveRoles[i]); + switch (object.maximumUserAccess) { + case "MAXIMUM_USER_ACCESS_UNSPECIFIED": + case 0: + message.maximumUserAccess = 0; + break; + case "NO_ACCESS": + case 1: + message.maximumUserAccess = 1; + break; + case "READ_AND_ANALYZE": + case 2: + message.maximumUserAccess = 2; + break; + case "EDITOR_WITHOUT_LINK_MANAGEMENT": + case 3: + message.maximumUserAccess = 3; + break; + case "EDITOR_INCLUDING_LINK_MANAGEMENT": + case 4: + message.maximumUserAccess = 4; + break; } return message; }; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @static - * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserLink.toObject = function toObject(message, options) { + FirebaseLink.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.directRoles = []; - object.effectiveRoles = []; - } + var object = {}; if (options.defaults) { object.name = ""; - object.emailAddress = ""; + object.project = ""; + object.createTime = null; + object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; - } - if (message.effectiveRoles && message.effectiveRoles.length) { - object.effectiveRoles = []; - for (var j = 0; j < message.effectiveRoles.length; ++j) - object.effectiveRoles[j] = message.effectiveRoles[j]; - } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; return object; }; /** - * Converts this AuditUserLink to JSON. + * Converts this FirebaseLink to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.FirebaseLink * @instance * @returns {Object.} JSON object */ - AuditUserLink.prototype.toJSON = function toJSON() { + FirebaseLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuditUserLink; + return FirebaseLink; })(); - v1alpha.EnhancedMeasurementSettings = (function() { + v1alpha.GlobalSiteTag = (function() { /** - * Properties of an EnhancedMeasurementSettings. + * Properties of a GlobalSiteTag. * @memberof google.analytics.admin.v1alpha - * @interface IEnhancedMeasurementSettings - * @property {string|null} [name] EnhancedMeasurementSettings name - * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled - * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled - * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled - * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled - * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled - * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled - * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled - * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled - * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled - * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter - * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter + * @interface IGlobalSiteTag + * @property {string|null} [name] GlobalSiteTag name + * @property {string|null} [snippet] GlobalSiteTag snippet */ /** - * Constructs a new EnhancedMeasurementSettings. + * Constructs a new GlobalSiteTag. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an EnhancedMeasurementSettings. - * @implements IEnhancedMeasurementSettings + * @classdesc Represents a GlobalSiteTag. + * @implements IGlobalSiteTag * @constructor - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set */ - function EnhancedMeasurementSettings(properties) { + function GlobalSiteTag(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17341,218 +18420,88 @@ } /** - * EnhancedMeasurementSettings name. + * GlobalSiteTag name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.name = ""; - - /** - * EnhancedMeasurementSettings streamEnabled. - * @member {boolean} streamEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.streamEnabled = false; - - /** - * EnhancedMeasurementSettings pageViewsEnabled. - * @member {boolean} pageViewsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; - - /** - * EnhancedMeasurementSettings scrollsEnabled. - * @member {boolean} scrollsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.scrollsEnabled = false; - - /** - * EnhancedMeasurementSettings outboundClicksEnabled. - * @member {boolean} outboundClicksEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; - - /** - * EnhancedMeasurementSettings siteSearchEnabled. - * @member {boolean} siteSearchEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; - - /** - * EnhancedMeasurementSettings videoEngagementEnabled. - * @member {boolean} videoEngagementEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; - - /** - * EnhancedMeasurementSettings fileDownloadsEnabled. - * @member {boolean} fileDownloadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; - - /** - * EnhancedMeasurementSettings pageLoadsEnabled. - * @member {boolean} pageLoadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; - - /** - * EnhancedMeasurementSettings pageChangesEnabled. - * @member {boolean} pageChangesEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; - - /** - * EnhancedMeasurementSettings searchQueryParameter. - * @member {string} searchQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @instance */ - EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; + GlobalSiteTag.prototype.name = ""; /** - * EnhancedMeasurementSettings uriQueryParameter. - * @member {string} uriQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * GlobalSiteTag snippet. + * @member {string} snippet + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @instance */ - EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; + GlobalSiteTag.prototype.snippet = ""; /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * Creates a new GlobalSiteTag instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance */ - EnhancedMeasurementSettings.create = function create(properties) { - return new EnhancedMeasurementSettings(properties); + GlobalSiteTag.create = function create(properties) { + return new GlobalSiteTag(properties); }; /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encode = function encode(message, writer) { + GlobalSiteTag.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); - if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); - if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); - if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); - if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); - if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); - if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); - if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); - if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); - if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); - if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); + if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); return writer; }; /** - * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * Decodes a GlobalSiteTag message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnhancedMeasurementSettings.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.streamEnabled = reader.bool(); - break; - case 3: - message.pageViewsEnabled = reader.bool(); - break; - case 4: - message.scrollsEnabled = reader.bool(); - break; - case 5: - message.outboundClicksEnabled = reader.bool(); - break; - case 7: - message.siteSearchEnabled = reader.bool(); - break; - case 9: - message.videoEngagementEnabled = reader.bool(); - break; - case 10: - message.fileDownloadsEnabled = reader.bool(); - break; - case 12: - message.pageLoadsEnabled = reader.bool(); - break; - case 13: - message.pageChangesEnabled = reader.bool(); - break; - case 16: - message.searchQueryParameter = reader.string(); + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.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.analytics.admin.v1alpha.GlobalSiteTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); break; - case 17: - message.uriQueryParameter = reader.string(); + case 2: + message.snippet = reader.string(); break; default: reader.skipType(tag & 7); @@ -17563,199 +18512,122 @@ }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnhancedMeasurementSettings message. + * Verifies a GlobalSiteTag message. * @function verify - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnhancedMeasurementSettings.verify = function verify(message) { + GlobalSiteTag.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - if (typeof message.streamEnabled !== "boolean") - return "streamEnabled: boolean expected"; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - if (typeof message.pageViewsEnabled !== "boolean") - return "pageViewsEnabled: boolean expected"; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - if (typeof message.scrollsEnabled !== "boolean") - return "scrollsEnabled: boolean expected"; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - if (typeof message.outboundClicksEnabled !== "boolean") - return "outboundClicksEnabled: boolean expected"; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - if (typeof message.siteSearchEnabled !== "boolean") - return "siteSearchEnabled: boolean expected"; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - if (typeof message.videoEngagementEnabled !== "boolean") - return "videoEngagementEnabled: boolean expected"; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - if (typeof message.fileDownloadsEnabled !== "boolean") - return "fileDownloadsEnabled: boolean expected"; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - if (typeof message.pageLoadsEnabled !== "boolean") - return "pageLoadsEnabled: boolean expected"; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - if (typeof message.pageChangesEnabled !== "boolean") - return "pageChangesEnabled: boolean expected"; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - if (!$util.isString(message.searchQueryParameter)) - return "searchQueryParameter: string expected"; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - if (!$util.isString(message.uriQueryParameter)) - return "uriQueryParameter: string expected"; + if (message.snippet != null && message.hasOwnProperty("snippet")) + if (!$util.isString(message.snippet)) + return "snippet: string expected"; return null; }; /** - * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag */ - EnhancedMeasurementSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + GlobalSiteTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) return object; - var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); if (object.name != null) message.name = String(object.name); - if (object.streamEnabled != null) - message.streamEnabled = Boolean(object.streamEnabled); - if (object.pageViewsEnabled != null) - message.pageViewsEnabled = Boolean(object.pageViewsEnabled); - if (object.scrollsEnabled != null) - message.scrollsEnabled = Boolean(object.scrollsEnabled); - if (object.outboundClicksEnabled != null) - message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); - if (object.siteSearchEnabled != null) - message.siteSearchEnabled = Boolean(object.siteSearchEnabled); - if (object.videoEngagementEnabled != null) - message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); - if (object.fileDownloadsEnabled != null) - message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); - if (object.pageLoadsEnabled != null) - message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); - if (object.pageChangesEnabled != null) - message.pageChangesEnabled = Boolean(object.pageChangesEnabled); - if (object.searchQueryParameter != null) - message.searchQueryParameter = String(object.searchQueryParameter); - if (object.uriQueryParameter != null) - message.uriQueryParameter = String(object.uriQueryParameter); + if (object.snippet != null) + message.snippet = String(object.snippet); return message; }; /** - * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @static - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnhancedMeasurementSettings.toObject = function toObject(message, options) { + GlobalSiteTag.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.streamEnabled = false; - object.pageViewsEnabled = false; - object.scrollsEnabled = false; - object.outboundClicksEnabled = false; - object.siteSearchEnabled = false; - object.videoEngagementEnabled = false; - object.fileDownloadsEnabled = false; - object.pageLoadsEnabled = false; - object.pageChangesEnabled = false; - object.searchQueryParameter = ""; - object.uriQueryParameter = ""; + object.snippet = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - object.streamEnabled = message.streamEnabled; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - object.pageViewsEnabled = message.pageViewsEnabled; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - object.scrollsEnabled = message.scrollsEnabled; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - object.outboundClicksEnabled = message.outboundClicksEnabled; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - object.siteSearchEnabled = message.siteSearchEnabled; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - object.videoEngagementEnabled = message.videoEngagementEnabled; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - object.fileDownloadsEnabled = message.fileDownloadsEnabled; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - object.pageLoadsEnabled = message.pageLoadsEnabled; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - object.pageChangesEnabled = message.pageChangesEnabled; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - object.searchQueryParameter = message.searchQueryParameter; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - object.uriQueryParameter = message.uriQueryParameter; + if (message.snippet != null && message.hasOwnProperty("snippet")) + object.snippet = message.snippet; return object; }; /** - * Converts this EnhancedMeasurementSettings to JSON. + * Converts this GlobalSiteTag to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag * @instance * @returns {Object.} JSON object */ - EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + GlobalSiteTag.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnhancedMeasurementSettings; + return GlobalSiteTag; })(); - v1alpha.FirebaseLink = (function() { + v1alpha.GoogleAdsLink = (function() { /** - * Properties of a FirebaseLink. + * Properties of a GoogleAdsLink. * @memberof google.analytics.admin.v1alpha - * @interface IFirebaseLink - * @property {string|null} [name] FirebaseLink name - * @property {string|null} [project] FirebaseLink project - * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime - * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess + * @interface IGoogleAdsLink + * @property {string|null} [name] GoogleAdsLink name + * @property {string|null} [customerId] GoogleAdsLink customerId + * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled + * @property {string|null} [emailAddress] GoogleAdsLink emailAddress + * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime */ /** - * Constructs a new FirebaseLink. + * Constructs a new GoogleAdsLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a FirebaseLink. - * @implements IFirebaseLink + * @classdesc Represents a GoogleAdsLink. + * @implements IGoogleAdsLink * @constructor - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set */ - function FirebaseLink(properties) { + function GoogleAdsLink(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17763,114 +18635,153 @@ } /** - * FirebaseLink name. + * GoogleAdsLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.name = ""; + GoogleAdsLink.prototype.name = ""; /** - * FirebaseLink project. - * @member {string} project - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * GoogleAdsLink customerId. + * @member {string} customerId + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.project = ""; + GoogleAdsLink.prototype.customerId = ""; /** - * FirebaseLink createTime. + * GoogleAdsLink canManageClients. + * @member {boolean} canManageClients + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.canManageClients = false; + + /** + * GoogleAdsLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + + /** + * GoogleAdsLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.emailAddress = ""; + + /** + * GoogleAdsLink createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.createTime = null; + GoogleAdsLink.prototype.createTime = null; /** - * FirebaseLink maximumUserAccess. - * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * GoogleAdsLink updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance */ - FirebaseLink.prototype.maximumUserAccess = 0; + GoogleAdsLink.prototype.updateTime = null; /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new GoogleAdsLink instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance */ - FirebaseLink.create = function create(properties) { - return new FirebaseLink(properties); + GoogleAdsLink.create = function create(properties) { + return new GoogleAdsLink(properties); }; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encode = function encode(message, writer) { + GoogleAdsLink.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.project != null && Object.hasOwnProperty.call(message, "project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.customerId != null && Object.hasOwnProperty.call(message, "customerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); + if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes a GoogleAdsLink message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decode = function decode(reader, length) { + GoogleAdsLink.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.analytics.admin.v1alpha.FirebaseLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.project = reader.string(); - break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.customerId = reader.string(); break; case 4: - message.maximumUserAccess = reader.int32(); + message.canManageClients = reader.bool(); + break; + case 5: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 6: + message.emailAddress = reader.string(); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17881,166 +18792,176 @@ }; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FirebaseLink message. + * Verifies a GoogleAdsLink message. * @function verify - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FirebaseLink.verify = function verify(message) { + GoogleAdsLink.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.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; + if (message.customerId != null && message.hasOwnProperty("customerId")) + if (!$util.isString(message.customerId)) + return "customerId: string expected"; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + if (typeof message.canManageClients !== "boolean") + return "canManageClients: boolean expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) return "createTime." + error; } - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - switch (message.maximumUserAccess) { - default: - return "maximumUserAccess: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink */ - FirebaseLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + GoogleAdsLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) return object; - var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); if (object.name != null) message.name = String(object.name); - if (object.project != null) - message.project = String(object.project); + if (object.customerId != null) + message.customerId = String(object.customerId); + if (object.canManageClients != null) + message.canManageClients = Boolean(object.canManageClients); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - switch (object.maximumUserAccess) { - case "MAXIMUM_USER_ACCESS_UNSPECIFIED": - case 0: - message.maximumUserAccess = 0; - break; - case "NO_ACCESS": - case 1: - message.maximumUserAccess = 1; - break; - case "READ_AND_ANALYZE": - case 2: - message.maximumUserAccess = 2; - break; - case "EDITOR_WITHOUT_LINK_MANAGEMENT": - case 3: - message.maximumUserAccess = 3; - break; - case "EDITOR_INCLUDING_LINK_MANAGEMENT": - case 4: - message.maximumUserAccess = 4; - break; + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } return message; }; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @static - * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FirebaseLink.toObject = function toObject(message, options) { + GoogleAdsLink.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.project = ""; + object.customerId = ""; + object.canManageClients = false; + object.adsPersonalizationEnabled = null; + object.emailAddress = ""; object.createTime = null; - object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; + object.updateTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.project != null && message.hasOwnProperty("project")) - object.project = message.project; + if (message.customerId != null && message.hasOwnProperty("customerId")) + object.customerId = message.customerId; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + object.canManageClients = message.canManageClients; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this FirebaseLink to JSON. + * Converts this GoogleAdsLink to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink * @instance * @returns {Object.} JSON object */ - FirebaseLink.prototype.toJSON = function toJSON() { + GoogleAdsLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FirebaseLink; + return GoogleAdsLink; })(); - v1alpha.GlobalSiteTag = (function() { + v1alpha.DataSharingSettings = (function() { /** - * Properties of a GlobalSiteTag. + * Properties of a DataSharingSettings. * @memberof google.analytics.admin.v1alpha - * @interface IGlobalSiteTag - * @property {string|null} [name] GlobalSiteTag name - * @property {string|null} [snippet] GlobalSiteTag snippet + * @interface IDataSharingSettings + * @property {string|null} [name] DataSharingSettings name + * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled + * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled + * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled + * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled + * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled */ /** - * Constructs a new GlobalSiteTag. + * Constructs a new DataSharingSettings. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GlobalSiteTag. - * @implements IGlobalSiteTag + * @classdesc Represents a DataSharingSettings. + * @implements IDataSharingSettings * @constructor - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set */ - function GlobalSiteTag(properties) { + function DataSharingSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18048,80 +18969,120 @@ } /** - * GlobalSiteTag name. + * DataSharingSettings name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @instance */ - GlobalSiteTag.prototype.name = ""; + DataSharingSettings.prototype.name = ""; /** - * GlobalSiteTag snippet. - * @member {string} snippet - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * DataSharingSettings sharingWithGoogleSupportEnabled. + * @member {boolean} sharingWithGoogleSupportEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. + * @member {boolean} sharingWithGoogleAssignedSalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAnySalesEnabled. + * @member {boolean} sharingWithGoogleAnySalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleProductsEnabled. + * @member {boolean} sharingWithGoogleProductsEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + + /** + * DataSharingSettings sharingWithOthersEnabled. + * @member {boolean} sharingWithOthersEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @instance */ - GlobalSiteTag.prototype.snippet = ""; + DataSharingSettings.prototype.sharingWithOthersEnabled = false; /** - * Creates a new GlobalSiteTag instance using the specified properties. + * Creates a new DataSharingSettings instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance */ - GlobalSiteTag.create = function create(properties) { - return new GlobalSiteTag(properties); + DataSharingSettings.create = function create(properties) { + return new DataSharingSettings(properties); }; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encode = function encode(message, writer) { + DataSharingSettings.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.snippet != null && Object.hasOwnProperty.call(message, "snippet")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); + if (message.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); + if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); + if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); + if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); + if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); return writer; }; /** - * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes a DataSharingSettings message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decode = function decode(reader, length) { + DataSharingSettings.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.analytics.admin.v1alpha.GlobalSiteTag(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18129,7 +19090,19 @@ message.name = reader.string(); break; case 2: - message.snippet = reader.string(); + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + case 3: + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + case 4: + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + case 5: + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + case 6: + message.sharingWithOthersEnabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -18140,122 +19113,152 @@ }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GlobalSiteTag message. + * Verifies a DataSharingSettings message. * @function verify - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalSiteTag.verify = function verify(message) { + DataSharingSettings.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.snippet != null && message.hasOwnProperty("snippet")) - if (!$util.isString(message.snippet)) - return "snippet: string expected"; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") + return "sharingWithGoogleSupportEnabled: boolean expected"; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") + return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") + return "sharingWithGoogleAnySalesEnabled: boolean expected"; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") + return "sharingWithGoogleProductsEnabled: boolean expected"; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + if (typeof message.sharingWithOthersEnabled !== "boolean") + return "sharingWithOthersEnabled: boolean expected"; return null; }; /** - * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings */ - GlobalSiteTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + DataSharingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) return object; - var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); if (object.name != null) message.name = String(object.name); - if (object.snippet != null) - message.snippet = String(object.snippet); + if (object.sharingWithGoogleSupportEnabled != null) + message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); + if (object.sharingWithGoogleAssignedSalesEnabled != null) + message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); + if (object.sharingWithGoogleAnySalesEnabled != null) + message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); + if (object.sharingWithGoogleProductsEnabled != null) + message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); + if (object.sharingWithOthersEnabled != null) + message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); return message; }; /** - * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @static - * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalSiteTag.toObject = function toObject(message, options) { + DataSharingSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.snippet = ""; + object.sharingWithGoogleSupportEnabled = false; + object.sharingWithGoogleAssignedSalesEnabled = false; + object.sharingWithGoogleAnySalesEnabled = false; + object.sharingWithGoogleProductsEnabled = false; + object.sharingWithOthersEnabled = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.snippet != null && message.hasOwnProperty("snippet")) - object.snippet = message.snippet; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; return object; }; /** - * Converts this GlobalSiteTag to JSON. + * Converts this DataSharingSettings to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.DataSharingSettings * @instance * @returns {Object.} JSON object */ - GlobalSiteTag.prototype.toJSON = function toJSON() { + DataSharingSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GlobalSiteTag; + return DataSharingSettings; })(); - v1alpha.GoogleAdsLink = (function() { + v1alpha.AccountSummary = (function() { /** - * Properties of a GoogleAdsLink. + * Properties of an AccountSummary. * @memberof google.analytics.admin.v1alpha - * @interface IGoogleAdsLink - * @property {string|null} [name] GoogleAdsLink name - * @property {string|null} [customerId] GoogleAdsLink customerId - * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients - * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled - * @property {string|null} [emailAddress] GoogleAdsLink emailAddress - * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + * @interface IAccountSummary + * @property {string|null} [name] AccountSummary name + * @property {string|null} [account] AccountSummary account + * @property {string|null} [displayName] AccountSummary displayName + * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries */ /** - * Constructs a new GoogleAdsLink. + * Constructs a new AccountSummary. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GoogleAdsLink. - * @implements IGoogleAdsLink + * @classdesc Represents an AccountSummary. + * @implements IAccountSummary * @constructor - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set */ - function GoogleAdsLink(properties) { + function AccountSummary(properties) { + this.propertySummaries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18263,153 +19266,117 @@ } /** - * GoogleAdsLink name. + * AccountSummary name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.name = ""; - - /** - * GoogleAdsLink customerId. - * @member {string} customerId - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.customerId = ""; - - /** - * GoogleAdsLink canManageClients. - * @member {boolean} canManageClients - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.canManageClients = false; - - /** - * GoogleAdsLink adsPersonalizationEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + AccountSummary.prototype.name = ""; /** - * GoogleAdsLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AccountSummary account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.emailAddress = ""; + AccountSummary.prototype.account = ""; /** - * GoogleAdsLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AccountSummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.createTime = null; + AccountSummary.prototype.displayName = ""; /** - * GoogleAdsLink updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AccountSummary propertySummaries. + * @member {Array.} propertySummaries + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance */ - GoogleAdsLink.prototype.updateTime = null; + AccountSummary.prototype.propertySummaries = $util.emptyArray; /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new AccountSummary instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance */ - GoogleAdsLink.create = function create(properties) { - return new GoogleAdsLink(properties); + AccountSummary.create = function create(properties) { + return new AccountSummary(properties); }; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encode = function encode(message, writer) { + AccountSummary.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.customerId != null && Object.hasOwnProperty.call(message, "customerId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); - if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.account); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.propertySummaries != null && message.propertySummaries.length) + for (var i = 0; i < message.propertySummaries.length; ++i) + $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes an AccountSummary message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decode = function decode(reader, length) { + AccountSummary.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.analytics.admin.v1alpha.GoogleAdsLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccountSummary(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.account = reader.string(); + break; case 3: - message.customerId = reader.string(); + message.displayName = reader.string(); break; case 4: - message.canManageClients = reader.bool(); - break; - case 5: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 6: - message.emailAddress = reader.string(); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -18420,317 +19387,240 @@ }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + AccountSummary.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GoogleAdsLink message. + * Verifies an AccountSummary message. * @function verify - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GoogleAdsLink.verify = function verify(message) { + AccountSummary.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.customerId != null && message.hasOwnProperty("customerId")) - if (!$util.isString(message.customerId)) - return "customerId: string expected"; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - if (typeof message.canManageClients !== "boolean") - return "canManageClients: boolean expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); - if (error) - return "adsPersonalizationEnabled." + error; - } - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { + if (!Array.isArray(message.propertySummaries)) + return "propertySummaries: array expected"; + for (var i = 0; i < message.propertySummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); + if (error) + return "propertySummaries." + error; + } } return null; }; /** - * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary */ - GoogleAdsLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + AccountSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) return object; - var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); if (object.name != null) message.name = String(object.name); - if (object.customerId != null) - message.customerId = String(object.customerId); - if (object.canManageClients != null) - message.canManageClients = Boolean(object.canManageClients); - if (object.adsPersonalizationEnabled != null) { - if (typeof object.adsPersonalizationEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); - } - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.account != null) + message.account = String(object.account); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.propertySummaries) { + if (!Array.isArray(object.propertySummaries)) + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); + message.propertySummaries = []; + for (var i = 0; i < object.propertySummaries.length; ++i) { + if (typeof object.propertySummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); + message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); + } } return message; }; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @static - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoogleAdsLink.toObject = function toObject(message, options) { + AccountSummary.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.propertySummaries = []; if (options.defaults) { object.name = ""; - object.customerId = ""; - object.canManageClients = false; - object.adsPersonalizationEnabled = null; - object.emailAddress = ""; - object.createTime = null; - object.updateTime = null; + object.account = ""; + object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.customerId != null && message.hasOwnProperty("customerId")) - object.customerId = message.customerId; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - object.canManageClients = message.canManageClients; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertySummaries && message.propertySummaries.length) { + object.propertySummaries = []; + for (var j = 0; j < message.propertySummaries.length; ++j) + object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); + } return object; }; /** - * Converts this GoogleAdsLink to JSON. + * Converts this AccountSummary to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AccountSummary * @instance * @returns {Object.} JSON object */ - GoogleAdsLink.prototype.toJSON = function toJSON() { + AccountSummary.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GoogleAdsLink; + return AccountSummary; })(); - v1alpha.DataSharingSettings = (function() { - - /** - * Properties of a DataSharingSettings. - * @memberof google.analytics.admin.v1alpha - * @interface IDataSharingSettings - * @property {string|null} [name] DataSharingSettings name - * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled - * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled - * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled - * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled - * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled - */ - - /** - * Constructs a new DataSharingSettings. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DataSharingSettings. - * @implements IDataSharingSettings - * @constructor - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - */ - function DataSharingSettings(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]]; - } - - /** - * DataSharingSettings name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.name = ""; - - /** - * DataSharingSettings sharingWithGoogleSupportEnabled. - * @member {boolean} sharingWithGoogleSupportEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + v1alpha.PropertySummary = (function() { /** - * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. - * @member {boolean} sharingWithGoogleAssignedSalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance + * Properties of a PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @interface IPropertySummary + * @property {string|null} [property] PropertySummary property + * @property {string|null} [displayName] PropertySummary displayName */ - DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; /** - * DataSharingSettings sharingWithGoogleAnySalesEnabled. - * @member {boolean} sharingWithGoogleAnySalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance + * Constructs a new PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a PropertySummary. + * @implements IPropertySummary + * @constructor + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set */ - DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + function PropertySummary(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]]; + } /** - * DataSharingSettings sharingWithGoogleProductsEnabled. - * @member {boolean} sharingWithGoogleProductsEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * PropertySummary property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.PropertySummary * @instance */ - DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + PropertySummary.prototype.property = ""; /** - * DataSharingSettings sharingWithOthersEnabled. - * @member {boolean} sharingWithOthersEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * PropertySummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.PropertySummary * @instance */ - DataSharingSettings.prototype.sharingWithOthersEnabled = false; + PropertySummary.prototype.displayName = ""; /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a new PropertySummary instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance */ - DataSharingSettings.create = function create(properties) { - return new DataSharingSettings(properties); + PropertySummary.create = function create(properties) { + return new PropertySummary(properties); }; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encode = function encode(message, writer) { + PropertySummary.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); - if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); - if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); - if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); - if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); return writer; }; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes a PropertySummary message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decode = function decode(reader, length) { + PropertySummary.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.analytics.admin.v1alpha.DataSharingSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.PropertySummary(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.property = reader.string(); break; case 2: - message.sharingWithGoogleSupportEnabled = reader.bool(); - break; - case 3: - message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); - break; - case 4: - message.sharingWithGoogleAnySalesEnabled = reader.bool(); - break; - case 5: - message.sharingWithGoogleProductsEnabled = reader.bool(); - break; - case 6: - message.sharingWithOthersEnabled = reader.bool(); + message.displayName = reader.string(); break; default: reader.skipType(tag & 7); @@ -18741,152 +19631,122 @@ }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + PropertySummary.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataSharingSettings message. + * Verifies a PropertySummary message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataSharingSettings.verify = function verify(message) { + PropertySummary.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") - return "sharingWithGoogleSupportEnabled: boolean expected"; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") - return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") - return "sharingWithGoogleAnySalesEnabled: boolean expected"; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") - return "sharingWithGoogleProductsEnabled: boolean expected"; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - if (typeof message.sharingWithOthersEnabled !== "boolean") - return "sharingWithOthersEnabled: boolean expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; return null; }; /** - * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary */ - DataSharingSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + PropertySummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) return object; - var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.sharingWithGoogleSupportEnabled != null) - message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); - if (object.sharingWithGoogleAssignedSalesEnabled != null) - message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); - if (object.sharingWithGoogleAnySalesEnabled != null) - message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); - if (object.sharingWithGoogleProductsEnabled != null) - message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); - if (object.sharingWithOthersEnabled != null) - message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); + if (object.property != null) + message.property = String(object.property); + if (object.displayName != null) + message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @static - * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataSharingSettings.toObject = function toObject(message, options) { + PropertySummary.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.sharingWithGoogleSupportEnabled = false; - object.sharingWithGoogleAssignedSalesEnabled = false; - object.sharingWithGoogleAnySalesEnabled = false; - object.sharingWithGoogleProductsEnabled = false; - object.sharingWithOthersEnabled = false; + object.property = ""; + object.displayName = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this DataSharingSettings to JSON. + * Converts this PropertySummary to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.PropertySummary * @instance * @returns {Object.} JSON object */ - DataSharingSettings.prototype.toJSON = function toJSON() { + PropertySummary.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataSharingSettings; + return PropertySummary; })(); - v1alpha.AccountSummary = (function() { + v1alpha.ChangeHistoryEvent = (function() { /** - * Properties of an AccountSummary. + * Properties of a ChangeHistoryEvent. * @memberof google.analytics.admin.v1alpha - * @interface IAccountSummary - * @property {string|null} [name] AccountSummary name - * @property {string|null} [account] AccountSummary account - * @property {string|null} [displayName] AccountSummary displayName - * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + * @interface IChangeHistoryEvent + * @property {string|null} [id] ChangeHistoryEvent id + * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime + * @property {google.analytics.admin.v1alpha.ActorType|null} [actorType] ChangeHistoryEvent actorType + * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail + * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered + * @property {Array.|null} [changes] ChangeHistoryEvent changes */ /** - * Constructs a new AccountSummary. + * Constructs a new ChangeHistoryEvent. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AccountSummary. - * @implements IAccountSummary + * @classdesc Represents a ChangeHistoryEvent. + * @implements IChangeHistoryEvent * @constructor - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set */ - function AccountSummary(properties) { - this.propertySummaries = []; + function ChangeHistoryEvent(properties) { + this.changes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18894,117 +19754,143 @@ } /** - * AccountSummary name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.AccountSummary + * ChangeHistoryEvent id. + * @member {string} id + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @instance */ - AccountSummary.prototype.name = ""; + ChangeHistoryEvent.prototype.id = ""; /** - * AccountSummary account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.AccountSummary + * ChangeHistoryEvent changeTime. + * @member {google.protobuf.ITimestamp|null|undefined} changeTime + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @instance */ - AccountSummary.prototype.account = ""; + ChangeHistoryEvent.prototype.changeTime = null; /** - * AccountSummary displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AccountSummary + * ChangeHistoryEvent actorType. + * @member {google.analytics.admin.v1alpha.ActorType} actorType + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @instance */ - AccountSummary.prototype.displayName = ""; + ChangeHistoryEvent.prototype.actorType = 0; /** - * AccountSummary propertySummaries. - * @member {Array.} propertySummaries - * @memberof google.analytics.admin.v1alpha.AccountSummary + * ChangeHistoryEvent userActorEmail. + * @member {string} userActorEmail + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @instance */ - AccountSummary.prototype.propertySummaries = $util.emptyArray; + ChangeHistoryEvent.prototype.userActorEmail = ""; /** - * Creates a new AccountSummary instance using the specified properties. + * ChangeHistoryEvent changesFiltered. + * @member {boolean} changesFiltered + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changesFiltered = false; + + /** + * ChangeHistoryEvent changes. + * @member {Array.} changes + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changes = $util.emptyArray; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent instance */ - AccountSummary.create = function create(properties) { - return new AccountSummary(properties); + ChangeHistoryEvent.create = function create(properties) { + return new ChangeHistoryEvent(properties); }; /** - * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummary.encode = function encode(message, writer) { + ChangeHistoryEvent.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 2 =*/18).string(message.account); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.propertySummaries != null && message.propertySummaries.length) - for (var i = 0; i < message.propertySummaries.length; ++i) - $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) + $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); + if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); + if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); + if (message.changes != null && message.changes.length) + for (var i = 0; i < message.changes.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AccountSummary message from the specified reader or buffer. + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decode = function decode(reader, length) { + ChangeHistoryEvent.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.analytics.admin.v1alpha.AccountSummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.id = reader.string(); break; case 2: - message.account = reader.string(); + message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 3: - message.displayName = reader.string(); + message.actorType = reader.int32(); break; case 4: - if (!(message.propertySummaries && message.propertySummaries.length)) - message.propertySummaries = []; - message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); + message.userActorEmail = reader.string(); + break; + case 5: + message.changesFiltered = reader.bool(); + break; + case 6: + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -19015,151 +19901,197 @@ }; /** - * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decodeDelimited = function decodeDelimited(reader) { + ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AccountSummary message. + * Verifies a ChangeHistoryEvent message. * @function verify - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountSummary.verify = function verify(message) { + ChangeHistoryEvent.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.isString(message.account)) - return "account: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { - if (!Array.isArray(message.propertySummaries)) - return "propertySummaries: array expected"; - for (var i = 0; i < message.propertySummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.changeTime); + if (error) + return "changeTime." + error; + } + if (message.actorType != null && message.hasOwnProperty("actorType")) + switch (message.actorType) { + default: + return "actorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + if (!$util.isString(message.userActorEmail)) + return "userActorEmail: string expected"; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + if (typeof message.changesFiltered !== "boolean") + return "changesFiltered: boolean expected"; + if (message.changes != null && message.hasOwnProperty("changes")) { + if (!Array.isArray(message.changes)) + return "changes: array expected"; + for (var i = 0; i < message.changes.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.verify(message.changes[i]); if (error) - return "propertySummaries." + error; + return "changes." + error; } } return null; }; /** - * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent */ - AccountSummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) + ChangeHistoryEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryEvent) return object; - var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); - if (object.name != null) - message.name = String(object.name); - if (object.account != null) - message.account = String(object.account); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.propertySummaries) { - if (!Array.isArray(object.propertySummaries)) - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); - message.propertySummaries = []; - for (var i = 0; i < object.propertySummaries.length; ++i) { - if (typeof object.propertySummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); - message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + if (object.id != null) + message.id = String(object.id); + if (object.changeTime != null) { + if (typeof object.changeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changeTime: object expected"); + message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); + } + switch (object.actorType) { + case "ACTOR_TYPE_UNSPECIFIED": + case 0: + message.actorType = 0; + break; + case "USER": + case 1: + message.actorType = 1; + break; + case "SYSTEM": + case 2: + message.actorType = 2; + break; + case "SUPPORT": + case 3: + message.actorType = 3; + break; + } + if (object.userActorEmail != null) + message.userActorEmail = String(object.userActorEmail); + if (object.changesFiltered != null) + message.changesFiltered = Boolean(object.changesFiltered); + if (object.changes) { + if (!Array.isArray(object.changes)) + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: array expected"); + message.changes = []; + for (var i = 0; i < object.changes.length; ++i) { + if (typeof object.changes[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: object expected"); + message.changes[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.fromObject(object.changes[i]); } } return message; }; /** - * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @static - * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary + * @param {google.analytics.admin.v1alpha.ChangeHistoryEvent} message ChangeHistoryEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountSummary.toObject = function toObject(message, options) { + ChangeHistoryEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.propertySummaries = []; + object.changes = []; if (options.defaults) { - object.name = ""; - object.account = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.propertySummaries && message.propertySummaries.length) { - object.propertySummaries = []; - for (var j = 0; j < message.propertySummaries.length; ++j) - object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); + object.id = ""; + object.changeTime = null; + object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; + object.userActorEmail = ""; + object.changesFiltered = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) + object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); + if (message.actorType != null && message.hasOwnProperty("actorType")) + object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + object.userActorEmail = message.userActorEmail; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + object.changesFiltered = message.changesFiltered; + if (message.changes && message.changes.length) { + object.changes = []; + for (var j = 0; j < message.changes.length; ++j) + object.changes[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.toObject(message.changes[j], options); } return object; }; /** - * Converts this AccountSummary to JSON. + * Converts this ChangeHistoryEvent to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent * @instance * @returns {Object.} JSON object */ - AccountSummary.prototype.toJSON = function toJSON() { + ChangeHistoryEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AccountSummary; + return ChangeHistoryEvent; })(); - v1alpha.PropertySummary = (function() { + v1alpha.ChangeHistoryChange = (function() { /** - * Properties of a PropertySummary. + * Properties of a ChangeHistoryChange. * @memberof google.analytics.admin.v1alpha - * @interface IPropertySummary - * @property {string|null} [property] PropertySummary property - * @property {string|null} [displayName] PropertySummary displayName + * @interface IChangeHistoryChange + * @property {string|null} [resource] ChangeHistoryChange resource + * @property {google.analytics.admin.v1alpha.ActionType|null} [action] ChangeHistoryChange action + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange */ /** - * Constructs a new PropertySummary. + * Constructs a new ChangeHistoryChange. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a PropertySummary. - * @implements IPropertySummary + * @classdesc Represents a ChangeHistoryChange. + * @implements IChangeHistoryChange * @constructor - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set */ - function PropertySummary(properties) { + function ChangeHistoryChange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19167,88 +20099,114 @@ } /** - * PropertySummary property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.PropertySummary + * ChangeHistoryChange resource. + * @member {string} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @instance */ - PropertySummary.prototype.property = ""; + ChangeHistoryChange.prototype.resource = ""; /** - * PropertySummary displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.PropertySummary + * ChangeHistoryChange action. + * @member {google.analytics.admin.v1alpha.ActionType} action + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @instance */ - PropertySummary.prototype.displayName = ""; + ChangeHistoryChange.prototype.action = 0; /** - * Creates a new PropertySummary instance using the specified properties. + * ChangeHistoryChange resourceBeforeChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceBeforeChange = null; + + /** + * ChangeHistoryChange resourceAfterChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceAfterChange = null; + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange instance */ - PropertySummary.create = function create(properties) { - return new PropertySummary(properties); + ChangeHistoryChange.create = function create(properties) { + return new ChangeHistoryChange(properties); }; /** - * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encode = function encode(message, writer) { + ChangeHistoryChange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); + if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PropertySummary message from the specified reader or buffer. + * Decodes a ChangeHistoryChange message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decode = function decode(reader, length) { + ChangeHistoryChange.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.analytics.admin.v1alpha.PropertySummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.property = reader.string(); + message.resource = reader.string(); break; case 2: - message.displayName = reader.string(); + message.action = reader.int32(); + break; + case 3: + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + case 4: + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -19259,96 +20217,560 @@ }; /** - * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decodeDelimited = function decodeDelimited(reader) { + ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PropertySummary message. + * Verifies a ChangeHistoryChange message. * @function verify - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PropertySummary.verify = function verify(message) { + ChangeHistoryChange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); + if (error) + return "resourceBeforeChange." + error; + } + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); + if (error) + return "resourceAfterChange." + error; + } return null; }; /** - * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange */ - PropertySummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) + ChangeHistoryChange.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange) return object; - var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); - if (object.property != null) - message.property = String(object.property); - if (object.displayName != null) - message.displayName = String(object.displayName); + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); + if (object.resource != null) + message.resource = String(object.resource); + switch (object.action) { + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action = 0; + break; + case "CREATED": + case 1: + message.action = 1; + break; + case "UPDATED": + case 2: + message.action = 2; + break; + case "DELETED": + case 3: + message.action = 3; + break; + } + if (object.resourceBeforeChange != null) { + if (typeof object.resourceBeforeChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceBeforeChange: object expected"); + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); + } + if (object.resourceAfterChange != null) { + if (typeof object.resourceAfterChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceAfterChange: object expected"); + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + } return message; }; /** - * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @static - * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange} message ChangeHistoryChange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PropertySummary.toObject = function toObject(message, options) { + ChangeHistoryChange.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.property = ""; - object.displayName = ""; - } - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + object.resource = ""; + object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; + object.resourceBeforeChange = null; + object.resourceAfterChange = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) + object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) + object.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); return object; }; /** - * Converts this PropertySummary to JSON. + * Converts this ChangeHistoryChange to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange * @instance * @returns {Object.} JSON object */ - PropertySummary.prototype.toJSON = function toJSON() { + ChangeHistoryChange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PropertySummary; + ChangeHistoryChange.ChangeHistoryResource = (function() { + + /** + * Properties of a ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @interface IChangeHistoryResource + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property + * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] ChangeHistoryResource webDataStream + * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] ChangeHistoryResource androidAppDataStream + * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] ChangeHistoryResource iosAppDataStream + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink + */ + + /** + * Constructs a new ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @classdesc Represents a ChangeHistoryResource. + * @implements IChangeHistoryResource + * @constructor + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + */ + function ChangeHistoryResource(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]]; + } + + /** + * ChangeHistoryResource account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.account = null; + + /** + * ChangeHistoryResource property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.property = null; + + /** + * ChangeHistoryResource webDataStream. + * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.webDataStream = null; + + /** + * ChangeHistoryResource androidAppDataStream. + * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.androidAppDataStream = null; + + /** + * ChangeHistoryResource iosAppDataStream. + * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.iosAppDataStream = null; + + /** + * ChangeHistoryResource firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.firebaseLink = null; + + /** + * ChangeHistoryResource googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.googleAdsLink = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ChangeHistoryResource resource. + * @member {"account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|undefined} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + Object.defineProperty(ChangeHistoryResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["account", "property", "webDataStream", "androidAppDataStream", "iosAppDataStream", "firebaseLink", "googleAdsLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance + */ + ChangeHistoryResource.create = function create(properties) { + return new ChangeHistoryResource(properties); + }; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + case 2: + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + case 3: + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + break; + case 4: + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); + break; + case 5: + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); + break; + case 6: + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + break; + case 7: + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryResource message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.account != null && message.hasOwnProperty("account")) { + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); + if (error) + return "account." + error; + } + } + if (message.property != null && message.hasOwnProperty("property")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + error; + } + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); + if (error) + return "webDataStream." + error; + } + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); + if (error) + return "androidAppDataStream." + error; + } + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); + if (error) + return "iosAppDataStream." + error; + } + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + */ + ChangeHistoryResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + if (object.webDataStream != null) { + if (typeof object.webDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.webDataStream: object expected"); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + } + if (object.androidAppDataStream != null) { + if (typeof object.androidAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.androidAppDataStream: object expected"); + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); + } + if (object.iosAppDataStream != null) { + if (typeof object.iosAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.iosAppDataStream: object expected"); + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); + } + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.account != null && message.hasOwnProperty("account")) { + object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); + if (options.oneofs) + object.resource = "account"; + } + if (message.property != null && message.hasOwnProperty("property")) { + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (options.oneofs) + object.resource = "property"; + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); + if (options.oneofs) + object.resource = "webDataStream"; + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); + if (options.oneofs) + object.resource = "androidAppDataStream"; + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); + if (options.oneofs) + object.resource = "iosAppDataStream"; + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (options.oneofs) + object.resource = "firebaseLink"; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (options.oneofs) + object.resource = "googleAdsLink"; + } + return object; + }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeHistoryResource; + })(); + + return ChangeHistoryChange; })(); return v1alpha; diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index c1a94fe6469..6106af298a1 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -174,7 +174,7 @@ }, "DeleteProperty": { "requestType": "DeletePropertyRequest", - "responseType": "google.protobuf.Empty", + "responseType": "Property", "options": { "(google.api.http).delete": "/v1alpha/{name=properties/*}", "(google.api.method_signature)": "name" @@ -584,26 +584,6 @@ } ] }, - "CreateIosAppDataStream": { - "requestType": "CreateIosAppDataStreamRequest", - "responseType": "IosAppDataStream", - "options": { - "(google.api.http).post": "/v1alpha/{parent=properties/*}/iosAppDataStreams", - "(google.api.http).body": "ios_app_data_stream", - "(google.api.method_signature)": "parent,ios_app_data_stream" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1alpha/{parent=properties/*}/iosAppDataStreams", - "body": "ios_app_data_stream" - } - }, - { - "(google.api.method_signature)": "parent,ios_app_data_stream" - } - ] - }, "ListIosAppDataStreams": { "requestType": "ListIosAppDataStreamsRequest", "responseType": "ListIosAppDataStreamsResponse", @@ -678,26 +658,6 @@ } ] }, - "CreateAndroidAppDataStream": { - "requestType": "CreateAndroidAppDataStreamRequest", - "responseType": "AndroidAppDataStream", - "options": { - "(google.api.http).post": "/v1alpha/{parent=properties/*}/androidAppDataStreams", - "(google.api.http).body": "android_app_data_stream", - "(google.api.method_signature)": "parent,android_app_data_stream" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1alpha/{parent=properties/*}/androidAppDataStreams", - "body": "android_app_data_stream" - } - }, - { - "(google.api.method_signature)": "parent,android_app_data_stream" - } - ] - }, "ListAndroidAppDataStreams": { "requestType": "ListAndroidAppDataStreamsRequest", "responseType": "ListAndroidAppDataStreamsResponse", @@ -941,6 +901,22 @@ "(google.api.method_signature)": "name" } ] + }, + "SearchChangeHistoryEvents": { + "requestType": "SearchChangeHistoryEventsRequest", + "responseType": "SearchChangeHistoryEventsResponse", + "options": { + "(google.api.http).post": "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents", + "body": "*" + } + } + ] } } }, @@ -1502,25 +1478,6 @@ } } }, - "CreateIosAppDataStreamRequest": { - "fields": { - "iosAppDataStream": { - "type": "IosAppDataStream", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parent": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/IosAppDataStream" - } - } - } - }, "ListIosAppDataStreamsRequest": { "fields": { "parent": { @@ -1596,25 +1553,6 @@ } } }, - "CreateAndroidAppDataStreamRequest": { - "fields": { - "androidAppDataStream": { - "type": "AndroidAppDataStream", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parent": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - } - } - }, "ListAndroidAppDataStreamsRequest": { "fields": { "parent": { @@ -1888,6 +1826,91 @@ } } }, + "SearchChangeHistoryEventsRequest": { + "fields": { + "account": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + }, + "property": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + }, + "resourceType": { + "rule": "repeated", + "type": "ChangeHistoryResourceType", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "action": { + "rule": "repeated", + "type": "ActionType", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "actorEmail": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "earliestChangeTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "latestChangeTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SearchChangeHistoryEventsResponse": { + "fields": { + "changeHistoryEvents": { + "rule": "repeated", + "type": "ChangeHistoryEvent", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "MaximumUserAccess": { "values": { "MAXIMUM_USER_ACCESS_UNSPECIFIED": 0, @@ -1928,6 +1951,34 @@ "SHOPPING": 26 } }, + "ActorType": { + "values": { + "ACTOR_TYPE_UNSPECIFIED": 0, + "USER": 1, + "SYSTEM": 2, + "SUPPORT": 3 + } + }, + "ActionType": { + "values": { + "ACTION_TYPE_UNSPECIFIED": 0, + "CREATED": 1, + "UPDATED": 2, + "DELETED": 3 + } + }, + "ChangeHistoryResourceType": { + "values": { + "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": 0, + "ACCOUNT": 1, + "PROPERTY": 2, + "WEB_DATA_STREAM": 3, + "ANDROID_APP_DATA_STREAM": 4, + "IOS_APP_DATA_STREAM": 5, + "FIREBASE_LINK": 6, + "GOOGLE_ADS_LINK": 7 + } + }, "Account": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/Account", @@ -2022,15 +2073,25 @@ }, "timeZone": { "type": "string", - "id": 7 + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "currencyCode": { "type": "string", "id": 8 }, - "deleted": { - "type": "bool", - "id": 9, + "deleteTime": { + "type": "google.protobuf.Timestamp", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "expireTime": { + "type": "google.protobuf.Timestamp", + "id": 12, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } @@ -2485,6 +2546,102 @@ "id": 2 } } + }, + "ChangeHistoryEvent": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "changeTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + }, + "actorType": { + "type": "ActorType", + "id": 3 + }, + "userActorEmail": { + "type": "string", + "id": 4 + }, + "changesFiltered": { + "type": "bool", + "id": 5 + }, + "changes": { + "rule": "repeated", + "type": "ChangeHistoryChange", + "id": 6 + } + } + }, + "ChangeHistoryChange": { + "fields": { + "resource": { + "type": "string", + "id": 1 + }, + "action": { + "type": "ActionType", + "id": 2 + }, + "resourceBeforeChange": { + "type": "ChangeHistoryResource", + "id": 3 + }, + "resourceAfterChange": { + "type": "ChangeHistoryResource", + "id": 4 + } + }, + "nested": { + "ChangeHistoryResource": { + "oneofs": { + "resource": { + "oneof": [ + "account", + "property", + "webDataStream", + "androidAppDataStream", + "iosAppDataStream", + "firebaseLink", + "googleAdsLink" + ] + } + }, + "fields": { + "account": { + "type": "Account", + "id": 1 + }, + "property": { + "type": "Property", + "id": 2 + }, + "webDataStream": { + "type": "WebDataStream", + "id": 3 + }, + "androidAppDataStream": { + "type": "AndroidAppDataStream", + "id": 4 + }, + "iosAppDataStream": { + "type": "IosAppDataStream", + "id": 5 + }, + "firebaseLink": { + "type": "FirebaseLink", + "id": 6 + }, + "googleAdsLink": { + "type": "GoogleAdsLink", + "id": 7 + } + } + } + } } } } diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 887bf71d963..bc2b5ab5c0d 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -262,6 +262,11 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'googleAdsLinks' ), + searchChangeHistoryEvents: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'changeHistoryEvents' + ), }; // Put together the default options sent with requests. @@ -340,12 +345,10 @@ export class AnalyticsAdminServiceClient { 'getIosAppDataStream', 'deleteIosAppDataStream', 'updateIosAppDataStream', - 'createIosAppDataStream', 'listIosAppDataStreams', 'getAndroidAppDataStream', 'deleteAndroidAppDataStream', 'updateAndroidAppDataStream', - 'createAndroidAppDataStream', 'listAndroidAppDataStreams', 'getEnhancedMeasurementSettings', 'updateEnhancedMeasurementSettings', @@ -359,6 +362,7 @@ export class AnalyticsAdminServiceClient { 'deleteGoogleAdsLink', 'listGoogleAdsLinks', 'getDataSharingSettings', + 'searchChangeHistoryEvents', ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( @@ -1023,7 +1027,7 @@ export class AnalyticsAdminServiceClient { options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IProperty, protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | undefined, {} | undefined ] @@ -1032,7 +1036,7 @@ export class AnalyticsAdminServiceClient { request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | null | undefined, @@ -1042,7 +1046,7 @@ export class AnalyticsAdminServiceClient { deleteProperty( request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, callback: Callback< - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | null | undefined, @@ -1071,7 +1075,7 @@ export class AnalyticsAdminServiceClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -1083,14 +1087,14 @@ export class AnalyticsAdminServiceClient { optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IProperty, | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | null | undefined, @@ -1098,7 +1102,7 @@ export class AnalyticsAdminServiceClient { > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IProperty, protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | undefined, {} | undefined ] @@ -2736,119 +2740,6 @@ export class AnalyticsAdminServiceClient { callback ); } - createIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - ( - | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest - | undefined - ), - {} | undefined - ] - >; - createIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - createIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - /** - * Creates an iOS app stream with the specified location and attributes. - * - * Note that an iOS app stream must be linked to a Firebase app to receive - * traffic. - * - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.IosAppDataStream} request.iosAppDataStream - * Required. The iOS app data stream to create. - * @param {string} request.parent - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createIosAppDataStream(request); - */ - createIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - ( - | protos.google.analytics.admin.v1alpha.ICreateIosAppDataStreamRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - this.initialize(); - return this.innerApiCalls.createIosAppDataStream( - request, - options, - callback - ); - } getAndroidAppDataStream( request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, options?: CallOptions @@ -3164,119 +3055,6 @@ export class AnalyticsAdminServiceClient { callback ); } - createAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - ( - | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest - | undefined - ), - {} | undefined - ] - >; - createAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - createAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - /** - * Creates an Android app stream with the specified location and attributes. - * - * Note that an Android app stream must be linked to a Firebase app to receive - * traffic. - * - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} request.androidAppDataStream - * Required. The android app stream to create. - * @param {string} request.parent - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createAndroidAppDataStream(request); - */ - createAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - ( - | protos.google.analytics.admin.v1alpha.ICreateAndroidAppDataStreamRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - this.initialize(); - return this.innerApiCalls.createAndroidAppDataStream( - request, - options, - callback - ); - } getEnhancedMeasurementSettings( request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, options?: CallOptions @@ -6460,6 +6238,268 @@ export class AnalyticsAdminServiceClient { callSettings ) as AsyncIterable; } + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + ] + >; + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + > + ): void; + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + > + ): void; + /** + * Searches through all changes to an account or its children given the + * specified set of filters. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `searchChangeHistoryEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + account: request.account || '', + }); + this.initialize(); + return this.innerApiCalls.searchChangeHistoryEvents( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `searchChangeHistoryEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + searchChangeHistoryEventsStream( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + account: request.account || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.searchChangeHistoryEvents.createStream( + this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.searchChangeHistoryEventsAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + searchChangeHistoryEventsAsync( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + account: request.account || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( + this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } // -------------------- // -- Path templates -- // -------------------- diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index 68a02375082..3e7f5bbf1ed 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -178,11 +178,6 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, - "CreateIosAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, "ListIosAppDataStreams": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -203,11 +198,6 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, - "CreateAndroidAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, "ListAndroidAppDataStreams": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -272,6 +262,11 @@ "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "SearchChangeHistoryEvents": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" } } } diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index c2037d93bf9..da575524487 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -125,11 +125,6 @@ "updateIosAppDataStream" ] }, - "CreateIosAppDataStream": { - "methods": [ - "createIosAppDataStream" - ] - }, "GetAndroidAppDataStream": { "methods": [ "getAndroidAppDataStream" @@ -145,11 +140,6 @@ "updateAndroidAppDataStream" ] }, - "CreateAndroidAppDataStream": { - "methods": [ - "createAndroidAppDataStream" - ] - }, "GetEnhancedMeasurementSettings": { "methods": [ "getEnhancedMeasurementSettings" @@ -269,6 +259,13 @@ "listGoogleAdsLinksStream", "listGoogleAdsLinksAsync" ] + }, + "SearchChangeHistoryEvents": { + "methods": [ + "searchChangeHistoryEvents", + "searchChangeHistoryEventsStream", + "searchChangeHistoryEventsAsync" + ] } } }, @@ -390,11 +387,6 @@ "updateIosAppDataStream" ] }, - "CreateIosAppDataStream": { - "methods": [ - "createIosAppDataStream" - ] - }, "GetAndroidAppDataStream": { "methods": [ "getAndroidAppDataStream" @@ -410,11 +402,6 @@ "updateAndroidAppDataStream" ] }, - "CreateAndroidAppDataStream": { - "methods": [ - "createAndroidAppDataStream" - ] - }, "GetEnhancedMeasurementSettings": { "methods": [ "getEnhancedMeasurementSettings" @@ -534,6 +521,13 @@ "listGoogleAdsLinksStream", "listGoogleAdsLinksAsync" ] + }, + "SearchChangeHistoryEvents": { + "methods": [ + "searchChangeHistoryEvents", + "searchChangeHistoryEventsStream", + "searchChangeHistoryEventsAsync" + ] } } } diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index e4a1cb06d7e..1c4fcea4664 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -899,7 +899,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.Property() ); client.innerApiCalls.deleteProperty = stubSimpleCall(expectedResponse); const [response] = await client.deleteProperty(request); @@ -932,7 +932,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.Property() ); client.innerApiCalls.deleteProperty = stubSimpleCallWithCallback( expectedResponse @@ -942,7 +942,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.IProperty | null ) => { if (err) { reject(err); @@ -2919,129 +2919,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('createIosAppDataStream', () => { - it('invokes createIosAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() - ); - client.innerApiCalls.createIosAppDataStream = stubSimpleCall( - expectedResponse - ); - const [response] = await client.createIosAppDataStream(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createIosAppDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes createIosAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() - ); - client.innerApiCalls.createIosAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); - const promise = new Promise((resolve, reject) => { - client.createIosAppDataStream( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IIosAppDataStream | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createIosAppDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes createIosAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.createIosAppDataStream = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.createIosAppDataStream(request), - expectedError - ); - assert( - (client.innerApiCalls.createIosAppDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('getAndroidAppDataStream', () => { it('invokes getAndroidAppDataStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( @@ -3414,129 +3291,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('createAndroidAppDataStream', () => { - it('invokes createAndroidAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() - ); - client.innerApiCalls.createAndroidAppDataStream = stubSimpleCall( - expectedResponse - ); - const [response] = await client.createAndroidAppDataStream(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createAndroidAppDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes createAndroidAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() - ); - client.innerApiCalls.createAndroidAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); - const promise = new Promise((resolve, reject) => { - client.createAndroidAppDataStream( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createAndroidAppDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes createAndroidAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.createAndroidAppDataStream = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.createAndroidAppDataStream(request), - expectedError - ); - assert( - (client.innerApiCalls.createAndroidAppDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('getEnhancedMeasurementSettings', () => { it('invokes getEnhancedMeasurementSettings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( @@ -7897,6 +7651,347 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + ]; + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + expectedResponse + ); + const [response] = await client.searchChangeHistoryEvents(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes searchChangeHistoryEvents without error using callback', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + ]; + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.searchChangeHistoryEvents( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes searchChangeHistoryEvents with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.searchChangeHistoryEvents(request), + expectedError + ); + assert( + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes searchChangeHistoryEventsStream without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + ]; + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.searchChangeHistoryEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + ); + assert.strictEqual( + (client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes searchChangeHistoryEventsStream with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedError = new Error('expected'); + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.searchChangeHistoryEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + ); + assert.strictEqual( + (client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with searchChangeHistoryEvents without error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + ), + ]; + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; + const iterable = client.searchChangeHistoryEventsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with searchChangeHistoryEvents with error', async () => { + const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedError = new Error('expected'); + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.searchChangeHistoryEventsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + describe('Path templates', () => { describe('account', () => { const fakePath = '/rendered/path/account'; From e6268be419898b114ff25c9a3c488e63ff6679ea Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 6 May 2021 17:48:43 -0700 Subject: [PATCH 068/142] fix(deps): require google-gax v2.12.0 (#110) --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 37b3850971f..d10856f6af6 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "google-auth-library": "^7.0.0", - "google-gax": "^2.9.2", + "google-gax": "^2.12.0", "server-destroy": "^1.0.1" }, "devDependencies": { From 5cc7ec9515452a5272b4e8224acd1bcba7ca1ab3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 May 2021 17:00:46 +0000 Subject: [PATCH 069/142] chore: new owl bot post processor docker image (#111) gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f --- .../google-analytics-admin/protos/protos.d.ts | 10 +- .../google-analytics-admin/protos/protos.js | 20 +- .../v1alpha/analytics_admin_service_client.ts | 562 ++-- .../gapic_analytics_admin_service_v1alpha.ts | 2625 ++++++++--------- 4 files changed, 1444 insertions(+), 1773 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 0c2cc49ca69..87571d16763 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -9441,19 +9441,19 @@ export namespace google { public selector: string; /** HttpRule get. */ - public get: string; + public get?: (string|null); /** HttpRule put. */ - public put: string; + public put?: (string|null); /** HttpRule post. */ - public post: string; + public post?: (string|null); /** HttpRule delete. */ - public delete: string; + public delete?: (string|null); /** HttpRule patch. */ - public patch: string; + public patch?: (string|null); /** HttpRule custom. */ public custom?: (google.api.ICustomHttpPattern|null); diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index d4628bc179d..b05e41c8e88 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -21725,43 +21725,43 @@ /** * HttpRule get. - * @member {string} get + * @member {string|null|undefined} get * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.get = ""; + HttpRule.prototype.get = null; /** * HttpRule put. - * @member {string} put + * @member {string|null|undefined} put * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.put = ""; + HttpRule.prototype.put = null; /** * HttpRule post. - * @member {string} post + * @member {string|null|undefined} post * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.post = ""; + HttpRule.prototype.post = null; /** * HttpRule delete. - * @member {string} delete + * @member {string|null|undefined} delete * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype["delete"] = ""; + HttpRule.prototype["delete"] = null; /** * HttpRule patch. - * @member {string} patch + * @member {string|null|undefined} patch * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.patch = ""; + HttpRule.prototype.patch = null; /** * HttpRule custom. diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index bc2b5ab5c0d..6cfe934c527 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -366,13 +366,14 @@ export class AnalyticsAdminServiceClient { ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( - stub => (...args: Array<{}>) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err: Error | null | undefined) => () => { throw err; } @@ -535,11 +536,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getAccount(request, options, callback); } @@ -639,11 +639,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteAccount(request, options, callback); } @@ -736,11 +735,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'account.name': request.account!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'account.name': request.account!.name || '', + }); this.initialize(); return this.innerApiCalls.updateAccount(request, options, callback); } @@ -928,11 +926,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getProperty(request, options, callback); } @@ -1118,11 +1115,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteProperty(request, options, callback); } @@ -1216,11 +1212,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'property.name': request.property!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'property.name': request.property!.name || '', + }); this.initialize(); return this.innerApiCalls.updateProperty(request, options, callback); } @@ -1308,11 +1303,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getUserLink(request, options, callback); } @@ -1413,11 +1407,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.batchGetUserLinks(request, options, callback); } @@ -1514,11 +1507,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.createUserLink(request, options, callback); } @@ -1625,11 +1617,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.batchCreateUserLinks(request, options, callback); } @@ -1717,11 +1708,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'user_link.name': request.userLink!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'user_link.name': request.userLink!.name || '', + }); this.initialize(); return this.innerApiCalls.updateUserLink(request, options, callback); } @@ -1821,11 +1811,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.batchUpdateUserLinks(request, options, callback); } @@ -1913,11 +1902,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteUserLink(request, options, callback); } @@ -2017,11 +2005,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.batchDeleteUserLinks(request, options, callback); } @@ -2117,11 +2104,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getWebDataStream(request, options, callback); } @@ -2217,11 +2203,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteWebDataStream(request, options, callback); } @@ -2320,11 +2305,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'web_data_stream.name': request.webDataStream!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'web_data_stream.name': request.webDataStream!.name || '', + }); this.initialize(); return this.innerApiCalls.updateWebDataStream(request, options, callback); } @@ -2421,11 +2405,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.createWebDataStream(request, options, callback); } @@ -2521,11 +2504,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getIosAppDataStream(request, options, callback); } @@ -2621,11 +2603,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteIosAppDataStream( request, @@ -2728,11 +2709,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'ios_app_data_stream.name': request.iosAppDataStream!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'ios_app_data_stream.name': request.iosAppDataStream!.name || '', + }); this.initialize(); return this.innerApiCalls.updateIosAppDataStream( request, @@ -2832,11 +2812,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getAndroidAppDataStream( request, @@ -2936,11 +2915,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteAndroidAppDataStream( request, @@ -3043,11 +3021,11 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'android_app_data_stream.name': request.androidAppDataStream!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'android_app_data_stream.name': + request.androidAppDataStream!.name || '', + }); this.initialize(); return this.innerApiCalls.updateAndroidAppDataStream( request, @@ -3150,11 +3128,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getEnhancedMeasurementSettings( request, @@ -3259,12 +3236,11 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'enhanced_measurement_settings.name': - request.enhancedMeasurementSettings!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'enhanced_measurement_settings.name': + request.enhancedMeasurementSettings!.name || '', + }); this.initialize(); return this.innerApiCalls.updateEnhancedMeasurementSettings( request, @@ -3367,11 +3343,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.createFirebaseLink(request, options, callback); } @@ -3469,11 +3444,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'firebase_link.name': request.firebaseLink!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'firebase_link.name': request.firebaseLink!.name || '', + }); this.initialize(); return this.innerApiCalls.updateFirebaseLink(request, options, callback); } @@ -3568,11 +3542,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteFirebaseLink(request, options, callback); } @@ -3670,11 +3643,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getGlobalSiteTag(request, options, callback); } @@ -3770,11 +3742,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.createGoogleAdsLink(request, options, callback); } @@ -3872,11 +3843,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - 'google_ads_link.name': request.googleAdsLink!.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'google_ads_link.name': request.googleAdsLink!.name || '', + }); this.initialize(); return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); } @@ -3970,11 +3940,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); } @@ -4071,11 +4040,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); return this.innerApiCalls.getDataSharingSettings( request, @@ -4281,7 +4249,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listAccounts.asyncIterate( this.innerApiCalls['listAccounts'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -4466,7 +4434,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listAccountSummaries.asyncIterate( this.innerApiCalls['listAccountSummaries'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -4710,7 +4678,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listProperties.asyncIterate( this.innerApiCalls['listProperties'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -4811,11 +4779,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listUserLinks(request, options, callback); } @@ -4856,11 +4823,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listUserLinks.createStream( @@ -4912,17 +4878,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listUserLinks.asyncIterate( this.innerApiCalls['listUserLinks'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -5031,11 +4996,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.auditUserLinks(request, options, callback); } @@ -5076,11 +5040,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.auditUserLinks.createStream( @@ -5132,17 +5095,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.auditUserLinks.asyncIterate( this.innerApiCalls['auditUserLinks'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -5247,11 +5209,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listWebDataStreams(request, options, callback); } @@ -5293,11 +5254,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listWebDataStreams.createStream( @@ -5350,17 +5310,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listWebDataStreams.asyncIterate( this.innerApiCalls['listWebDataStreams'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -5465,11 +5424,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listIosAppDataStreams(request, options, callback); } @@ -5511,11 +5469,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listIosAppDataStreams.createStream( @@ -5568,17 +5525,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listIosAppDataStreams.asyncIterate( this.innerApiCalls['listIosAppDataStreams'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -5685,11 +5641,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listAndroidAppDataStreams( request, @@ -5737,11 +5692,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listAndroidAppDataStreams.createStream( @@ -5796,17 +5750,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listAndroidAppDataStreams.asyncIterate( this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -5909,11 +5862,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listFirebaseLinks(request, options, callback); } @@ -5955,11 +5907,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listFirebaseLinks.createStream( @@ -6012,17 +5963,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listFirebaseLinks.asyncIterate( this.innerApiCalls['listFirebaseLinks'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -6123,11 +6073,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); } @@ -6168,11 +6117,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listGoogleAdsLinks.createStream( @@ -6224,17 +6172,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listGoogleAdsLinks.asyncIterate( this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } @@ -6351,11 +6298,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - account: request.account || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + account: request.account || '', + }); this.initialize(); return this.innerApiCalls.searchChangeHistoryEvents( request, @@ -6415,11 +6361,10 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - account: request.account || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + account: request.account || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.searchChangeHistoryEvents.createStream( @@ -6486,17 +6431,16 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - account: request.account || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + account: request.account || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 1c4fcea4664..a64f2ef8338 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -28,10 +28,9 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; function generateSampleMessage(instance: T) { - const filledObject = (instance.constructor as typeof protobuf.Message).toObject( - instance as protobuf.Message, - {defaults: true} - ); + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); return (instance.constructor as typeof protobuf.Message).fromObject( filledObject ) as T; @@ -136,49 +135,46 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('should create a client with no option', () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient(); + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ fallback: true, - } - ); + }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); assert.strictEqual(client.analyticsAdminServiceStub, undefined); await client.initialize(); assert(client.analyticsAdminServiceStub); }); it('has close method', () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.close(); }); it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); const result = await client.getProjectId(); assert.strictEqual(result, fakeProjectId); @@ -187,12 +183,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.auth.getProjectId = sinon .stub() .callsArgWith(0, null, fakeProjectId); @@ -211,12 +206,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getAccount', () => { it('invokes getAccount without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() @@ -244,12 +238,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getAccount without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() @@ -266,9 +259,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() ); - client.innerApiCalls.getAccount = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getAccount = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getAccount( request, @@ -294,12 +286,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getAccount with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() @@ -329,12 +320,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteAccount', () => { it('invokes deleteAccount without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() @@ -362,12 +352,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteAccount without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() @@ -384,9 +373,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteAccount = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteAccount = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteAccount( request, @@ -412,12 +400,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteAccount with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() @@ -447,12 +434,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateAccount', () => { it('invokes updateAccount without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() @@ -481,12 +467,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateAccount without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() @@ -504,9 +489,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() ); - client.innerApiCalls.updateAccount = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateAccount = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateAccount( request, @@ -532,12 +516,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateAccount with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() @@ -568,12 +551,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('provisionAccountTicket', () => { it('invokes provisionAccountTicket without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() @@ -582,9 +564,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() ); - client.innerApiCalls.provisionAccountTicket = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.provisionAccountTicket = + stubSimpleCall(expectedResponse); const [response] = await client.provisionAccountTicket(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -595,12 +576,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes provisionAccountTicket without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() @@ -609,9 +589,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() ); - client.innerApiCalls.provisionAccountTicket = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.provisionAccountTicket = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.provisionAccountTicket( request, @@ -637,12 +616,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes provisionAccountTicket with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() @@ -667,12 +645,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getProperty', () => { it('invokes getProperty without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() @@ -700,12 +677,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getProperty without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() @@ -722,9 +698,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); - client.innerApiCalls.getProperty = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getProperty = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getProperty( request, @@ -750,12 +725,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getProperty with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() @@ -785,12 +759,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('createProperty', () => { it('invokes createProperty without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() @@ -810,12 +783,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createProperty without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() @@ -824,9 +796,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); - client.innerApiCalls.createProperty = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createProperty = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createProperty( request, @@ -852,12 +823,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createProperty with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() @@ -879,12 +849,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteProperty', () => { it('invokes deleteProperty without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() @@ -912,12 +881,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteProperty without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() @@ -934,9 +902,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); - client.innerApiCalls.deleteProperty = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteProperty = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteProperty( request, @@ -962,12 +929,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteProperty with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() @@ -997,12 +963,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateProperty', () => { it('invokes updateProperty without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() @@ -1031,12 +996,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateProperty without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() @@ -1054,9 +1018,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); - client.innerApiCalls.updateProperty = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateProperty = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateProperty( request, @@ -1082,12 +1045,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateProperty with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() @@ -1118,12 +1080,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getUserLink', () => { it('invokes getUserLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() @@ -1151,12 +1112,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getUserLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() @@ -1173,9 +1133,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); - client.innerApiCalls.getUserLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getUserLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getUserLink( request, @@ -1201,12 +1160,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getUserLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() @@ -1236,12 +1194,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('batchGetUserLinks', () => { it('invokes batchGetUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() @@ -1269,12 +1226,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchGetUserLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() @@ -1291,9 +1247,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksResponse() ); - client.innerApiCalls.batchGetUserLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.batchGetUserLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.batchGetUserLinks( request, @@ -1319,12 +1274,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchGetUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() @@ -1354,12 +1308,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('createUserLink', () => { it('invokes createUserLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() @@ -1387,12 +1340,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createUserLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() @@ -1409,9 +1361,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); - client.innerApiCalls.createUserLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createUserLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createUserLink( request, @@ -1437,12 +1388,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createUserLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() @@ -1472,12 +1422,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('batchCreateUserLinks', () => { it('invokes batchCreateUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() @@ -1494,9 +1443,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse() ); - client.innerApiCalls.batchCreateUserLinks = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.batchCreateUserLinks = + stubSimpleCall(expectedResponse); const [response] = await client.batchCreateUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -1507,12 +1455,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchCreateUserLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() @@ -1529,9 +1476,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse() ); - client.innerApiCalls.batchCreateUserLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.batchCreateUserLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.batchCreateUserLinks( request, @@ -1557,12 +1503,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchCreateUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() @@ -1592,12 +1537,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateUserLink', () => { it('invokes updateUserLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() @@ -1626,12 +1570,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateUserLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() @@ -1649,9 +1592,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); - client.innerApiCalls.updateUserLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateUserLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateUserLink( request, @@ -1677,12 +1619,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateUserLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() @@ -1713,12 +1654,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('batchUpdateUserLinks', () => { it('invokes batchUpdateUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() @@ -1735,9 +1675,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse() ); - client.innerApiCalls.batchUpdateUserLinks = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.batchUpdateUserLinks = + stubSimpleCall(expectedResponse); const [response] = await client.batchUpdateUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -1748,12 +1687,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchUpdateUserLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() @@ -1770,9 +1708,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse() ); - client.innerApiCalls.batchUpdateUserLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.batchUpdateUserLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.batchUpdateUserLinks( request, @@ -1798,12 +1735,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchUpdateUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() @@ -1833,12 +1769,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteUserLink', () => { it('invokes deleteUserLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() @@ -1866,12 +1801,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteUserLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() @@ -1888,9 +1822,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteUserLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteUserLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteUserLink( request, @@ -1916,12 +1849,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteUserLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() @@ -1951,12 +1883,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('batchDeleteUserLinks', () => { it('invokes batchDeleteUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() @@ -1973,9 +1904,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.batchDeleteUserLinks = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.batchDeleteUserLinks = + stubSimpleCall(expectedResponse); const [response] = await client.batchDeleteUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -1986,12 +1916,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchDeleteUserLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() @@ -2008,9 +1937,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.batchDeleteUserLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.batchDeleteUserLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.batchDeleteUserLinks( request, @@ -2036,12 +1964,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes batchDeleteUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() @@ -2071,12 +1998,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getWebDataStream', () => { it('invokes getWebDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() @@ -2104,12 +2030,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getWebDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() @@ -2126,9 +2051,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.WebDataStream() ); - client.innerApiCalls.getWebDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getWebDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getWebDataStream( request, @@ -2154,12 +2078,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getWebDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() @@ -2189,12 +2112,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteWebDataStream', () => { it('invokes deleteWebDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() @@ -2211,9 +2133,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteWebDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.deleteWebDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.deleteWebDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2224,12 +2145,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteWebDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() @@ -2246,9 +2166,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteWebDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteWebDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteWebDataStream( request, @@ -2274,12 +2193,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteWebDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() @@ -2309,12 +2227,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateWebDataStream', () => { it('invokes updateWebDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() @@ -2332,9 +2249,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.WebDataStream() ); - client.innerApiCalls.updateWebDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.updateWebDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.updateWebDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2345,12 +2261,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateWebDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() @@ -2368,9 +2283,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.WebDataStream() ); - client.innerApiCalls.updateWebDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateWebDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateWebDataStream( request, @@ -2396,12 +2310,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateWebDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() @@ -2432,12 +2345,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('createWebDataStream', () => { it('invokes createWebDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() @@ -2454,9 +2366,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.WebDataStream() ); - client.innerApiCalls.createWebDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.createWebDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.createWebDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2467,12 +2378,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createWebDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() @@ -2489,9 +2399,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.WebDataStream() ); - client.innerApiCalls.createWebDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createWebDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createWebDataStream( request, @@ -2517,12 +2426,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createWebDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() @@ -2552,12 +2460,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getIosAppDataStream', () => { it('invokes getIosAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() @@ -2574,9 +2481,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.IosAppDataStream() ); - client.innerApiCalls.getIosAppDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.getIosAppDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.getIosAppDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2587,12 +2493,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getIosAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() @@ -2609,9 +2514,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.IosAppDataStream() ); - client.innerApiCalls.getIosAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getIosAppDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getIosAppDataStream( request, @@ -2637,12 +2541,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getIosAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() @@ -2672,12 +2575,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteIosAppDataStream', () => { it('invokes deleteIosAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() @@ -2694,9 +2596,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteIosAppDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.deleteIosAppDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.deleteIosAppDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2707,12 +2608,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteIosAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() @@ -2729,9 +2629,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteIosAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteIosAppDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteIosAppDataStream( request, @@ -2757,12 +2656,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteIosAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() @@ -2795,12 +2693,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateIosAppDataStream', () => { it('invokes updateIosAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() @@ -2818,9 +2715,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.IosAppDataStream() ); - client.innerApiCalls.updateIosAppDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.updateIosAppDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.updateIosAppDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2831,12 +2727,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateIosAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() @@ -2854,9 +2749,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.IosAppDataStream() ); - client.innerApiCalls.updateIosAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateIosAppDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateIosAppDataStream( request, @@ -2882,12 +2776,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateIosAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() @@ -2921,12 +2814,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getAndroidAppDataStream', () => { it('invokes getAndroidAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() @@ -2943,9 +2835,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ); - client.innerApiCalls.getAndroidAppDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.getAndroidAppDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.getAndroidAppDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2956,12 +2847,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getAndroidAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() @@ -2978,9 +2868,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ); - client.innerApiCalls.getAndroidAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getAndroidAppDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getAndroidAppDataStream( request, @@ -3006,12 +2895,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getAndroidAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() @@ -3044,12 +2932,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteAndroidAppDataStream', () => { it('invokes deleteAndroidAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() @@ -3066,9 +2953,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteAndroidAppDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.deleteAndroidAppDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.deleteAndroidAppDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3079,12 +2965,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteAndroidAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() @@ -3101,9 +2986,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteAndroidAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteAndroidAppDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteAndroidAppDataStream( request, @@ -3129,12 +3013,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteAndroidAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() @@ -3167,12 +3050,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateAndroidAppDataStream', () => { it('invokes updateAndroidAppDataStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() @@ -3190,9 +3072,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ); - client.innerApiCalls.updateAndroidAppDataStream = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.updateAndroidAppDataStream = + stubSimpleCall(expectedResponse); const [response] = await client.updateAndroidAppDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3203,12 +3084,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateAndroidAppDataStream without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() @@ -3226,9 +3106,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ); - client.innerApiCalls.updateAndroidAppDataStream = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateAndroidAppDataStream = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateAndroidAppDataStream( request, @@ -3254,12 +3133,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateAndroidAppDataStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() @@ -3293,12 +3171,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getEnhancedMeasurementSettings', () => { it('invokes getEnhancedMeasurementSettings without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() @@ -3315,9 +3192,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() ); - client.innerApiCalls.getEnhancedMeasurementSettings = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.getEnhancedMeasurementSettings = + stubSimpleCall(expectedResponse); const [response] = await client.getEnhancedMeasurementSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3328,12 +3204,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getEnhancedMeasurementSettings without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() @@ -3350,9 +3225,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() ); - client.innerApiCalls.getEnhancedMeasurementSettings = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getEnhancedMeasurementSettings = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getEnhancedMeasurementSettings( request, @@ -3378,12 +3252,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getEnhancedMeasurementSettings with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() @@ -3416,12 +3289,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateEnhancedMeasurementSettings', () => { it('invokes updateEnhancedMeasurementSettings without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() @@ -3439,9 +3311,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() ); - client.innerApiCalls.updateEnhancedMeasurementSettings = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.updateEnhancedMeasurementSettings = + stubSimpleCall(expectedResponse); const [response] = await client.updateEnhancedMeasurementSettings( request ); @@ -3454,12 +3325,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateEnhancedMeasurementSettings without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() @@ -3477,9 +3347,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() ); - client.innerApiCalls.updateEnhancedMeasurementSettings = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateEnhancedMeasurementSettings = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateEnhancedMeasurementSettings( request, @@ -3505,12 +3374,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateEnhancedMeasurementSettings with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() @@ -3544,12 +3412,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('createFirebaseLink', () => { it('invokes createFirebaseLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() @@ -3566,9 +3433,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() ); - client.innerApiCalls.createFirebaseLink = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.createFirebaseLink = + stubSimpleCall(expectedResponse); const [response] = await client.createFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3579,12 +3445,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createFirebaseLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() @@ -3601,9 +3466,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() ); - client.innerApiCalls.createFirebaseLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createFirebaseLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createFirebaseLink( request, @@ -3629,12 +3493,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createFirebaseLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() @@ -3664,12 +3527,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateFirebaseLink', () => { it('invokes updateFirebaseLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() @@ -3687,9 +3549,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() ); - client.innerApiCalls.updateFirebaseLink = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.updateFirebaseLink = + stubSimpleCall(expectedResponse); const [response] = await client.updateFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3700,12 +3561,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateFirebaseLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() @@ -3723,9 +3583,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() ); - client.innerApiCalls.updateFirebaseLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateFirebaseLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateFirebaseLink( request, @@ -3751,12 +3610,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateFirebaseLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() @@ -3787,12 +3645,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteFirebaseLink', () => { it('invokes deleteFirebaseLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() @@ -3809,9 +3666,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.deleteFirebaseLink = + stubSimpleCall(expectedResponse); const [response] = await client.deleteFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3822,12 +3678,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteFirebaseLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() @@ -3844,9 +3699,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteFirebaseLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteFirebaseLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteFirebaseLink( request, @@ -3872,12 +3726,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteFirebaseLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() @@ -3907,12 +3760,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getGlobalSiteTag', () => { it('invokes getGlobalSiteTag without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() @@ -3940,12 +3792,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getGlobalSiteTag without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() @@ -3962,9 +3813,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GlobalSiteTag() ); - client.innerApiCalls.getGlobalSiteTag = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getGlobalSiteTag = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getGlobalSiteTag( request, @@ -3990,12 +3840,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getGlobalSiteTag with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() @@ -4025,12 +3874,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('createGoogleAdsLink', () => { it('invokes createGoogleAdsLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() @@ -4047,9 +3895,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.createGoogleAdsLink = + stubSimpleCall(expectedResponse); const [response] = await client.createGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -4060,12 +3907,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createGoogleAdsLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() @@ -4082,9 +3928,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.createGoogleAdsLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createGoogleAdsLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createGoogleAdsLink( request, @@ -4110,12 +3955,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes createGoogleAdsLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() @@ -4145,12 +3989,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('updateGoogleAdsLink', () => { it('invokes updateGoogleAdsLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() @@ -4168,9 +4011,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.updateGoogleAdsLink = + stubSimpleCall(expectedResponse); const [response] = await client.updateGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -4181,12 +4023,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateGoogleAdsLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() @@ -4204,9 +4045,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.updateGoogleAdsLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateGoogleAdsLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateGoogleAdsLink( request, @@ -4232,12 +4072,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes updateGoogleAdsLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() @@ -4268,12 +4107,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('deleteGoogleAdsLink', () => { it('invokes deleteGoogleAdsLink without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() @@ -4290,9 +4128,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.deleteGoogleAdsLink = + stubSimpleCall(expectedResponse); const [response] = await client.deleteGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -4303,12 +4140,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteGoogleAdsLink without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() @@ -4325,9 +4161,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteGoogleAdsLink = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteGoogleAdsLink( request, @@ -4353,12 +4188,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes deleteGoogleAdsLink with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() @@ -4388,12 +4222,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('getDataSharingSettings', () => { it('invokes getDataSharingSettings without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() @@ -4410,9 +4243,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataSharingSettings() ); - client.innerApiCalls.getDataSharingSettings = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.getDataSharingSettings = + stubSimpleCall(expectedResponse); const [response] = await client.getDataSharingSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -4423,12 +4255,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getDataSharingSettings without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() @@ -4445,9 +4276,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataSharingSettings() ); - client.innerApiCalls.getDataSharingSettings = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getDataSharingSettings = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getDataSharingSettings( request, @@ -4473,12 +4303,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes getDataSharingSettings with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() @@ -4511,12 +4340,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listAccounts', () => { it('invokes listAccounts without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() @@ -4544,12 +4372,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccounts without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() @@ -4566,9 +4393,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.Account() ), ]; - client.innerApiCalls.listAccounts = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listAccounts( request, @@ -4594,12 +4420,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccounts with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() @@ -4619,12 +4444,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccountsStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() @@ -4640,9 +4464,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.Account() ), ]; - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listAccountsStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.analytics.admin.v1alpha.Account[] = []; @@ -4669,12 +4492,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccountsStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() @@ -4709,12 +4531,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('uses async iteration with listAccounts without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() @@ -4730,9 +4551,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.Account() ), ]; - client.descriptors.page.listAccounts.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; const iterable = client.listAccountsAsync(request); for await (const resource of iterable) { @@ -4740,28 +4560,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listAccounts - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], request ); }); it('uses async iteration with listAccounts with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listAccountsAsync(request); await assert.rejects(async () => { const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; @@ -4770,8 +4588,9 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { } }); assert.deepStrictEqual( - (client.descriptors.page.listAccounts - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], request ); }); @@ -4779,12 +4598,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listAccountSummaries', () => { it('invokes listAccountSummaries without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() @@ -4801,9 +4619,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.innerApiCalls.listAccountSummaries = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); const [response] = await client.listAccountSummaries(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -4814,12 +4631,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccountSummaries without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() @@ -4836,9 +4652,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.innerApiCalls.listAccountSummaries = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listAccountSummaries( request, @@ -4866,12 +4681,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccountSummaries with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() @@ -4891,12 +4705,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccountSummariesStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() @@ -4912,12 +4725,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.descriptors.page.listAccountSummaries.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listAccountSummariesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = []; + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { @@ -4941,24 +4754,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAccountSummariesStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listAccountSummariesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = []; + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { @@ -4981,12 +4792,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('uses async iteration with listAccountSummaries without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() @@ -5002,48 +4812,48 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = []; + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; const iterable = client.listAccountSummariesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listAccountSummaries - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], request ); }); it('uses async iteration with listAccountSummaries with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listAccountSummariesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listAccountSummaries - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], request ); }); @@ -5051,12 +4861,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listProperties', () => { it('invokes listProperties without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() @@ -5084,12 +4893,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listProperties without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() @@ -5106,9 +4914,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listProperties = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listProperties = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listProperties( request, @@ -5134,12 +4941,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listProperties with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() @@ -5159,12 +4965,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listPropertiesStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() @@ -5180,9 +4985,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listProperties.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.analytics.admin.v1alpha.Property[] = []; @@ -5209,21 +5013,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listPropertiesStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.analytics.admin.v1alpha.Property[] = []; @@ -5249,12 +5050,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('uses async iteration with listProperties without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() @@ -5270,9 +5070,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); + client.descriptors.page.listProperties.asyncIterate = + stubAsyncIterationCall(expectedResponse); const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; const iterable = client.listPropertiesAsync(request); for await (const resource of iterable) { @@ -5280,28 +5079,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listProperties - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listProperties.asyncIterate as SinonStub + ).getCall(0).args[1], request ); }); it('uses async iteration with listProperties with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listProperties.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listPropertiesAsync(request); await assert.rejects(async () => { const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; @@ -5310,8 +5107,9 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { } }); assert.deepStrictEqual( - (client.descriptors.page.listProperties - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listProperties.asyncIterate as SinonStub + ).getCall(0).args[1], request ); }); @@ -5319,12 +5117,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listUserLinks', () => { it('invokes listUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() @@ -5360,12 +5157,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listUserLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() @@ -5390,9 +5186,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listUserLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listUserLinks( request, @@ -5418,12 +5213,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() @@ -5451,12 +5245,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listUserLinksStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() @@ -5474,9 +5267,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listUserLinks.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; @@ -5501,21 +5293,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listUserLinks, request) ); assert.strictEqual( - (client.descriptors.page.listUserLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes listUserLinksStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() @@ -5523,10 +5313,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listUserLinks.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; @@ -5550,21 +5338,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listUserLinks, request) ); assert.strictEqual( - (client.descriptors.page.listUserLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() @@ -5582,9 +5368,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); + client.descriptors.page.listUserLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; const iterable = client.listUserLinksAsync(request); for await (const resource of iterable) { @@ -5592,26 +5377,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listUserLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listUserLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() @@ -5619,10 +5403,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listUserLinks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listUserLinksAsync(request); await assert.rejects(async () => { const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; @@ -5631,15 +5413,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { } }); assert.deepStrictEqual( - (client.descriptors.page.listUserLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listUserLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -5647,12 +5429,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('auditUserLinks', () => { it('invokes auditUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() @@ -5688,12 +5469,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes auditUserLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() @@ -5718,9 +5498,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.auditUserLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.auditUserLinks( request, @@ -5748,12 +5527,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes auditUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() @@ -5781,12 +5559,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes auditUserLinksStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() @@ -5804,12 +5581,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.auditUserLinks.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { @@ -5831,21 +5608,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( - (client.descriptors.page.auditUserLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.auditUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes auditUserLinksStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() @@ -5853,13 +5628,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.auditUserLinks.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { @@ -5880,21 +5654,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( - (client.descriptors.page.auditUserLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.auditUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with auditUserLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() @@ -5912,36 +5684,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = []; + client.descriptors.page.auditUserLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.auditUserLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.auditUserLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with auditUserLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() @@ -5949,27 +5720,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.auditUserLinks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.auditUserLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.auditUserLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -5977,12 +5747,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listWebDataStreams', () => { it('invokes listWebDataStreams without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() @@ -6007,9 +5776,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.listWebDataStreams = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.listWebDataStreams = + stubSimpleCall(expectedResponse); const [response] = await client.listWebDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -6020,12 +5788,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listWebDataStreams without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() @@ -6050,9 +5817,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.listWebDataStreams = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listWebDataStreams = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listWebDataStreams( request, @@ -6080,12 +5846,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listWebDataStreams with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() @@ -6113,12 +5878,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listWebDataStreamsStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() @@ -6136,12 +5900,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listWebDataStreams.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { @@ -6163,21 +5927,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listWebDataStreams, request) ); assert.strictEqual( - (client.descriptors.page.listWebDataStreams - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listWebDataStreams.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes listWebDataStreamsStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() @@ -6185,13 +5947,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listWebDataStreams.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { @@ -6212,21 +5973,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listWebDataStreams, request) ); assert.strictEqual( - (client.descriptors.page.listWebDataStreams - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listWebDataStreams.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listWebDataStreams without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() @@ -6244,36 +6003,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; + client.descriptors.page.listWebDataStreams.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + []; const iterable = client.listWebDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listWebDataStreams - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listWebDataStreams - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listWebDataStreams with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() @@ -6281,27 +6039,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listWebDataStreams.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listWebDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listWebDataStreams - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listWebDataStreams - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -6309,12 +6066,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listIosAppDataStreams', () => { it('invokes listIosAppDataStreams without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() @@ -6339,9 +6095,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.listIosAppDataStreams = + stubSimpleCall(expectedResponse); const [response] = await client.listIosAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -6352,12 +6107,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listIosAppDataStreams without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() @@ -6382,9 +6136,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.listIosAppDataStreams = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listIosAppDataStreams = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listIosAppDataStreams( request, @@ -6412,12 +6165,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listIosAppDataStreams with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() @@ -6448,12 +6200,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listIosAppDataStreamsStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() @@ -6471,12 +6222,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listIosAppDataStreams.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + []; stream.on( 'data', ( @@ -6495,27 +6246,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.listIosAppDataStreams, request) ); assert.strictEqual( - (client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes listIosAppDataStreamsStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() @@ -6523,13 +6275,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listIosAppDataStreams.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + []; stream.on( 'data', ( @@ -6547,27 +6298,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.listIosAppDataStreams, request) ); assert.strictEqual( - (client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listIosAppDataStreams without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() @@ -6585,36 +6337,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; + client.descriptors.page.listIosAppDataStreams.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + []; const iterable = client.listIosAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listIosAppDataStreams with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() @@ -6622,27 +6375,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listIosAppDataStreams.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listIosAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -6650,12 +6404,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listAndroidAppDataStreams', () => { it('invokes listAndroidAppDataStreams without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() @@ -6680,9 +6433,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.listAndroidAppDataStreams = + stubSimpleCall(expectedResponse); const [response] = await client.listAndroidAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -6693,12 +6445,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAndroidAppDataStreams without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() @@ -6723,9 +6474,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listAndroidAppDataStreams = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listAndroidAppDataStreams( request, @@ -6753,12 +6503,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAndroidAppDataStreams with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() @@ -6789,12 +6538,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listAndroidAppDataStreamsStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() @@ -6812,12 +6560,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listAndroidAppDataStreams.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + []; stream.on( 'data', ( @@ -6836,27 +6584,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub) + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( - (client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes listAndroidAppDataStreamsStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() @@ -6864,13 +6613,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listAndroidAppDataStreams.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + []; stream.on( 'data', ( @@ -6888,27 +6636,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub) + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( - (client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listAndroidAppDataStreams without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() @@ -6926,36 +6675,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + []; const iterable = client.listAndroidAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listAndroidAppDataStreams with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() @@ -6963,27 +6713,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listAndroidAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -6991,12 +6742,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listFirebaseLinks', () => { it('invokes listFirebaseLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() @@ -7032,12 +6782,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listFirebaseLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() @@ -7062,9 +6811,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listFirebaseLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listFirebaseLinks( request, @@ -7092,12 +6840,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listFirebaseLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() @@ -7125,12 +6872,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listFirebaseLinksStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() @@ -7148,12 +6894,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listFirebaseLinks.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { @@ -7175,21 +6921,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( - (client.descriptors.page.listFirebaseLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listFirebaseLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes listFirebaseLinksStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() @@ -7197,13 +6941,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listFirebaseLinks.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { @@ -7224,21 +6967,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( - (client.descriptors.page.listFirebaseLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listFirebaseLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listFirebaseLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() @@ -7256,36 +6997,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; + client.descriptors.page.listFirebaseLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + []; const iterable = client.listFirebaseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listFirebaseLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listFirebaseLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listFirebaseLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() @@ -7293,27 +7033,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listFirebaseLinks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listFirebaseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listFirebaseLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listFirebaseLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -7321,12 +7060,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('listGoogleAdsLinks', () => { it('invokes listGoogleAdsLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() @@ -7351,9 +7089,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCall(expectedResponse); const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -7364,12 +7101,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listGoogleAdsLinks without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() @@ -7394,9 +7130,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listGoogleAdsLinks( request, @@ -7424,12 +7159,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listGoogleAdsLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() @@ -7457,12 +7191,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes listGoogleAdsLinksStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() @@ -7480,12 +7213,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listGoogleAdsLinks.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { @@ -7507,21 +7240,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( - (client.descriptors.page.listGoogleAdsLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes listGoogleAdsLinksStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() @@ -7529,13 +7260,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listGoogleAdsLinks.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + []; stream.on( 'data', (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { @@ -7556,21 +7286,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( - (client.descriptors.page.listGoogleAdsLinks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listGoogleAdsLinks without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() @@ -7588,36 +7316,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; + client.descriptors.page.listGoogleAdsLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + []; const iterable = client.listGoogleAdsLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listGoogleAdsLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listGoogleAdsLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with listGoogleAdsLinks with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() @@ -7625,27 +7352,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listGoogleAdsLinks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listGoogleAdsLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listGoogleAdsLinks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listGoogleAdsLinks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -7653,12 +7379,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { describe('searchChangeHistoryEvents', () => { it('invokes searchChangeHistoryEvents without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() @@ -7683,9 +7408,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.searchChangeHistoryEvents = + stubSimpleCall(expectedResponse); const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -7696,12 +7420,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes searchChangeHistoryEvents without error using callback', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() @@ -7726,9 +7449,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.searchChangeHistoryEvents = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.searchChangeHistoryEvents( request, @@ -7756,12 +7478,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes searchChangeHistoryEvents with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() @@ -7792,12 +7513,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('invokes searchChangeHistoryEventsStream without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() @@ -7815,12 +7535,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.searchChangeHistoryEvents.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + []; stream.on( 'data', ( @@ -7839,27 +7559,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( - (client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('invokes searchChangeHistoryEventsStream with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() @@ -7867,13 +7588,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.account = ''; const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.searchChangeHistoryEvents.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + []; stream.on( 'data', ( @@ -7891,27 +7611,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( - (client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with searchChangeHistoryEvents without error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() @@ -7929,36 +7650,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + []; const iterable = client.searchChangeHistoryEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); it('uses async iteration with searchChangeHistoryEvents with error', async () => { - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() @@ -7966,27 +7688,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request.account = ''; const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.searchChangeHistoryEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -7998,12 +7721,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedParameters = { account: 'accountValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.accountPathTemplate.render = sinon .stub() @@ -8038,12 +7760,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedParameters = { account_summary: 'accountSummaryValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.accountSummaryPathTemplate.render = sinon .stub() @@ -8063,9 +7784,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('matchAccountSummaryFromAccountSummaryName', () => { - const result = client.matchAccountSummaryFromAccountSummaryName( - fakePath - ); + const result = + client.matchAccountSummaryFromAccountSummaryName(fakePath); assert.strictEqual(result, 'accountSummaryValue'); assert( (client.pathTemplates.accountSummaryPathTemplate.match as SinonStub) @@ -8081,12 +7801,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { account: 'accountValue', user_link: 'userLinkValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.accountUserLinkPathTemplate.render = sinon .stub() @@ -8135,12 +7854,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { property: 'propertyValue', android_app_data_stream: 'androidAppDataStreamValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.androidAppDataStreamPathTemplate.render = sinon .stub() @@ -8156,34 +7874,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.androidAppDataStreamPathTemplate - .render as SinonStub) + ( + client.pathTemplates.androidAppDataStreamPathTemplate + .render as SinonStub + ) .getCall(-1) .calledWith(expectedParameters) ); }); it('matchPropertyFromAndroidAppDataStreamName', () => { - const result = client.matchPropertyFromAndroidAppDataStreamName( - fakePath - ); + const result = + client.matchPropertyFromAndroidAppDataStreamName(fakePath); assert.strictEqual(result, 'propertyValue'); assert( - (client.pathTemplates.androidAppDataStreamPathTemplate - .match as SinonStub) + ( + client.pathTemplates.androidAppDataStreamPathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); it('matchAndroidAppDataStreamFromAndroidAppDataStreamName', () => { - const result = client.matchAndroidAppDataStreamFromAndroidAppDataStreamName( - fakePath - ); + const result = + client.matchAndroidAppDataStreamFromAndroidAppDataStreamName( + fakePath + ); assert.strictEqual(result, 'androidAppDataStreamValue'); assert( - (client.pathTemplates.androidAppDataStreamPathTemplate - .match as SinonStub) + ( + client.pathTemplates.androidAppDataStreamPathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); @@ -8195,12 +7919,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedParameters = { account: 'accountValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.dataSharingSettingsPathTemplate.render = sinon .stub() @@ -8213,8 +7936,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const result = client.dataSharingSettingsPath('accountValue'); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.dataSharingSettingsPathTemplate - .render as SinonStub) + ( + client.pathTemplates.dataSharingSettingsPathTemplate + .render as SinonStub + ) .getCall(-1) .calledWith(expectedParameters) ); @@ -8224,8 +7949,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const result = client.matchAccountFromDataSharingSettingsName(fakePath); assert.strictEqual(result, 'accountValue'); assert( - (client.pathTemplates.dataSharingSettingsPathTemplate - .match as SinonStub) + ( + client.pathTemplates.dataSharingSettingsPathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); @@ -8238,16 +7965,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { property: 'propertyValue', web_data_stream: 'webDataStreamValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); - client.pathTemplates.enhancedMeasurementSettingsPathTemplate.render = sinon - .stub() - .returns(fakePath); + client.pathTemplates.enhancedMeasurementSettingsPathTemplate.render = + sinon.stub().returns(fakePath); client.pathTemplates.enhancedMeasurementSettingsPathTemplate.match = sinon .stub() .returns(expectedParameters); @@ -8259,34 +7984,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.enhancedMeasurementSettingsPathTemplate - .render as SinonStub) + ( + client.pathTemplates.enhancedMeasurementSettingsPathTemplate + .render as SinonStub + ) .getCall(-1) .calledWith(expectedParameters) ); }); it('matchPropertyFromEnhancedMeasurementSettingsName', () => { - const result = client.matchPropertyFromEnhancedMeasurementSettingsName( - fakePath - ); + const result = + client.matchPropertyFromEnhancedMeasurementSettingsName(fakePath); assert.strictEqual(result, 'propertyValue'); assert( - (client.pathTemplates.enhancedMeasurementSettingsPathTemplate - .match as SinonStub) + ( + client.pathTemplates.enhancedMeasurementSettingsPathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); it('matchWebDataStreamFromEnhancedMeasurementSettingsName', () => { - const result = client.matchWebDataStreamFromEnhancedMeasurementSettingsName( - fakePath - ); + const result = + client.matchWebDataStreamFromEnhancedMeasurementSettingsName( + fakePath + ); assert.strictEqual(result, 'webDataStreamValue'); assert( - (client.pathTemplates.enhancedMeasurementSettingsPathTemplate - .match as SinonStub) + ( + client.pathTemplates.enhancedMeasurementSettingsPathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); @@ -8299,12 +8030,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { property: 'propertyValue', firebase_link: 'firebaseLinkValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.firebaseLinkPathTemplate.render = sinon .stub() @@ -8352,12 +8082,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedParameters = { property: 'propertyValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.globalSiteTagPathTemplate.render = sinon .stub() @@ -8393,12 +8122,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { property: 'propertyValue', google_ads_link: 'googleAdsLinkValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.googleAdsLinkPathTemplate.render = sinon .stub() @@ -8447,12 +8175,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { property: 'propertyValue', ios_app_data_stream: 'iosAppDataStreamValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.iosAppDataStreamPathTemplate.render = sinon .stub() @@ -8468,8 +8195,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.iosAppDataStreamPathTemplate - .render as SinonStub) + ( + client.pathTemplates.iosAppDataStreamPathTemplate + .render as SinonStub + ) .getCall(-1) .calledWith(expectedParameters) ); @@ -8486,9 +8215,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); it('matchIosAppDataStreamFromIosAppDataStreamName', () => { - const result = client.matchIosAppDataStreamFromIosAppDataStreamName( - fakePath - ); + const result = + client.matchIosAppDataStreamFromIosAppDataStreamName(fakePath); assert.strictEqual(result, 'iosAppDataStreamValue'); assert( (client.pathTemplates.iosAppDataStreamPathTemplate.match as SinonStub) @@ -8503,12 +8231,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedParameters = { property: 'propertyValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.propertyPathTemplate.render = sinon .stub() @@ -8544,12 +8271,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { property: 'propertyValue', user_link: 'userLinkValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.propertyUserLinkPathTemplate.render = sinon .stub() @@ -8565,8 +8291,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.propertyUserLinkPathTemplate - .render as SinonStub) + ( + client.pathTemplates.propertyUserLinkPathTemplate + .render as SinonStub + ) .getCall(-1) .calledWith(expectedParameters) ); @@ -8599,12 +8327,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { property: 'propertyValue', web_data_stream: 'webDataStreamValue', }; - const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient( - { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', - } - ); + }); client.initialize(); client.pathTemplates.webDataStreamPathTemplate.render = sinon .stub() From e526879d461fd03034312dd6a9db9dcee67727bf Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 May 2021 18:06:20 -0700 Subject: [PATCH 070/142] fix: use require() to load JSON protos (#112) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: use require() to load JSON protos The library is regenerated with gapic-generator-typescript v1.3.1. Committer: @alexander-fenster PiperOrigin-RevId: 372468161 Source-Link: https://github.com/googleapis/googleapis/commit/75880c3e6a6aa2597400582848e81bbbfac51dea Source-Link: https://github.com/googleapis/googleapis-gen/commit/77b18044813d4c8c415ff9ea68e76e307eb8e904 * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- .../v1alpha/analytics_admin_service_client.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 6cfe934c527..bc298ed1e11 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -31,6 +31,7 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); /** * Client JSON configuration object, loaded from * `src/v1alpha/analytics_admin_service_client_config.json`. @@ -146,22 +147,7 @@ export class AnalyticsAdminServiceClient { clientHeader.push(`${opts.libName}/${opts.libVersion}`); } // Load the applicable protos. - // For Node.js, pass the path to JSON proto file. - // For browsers, pass the JSON content. - - const nodejsProtoPath = path.join( - __dirname, - '..', - '..', - 'protos', - 'protos.json' - ); - this._protos = this._gaxGrpc.loadProto( - opts.fallback - ? // eslint-disable-next-line @typescript-eslint/no-var-requires - require('../../protos/protos.json') - : nodejsProtoPath - ); + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); // This API contains "path templates"; forward-slash-separated // identifiers to uniquely identify resources within the API. From 86e94235448737f7f27d3d5d48142897b8e0d634 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 May 2021 18:11:36 -0700 Subject: [PATCH 071/142] chore: update gapic-generator-typescript to v1.3.2 (#113) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update gapic-generator-typescript to v1.3.2 Committer: @alexander-fenster PiperOrigin-RevId: 372656503 Source-Link: https://github.com/googleapis/googleapis/commit/6fa858c6489b1bbc505a7d7afe39f2dc45819c38 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d7c95df3ab1ea1b4c22a4542bad4924cc46d1388 * 🦉 Updates from OwlBot Co-authored-by: Owl Bot Co-authored-by: Jeffrey Rennie --- .../src/v1alpha/analytics_admin_service_client.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index bc298ed1e11..4862ff14066 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -26,7 +26,6 @@ import { PaginationCallback, GaxCall, } from 'google-gax'; -import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; From 553a65206f4454e4fa0fcf504eb8c6b21907bc7d Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Fri, 21 May 2021 13:29:00 -0600 Subject: [PATCH 072/142] build: add auto-approve (#116) --- packages/google-analytics-admin/owlbot.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/google-analytics-admin/owlbot.py diff --git a/packages/google-analytics-admin/owlbot.py b/packages/google-analytics-admin/owlbot.py new file mode 100644 index 00000000000..568fbdbbd62 --- /dev/null +++ b/packages/google-analytics-admin/owlbot.py @@ -0,0 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""This script is used to synthesize generated parts of this library.""" +import synthtool.languages.node as node + +node.owlbot_main(templates_excludes=['.github/CODEOWNERS']) \ No newline at end of file From 03acffc08f656b49140dd2d0caf2bf8ff1fe8dd4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 17:54:18 +0200 Subject: [PATCH 073/142] chore(deps): update dependency sinon to v11 (#117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^10.0.0` -> `^11.0.0`](https://renovatebot.com/diffs/npm/sinon/10.0.0/11.1.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/compatibility-slim/10.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/confidence-slim/10.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v11.1.0`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1110--2021-05-25) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v11.0.0...31be9a5d5a4762ef01cb195f29024616dfee9ce8) \================== - Add sinon.promise() implementation ([#​2369](https://togithub.com/sinonjs/sinon/issues/2369)) - Set wrappedMethod on getters/setters ([#​2378](https://togithub.com/sinonjs/sinon/issues/2378)) - \[Docs] Update fake-server usage & descriptions ([#​2365](https://togithub.com/sinonjs/sinon/issues/2365)) - Fake docs improvement ([#​2360](https://togithub.com/sinonjs/sinon/issues/2360)) - Update nise to 5.1.0 (fixed [#​2318](https://togithub.com/sinonjs/sinon/issues/2318)) ### [`v11.0.0`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1100--2021-05-24) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v10.0.1...v11.0.0) \================== - Explicitly use samsam 6.0.2 with fix for [#​2345](https://togithub.com/sinonjs/sinon/issues/2345) - Update most packages ([#​2371](https://togithub.com/sinonjs/sinon/issues/2371)) - Update compatibility docs ([#​2366](https://togithub.com/sinonjs/sinon/issues/2366)) - Update packages (includes breaking fake-timers change, see [#​2352](https://togithub.com/sinonjs/sinon/issues/2352)) - Warn of potential memory leaks ([#​2357](https://togithub.com/sinonjs/sinon/issues/2357)) - Fix clock test errors ### [`v10.0.1`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1001--2021-04-08) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v10.0.0...v10.0.1) \================== - Upgrade sinon components (bumps y18n to 4.0.1) - Bump y18n from 4.0.0 to 4.0.1
--- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index d10856f6af6..24dc24d17f5 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -56,7 +56,7 @@ "mocha": "^8.0.1", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^10.0.0", + "sinon": "^11.0.0", "ts-loader": "^9.0.0", "typescript": "^3.9.6" }, From a0a5a128dee261dca5126d2d7f26e545db9d5db6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 25 May 2021 20:48:17 +0000 Subject: [PATCH 074/142] fix: GoogleAdsError missing using generator version after 1.3.0 (#118) [PR](https://github.com/googleapis/gapic-generator-typescript/pull/878) within updated gapic-generator-typescript version 1.4.0 Committer: @summer-ji-eng PiperOrigin-RevId: 375759421 Source-Link: https://github.com/googleapis/googleapis/commit/95fa72fdd0d69b02d72c33b37d1e4cc66d4b1446 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f40a34377ad488a7c2bc3992b3c8d5faf5a15c46 --- .../src/v1alpha/analytics_admin_service_client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 4862ff14066..7daeb8669f4 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -141,6 +141,8 @@ export class AnalyticsAdminServiceClient { } if (!opts.fallback) { clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); } if (opts.libName && opts.libVersion) { clientHeader.push(`${opts.libName}/${opts.libVersion}`); From 5639aac00c902d23d6b78e3b62f7910269c226a9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 27 May 2021 11:24:10 -0400 Subject: [PATCH 075/142] feat: add several new functions and types (#119) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `GetMeasurementProtocolSecret`, `ListMeasurementProtocolSecrets`, `CreateMeasurementProtocolSecret`, `DeleteMeasurementProtocolSecret`, `UpdateMeasurementProtocolSecret` methods to the API feat: add `GetGoogleSignalsSettings`, `UpdateGoogleSignalsSettings` methods to the API feat: add `CreateConversionEvent`, `GetConversionEvent`, `DeleteConversionEvent`, `ListConversionEvents` methods to the API feat: add `CreateCustomDimension`, `GetCustomDimension`, `UpdateCustomDimension`, `ListCustomDimensions`, `ArchiveCustomDimension` methods to the API feat: add `CreateCustomMetric`, `GetCustomMetric`, `UpdateCustomMetric`, `ListCustomMetrics`, `ArchiveCustomMetric` methods to the API feat: add `GoogleSignalsState`, `GoogleSignalsConsent` types feat: add `GoogleSignalsSettings` type feat: add `MeasurementProtocolSecret` type feat: add `ConversionEvent` type feat: add `CustomDimension` type feat: add `CustomMetric` type feat: extend `ChangeHistoryResourceType` enum to support `GOOGLE_SIGNALS_SETTINGS`, `CONVERSION_EVENT`, `MEASUREMENT_PROTOCOL_SECRET`, `CUSTOM_DIMENSION`, `CUSTOM_METRIC` values fix: label `email_address` field of `UserLink` type as immutable fix: label `name` field of `UserLink` type as output only PiperOrigin-RevId: 375776214 Source-Link: https://github.com/googleapis/googleapis/commit/c3bf1b727510ffc0e2020affff906fbc649cd563 Source-Link: https://github.com/googleapis/googleapis-gen/commit/23248c2d6af2ceb679b5bbc226ce505089d9ffe0 * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- .../admin/v1alpha/analytics_admin.proto | 569 + .../analytics/admin/v1alpha/resources.proto | 287 +- .../google-analytics-admin/protos/protos.d.ts | 5670 +++- .../google-analytics-admin/protos/protos.js | 26061 ++++++++++------ .../google-analytics-admin/protos/protos.json | 1913 +- .../v1alpha/analytics_admin_service_client.ts | 4794 ++- ...analytics_admin_service_client_config.json | 105 + .../src/v1alpha/gapic_metadata.json | 226 + .../gapic_analytics_admin_service_v1alpha.ts | 4993 ++- 9 files changed, 32209 insertions(+), 12409 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 872d6abbb0a..14ba713d911 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -515,6 +515,83 @@ service AnalyticsAdminService { option (google.api.method_signature) = "name"; } + // Lookup for a single "GA4" MeasurementProtocolSecret. + rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + additional_bindings { + get: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + } + additional_bindings { + get: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Returns child MeasurementProtocolSecrets under the specified parent + // Property. + rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + additional_bindings { + get: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" + } + additional_bindings { + get: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a measurement protocol secret. + rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + additional_bindings { + post: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + } + additional_bindings { + post: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + } + }; + option (google.api.method_signature) = "parent,measurement_protocol_secret"; + } + + // Deletes target MeasurementProtocolSecret. + rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + additional_bindings { + delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + } + additional_bindings { + delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates a measurement protocol secret. + rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + additional_bindings { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + } + additional_bindings { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + } + }; + option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; + } + // Searches through all changes to an account or its children given the // specified set of filters. rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { @@ -523,6 +600,144 @@ service AnalyticsAdminService { body: "*" }; } + + // Lookup for Google Signals settings for a property. + rpc GetGoogleSignalsSettings(GetGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/googleSignalsSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates Google Signals settings for a property. + rpc UpdateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + option (google.api.http) = { + patch: "/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}" + body: "google_signals_settings" + }; + option (google.api.method_signature) = "google_signals_settings,update_mask"; + } + + // Creates a conversion event with the specified attributes. + rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/conversionEvents" + body: "conversion_event" + }; + option (google.api.method_signature) = "parent,conversion_event"; + } + + // Retrieve a single conversion event. + rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a conversion event in a property. + rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns a list of conversion events in the specified parent property. + // + // Returns an empty list if no conversion events are found. + rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/conversionEvents" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a CustomDimension. + rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/customDimensions" + body: "custom_dimension" + }; + option (google.api.method_signature) = "parent,custom_dimension"; + } + + // Updates a CustomDimension on a property. + rpc UpdateCustomDimension(UpdateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + patch: "/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}" + body: "custom_dimension" + }; + option (google.api.method_signature) = "custom_dimension,update_mask"; + } + + // Lists CustomDimensions on a property. + rpc ListCustomDimensions(ListCustomDimensionsRequest) returns (ListCustomDimensionsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/customDimensions" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomDimension on a property. + rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/customDimensions/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomDimension. + rpc GetCustomDimension(GetCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/customDimensions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a CustomMetric. + rpc CreateCustomMetric(CreateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/customMetrics" + body: "custom_metric" + }; + option (google.api.method_signature) = "parent,custom_metric"; + } + + // Updates a CustomMetric on a property. + rpc UpdateCustomMetric(UpdateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + patch: "/v1alpha/{custom_metric.name=properties/*/customMetrics/*}" + body: "custom_metric" + }; + option (google.api.method_signature) = "custom_metric,update_mask"; + } + + // Lists CustomMetrics on a property. + rpc ListCustomMetrics(ListCustomMetricsRequest) returns (ListCustomMetricsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/customMetrics" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomMetric on a property. + rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/customMetrics/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomMetric. + rpc GetCustomMetric(GetCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/customMetrics/*}" + }; + option (google.api.method_signature) = "name"; + } } // Request message for GetAccount RPC. @@ -1433,3 +1648,357 @@ message SearchChangeHistoryEventsResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for GetMeasurementProtocolSecret RPC. +message GetMeasurementProtocolSecretRequest { + // Required. The name of the measurement protocol secret to lookup. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + // Note: Any type of stream (WebDataStream, IosAppDataStream, + // AndroidAppDataStream) may be a parent. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for CreateMeasurementProtocolSecret RPC +message CreateMeasurementProtocolSecretRequest { + // Required. The parent resource where this secret will be created. + // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + // may be a parent. + // Format: properties/{property}/webDataStreams/{webDataStream} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // Required. The measurement protocol secret to create. + MeasurementProtocolSecret measurement_protocol_secret = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteMeasurementProtocolSecret RPC +message DeleteMeasurementProtocolSecretRequest { + // Required. The name of the MeasurementProtocolSecret to delete. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + // Note: Any type of stream (WebDataStream, IosAppDataStream, + // AndroidAppDataStream) may be a parent. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for UpdateMeasurementProtocolSecret RPC +message UpdateMeasurementProtocolSecretRequest { + // Required. The measurement protocol secret to update. + MeasurementProtocolSecret measurement_protocol_secret = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsRequest { + // Required. The resource name of the parent stream. + // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + // may be a parent. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 10 resources will be returned. + // The maximum value is 10. Higher values will be coerced to the maximum. + int32 page_size = 2; + + // A page token, received from a previous `ListMeasurementProtocolSecrets` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListMeasurementProtocolSecrets` must match + // the call that provided the page token. + string page_token = 3; +} + +// Response message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsResponse { + // A list of secrets for the parent stream specified in the request. + repeated MeasurementProtocolSecret measurement_protocol_secrets = 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 GetGoogleSignalsSettings RPC +message GetGoogleSignalsSettingsRequest { + // Required. The name of the google signals settings to retrieve. + // Format: properties/{property}/googleSignalsSettings + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" + } + ]; +} + +// Request message for UpdateGoogleSignalsSettings RPC +message UpdateGoogleSignalsSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + GoogleSignalsSettings google_signals_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for CreateConversionEvent RPC +message CreateConversionEventRequest { + // Required. The conversion event to create. + ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the parent property where this conversion event will + // be created. Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for GetConversionEvent RPC +message GetConversionEventRequest { + // Required. The resource name of the conversion event to retrieve. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for DeleteConversionEvent RPC +message DeleteConversionEventRequest { + // Required. The resource name of the conversion event to delete. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for ListConversionEvents RPC +message ListConversionEventsRequest { + // Required. The resource name of the parent property. + // Example: 'properties/123' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListConversionEvents` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListConversionEvents` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListConversionEvents RPC. +message ListConversionEventsResponse { + // The requested conversion events + repeated ConversionEvent conversion_events = 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 CreateCustomDimension RPC. +message CreateCustomDimensionRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // Required. The CustomDimension to create. + CustomDimension custom_dimension = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomDimension RPC. +message UpdateCustomDimensionRequest { + // The CustomDimension to update + CustomDimension custom_dimension = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListCustomDimensions RPC. +message ListCustomDimensionsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListCustomDimensions` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomDimensions` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomDimensions RPC. +message ListCustomDimensionsResponse { + // List of CustomDimensions. + repeated CustomDimension custom_dimensions = 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 ArchiveCustomDimension RPC. +message ArchiveCustomDimensionRequest { + // Required. The name of the CustomDimension to archive. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for GetCustomDimension RPC. +message GetCustomDimensionRequest { + // Required. The name of the CustomDimension to get. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for CreateCustomMetric RPC. +message CreateCustomMetricRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // Required. The CustomMetric to create. + CustomMetric custom_metric = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomMetric RPC. +message UpdateCustomMetricRequest { + // The CustomMetric to update + CustomMetric custom_metric = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListCustomMetrics RPC. +message ListCustomMetricsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListCustomMetrics` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomMetrics` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomMetrics RPC. +message ListCustomMetricsResponse { + // List of CustomMetrics. + repeated CustomMetric custom_metrics = 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 ArchiveCustomMetric RPC. +message ArchiveCustomMetricRequest { + // Required. The name of the CustomMetric to archive. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} + +// Request message for GetCustomMetric RPC. +message GetCustomMetricRequest { + // Required. The name of the CustomMetric to get. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 568d74715c9..7b6af230249 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -187,6 +187,50 @@ enum ChangeHistoryResourceType { // GoogleAdsLink resource GOOGLE_ADS_LINK = 7; + + // GoogleSignalsSettings resource + GOOGLE_SIGNALS_SETTINGS = 8; + + // ConversionEvent resource + CONVERSION_EVENT = 9; + + // MeasurementProtocolSecret resource + MEASUREMENT_PROTOCOL_SECRET = 10; + + // CustomDimension resource + CUSTOM_DIMENSION = 11; + + // CustomMetric resource + CUSTOM_METRIC = 12; +} + +// Status of the Google Signals settings (i.e., whether this feature has been +// enabled for the property). +enum GoogleSignalsState { + // Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to + // represent that the user has not made an explicit choice. + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + + // Google Signals is enabled. + GOOGLE_SIGNALS_ENABLED = 1; + + // Google Signals is disabled. + GOOGLE_SIGNALS_DISABLED = 2; +} + +// Consent field of the Google Signals settings (i.e., whether the user has +// consented to the Google Signals terms of service.) +enum GoogleSignalsConsent { + // Google Signals consent value defaults to + // GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as + // GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + + // Terms of service have been accepted + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + + // Terms of service have not been accepted + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; } // A resource message representing a Google Analytics account. @@ -392,11 +436,11 @@ message UserLink { pattern: "properties/{property}/userLinks/{user_link}" }; - // Example format: properties/1234/userLinks/5678 - string name = 1; + // Output only. Example format: properties/1234/userLinks/5678 + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Email address of the user to link - string email_address = 2; + // Immutable. Email address of the user to link + string email_address = 2 [(google.api.field_behavior) = IMMUTABLE]; // Roles directly assigned to this user for this account or property. // @@ -563,7 +607,7 @@ message GoogleAdsLink { // Enable personalized advertising features with this integration. // Automatically publish my Google Analytics audience lists and Google // Analytics remarketing events/parameters to the linked Google Ads account. - // If this field is not set on create/update it will be defaulted to true. + // If this field is not set on create/update, it will be defaulted to true. google.protobuf.BoolValue ads_personalization_enabled = 5; // Output only. Email address of the user that created the link. @@ -650,6 +694,28 @@ message PropertySummary { string display_name = 2; } +// A secret value used for sending hits to Measurement Protocol. +message MeasurementProtocolSecret { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + pattern: "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + }; + + // Output only. Resource name of this secret. This secret may be a child of any type of + // stream. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Human-readable display name for this secret. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The measurement protocol secret value. Pass this value to the api_secret + // field of the Measurement Protocol API when sending hits to this + // secret's parent property. + string secret_value = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A set of changes within a Google Analytics account or its child properties // that resulted from the same cause. Common causes would be updates made in the // Google Analytics UI, changes from customer support, or automatic Google @@ -704,6 +770,21 @@ message ChangeHistoryChange { // A snapshot of a GoogleAdsLink resource in change history. GoogleAdsLink google_ads_link = 7; + + // A snapshot of a GoogleSignalsSettings resource in change history. + GoogleSignalsSettings google_signals_settings = 8; + + // A snapshot of a ConversionEvent resource in change history. + ConversionEvent conversion_event = 11; + + // A snapshot of a MeasurementProtocolSecret resource in change history. + MeasurementProtocolSecret measurement_protocol_secret = 12; + + // A snapshot of a CustomDimension resource in change history. + CustomDimension custom_dimension = 13; + + // A snapshot of a CustomMetric resource in change history. + CustomMetric custom_metric = 14; } } @@ -721,3 +802,199 @@ message ChangeHistoryChange { // deleted in this change, this field will be missing. ChangeHistoryResource resource_after_change = 4; } + +// A conversion event in a Google Analytics property. +message ConversionEvent { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + pattern: "properties/{property}/conversionEvents/{conversion_event}" + }; + + // Output only. Resource name of this conversion event. + // Format: properties/{property}/conversionEvents/{conversion_event} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The event name for this conversion event. + // Examples: 'click', 'purchase' + string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when this conversion event was created in the property. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, this event can currently be deleted via DeleteConversionEvent. + bool is_deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Settings values for Google Signals. This is a singleton resource. +message GoogleSignalsSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" + pattern: "properties/{property}/googleSignalsSettings" + }; + + // Output only. Resource name of this setting. + // Format: properties/{property_id}/googleSignalsSettings + // Example: "properties/1000/googleSignalsSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Status of this setting. + GoogleSignalsState state = 3; + + // Output only. Terms of Service acceptance. + GoogleSignalsConsent consent = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A definition for a CustomDimension. +message CustomDimension { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + pattern: "properties/{property}/customDimensions" + }; + + // Valid values for the scope of this dimension. + enum DimensionScope { + // Scope unknown or not specified. + DIMENSION_SCOPE_UNSPECIFIED = 0; + + // Dimension scoped to an event. + EVENT = 1; + + // Dimension scoped to a user. + USER = 2; + } + + // Output only. Resource name for this CustomDimension resource. + // Format: properties/{property}/customDimensions/{customDimension} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging parameter name for this custom dimension. + // + // If this is a user-scoped dimension, then this is the user property name. + // If this is an event-scoped dimension, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore characters, starting with a + // letter. Max length of 24 characters for user-scoped dimensions, 40 + // characters for event-scoped dimensions. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom dimension as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. Max length of 150 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The scope of this dimension. + DimensionScope scope = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If set to true, sets this dimension as NPA and excludes it from ads + // personalization. + // + // This is currently only supported by user-scoped custom dimensions. + bool disallow_ads_personalization = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A definition for a custom metric. +message CustomMetric { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + pattern: "properties/{property}/customMetrics" + }; + + // Possible types of representing the custom metric's value. + // + // Currency representation may change in the future, requiring a breaking API + // change. + enum MeasurementUnit { + // MeasurementUnit unspecified or missing. + MEASUREMENT_UNIT_UNSPECIFIED = 0; + + // This metric uses default units. + STANDARD = 1; + + // This metric measures a currency. + CURRENCY = 2; + + // This metric measures feet. + FEET = 3; + + // This metric measures meters. + METERS = 4; + + // This metric measures kilometers. + KILOMETERS = 5; + + // This metric measures miles. + MILES = 6; + + // This metric measures milliseconds. + MILLISECONDS = 7; + + // This metric measures seconds. + SECONDS = 8; + + // This metric measures minutes. + MINUTES = 9; + + // This metric measures hours. + HOURS = 10; + } + + // The scope of this metric. + enum MetricScope { + // Scope unknown or not specified. + METRIC_SCOPE_UNSPECIFIED = 0; + + // Metric scoped to an event. + EVENT = 1; + } + + // Output only. Resource name for this CustomMetric resource. + // Format: properties/{property}/customMetrics/{customMetric} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging name for this custom metric. + // + // If this is an event-scoped metric, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore charactes, starting with a + // letter. Max length of 40 characters for event-scoped metrics. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom metric as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. + // Max length of 150 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The type for the custom metric's value. + MeasurementUnit measurement_unit = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. The scope of this custom metric. + MetricScope scope = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 87571d16763..4c4d4bd754a 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -690,6 +690,76 @@ export namespace google { */ public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): Promise; + /** + * Calls GetMeasurementProtocolSecret. + * @param request GetMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public getMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecretCallback): void; + + /** + * Calls GetMeasurementProtocolSecret. + * @param request GetMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public getMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest): Promise; + + /** + * Calls ListMeasurementProtocolSecrets. + * @param request ListMeasurementProtocolSecretsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse + */ + public listMeasurementProtocolSecrets(request: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback): void; + + /** + * Calls ListMeasurementProtocolSecrets. + * @param request ListMeasurementProtocolSecretsRequest message or plain object + * @returns Promise + */ + public listMeasurementProtocolSecrets(request: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest): Promise; + + /** + * Calls CreateMeasurementProtocolSecret. + * @param request CreateMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public createMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback): void; + + /** + * Calls CreateMeasurementProtocolSecret. + * @param request CreateMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public createMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest): Promise; + + /** + * Calls DeleteMeasurementProtocolSecret. + * @param request DeleteMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback): void; + + /** + * Calls DeleteMeasurementProtocolSecret. + * @param request DeleteMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest): Promise; + + /** + * Calls UpdateMeasurementProtocolSecret. + * @param request UpdateMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public updateMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback): void; + + /** + * Calls UpdateMeasurementProtocolSecret. + * @param request UpdateMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public updateMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest): Promise; + /** * Calls SearchChangeHistoryEvents. * @param request SearchChangeHistoryEventsRequest message or plain object @@ -703,6 +773,230 @@ export namespace google { * @returns Promise */ public searchChangeHistoryEvents(request: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest): Promise; + + /** + * Calls GetGoogleSignalsSettings. + * @param request GetGoogleSignalsSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleSignalsSettings + */ + public getGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettingsCallback): void; + + /** + * Calls GetGoogleSignalsSettings. + * @param request GetGoogleSignalsSettingsRequest message or plain object + * @returns Promise + */ + public getGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest): Promise; + + /** + * Calls UpdateGoogleSignalsSettings. + * @param request UpdateGoogleSignalsSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleSignalsSettings + */ + public updateGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettingsCallback): void; + + /** + * Calls UpdateGoogleSignalsSettings. + * @param request UpdateGoogleSignalsSettingsRequest message or plain object + * @returns Promise + */ + public updateGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest): Promise; + + /** + * Calls CreateConversionEvent. + * @param request CreateConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ConversionEvent + */ + public createConversionEvent(request: google.analytics.admin.v1alpha.ICreateConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEventCallback): void; + + /** + * Calls CreateConversionEvent. + * @param request CreateConversionEventRequest message or plain object + * @returns Promise + */ + public createConversionEvent(request: google.analytics.admin.v1alpha.ICreateConversionEventRequest): Promise; + + /** + * Calls GetConversionEvent. + * @param request GetConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ConversionEvent + */ + public getConversionEvent(request: google.analytics.admin.v1alpha.IGetConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEventCallback): void; + + /** + * Calls GetConversionEvent. + * @param request GetConversionEventRequest message or plain object + * @returns Promise + */ + public getConversionEvent(request: google.analytics.admin.v1alpha.IGetConversionEventRequest): Promise; + + /** + * Calls DeleteConversionEvent. + * @param request DeleteConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteConversionEvent(request: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEventCallback): void; + + /** + * Calls DeleteConversionEvent. + * @param request DeleteConversionEventRequest message or plain object + * @returns Promise + */ + public deleteConversionEvent(request: google.analytics.admin.v1alpha.IDeleteConversionEventRequest): Promise; + + /** + * Calls ListConversionEvents. + * @param request ListConversionEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListConversionEventsResponse + */ + public listConversionEvents(request: google.analytics.admin.v1alpha.IListConversionEventsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEventsCallback): void; + + /** + * Calls ListConversionEvents. + * @param request ListConversionEventsRequest message or plain object + * @returns Promise + */ + public listConversionEvents(request: google.analytics.admin.v1alpha.IListConversionEventsRequest): Promise; + + /** + * Calls CreateCustomDimension. + * @param request CreateCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public createCustomDimension(request: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimensionCallback): void; + + /** + * Calls CreateCustomDimension. + * @param request CreateCustomDimensionRequest message or plain object + * @returns Promise + */ + public createCustomDimension(request: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): Promise; + + /** + * Calls UpdateCustomDimension. + * @param request UpdateCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public updateCustomDimension(request: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimensionCallback): void; + + /** + * Calls UpdateCustomDimension. + * @param request UpdateCustomDimensionRequest message or plain object + * @returns Promise + */ + public updateCustomDimension(request: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): Promise; + + /** + * Calls ListCustomDimensions. + * @param request ListCustomDimensionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse + */ + public listCustomDimensions(request: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensionsCallback): void; + + /** + * Calls ListCustomDimensions. + * @param request ListCustomDimensionsRequest message or plain object + * @returns Promise + */ + public listCustomDimensions(request: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): Promise; + + /** + * Calls ArchiveCustomDimension. + * @param request ArchiveCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public archiveCustomDimension(request: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimensionCallback): void; + + /** + * Calls ArchiveCustomDimension. + * @param request ArchiveCustomDimensionRequest message or plain object + * @returns Promise + */ + public archiveCustomDimension(request: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): Promise; + + /** + * Calls GetCustomDimension. + * @param request GetCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public getCustomDimension(request: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimensionCallback): void; + + /** + * Calls GetCustomDimension. + * @param request GetCustomDimensionRequest message or plain object + * @returns Promise + */ + public getCustomDimension(request: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): Promise; + + /** + * Calls CreateCustomMetric. + * @param request CreateCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public createCustomMetric(request: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetricCallback): void; + + /** + * Calls CreateCustomMetric. + * @param request CreateCustomMetricRequest message or plain object + * @returns Promise + */ + public createCustomMetric(request: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): Promise; + + /** + * Calls UpdateCustomMetric. + * @param request UpdateCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public updateCustomMetric(request: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetricCallback): void; + + /** + * Calls UpdateCustomMetric. + * @param request UpdateCustomMetricRequest message or plain object + * @returns Promise + */ + public updateCustomMetric(request: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): Promise; + + /** + * Calls ListCustomMetrics. + * @param request ListCustomMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomMetricsResponse + */ + public listCustomMetrics(request: google.analytics.admin.v1alpha.IListCustomMetricsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetricsCallback): void; + + /** + * Calls ListCustomMetrics. + * @param request ListCustomMetricsRequest message or plain object + * @returns Promise + */ + public listCustomMetrics(request: google.analytics.admin.v1alpha.IListCustomMetricsRequest): Promise; + + /** + * Calls ArchiveCustomMetric. + * @param request ArchiveCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public archiveCustomMetric(request: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetricCallback): void; + + /** + * Calls ArchiveCustomMetric. + * @param request ArchiveCustomMetricRequest message or plain object + * @returns Promise + */ + public archiveCustomMetric(request: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): Promise; + + /** + * Calls GetCustomMetric. + * @param request GetCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public getCustomMetric(request: google.analytics.admin.v1alpha.IGetCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetricCallback): void; + + /** + * Calls GetCustomMetric. + * @param request GetCustomMetricRequest message or plain object + * @returns Promise + */ + public getCustomMetric(request: google.analytics.admin.v1alpha.IGetCustomMetricRequest): Promise; } namespace AnalyticsAdminService { @@ -1029,12 +1323,159 @@ export namespace google { */ type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataSharingSettings) => void; + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type GetMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * @param error Error, if any + * @param [response] ListMeasurementProtocolSecretsResponse + */ + type ListMeasurementProtocolSecretsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type CreateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type UpdateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. * @param error Error, if any * @param [response] SearchChangeHistoryEventsResponse */ type SearchChangeHistoryEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. + * @param error Error, if any + * @param [response] GoogleSignalsSettings + */ + type GetGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. + * @param error Error, if any + * @param [response] GoogleSignalsSettings + */ + type UpdateGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. + * @param error Error, if any + * @param [response] ConversionEvent + */ + type CreateConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. + * @param error Error, if any + * @param [response] ConversionEvent + */ + type GetConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteConversionEventCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. + * @param error Error, if any + * @param [response] ListConversionEventsResponse + */ + type ListConversionEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListConversionEventsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type CreateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type UpdateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. + * @param error Error, if any + * @param [response] ListCustomDimensionsResponse + */ + type ListCustomDimensionsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomDimensionsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. + * @param error Error, if any + * @param [response] Empty + */ + type ArchiveCustomDimensionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type GetCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type CreateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type UpdateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. + * @param error Error, if any + * @param [response] ListCustomMetricsResponse + */ + type ListCustomMetricsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomMetricsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. + * @param error Error, if any + * @param [response] Empty + */ + type ArchiveCustomMetricCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type GetCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; } /** Properties of a GetAccountRequest. */ @@ -6965,2081 +7406,5086 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** MaximumUserAccess enum. */ - enum MaximumUserAccess { - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0, - NO_ACCESS = 1, - READ_AND_ANALYZE = 2, - EDITOR_WITHOUT_LINK_MANAGEMENT = 3, - EDITOR_INCLUDING_LINK_MANAGEMENT = 4 + /** Properties of a GetMeasurementProtocolSecretRequest. */ + interface IGetMeasurementProtocolSecretRequest { + + /** GetMeasurementProtocolSecretRequest name */ + name?: (string|null); } - /** IndustryCategory enum. */ - enum IndustryCategory { - INDUSTRY_CATEGORY_UNSPECIFIED = 0, - AUTOMOTIVE = 1, - BUSINESS_AND_INDUSTRIAL_MARKETS = 2, - FINANCE = 3, - HEALTHCARE = 4, - TECHNOLOGY = 5, - TRAVEL = 6, - OTHER = 7, - ARTS_AND_ENTERTAINMENT = 8, - BEAUTY_AND_FITNESS = 9, - BOOKS_AND_LITERATURE = 10, - FOOD_AND_DRINK = 11, - GAMES = 12, - HOBBIES_AND_LEISURE = 13, - HOME_AND_GARDEN = 14, - INTERNET_AND_TELECOM = 15, - LAW_AND_GOVERNMENT = 16, - NEWS = 17, - ONLINE_COMMUNITIES = 18, - PEOPLE_AND_SOCIETY = 19, - PETS_AND_ANIMALS = 20, - REAL_ESTATE = 21, - REFERENCE = 22, - SCIENCE = 23, - SPORTS = 24, - JOBS_AND_EDUCATION = 25, - SHOPPING = 26 - } - - /** ActorType enum. */ - enum ActorType { - ACTOR_TYPE_UNSPECIFIED = 0, - USER = 1, - SYSTEM = 2, - SUPPORT = 3 - } - - /** ActionType enum. */ - enum ActionType { - ACTION_TYPE_UNSPECIFIED = 0, - CREATED = 1, - UPDATED = 2, - DELETED = 3 - } - - /** ChangeHistoryResourceType enum. */ - enum ChangeHistoryResourceType { - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, - ACCOUNT = 1, - PROPERTY = 2, - WEB_DATA_STREAM = 3, - ANDROID_APP_DATA_STREAM = 4, - IOS_APP_DATA_STREAM = 5, - FIREBASE_LINK = 6, - GOOGLE_ADS_LINK = 7 - } - - /** Properties of an Account. */ - interface IAccount { - - /** Account name */ - name?: (string|null); - - /** Account createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Account updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Account displayName */ - displayName?: (string|null); - - /** Account regionCode */ - regionCode?: (string|null); - - /** Account deleted */ - deleted?: (boolean|null); - } - - /** Represents an Account. */ - class Account implements IAccount { + /** Represents a GetMeasurementProtocolSecretRequest. */ + class GetMeasurementProtocolSecretRequest implements IGetMeasurementProtocolSecretRequest { /** - * Constructs a new Account. + * Constructs a new GetMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAccount); + constructor(properties?: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest); - /** Account name. */ + /** GetMeasurementProtocolSecretRequest name. */ public name: string; - /** Account createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Account updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Account displayName. */ - public displayName: string; - - /** Account regionCode. */ - public regionCode: string; - - /** Account deleted. */ - public deleted: boolean; - /** - * Creates a new Account instance using the specified properties. + * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Account instance + * @returns GetMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + public static create(properties?: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message GetMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message GetMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Account + * @returns GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Account; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Account + * @returns GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Account; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Verifies an Account message. + * Verifies a GetMeasurementProtocolSecretRequest message. * @param message Plain 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. + * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Account + * @returns GetMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Account; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. - * @param message Account + * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message GetMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Account to JSON. + * Converts this GetMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Property. */ - interface IProperty { - - /** Property name */ - name?: (string|null); - - /** Property createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Property updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateMeasurementProtocolSecretRequest. */ + interface ICreateMeasurementProtocolSecretRequest { - /** Property parent */ + /** CreateMeasurementProtocolSecretRequest parent */ parent?: (string|null); - /** Property displayName */ - displayName?: (string|null); - - /** Property industryCategory */ - industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); - - /** Property timeZone */ - timeZone?: (string|null); - - /** Property currencyCode */ - currencyCode?: (string|null); - - /** Property deleteTime */ - deleteTime?: (google.protobuf.ITimestamp|null); - - /** Property expireTime */ - expireTime?: (google.protobuf.ITimestamp|null); + /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); } - /** Represents a Property. */ - class Property implements IProperty { + /** Represents a CreateMeasurementProtocolSecretRequest. */ + class CreateMeasurementProtocolSecretRequest implements ICreateMeasurementProtocolSecretRequest { /** - * Constructs a new Property. + * Constructs a new CreateMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IProperty); - - /** Property name. */ - public name: string; - - /** Property createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Property updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest); - /** Property parent. */ + /** CreateMeasurementProtocolSecretRequest parent. */ public parent: string; - /** Property displayName. */ - public displayName: string; - - /** Property industryCategory. */ - public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); - - /** Property timeZone. */ - public timeZone: string; - - /** Property currencyCode. */ - public currencyCode: string; - - /** Property deleteTime. */ - public deleteTime?: (google.protobuf.ITimestamp|null); - - /** Property expireTime. */ - public expireTime?: (google.protobuf.ITimestamp|null); + /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); /** - * Creates a new Property instance using the specified properties. + * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Property instance + * @returns CreateMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + public static create(properties?: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Property + * @returns CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Property; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Property + * @returns CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Property; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Verifies a Property message. + * Verifies a CreateMeasurementProtocolSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Property + * @returns CreateMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. - * @param message Property + * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message CreateMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Property to JSON. + * Converts this CreateMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AndroidAppDataStream. */ - interface IAndroidAppDataStream { + /** Properties of a DeleteMeasurementProtocolSecretRequest. */ + interface IDeleteMeasurementProtocolSecretRequest { - /** AndroidAppDataStream name */ + /** DeleteMeasurementProtocolSecretRequest name */ name?: (string|null); - - /** AndroidAppDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** AndroidAppDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream packageName */ - packageName?: (string|null); - - /** AndroidAppDataStream displayName */ - displayName?: (string|null); } - /** Represents an AndroidAppDataStream. */ - class AndroidAppDataStream implements IAndroidAppDataStream { + /** Represents a DeleteMeasurementProtocolSecretRequest. */ + class DeleteMeasurementProtocolSecretRequest implements IDeleteMeasurementProtocolSecretRequest { /** - * Constructs a new AndroidAppDataStream. + * Constructs a new DeleteMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest); - /** AndroidAppDataStream name. */ + /** DeleteMeasurementProtocolSecretRequest name. */ public name: string; - /** AndroidAppDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** AndroidAppDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream packageName. */ - public packageName: string; - - /** AndroidAppDataStream displayName. */ - public displayName: string; - /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AndroidAppDataStream instance + * @returns DeleteMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode + * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode + * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AndroidAppDataStream + * @returns DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AndroidAppDataStream + * @returns DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Verifies an AndroidAppDataStream message. + * Verifies a DeleteMeasurementProtocolSecretRequest message. * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AndroidAppDataStream + * @returns DeleteMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. - * @param message AndroidAppDataStream + * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message DeleteMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this DeleteMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IosAppDataStream. */ - interface IIosAppDataStream { - - /** IosAppDataStream name */ - name?: (string|null); - - /** IosAppDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** IosAppDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an UpdateMeasurementProtocolSecretRequest. */ + interface IUpdateMeasurementProtocolSecretRequest { - /** IosAppDataStream bundleId */ - bundleId?: (string|null); + /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); - /** IosAppDataStream displayName */ - displayName?: (string|null); + /** UpdateMeasurementProtocolSecretRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an IosAppDataStream. */ - class IosAppDataStream implements IIosAppDataStream { + /** Represents an UpdateMeasurementProtocolSecretRequest. */ + class UpdateMeasurementProtocolSecretRequest implements IUpdateMeasurementProtocolSecretRequest { /** - * Constructs a new IosAppDataStream. + * Constructs a new UpdateMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); - - /** IosAppDataStream name. */ - public name: string; - - /** IosAppDataStream firebaseAppId. */ - public firebaseAppId: string; + constructor(properties?: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest); - /** IosAppDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream bundleId. */ - public bundleId: string; + /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); - /** IosAppDataStream displayName. */ - public displayName: string; + /** UpdateMeasurementProtocolSecretRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IosAppDataStream instance + * @returns UpdateMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode + * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode + * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IosAppDataStream + * @returns UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IosAppDataStream + * @returns UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Verifies an IosAppDataStream message. + * Verifies an UpdateMeasurementProtocolSecretRequest message. * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IosAppDataStream + * @returns UpdateMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. - * @param message IosAppDataStream + * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message UpdateMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IosAppDataStream to JSON. + * Converts this UpdateMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WebDataStream. */ - interface IWebDataStream { - - /** WebDataStream name */ - name?: (string|null); - - /** WebDataStream measurementId */ - measurementId?: (string|null); - - /** WebDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** WebDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListMeasurementProtocolSecretsRequest. */ + interface IListMeasurementProtocolSecretsRequest { - /** WebDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListMeasurementProtocolSecretsRequest parent */ + parent?: (string|null); - /** WebDataStream defaultUri */ - defaultUri?: (string|null); + /** ListMeasurementProtocolSecretsRequest pageSize */ + pageSize?: (number|null); - /** WebDataStream displayName */ - displayName?: (string|null); + /** ListMeasurementProtocolSecretsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a WebDataStream. */ - class WebDataStream implements IWebDataStream { + /** Represents a ListMeasurementProtocolSecretsRequest. */ + class ListMeasurementProtocolSecretsRequest implements IListMeasurementProtocolSecretsRequest { /** - * Constructs a new WebDataStream. + * Constructs a new ListMeasurementProtocolSecretsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); - - /** WebDataStream name. */ - public name: string; + constructor(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest); - /** WebDataStream measurementId. */ - public measurementId: string; - - /** WebDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** WebDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** WebDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListMeasurementProtocolSecretsRequest parent. */ + public parent: string; - /** WebDataStream defaultUri. */ - public defaultUri: string; + /** ListMeasurementProtocolSecretsRequest pageSize. */ + public pageSize: number; - /** WebDataStream displayName. */ - public displayName: string; + /** ListMeasurementProtocolSecretsRequest pageToken. */ + public pageToken: string; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WebDataStream instance + * @returns ListMeasurementProtocolSecretsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; + public static create(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebDataStream + * @returns ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebDataStream + * @returns ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Verifies a WebDataStream message. + * Verifies a ListMeasurementProtocolSecretsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebDataStream + * @returns ListMeasurementProtocolSecretsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. - * @param message WebDataStream + * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. + * @param message ListMeasurementProtocolSecretsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebDataStream to JSON. + * Converts this ListMeasurementProtocolSecretsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a UserLink. */ - interface IUserLink { - - /** UserLink name */ - name?: (string|null); + /** Properties of a ListMeasurementProtocolSecretsResponse. */ + interface IListMeasurementProtocolSecretsResponse { - /** UserLink emailAddress */ - emailAddress?: (string|null); + /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets */ + measurementProtocolSecrets?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret[]|null); - /** UserLink directRoles */ - directRoles?: (string[]|null); + /** ListMeasurementProtocolSecretsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a UserLink. */ - class UserLink implements IUserLink { + /** Represents a ListMeasurementProtocolSecretsResponse. */ + class ListMeasurementProtocolSecretsResponse implements IListMeasurementProtocolSecretsResponse { /** - * Constructs a new UserLink. + * Constructs a new ListMeasurementProtocolSecretsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUserLink); - - /** UserLink name. */ - public name: string; + constructor(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse); - /** UserLink emailAddress. */ - public emailAddress: string; + /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. */ + public measurementProtocolSecrets: google.analytics.admin.v1alpha.IMeasurementProtocolSecret[]; - /** UserLink directRoles. */ - public directRoles: string[]; + /** ListMeasurementProtocolSecretsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UserLink instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UserLink instance + * @returns ListMeasurementProtocolSecretsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUserLink): google.analytics.admin.v1alpha.UserLink; + public static create(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @param message UserLink message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @param message UserLink message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserLink + * @returns ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UserLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserLink + * @returns ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UserLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Verifies a UserLink message. + * Verifies a ListMeasurementProtocolSecretsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserLink + * @returns ListMeasurementProtocolSecretsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UserLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. - * @param message UserLink + * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. + * @param message ListMeasurementProtocolSecretsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserLink to JSON. + * Converts this ListMeasurementProtocolSecretsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AuditUserLink. */ - interface IAuditUserLink { + /** Properties of a GetGoogleSignalsSettingsRequest. */ + interface IGetGoogleSignalsSettingsRequest { - /** AuditUserLink name */ + /** GetGoogleSignalsSettingsRequest name */ name?: (string|null); - - /** AuditUserLink emailAddress */ - emailAddress?: (string|null); - - /** AuditUserLink directRoles */ - directRoles?: (string[]|null); - - /** AuditUserLink effectiveRoles */ - effectiveRoles?: (string[]|null); } - /** Represents an AuditUserLink. */ - class AuditUserLink implements IAuditUserLink { + /** Represents a GetGoogleSignalsSettingsRequest. */ + class GetGoogleSignalsSettingsRequest implements IGetGoogleSignalsSettingsRequest { /** - * Constructs a new AuditUserLink. + * Constructs a new GetGoogleSignalsSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLink); + constructor(properties?: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest); - /** AuditUserLink name. */ + /** GetGoogleSignalsSettingsRequest name. */ public name: string; - /** AuditUserLink emailAddress. */ - public emailAddress: string; - - /** AuditUserLink directRoles. */ - public directRoles: string[]; - - /** AuditUserLink effectiveRoles. */ - public effectiveRoles: string[]; - /** - * Creates a new AuditUserLink instance using the specified properties. + * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AuditUserLink instance + * @returns GetGoogleSignalsSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLink): google.analytics.admin.v1alpha.AuditUserLink; + public static create(properties?: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. - * @param message AuditUserLink message or plain object to encode + * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message GetGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. - * @param message AuditUserLink message or plain object to encode + * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message GetGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuditUserLink + * @returns GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuditUserLink + * @returns GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Verifies an AuditUserLink message. + * Verifies a GetGoogleSignalsSettingsRequest message. * @param message Plain 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 AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuditUserLink + * @returns GetGoogleSignalsSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. - * @param message AuditUserLink + * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * @param message GetGoogleSignalsSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AuditUserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuditUserLink to JSON. + * Converts this GetGoogleSignalsSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnhancedMeasurementSettings. */ - interface IEnhancedMeasurementSettings { + /** Properties of an UpdateGoogleSignalsSettingsRequest. */ + interface IUpdateGoogleSignalsSettingsRequest { - /** EnhancedMeasurementSettings name */ - name?: (string|null); + /** UpdateGoogleSignalsSettingsRequest googleSignalsSettings */ + googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - /** EnhancedMeasurementSettings streamEnabled */ - streamEnabled?: (boolean|null); + /** UpdateGoogleSignalsSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** EnhancedMeasurementSettings pageViewsEnabled */ - pageViewsEnabled?: (boolean|null); + /** Represents an UpdateGoogleSignalsSettingsRequest. */ + class UpdateGoogleSignalsSettingsRequest implements IUpdateGoogleSignalsSettingsRequest { - /** EnhancedMeasurementSettings scrollsEnabled */ - scrollsEnabled?: (boolean|null); + /** + * Constructs a new UpdateGoogleSignalsSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest); - /** EnhancedMeasurementSettings outboundClicksEnabled */ - outboundClicksEnabled?: (boolean|null); + /** UpdateGoogleSignalsSettingsRequest googleSignalsSettings. */ + public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - /** EnhancedMeasurementSettings siteSearchEnabled */ - siteSearchEnabled?: (boolean|null); + /** UpdateGoogleSignalsSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** EnhancedMeasurementSettings videoEngagementEnabled */ - videoEngagementEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings fileDownloadsEnabled */ - fileDownloadsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageLoadsEnabled */ - pageLoadsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageChangesEnabled */ - pageChangesEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings searchQueryParameter */ - searchQueryParameter?: (string|null); - - /** EnhancedMeasurementSettings uriQueryParameter */ - uriQueryParameter?: (string|null); - } - - /** Represents an EnhancedMeasurementSettings. */ - class EnhancedMeasurementSettings implements IEnhancedMeasurementSettings { - - /** - * Constructs a new EnhancedMeasurementSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings); - - /** EnhancedMeasurementSettings name. */ - public name: string; - - /** EnhancedMeasurementSettings streamEnabled. */ - public streamEnabled: boolean; - - /** EnhancedMeasurementSettings pageViewsEnabled. */ - public pageViewsEnabled: boolean; - - /** EnhancedMeasurementSettings scrollsEnabled. */ - public scrollsEnabled: boolean; - - /** EnhancedMeasurementSettings outboundClicksEnabled. */ - public outboundClicksEnabled: boolean; - - /** EnhancedMeasurementSettings siteSearchEnabled. */ - public siteSearchEnabled: boolean; - - /** EnhancedMeasurementSettings videoEngagementEnabled. */ - public videoEngagementEnabled: boolean; - - /** EnhancedMeasurementSettings fileDownloadsEnabled. */ - public fileDownloadsEnabled: boolean; - - /** EnhancedMeasurementSettings pageLoadsEnabled. */ - public pageLoadsEnabled: boolean; - - /** EnhancedMeasurementSettings pageChangesEnabled. */ - public pageChangesEnabled: boolean; - - /** EnhancedMeasurementSettings searchQueryParameter. */ - public searchQueryParameter: string; - - /** EnhancedMeasurementSettings uriQueryParameter. */ - public uriQueryParameter: string; - - /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns EnhancedMeasurementSettings instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + /** + * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateGoogleSignalsSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @param message EnhancedMeasurementSettings message or plain object to encode + * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @param message EnhancedMeasurementSettings message or plain object to encode + * Encodes the specified UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnhancedMeasurementSettings + * @returns UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnhancedMeasurementSettings + * @returns UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Verifies an EnhancedMeasurementSettings message. + * Verifies an UpdateGoogleSignalsSettingsRequest message. * @param message Plain 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 EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnhancedMeasurementSettings + * @returns UpdateGoogleSignalsSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. - * @param message EnhancedMeasurementSettings + * Creates a plain object from an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateGoogleSignalsSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.EnhancedMeasurementSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnhancedMeasurementSettings to JSON. + * Converts this UpdateGoogleSignalsSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FirebaseLink. */ - interface IFirebaseLink { - - /** FirebaseLink name */ - name?: (string|null); - - /** FirebaseLink project */ - project?: (string|null); + /** Properties of a CreateConversionEventRequest. */ + interface ICreateConversionEventRequest { - /** FirebaseLink createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** CreateConversionEventRequest conversionEvent */ + conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - /** FirebaseLink maximumUserAccess */ - maximumUserAccess?: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess|null); + /** CreateConversionEventRequest parent */ + parent?: (string|null); } - /** Represents a FirebaseLink. */ - class FirebaseLink implements IFirebaseLink { + /** Represents a CreateConversionEventRequest. */ + class CreateConversionEventRequest implements ICreateConversionEventRequest { /** - * Constructs a new FirebaseLink. + * Constructs a new CreateConversionEventRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IFirebaseLink); - - /** FirebaseLink name. */ - public name: string; + constructor(properties?: google.analytics.admin.v1alpha.ICreateConversionEventRequest); - /** FirebaseLink project. */ - public project: string; - - /** FirebaseLink createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** CreateConversionEventRequest conversionEvent. */ + public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - /** FirebaseLink maximumUserAccess. */ - public maximumUserAccess: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess); + /** CreateConversionEventRequest parent. */ + public parent: string; /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new CreateConversionEventRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FirebaseLink instance + * @returns CreateConversionEventRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IFirebaseLink): google.analytics.admin.v1alpha.FirebaseLink; + public static create(properties?: google.analytics.admin.v1alpha.ICreateConversionEventRequest): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. - * @param message FirebaseLink message or plain object to encode + * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * @param message CreateConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. - * @param message FirebaseLink message or plain object to encode + * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * @param message CreateConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FirebaseLink + * @returns CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FirebaseLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FirebaseLink + * @returns CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FirebaseLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Verifies a FirebaseLink message. + * Verifies a CreateConversionEventRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FirebaseLink + * @returns CreateConversionEventRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FirebaseLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. - * @param message FirebaseLink + * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. + * @param message CreateConversionEventRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FirebaseLink to JSON. + * Converts this CreateConversionEventRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GlobalSiteTag. */ - interface IGlobalSiteTag { + /** Properties of a GetConversionEventRequest. */ + interface IGetConversionEventRequest { - /** GlobalSiteTag name */ + /** GetConversionEventRequest name */ name?: (string|null); - - /** GlobalSiteTag snippet */ - snippet?: (string|null); } - /** Represents a GlobalSiteTag. */ - class GlobalSiteTag implements IGlobalSiteTag { + /** Represents a GetConversionEventRequest. */ + class GetConversionEventRequest implements IGetConversionEventRequest { /** - * Constructs a new GlobalSiteTag. + * Constructs a new GetConversionEventRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); + constructor(properties?: google.analytics.admin.v1alpha.IGetConversionEventRequest); - /** GlobalSiteTag name. */ + /** GetConversionEventRequest name. */ public name: string; - /** GlobalSiteTag snippet. */ - public snippet: string; - /** - * Creates a new GlobalSiteTag instance using the specified properties. + * Creates a new GetConversionEventRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GlobalSiteTag instance + * @returns GetConversionEventRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag): google.analytics.admin.v1alpha.GlobalSiteTag; + public static create(properties?: google.analytics.admin.v1alpha.IGetConversionEventRequest): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. - * @param message GlobalSiteTag message or plain object to encode + * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * @param message GetConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. - * @param message GlobalSiteTag message or plain object to encode + * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * @param message GetConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes a GetConversionEventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GlobalSiteTag + * @returns GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GlobalSiteTag; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GlobalSiteTag + * @returns GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GlobalSiteTag; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Verifies a GlobalSiteTag message. + * Verifies a GetConversionEventRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GlobalSiteTag + * @returns GetConversionEventRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GlobalSiteTag; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. - * @param message GlobalSiteTag + * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. + * @param message GetConversionEventRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GlobalSiteTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GlobalSiteTag to JSON. + * Converts this GetConversionEventRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GoogleAdsLink. */ - interface IGoogleAdsLink { + /** Properties of a DeleteConversionEventRequest. */ + interface IDeleteConversionEventRequest { - /** GoogleAdsLink name */ + /** DeleteConversionEventRequest name */ name?: (string|null); - - /** GoogleAdsLink customerId */ - customerId?: (string|null); - - /** GoogleAdsLink canManageClients */ - canManageClients?: (boolean|null); - - /** GoogleAdsLink adsPersonalizationEnabled */ - adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); - - /** GoogleAdsLink emailAddress */ - emailAddress?: (string|null); - - /** GoogleAdsLink createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** GoogleAdsLink updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a GoogleAdsLink. */ - class GoogleAdsLink implements IGoogleAdsLink { + /** Represents a DeleteConversionEventRequest. */ + class DeleteConversionEventRequest implements IDeleteConversionEventRequest { /** - * Constructs a new GoogleAdsLink. + * Constructs a new DeleteConversionEventRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteConversionEventRequest); - /** GoogleAdsLink name. */ + /** DeleteConversionEventRequest name. */ public name: string; - /** GoogleAdsLink customerId. */ - public customerId: string; - - /** GoogleAdsLink canManageClients. */ - public canManageClients: boolean; - - /** GoogleAdsLink adsPersonalizationEnabled. */ - public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); - - /** GoogleAdsLink emailAddress. */ - public emailAddress: string; - - /** GoogleAdsLink createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** GoogleAdsLink updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new DeleteConversionEventRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GoogleAdsLink instance + * @returns DeleteConversionEventRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink): google.analytics.admin.v1alpha.GoogleAdsLink; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteConversionEventRequest): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. - * @param message GoogleAdsLink message or plain object to encode + * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * @param message DeleteConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. - * @param message GoogleAdsLink message or plain object to encode + * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * @param message DeleteConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GoogleAdsLink + * @returns DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GoogleAdsLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GoogleAdsLink + * @returns DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GoogleAdsLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Verifies a GoogleAdsLink message. + * Verifies a DeleteConversionEventRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GoogleAdsLink + * @returns DeleteConversionEventRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleAdsLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. - * @param message GoogleAdsLink + * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. + * @param message DeleteConversionEventRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GoogleAdsLink to JSON. + * Converts this DeleteConversionEventRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DataSharingSettings. */ - interface IDataSharingSettings { + /** Properties of a ListConversionEventsRequest. */ + interface IListConversionEventsRequest { - /** DataSharingSettings name */ - name?: (string|null); + /** ListConversionEventsRequest parent */ + parent?: (string|null); - /** DataSharingSettings sharingWithGoogleSupportEnabled */ - sharingWithGoogleSupportEnabled?: (boolean|null); + /** ListConversionEventsRequest pageSize */ + pageSize?: (number|null); - /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ - sharingWithGoogleAssignedSalesEnabled?: (boolean|null); + /** ListConversionEventsRequest pageToken */ + pageToken?: (string|null); + } - /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ - sharingWithGoogleAnySalesEnabled?: (boolean|null); + /** Represents a ListConversionEventsRequest. */ + class ListConversionEventsRequest implements IListConversionEventsRequest { - /** DataSharingSettings sharingWithGoogleProductsEnabled */ - sharingWithGoogleProductsEnabled?: (boolean|null); + /** + * Constructs a new ListConversionEventsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListConversionEventsRequest); - /** DataSharingSettings sharingWithOthersEnabled */ - sharingWithOthersEnabled?: (boolean|null); - } + /** ListConversionEventsRequest parent. */ + public parent: string; - /** Represents a DataSharingSettings. */ - class DataSharingSettings implements IDataSharingSettings { + /** ListConversionEventsRequest pageSize. */ + public pageSize: number; + + /** ListConversionEventsRequest pageToken. */ + public pageToken: string; /** - * Constructs a new DataSharingSettings. + * Creates a new ListConversionEventsRequest instance using the specified properties. * @param [properties] Properties to set + * @returns ListConversionEventsRequest instance */ - constructor(properties?: google.analytics.admin.v1alpha.IDataSharingSettings); + public static create(properties?: google.analytics.admin.v1alpha.IListConversionEventsRequest): google.analytics.admin.v1alpha.ListConversionEventsRequest; - /** DataSharingSettings name. */ - public name: string; + /** + * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * @param message ListConversionEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataSharingSettings sharingWithGoogleSupportEnabled. */ - public sharingWithGoogleSupportEnabled: boolean; + /** + * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * @param message ListConversionEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ - public sharingWithGoogleAssignedSalesEnabled: boolean; + /** + * Decodes a ListConversionEventsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListConversionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListConversionEventsRequest; - /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ - public sharingWithGoogleAnySalesEnabled: boolean; + /** + * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListConversionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListConversionEventsRequest; - /** DataSharingSettings sharingWithGoogleProductsEnabled. */ - public sharingWithGoogleProductsEnabled: boolean; + /** + * Verifies a ListConversionEventsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** DataSharingSettings sharingWithOthersEnabled. */ - public sharingWithOthersEnabled: boolean; + /** + * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListConversionEventsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListConversionEventsRequest; /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. + * @param message ListConversionEventsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListConversionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListConversionEventsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListConversionEventsResponse. */ + interface IListConversionEventsResponse { + + /** ListConversionEventsResponse conversionEvents */ + conversionEvents?: (google.analytics.admin.v1alpha.IConversionEvent[]|null); + + /** ListConversionEventsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListConversionEventsResponse. */ + class ListConversionEventsResponse implements IListConversionEventsResponse { + + /** + * Constructs a new ListConversionEventsResponse. * @param [properties] Properties to set - * @returns DataSharingSettings instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDataSharingSettings): google.analytics.admin.v1alpha.DataSharingSettings; + constructor(properties?: google.analytics.admin.v1alpha.IListConversionEventsResponse); + + /** ListConversionEventsResponse conversionEvents. */ + public conversionEvents: google.analytics.admin.v1alpha.IConversionEvent[]; + + /** ListConversionEventsResponse nextPageToken. */ + public nextPageToken: string; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. - * @param message DataSharingSettings message or plain object to encode + * Creates a new ListConversionEventsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListConversionEventsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListConversionEventsResponse): google.analytics.admin.v1alpha.ListConversionEventsResponse; + + /** + * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * @param message ListConversionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. - * @param message DataSharingSettings message or plain object to encode + * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * @param message ListConversionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataSharingSettings + * @returns ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataSharingSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListConversionEventsResponse; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataSharingSettings + * @returns ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataSharingSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListConversionEventsResponse; /** - * Verifies a DataSharingSettings message. + * Verifies a ListConversionEventsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataSharingSettings + * @returns ListConversionEventsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataSharingSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListConversionEventsResponse; /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. - * @param message DataSharingSettings + * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. + * @param message ListConversionEventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListConversionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataSharingSettings to JSON. + * Converts this ListConversionEventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AccountSummary. */ - interface IAccountSummary { + /** Properties of a CreateCustomDimensionRequest. */ + interface ICreateCustomDimensionRequest { - /** AccountSummary name */ - name?: (string|null); + /** CreateCustomDimensionRequest parent */ + parent?: (string|null); - /** AccountSummary account */ - account?: (string|null); + /** CreateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + } - /** AccountSummary displayName */ - displayName?: (string|null); + /** Represents a CreateCustomDimensionRequest. */ + class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { - /** AccountSummary propertySummaries */ - propertySummaries?: (google.analytics.admin.v1alpha.IPropertySummary[]|null); - } + /** + * Constructs a new CreateCustomDimensionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest); - /** Represents an AccountSummary. */ - class AccountSummary implements IAccountSummary { + /** CreateCustomDimensionRequest parent. */ + public parent: string; + + /** CreateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); /** - * Constructs a new AccountSummary. + * Creates a new CreateCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set + * @returns CreateCustomDimensionRequest instance */ - constructor(properties?: google.analytics.admin.v1alpha.IAccountSummary); + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; - /** AccountSummary name. */ - public name: string; + /** + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** AccountSummary account. */ - public account: string; + /** + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** AccountSummary displayName. */ - public displayName: string; + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; - /** AccountSummary propertySummaries. */ - public propertySummaries: google.analytics.admin.v1alpha.IPropertySummary[]; + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Creates a new AccountSummary instance using the specified properties. + * Verifies a CreateCustomDimensionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateCustomDimensionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + + /** + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message CreateCustomDimensionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateCustomDimensionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateCustomDimensionRequest. */ + interface IUpdateCustomDimensionRequest { + + /** UpdateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** UpdateCustomDimensionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateCustomDimensionRequest. */ + class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { + + /** + * Constructs a new UpdateCustomDimensionRequest. * @param [properties] Properties to set - * @returns AccountSummary instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAccountSummary): google.analytics.admin.v1alpha.AccountSummary; + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest); + + /** UpdateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** UpdateCustomDimensionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. - * @param message AccountSummary message or plain object to encode + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCustomDimensionRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + + /** + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. - * @param message AccountSummary message or plain object to encode + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AccountSummary message from the specified reader or buffer. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AccountSummary + * @returns UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccountSummary; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AccountSummary + * @returns UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccountSummary; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Verifies an AccountSummary message. + * Verifies an UpdateCustomDimensionRequest message. * @param message Plain 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 AccountSummary message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AccountSummary + * @returns UpdateCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccountSummary; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. - * @param message AccountSummary + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message UpdateCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AccountSummary to JSON. + * Converts this UpdateCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PropertySummary. */ - interface IPropertySummary { + /** Properties of a ListCustomDimensionsRequest. */ + interface IListCustomDimensionsRequest { - /** PropertySummary property */ - property?: (string|null); + /** ListCustomDimensionsRequest parent */ + parent?: (string|null); - /** PropertySummary displayName */ - displayName?: (string|null); + /** ListCustomDimensionsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomDimensionsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a PropertySummary. */ - class PropertySummary implements IPropertySummary { + /** Represents a ListCustomDimensionsRequest. */ + class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { /** - * Constructs a new PropertySummary. + * Constructs a new ListCustomDimensionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IPropertySummary); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest); - /** PropertySummary property. */ - public property: string; + /** ListCustomDimensionsRequest parent. */ + public parent: string; - /** PropertySummary displayName. */ - public displayName: string; + /** ListCustomDimensionsRequest pageSize. */ + public pageSize: number; + + /** ListCustomDimensionsRequest pageToken. */ + public pageToken: string; /** - * Creates a new PropertySummary instance using the specified properties. + * Creates a new ListCustomDimensionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PropertySummary instance + * @returns ListCustomDimensionsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IPropertySummary): google.analytics.admin.v1alpha.PropertySummary; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. - * @param message PropertySummary message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. - * @param message PropertySummary message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + + /** + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + + /** + * Verifies a ListCustomDimensionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomDimensionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + + /** + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @param message ListCustomDimensionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomDimensionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListCustomDimensionsResponse. */ + interface IListCustomDimensionsResponse { + + /** ListCustomDimensionsResponse customDimensions */ + customDimensions?: (google.analytics.admin.v1alpha.ICustomDimension[]|null); + + /** ListCustomDimensionsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListCustomDimensionsResponse. */ + class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { + + /** + * Constructs a new ListCustomDimensionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse); + + /** ListCustomDimensionsResponse customDimensions. */ + public customDimensions: google.analytics.admin.v1alpha.ICustomDimension[]; + + /** ListCustomDimensionsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCustomDimensionsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + + /** + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + + /** + * Verifies a ListCustomDimensionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomDimensionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + + /** + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @param message ListCustomDimensionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomDimensionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ArchiveCustomDimensionRequest. */ + interface IArchiveCustomDimensionRequest { + + /** ArchiveCustomDimensionRequest name */ + name?: (string|null); + } + + /** Represents an ArchiveCustomDimensionRequest. */ + class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { + + /** + * Constructs a new ArchiveCustomDimensionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest); + + /** ArchiveCustomDimensionRequest name. */ + public name: string; + + /** + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ArchiveCustomDimensionRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + + /** + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + + /** + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + + /** + * Verifies an ArchiveCustomDimensionRequest message. + * @param message Plain 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 ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArchiveCustomDimensionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + + /** + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomDimensionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArchiveCustomDimensionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCustomDimensionRequest. */ + interface IGetCustomDimensionRequest { + + /** GetCustomDimensionRequest name */ + name?: (string|null); + } + + /** Represents a GetCustomDimensionRequest. */ + class GetCustomDimensionRequest implements IGetCustomDimensionRequest { + + /** + * Constructs a new GetCustomDimensionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest); + + /** GetCustomDimensionRequest name. */ + public name: string; + + /** + * Creates a new GetCustomDimensionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCustomDimensionRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + + /** + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + + /** + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + + /** + * Verifies a GetCustomDimensionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCustomDimensionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + + /** + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @param message GetCustomDimensionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCustomDimensionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateCustomMetricRequest. */ + interface ICreateCustomMetricRequest { + + /** CreateCustomMetricRequest parent */ + parent?: (string|null); + + /** CreateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + } + + /** Represents a CreateCustomMetricRequest. */ + class CreateCustomMetricRequest implements ICreateCustomMetricRequest { + + /** + * Constructs a new CreateCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest); + + /** CreateCustomMetricRequest parent. */ + public parent: string; + + /** CreateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** + * Creates a new CreateCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + + /** + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + + /** + * Verifies a CreateCustomMetricRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + + /** + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @param message CreateCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateCustomMetricRequest. */ + interface IUpdateCustomMetricRequest { + + /** UpdateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** UpdateCustomMetricRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateCustomMetricRequest. */ + class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { + + /** + * Constructs a new UpdateCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest); + + /** UpdateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** UpdateCustomMetricRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + + /** + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + + /** + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + + /** + * Verifies an UpdateCustomMetricRequest message. + * @param message Plain 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + + /** + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @param message UpdateCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListCustomMetricsRequest. */ + interface IListCustomMetricsRequest { + + /** ListCustomMetricsRequest parent */ + parent?: (string|null); + + /** ListCustomMetricsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomMetricsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListCustomMetricsRequest. */ + class ListCustomMetricsRequest implements IListCustomMetricsRequest { + + /** + * Constructs a new ListCustomMetricsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest); + + /** ListCustomMetricsRequest parent. */ + public parent: string; + + /** ListCustomMetricsRequest pageSize. */ + public pageSize: number; + + /** ListCustomMetricsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCustomMetricsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + + /** + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + + /** + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + + /** + * Verifies a ListCustomMetricsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomMetricsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + + /** + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * @param message ListCustomMetricsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomMetricsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListCustomMetricsResponse. */ + interface IListCustomMetricsResponse { + + /** ListCustomMetricsResponse customMetrics */ + customMetrics?: (google.analytics.admin.v1alpha.ICustomMetric[]|null); + + /** ListCustomMetricsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListCustomMetricsResponse. */ + class ListCustomMetricsResponse implements IListCustomMetricsResponse { + + /** + * Constructs a new ListCustomMetricsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse); + + /** ListCustomMetricsResponse customMetrics. */ + public customMetrics: google.analytics.admin.v1alpha.ICustomMetric[]; + + /** ListCustomMetricsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListCustomMetricsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCustomMetricsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + + /** + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + + /** + * Verifies a ListCustomMetricsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomMetricsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + + /** + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @param message ListCustomMetricsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomMetricsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ArchiveCustomMetricRequest. */ + interface IArchiveCustomMetricRequest { + + /** ArchiveCustomMetricRequest name */ + name?: (string|null); + } + + /** Represents an ArchiveCustomMetricRequest. */ + class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { + + /** + * Constructs a new ArchiveCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest); + + /** ArchiveCustomMetricRequest name. */ + public name: string; + + /** + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ArchiveCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + + /** + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + + /** + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + + /** + * Verifies an ArchiveCustomMetricRequest message. + * @param message Plain 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 ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArchiveCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + + /** + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArchiveCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCustomMetricRequest. */ + interface IGetCustomMetricRequest { + + /** GetCustomMetricRequest name */ + name?: (string|null); + } + + /** Represents a GetCustomMetricRequest. */ + class GetCustomMetricRequest implements IGetCustomMetricRequest { + + /** + * Constructs a new GetCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest); + + /** GetCustomMetricRequest name. */ + public name: string; + + /** + * Creates a new GetCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Verifies a GetCustomMetricRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @param message GetCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** MaximumUserAccess enum. */ + enum MaximumUserAccess { + MAXIMUM_USER_ACCESS_UNSPECIFIED = 0, + NO_ACCESS = 1, + READ_AND_ANALYZE = 2, + EDITOR_WITHOUT_LINK_MANAGEMENT = 3, + EDITOR_INCLUDING_LINK_MANAGEMENT = 4 + } + + /** IndustryCategory enum. */ + enum IndustryCategory { + INDUSTRY_CATEGORY_UNSPECIFIED = 0, + AUTOMOTIVE = 1, + BUSINESS_AND_INDUSTRIAL_MARKETS = 2, + FINANCE = 3, + HEALTHCARE = 4, + TECHNOLOGY = 5, + TRAVEL = 6, + OTHER = 7, + ARTS_AND_ENTERTAINMENT = 8, + BEAUTY_AND_FITNESS = 9, + BOOKS_AND_LITERATURE = 10, + FOOD_AND_DRINK = 11, + GAMES = 12, + HOBBIES_AND_LEISURE = 13, + HOME_AND_GARDEN = 14, + INTERNET_AND_TELECOM = 15, + LAW_AND_GOVERNMENT = 16, + NEWS = 17, + ONLINE_COMMUNITIES = 18, + PEOPLE_AND_SOCIETY = 19, + PETS_AND_ANIMALS = 20, + REAL_ESTATE = 21, + REFERENCE = 22, + SCIENCE = 23, + SPORTS = 24, + JOBS_AND_EDUCATION = 25, + SHOPPING = 26 + } + + /** ActorType enum. */ + enum ActorType { + ACTOR_TYPE_UNSPECIFIED = 0, + USER = 1, + SYSTEM = 2, + SUPPORT = 3 + } + + /** ActionType enum. */ + enum ActionType { + ACTION_TYPE_UNSPECIFIED = 0, + CREATED = 1, + UPDATED = 2, + DELETED = 3 + } + + /** ChangeHistoryResourceType enum. */ + enum ChangeHistoryResourceType { + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, + ACCOUNT = 1, + PROPERTY = 2, + WEB_DATA_STREAM = 3, + ANDROID_APP_DATA_STREAM = 4, + IOS_APP_DATA_STREAM = 5, + FIREBASE_LINK = 6, + GOOGLE_ADS_LINK = 7, + GOOGLE_SIGNALS_SETTINGS = 8, + CONVERSION_EVENT = 9, + MEASUREMENT_PROTOCOL_SECRET = 10, + CUSTOM_DIMENSION = 11, + CUSTOM_METRIC = 12 + } + + /** GoogleSignalsState enum. */ + enum GoogleSignalsState { + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0, + GOOGLE_SIGNALS_ENABLED = 1, + GOOGLE_SIGNALS_DISABLED = 2 + } + + /** GoogleSignalsConsent enum. */ + enum GoogleSignalsConsent { + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0, + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2, + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 + } + + /** Properties of an Account. */ + interface IAccount { + + /** Account name */ + name?: (string|null); + + /** Account createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName */ + displayName?: (string|null); + + /** Account regionCode */ + regionCode?: (string|null); + + /** Account deleted */ + deleted?: (boolean|null); + } + + /** Represents an Account. */ + class Account implements IAccount { + + /** + * Constructs a new Account. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccount); + + /** Account name. */ + public name: string; + + /** Account createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName. */ + public displayName: string; + + /** Account regionCode. */ + public regionCode: string; + + /** Account deleted. */ + public deleted: boolean; + + /** + * Creates a new Account instance using the specified properties. + * @param [properties] Properties to set + * @returns Account instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Account to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Property. */ + interface IProperty { + + /** Property name */ + name?: (string|null); + + /** Property createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent */ + parent?: (string|null); + + /** Property displayName */ + displayName?: (string|null); + + /** Property industryCategory */ + industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); + + /** Property timeZone */ + timeZone?: (string|null); + + /** Property currencyCode */ + currencyCode?: (string|null); + + /** Property deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Property. */ + class Property implements IProperty { + + /** + * Constructs a new Property. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProperty); + + /** Property name. */ + public name: string; + + /** Property createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent. */ + public parent: string; + + /** Property displayName. */ + public displayName: string; + + /** Property industryCategory. */ + public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); + + /** Property timeZone. */ + public timeZone: string; + + /** Property currencyCode. */ + public currencyCode: string; + + /** Property deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Property instance using the specified properties. + * @param [properties] Properties to set + * @returns Property instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Property message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Property; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Property; + + /** + * Verifies a Property message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Property + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @param message Property + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Property to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AndroidAppDataStream. */ + interface IAndroidAppDataStream { + + /** AndroidAppDataStream name */ + name?: (string|null); + + /** AndroidAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** AndroidAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName */ + packageName?: (string|null); + + /** AndroidAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an AndroidAppDataStream. */ + class AndroidAppDataStream implements IAndroidAppDataStream { + + /** + * Constructs a new AndroidAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); + + /** AndroidAppDataStream name. */ + public name: string; + + /** AndroidAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** AndroidAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName. */ + public packageName: string; + + /** AndroidAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns AndroidAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Verifies an AndroidAppDataStream message. + * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AndroidAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @param message AndroidAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IosAppDataStream. */ + interface IIosAppDataStream { + + /** IosAppDataStream name */ + name?: (string|null); + + /** IosAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** IosAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId */ + bundleId?: (string|null); + + /** IosAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an IosAppDataStream. */ + class IosAppDataStream implements IIosAppDataStream { + + /** + * Constructs a new IosAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); + + /** IosAppDataStream name. */ + public name: string; + + /** IosAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** IosAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId. */ + public bundleId: string; + + /** IosAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns IosAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Verifies an IosAppDataStream message. + * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IosAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @param message IosAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IosAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a WebDataStream. */ + interface IWebDataStream { + + /** WebDataStream name */ + name?: (string|null); + + /** WebDataStream measurementId */ + measurementId?: (string|null); + + /** WebDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** WebDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream defaultUri */ + defaultUri?: (string|null); + + /** WebDataStream displayName */ + displayName?: (string|null); + } + + /** Represents a WebDataStream. */ + class WebDataStream implements IWebDataStream { + + /** + * Constructs a new WebDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); + + /** WebDataStream name. */ + public name: string; + + /** WebDataStream measurementId. */ + public measurementId: string; + + /** WebDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** WebDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream defaultUri. */ + public defaultUri: string; + + /** WebDataStream displayName. */ + public displayName: string; + + /** + * Creates a new WebDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns WebDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WebDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Verifies a WebDataStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @param message WebDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WebDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a UserLink. */ + interface IUserLink { + + /** UserLink name */ + name?: (string|null); + + /** UserLink emailAddress */ + emailAddress?: (string|null); + + /** UserLink directRoles */ + directRoles?: (string[]|null); + } + + /** Represents a UserLink. */ + class UserLink implements IUserLink { + + /** + * Constructs a new UserLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUserLink); + + /** UserLink name. */ + public name: string; + + /** UserLink emailAddress. */ + public emailAddress: string; + + /** UserLink directRoles. */ + public directRoles: string[]; + + /** + * Creates a new UserLink instance using the specified properties. + * @param [properties] Properties to set + * @returns UserLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUserLink): google.analytics.admin.v1alpha.UserLink; + + /** + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UserLink; + + /** + * Decodes a UserLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UserLink; + + /** + * Verifies a UserLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UserLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UserLink; + + /** + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @param message UserLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UserLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuditUserLink. */ + interface IAuditUserLink { + + /** AuditUserLink name */ + name?: (string|null); + + /** AuditUserLink emailAddress */ + emailAddress?: (string|null); + + /** AuditUserLink directRoles */ + directRoles?: (string[]|null); + + /** AuditUserLink effectiveRoles */ + effectiveRoles?: (string[]|null); + } + + /** Represents an AuditUserLink. */ + class AuditUserLink implements IAuditUserLink { + + /** + * Constructs a new AuditUserLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLink); + + /** AuditUserLink name. */ + public name: string; + + /** AuditUserLink emailAddress. */ + public emailAddress: string; + + /** AuditUserLink directRoles. */ + public directRoles: string[]; + + /** AuditUserLink effectiveRoles. */ + public effectiveRoles: string[]; + + /** + * Creates a new AuditUserLink instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditUserLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLink): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Verifies an AuditUserLink message. + * @param message Plain 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 AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditUserLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @param message AuditUserLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditUserLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnhancedMeasurementSettings. */ + interface IEnhancedMeasurementSettings { + + /** EnhancedMeasurementSettings name */ + name?: (string|null); + + /** EnhancedMeasurementSettings streamEnabled */ + streamEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageViewsEnabled */ + pageViewsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings scrollsEnabled */ + scrollsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings outboundClicksEnabled */ + outboundClicksEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings siteSearchEnabled */ + siteSearchEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings videoEngagementEnabled */ + videoEngagementEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings fileDownloadsEnabled */ + fileDownloadsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageLoadsEnabled */ + pageLoadsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageChangesEnabled */ + pageChangesEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings searchQueryParameter */ + searchQueryParameter?: (string|null); + + /** EnhancedMeasurementSettings uriQueryParameter */ + uriQueryParameter?: (string|null); + } + + /** Represents an EnhancedMeasurementSettings. */ + class EnhancedMeasurementSettings implements IEnhancedMeasurementSettings { + + /** + * Constructs a new EnhancedMeasurementSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings); + + /** EnhancedMeasurementSettings name. */ + public name: string; + + /** EnhancedMeasurementSettings streamEnabled. */ + public streamEnabled: boolean; + + /** EnhancedMeasurementSettings pageViewsEnabled. */ + public pageViewsEnabled: boolean; + + /** EnhancedMeasurementSettings scrollsEnabled. */ + public scrollsEnabled: boolean; + + /** EnhancedMeasurementSettings outboundClicksEnabled. */ + public outboundClicksEnabled: boolean; + + /** EnhancedMeasurementSettings siteSearchEnabled. */ + public siteSearchEnabled: boolean; + + /** EnhancedMeasurementSettings videoEngagementEnabled. */ + public videoEngagementEnabled: boolean; + + /** EnhancedMeasurementSettings fileDownloadsEnabled. */ + public fileDownloadsEnabled: boolean; + + /** EnhancedMeasurementSettings pageLoadsEnabled. */ + public pageLoadsEnabled: boolean; + + /** EnhancedMeasurementSettings pageChangesEnabled. */ + public pageChangesEnabled: boolean; + + /** EnhancedMeasurementSettings searchQueryParameter. */ + public searchQueryParameter: string; + + /** EnhancedMeasurementSettings uriQueryParameter. */ + public uriQueryParameter: string; + + /** + * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns EnhancedMeasurementSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @param message EnhancedMeasurementSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @param message EnhancedMeasurementSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Verifies an EnhancedMeasurementSettings message. + * @param message Plain 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 EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnhancedMeasurementSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * @param message EnhancedMeasurementSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.EnhancedMeasurementSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnhancedMeasurementSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FirebaseLink. */ + interface IFirebaseLink { + + /** FirebaseLink name */ + name?: (string|null); + + /** FirebaseLink project */ + project?: (string|null); + + /** FirebaseLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** FirebaseLink maximumUserAccess */ + maximumUserAccess?: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess|null); + } + + /** Represents a FirebaseLink. */ + class FirebaseLink implements IFirebaseLink { + + /** + * Constructs a new FirebaseLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IFirebaseLink); + + /** FirebaseLink name. */ + public name: string; + + /** FirebaseLink project. */ + public project: string; + + /** FirebaseLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** FirebaseLink maximumUserAccess. */ + public maximumUserAccess: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess); + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @param [properties] Properties to set + * @returns FirebaseLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IFirebaseLink): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Verifies a FirebaseLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FirebaseLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @param message FirebaseLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FirebaseLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GlobalSiteTag. */ + interface IGlobalSiteTag { + + /** GlobalSiteTag name */ + name?: (string|null); + + /** GlobalSiteTag snippet */ + snippet?: (string|null); + } + + /** Represents a GlobalSiteTag. */ + class GlobalSiteTag implements IGlobalSiteTag { + + /** + * Constructs a new GlobalSiteTag. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); + + /** GlobalSiteTag name. */ + public name: string; + + /** GlobalSiteTag snippet. */ + public snippet: string; + + /** + * Creates a new GlobalSiteTag instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalSiteTag instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Verifies a GlobalSiteTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalSiteTag + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @param message GlobalSiteTag + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GlobalSiteTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalSiteTag to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GoogleAdsLink. */ + interface IGoogleAdsLink { + + /** GoogleAdsLink name */ + name?: (string|null); + + /** GoogleAdsLink customerId */ + customerId?: (string|null); + + /** GoogleAdsLink canManageClients */ + canManageClients?: (boolean|null); + + /** GoogleAdsLink adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink emailAddress */ + emailAddress?: (string|null); + + /** GoogleAdsLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a GoogleAdsLink. */ + class GoogleAdsLink implements IGoogleAdsLink { + + /** + * Constructs a new GoogleAdsLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink); + + /** GoogleAdsLink name. */ + public name: string; + + /** GoogleAdsLink customerId. */ + public customerId: string; + + /** GoogleAdsLink canManageClients. */ + public canManageClients: boolean; + + /** GoogleAdsLink adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink emailAddress. */ + public emailAddress: string; + + /** GoogleAdsLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @param [properties] Properties to set + * @returns GoogleAdsLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Verifies a GoogleAdsLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GoogleAdsLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @param message GoogleAdsLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GoogleAdsLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataSharingSettings. */ + interface IDataSharingSettings { + + /** DataSharingSettings name */ + name?: (string|null); + + /** DataSharingSettings sharingWithGoogleSupportEnabled */ + sharingWithGoogleSupportEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ + sharingWithGoogleAssignedSalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ + sharingWithGoogleAnySalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleProductsEnabled */ + sharingWithGoogleProductsEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithOthersEnabled */ + sharingWithOthersEnabled?: (boolean|null); + } + + /** Represents a DataSharingSettings. */ + class DataSharingSettings implements IDataSharingSettings { + + /** + * Constructs a new DataSharingSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDataSharingSettings); + + /** DataSharingSettings name. */ + public name: string; + + /** DataSharingSettings sharingWithGoogleSupportEnabled. */ + public sharingWithGoogleSupportEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ + public sharingWithGoogleAssignedSalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ + public sharingWithGoogleAnySalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleProductsEnabled. */ + public sharingWithGoogleProductsEnabled: boolean; + + /** DataSharingSettings sharingWithOthersEnabled. */ + public sharingWithOthersEnabled: boolean; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DataSharingSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDataSharingSettings): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Verifies a DataSharingSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataSharingSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @param message DataSharingSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataSharingSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccountSummary. */ + interface IAccountSummary { + + /** AccountSummary name */ + name?: (string|null); + + /** AccountSummary account */ + account?: (string|null); + + /** AccountSummary displayName */ + displayName?: (string|null); + + /** AccountSummary propertySummaries */ + propertySummaries?: (google.analytics.admin.v1alpha.IPropertySummary[]|null); + } + + /** Represents an AccountSummary. */ + class AccountSummary implements IAccountSummary { + + /** + * Constructs a new AccountSummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccountSummary); + + /** AccountSummary name. */ + public name: string; + + /** AccountSummary account. */ + public account: string; + + /** AccountSummary displayName. */ + public displayName: string; + + /** AccountSummary propertySummaries. */ + public propertySummaries: google.analytics.admin.v1alpha.IPropertySummary[]; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @param [properties] Properties to set + * @returns AccountSummary instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccountSummary): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Verifies an AccountSummary message. + * @param message Plain 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 AccountSummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccountSummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @param message AccountSummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccountSummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PropertySummary. */ + interface IPropertySummary { + + /** PropertySummary property */ + property?: (string|null); + + /** PropertySummary displayName */ + displayName?: (string|null); + } + + /** Represents a PropertySummary. */ + class PropertySummary implements IPropertySummary { + + /** + * Constructs a new PropertySummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IPropertySummary); + + /** PropertySummary property. */ + public property: string; + + /** PropertySummary displayName. */ + public displayName: string; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @param [properties] Properties to set + * @returns PropertySummary instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IPropertySummary): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Verifies a PropertySummary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PropertySummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @param message PropertySummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PropertySummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MeasurementProtocolSecret. */ + interface IMeasurementProtocolSecret { + + /** MeasurementProtocolSecret name */ + name?: (string|null); + + /** MeasurementProtocolSecret displayName */ + displayName?: (string|null); + + /** MeasurementProtocolSecret secretValue */ + secretValue?: (string|null); + } + + /** Represents a MeasurementProtocolSecret. */ + class MeasurementProtocolSecret implements IMeasurementProtocolSecret { + + /** + * Constructs a new MeasurementProtocolSecret. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret); + + /** MeasurementProtocolSecret name. */ + public name: string; + + /** MeasurementProtocolSecret displayName. */ + public displayName: string; + + /** MeasurementProtocolSecret secretValue. */ + public secretValue: string; + + /** + * Creates a new MeasurementProtocolSecret instance using the specified properties. + * @param [properties] Properties to set + * @returns MeasurementProtocolSecret instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Verifies a MeasurementProtocolSecret message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MeasurementProtocolSecret + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @param message MeasurementProtocolSecret + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.MeasurementProtocolSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MeasurementProtocolSecret to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeHistoryEvent. */ + interface IChangeHistoryEvent { + + /** ChangeHistoryEvent id */ + id?: (string|null); + + /** ChangeHistoryEvent changeTime */ + changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType */ + actorType?: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType|null); + + /** ChangeHistoryEvent userActorEmail */ + userActorEmail?: (string|null); + + /** ChangeHistoryEvent changesFiltered */ + changesFiltered?: (boolean|null); + + /** ChangeHistoryEvent changes */ + changes?: (google.analytics.admin.v1alpha.IChangeHistoryChange[]|null); + } + + /** Represents a ChangeHistoryEvent. */ + class ChangeHistoryEvent implements IChangeHistoryEvent { + + /** + * Constructs a new ChangeHistoryEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent); + + /** ChangeHistoryEvent id. */ + public id: string; + + /** ChangeHistoryEvent changeTime. */ + public changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType. */ + public actorType: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType); + + /** ChangeHistoryEvent userActorEmail. */ + public userActorEmail: string; + + /** ChangeHistoryEvent changesFiltered. */ + public changesFiltered: boolean; + + /** ChangeHistoryEvent changes. */ + public changes: google.analytics.admin.v1alpha.IChangeHistoryChange[]; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryEvent instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Verifies a ChangeHistoryEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryEvent + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @param message ChangeHistoryEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeHistoryChange. */ + interface IChangeHistoryChange { + + /** ChangeHistoryChange resource */ + resource?: (string|null); + + /** ChangeHistoryChange action */ + action?: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType|null); + + /** ChangeHistoryChange resourceBeforeChange */ + resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange */ + resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + } + + /** Represents a ChangeHistoryChange. */ + class ChangeHistoryChange implements IChangeHistoryChange { + + /** + * Constructs a new ChangeHistoryChange. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange); + + /** ChangeHistoryChange resource. */ + public resource: string; + + /** ChangeHistoryChange action. */ + public action: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType); + + /** ChangeHistoryChange resourceBeforeChange. */ + public resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange. */ + public resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryChange instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Verifies a ChangeHistoryChange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryChange + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @param message ChangeHistoryChange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ChangeHistoryChange { + + /** Properties of a ChangeHistoryResource. */ + interface IChangeHistoryResource { + + /** ChangeHistoryResource account */ + account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource webDataStream */ + webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** ChangeHistoryResource androidAppDataStream */ + androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** ChangeHistoryResource iosAppDataStream */ + iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** ChangeHistoryResource firebaseLink */ + firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** ChangeHistoryResource googleSignalsSettings */ + googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + + /** ChangeHistoryResource conversionEvent */ + conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** ChangeHistoryResource customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + } + + /** Represents a ChangeHistoryResource. */ + class ChangeHistoryResource implements IChangeHistoryResource { + + /** + * Constructs a new ChangeHistoryResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource); + + /** ChangeHistoryResource account. */ + public account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource webDataStream. */ + public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** ChangeHistoryResource androidAppDataStream. */ + public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** ChangeHistoryResource iosAppDataStream. */ + public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** ChangeHistoryResource firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** ChangeHistoryResource googleSignalsSettings. */ + public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + + /** ChangeHistoryResource conversionEvent. */ + public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** ChangeHistoryResource customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** ChangeHistoryResource resource. */ + public resource?: ("account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryResource instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Verifies a ChangeHistoryResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryResource + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @param message ChangeHistoryResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a ConversionEvent. */ + interface IConversionEvent { + + /** ConversionEvent name */ + name?: (string|null); + + /** ConversionEvent eventName */ + eventName?: (string|null); + + /** ConversionEvent createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ConversionEvent isDeletable */ + isDeletable?: (boolean|null); + } + + /** Represents a ConversionEvent. */ + class ConversionEvent implements IConversionEvent { + + /** + * Constructs a new ConversionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IConversionEvent); + + /** ConversionEvent name. */ + public name: string; + + /** ConversionEvent eventName. */ + public eventName: string; + + /** ConversionEvent createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ConversionEvent isDeletable. */ + public isDeletable: boolean; + + /** + * Creates a new ConversionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns ConversionEvent instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IConversionEvent): google.analytics.admin.v1alpha.ConversionEvent; + + /** + * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @param message ConversionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @param message ConversionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ConversionEvent; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ConversionEvent; + + /** + * Verifies a ConversionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConversionEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConversionEvent + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ConversionEvent; + + /** + * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. + * @param message ConversionEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ConversionEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConversionEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GoogleSignalsSettings. */ + interface IGoogleSignalsSettings { + + /** GoogleSignalsSettings name */ + name?: (string|null); + + /** GoogleSignalsSettings state */ + state?: (google.analytics.admin.v1alpha.GoogleSignalsState|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsState|null); + + /** GoogleSignalsSettings consent */ + consent?: (google.analytics.admin.v1alpha.GoogleSignalsConsent|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsConsent|null); + } + + /** Represents a GoogleSignalsSettings. */ + class GoogleSignalsSettings implements IGoogleSignalsSettings { + + /** + * Constructs a new GoogleSignalsSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGoogleSignalsSettings); + + /** GoogleSignalsSettings name. */ + public name: string; + + /** GoogleSignalsSettings state. */ + public state: (google.analytics.admin.v1alpha.GoogleSignalsState|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsState); + + /** GoogleSignalsSettings consent. */ + public consent: (google.analytics.admin.v1alpha.GoogleSignalsConsent|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsConsent); + + /** + * Creates a new GoogleSignalsSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns GoogleSignalsSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGoogleSignalsSettings): google.analytics.admin.v1alpha.GoogleSignalsSettings; + + /** + * Encodes the specified GoogleSignalsSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @param message GoogleSignalsSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGoogleSignalsSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GoogleSignalsSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @param message GoogleSignalsSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleSignalsSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PropertySummary message from the specified reader or buffer. + * Decodes a GoogleSignalsSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PropertySummary + * @returns GoogleSignalsSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.PropertySummary; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GoogleSignalsSettings; /** - * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * Decodes a GoogleSignalsSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PropertySummary + * @returns GoogleSignalsSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.PropertySummary; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GoogleSignalsSettings; /** - * Verifies a PropertySummary message. + * Verifies a GoogleSignalsSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * Creates a GoogleSignalsSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PropertySummary + * @returns GoogleSignalsSettings */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.PropertySummary; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleSignalsSettings; /** - * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. - * @param message PropertySummary + * Creates a plain object from a GoogleSignalsSettings message. Also converts values to other types if specified. + * @param message GoogleSignalsSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GoogleSignalsSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PropertySummary to JSON. + * Converts this GoogleSignalsSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeHistoryEvent. */ - interface IChangeHistoryEvent { + /** Properties of a CustomDimension. */ + interface ICustomDimension { - /** ChangeHistoryEvent id */ - id?: (string|null); + /** CustomDimension name */ + name?: (string|null); - /** ChangeHistoryEvent changeTime */ - changeTime?: (google.protobuf.ITimestamp|null); + /** CustomDimension parameterName */ + parameterName?: (string|null); - /** ChangeHistoryEvent actorType */ - actorType?: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType|null); + /** CustomDimension displayName */ + displayName?: (string|null); - /** ChangeHistoryEvent userActorEmail */ - userActorEmail?: (string|null); + /** CustomDimension description */ + description?: (string|null); - /** ChangeHistoryEvent changesFiltered */ - changesFiltered?: (boolean|null); + /** CustomDimension scope */ + scope?: (google.analytics.admin.v1alpha.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1alpha.CustomDimension.DimensionScope|null); - /** ChangeHistoryEvent changes */ - changes?: (google.analytics.admin.v1alpha.IChangeHistoryChange[]|null); + /** CustomDimension disallowAdsPersonalization */ + disallowAdsPersonalization?: (boolean|null); } - /** Represents a ChangeHistoryEvent. */ - class ChangeHistoryEvent implements IChangeHistoryEvent { + /** Represents a CustomDimension. */ + class CustomDimension implements ICustomDimension { /** - * Constructs a new ChangeHistoryEvent. + * Constructs a new CustomDimension. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent); + constructor(properties?: google.analytics.admin.v1alpha.ICustomDimension); - /** ChangeHistoryEvent id. */ - public id: string; + /** CustomDimension name. */ + public name: string; - /** ChangeHistoryEvent changeTime. */ - public changeTime?: (google.protobuf.ITimestamp|null); + /** CustomDimension parameterName. */ + public parameterName: string; - /** ChangeHistoryEvent actorType. */ - public actorType: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType); + /** CustomDimension displayName. */ + public displayName: string; - /** ChangeHistoryEvent userActorEmail. */ - public userActorEmail: string; + /** CustomDimension description. */ + public description: string; - /** ChangeHistoryEvent changesFiltered. */ - public changesFiltered: boolean; + /** CustomDimension scope. */ + public scope: (google.analytics.admin.v1alpha.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1alpha.CustomDimension.DimensionScope); - /** ChangeHistoryEvent changes. */ - public changes: google.analytics.admin.v1alpha.IChangeHistoryChange[]; + /** CustomDimension disallowAdsPersonalization. */ + public disallowAdsPersonalization: boolean; /** - * Creates a new ChangeHistoryEvent instance using the specified properties. + * Creates a new CustomDimension instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeHistoryEvent instance + * @returns CustomDimension instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static create(properties?: google.analytics.admin.v1alpha.ICustomDimension): google.analytics.admin.v1alpha.CustomDimension; /** - * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. - * @param message ChangeHistoryEvent message or plain object to encode + * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * @param message CustomDimension message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. - * @param message ChangeHistoryEvent message or plain object to encode + * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * @param message CustomDimension message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * Decodes a CustomDimension message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeHistoryEvent + * @returns CustomDimension * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CustomDimension; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * Decodes a CustomDimension message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeHistoryEvent + * @returns CustomDimension * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CustomDimension; /** - * Verifies a ChangeHistoryEvent message. + * Verifies a CustomDimension message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * Creates a CustomDimension message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeHistoryEvent + * @returns CustomDimension */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CustomDimension; /** - * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. - * @param message ChangeHistoryEvent + * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. + * @param message CustomDimension * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CustomDimension, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeHistoryEvent to JSON. + * Converts this CustomDimension to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeHistoryChange. */ - interface IChangeHistoryChange { + namespace CustomDimension { - /** ChangeHistoryChange resource */ - resource?: (string|null); + /** DimensionScope enum. */ + enum DimensionScope { + DIMENSION_SCOPE_UNSPECIFIED = 0, + EVENT = 1, + USER = 2 + } + } - /** ChangeHistoryChange action */ - action?: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType|null); + /** Properties of a CustomMetric. */ + interface ICustomMetric { - /** ChangeHistoryChange resourceBeforeChange */ - resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** CustomMetric name */ + name?: (string|null); - /** ChangeHistoryChange resourceAfterChange */ - resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** CustomMetric parameterName */ + parameterName?: (string|null); + + /** CustomMetric displayName */ + displayName?: (string|null); + + /** CustomMetric description */ + description?: (string|null); + + /** CustomMetric measurementUnit */ + measurementUnit?: (google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|null); + + /** CustomMetric scope */ + scope?: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope|null); } - /** Represents a ChangeHistoryChange. */ - class ChangeHistoryChange implements IChangeHistoryChange { + /** Represents a CustomMetric. */ + class CustomMetric implements ICustomMetric { /** - * Constructs a new ChangeHistoryChange. + * Constructs a new CustomMetric. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange); + constructor(properties?: google.analytics.admin.v1alpha.ICustomMetric); - /** ChangeHistoryChange resource. */ - public resource: string; + /** CustomMetric name. */ + public name: string; - /** ChangeHistoryChange action. */ - public action: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType); + /** CustomMetric parameterName. */ + public parameterName: string; - /** ChangeHistoryChange resourceBeforeChange. */ - public resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** CustomMetric displayName. */ + public displayName: string; - /** ChangeHistoryChange resourceAfterChange. */ - public resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** CustomMetric description. */ + public description: string; + + /** CustomMetric measurementUnit. */ + public measurementUnit: (google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit); + + /** CustomMetric scope. */ + public scope: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope); /** - * Creates a new ChangeHistoryChange instance using the specified properties. + * Creates a new CustomMetric instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeHistoryChange instance + * @returns CustomMetric instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static create(properties?: google.analytics.admin.v1alpha.ICustomMetric): google.analytics.admin.v1alpha.CustomMetric; /** - * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. - * @param message ChangeHistoryChange message or plain object to encode + * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * @param message CustomMetric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. - * @param message ChangeHistoryChange message or plain object to encode + * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * @param message CustomMetric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * Decodes a CustomMetric message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeHistoryChange + * @returns CustomMetric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CustomMetric; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * Decodes a CustomMetric message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeHistoryChange + * @returns CustomMetric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CustomMetric; /** - * Verifies a ChangeHistoryChange message. + * Verifies a CustomMetric message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * Creates a CustomMetric message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeHistoryChange + * @returns CustomMetric */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CustomMetric; /** - * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. - * @param message ChangeHistoryChange + * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. + * @param message CustomMetric * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CustomMetric, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeHistoryChange to JSON. + * Converts this CustomMetric to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ChangeHistoryChange { - - /** Properties of a ChangeHistoryResource. */ - interface IChangeHistoryResource { - - /** ChangeHistoryResource account */ - account?: (google.analytics.admin.v1alpha.IAccount|null); - - /** ChangeHistoryResource property */ - property?: (google.analytics.admin.v1alpha.IProperty|null); - - /** ChangeHistoryResource webDataStream */ - webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** ChangeHistoryResource androidAppDataStream */ - androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** ChangeHistoryResource iosAppDataStream */ - iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** ChangeHistoryResource firebaseLink */ - firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** ChangeHistoryResource googleAdsLink */ - googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + namespace CustomMetric { + + /** MeasurementUnit enum. */ + enum MeasurementUnit { + MEASUREMENT_UNIT_UNSPECIFIED = 0, + STANDARD = 1, + CURRENCY = 2, + FEET = 3, + METERS = 4, + KILOMETERS = 5, + MILES = 6, + MILLISECONDS = 7, + SECONDS = 8, + MINUTES = 9, + HOURS = 10 } - /** Represents a ChangeHistoryResource. */ - class ChangeHistoryResource implements IChangeHistoryResource { - - /** - * Constructs a new ChangeHistoryResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource); - - /** ChangeHistoryResource account. */ - public account?: (google.analytics.admin.v1alpha.IAccount|null); - - /** ChangeHistoryResource property. */ - public property?: (google.analytics.admin.v1alpha.IProperty|null); - - /** ChangeHistoryResource webDataStream. */ - public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** ChangeHistoryResource androidAppDataStream. */ - public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** ChangeHistoryResource iosAppDataStream. */ - public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** ChangeHistoryResource firebaseLink. */ - public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** ChangeHistoryResource googleAdsLink. */ - public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); - - /** ChangeHistoryResource resource. */ - public resource?: ("account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"); - - /** - * Creates a new ChangeHistoryResource instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeHistoryResource instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @param message ChangeHistoryResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @param message ChangeHistoryResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Verifies a ChangeHistoryResource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeHistoryResource - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. - * @param message ChangeHistoryResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeHistoryResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** MetricScope enum. */ + enum MetricScope { + METRIC_SCOPE_UNSPECIFIED = 0, + EVENT = 1 } } } diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index b05e41c8e88..39afb53da15 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -1617,780 +1617,823 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef SearchChangeHistoryEventsCallback + * @typedef GetMeasurementProtocolSecretCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} [response] SearchChangeHistoryEventsResponse + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret */ /** - * Calls SearchChangeHistoryEvents. - * @function searchChangeHistoryEvents + * Calls GetMeasurementProtocolSecret. + * @function getMeasurementProtocolSecret * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback} callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret * @returns {undefined} * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.searchChangeHistoryEvents = function searchChangeHistoryEvents(request, callback) { - return this.rpcCall(searchChangeHistoryEvents, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, request, callback); - }, "name", { value: "SearchChangeHistoryEvents" }); + Object.defineProperty(AnalyticsAdminService.prototype.getMeasurementProtocolSecret = function getMeasurementProtocolSecret(request, callback) { + return this.rpcCall(getMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); + }, "name", { value: "GetMeasurementProtocolSecret" }); /** - * Calls SearchChangeHistoryEvents. - * @function searchChangeHistoryEvents + * Calls GetMeasurementProtocolSecret. + * @function getMeasurementProtocolSecret * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object - * @returns {Promise} Promise + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return AnalyticsAdminService; - })(); - - v1alpha.GetAccountRequest = (function() { - /** - * Properties of a GetAccountRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetAccountRequest - * @property {string|null} [name] GetAccountRequest name + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListMeasurementProtocolSecretsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} [response] ListMeasurementProtocolSecretsResponse */ /** - * Constructs a new GetAccountRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetAccountRequest. - * @implements IGetAccountRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set + * Calls ListMeasurementProtocolSecrets. + * @function listMeasurementProtocolSecrets + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback} callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse + * @returns {undefined} + * @variation 1 */ - 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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.listMeasurementProtocolSecrets = function listMeasurementProtocolSecrets(request, callback) { + return this.rpcCall(listMeasurementProtocolSecrets, $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse, request, callback); + }, "name", { value: "ListMeasurementProtocolSecrets" }); /** - * GetAccountRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * Calls ListMeasurementProtocolSecrets. + * @function listMeasurementProtocolSecrets + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetAccountRequest.prototype.name = ""; /** - * Creates a new GetAccountRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret */ - GetAccountRequest.create = function create(properties) { - return new GetAccountRequest(properties); - }; /** - * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetAccountRequest} message GetAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateMeasurementProtocolSecret. + * @function createMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 */ - 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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.createMeasurementProtocolSecret = function createMeasurementProtocolSecret(request, callback) { + return this.rpcCall(createMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); + }, "name", { value: "CreateMeasurementProtocolSecret" }); /** - * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetAccountRequest} message GetAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateMeasurementProtocolSecret. + * @function createMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - 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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteMeasurementProtocolSecret. + * @function deleteMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - GetAccountRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteMeasurementProtocolSecret = function deleteMeasurementProtocolSecret(request, callback) { + return this.rpcCall(deleteMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteMeasurementProtocolSecret" }); /** - * Verifies a GetAccountRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeleteMeasurementProtocolSecret. + * @function deleteMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret */ - GetAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetAccountRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest - * @static - * @param {google.analytics.admin.v1alpha.GetAccountRequest} message GetAccountRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls UpdateMeasurementProtocolSecret. + * @function updateMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 */ - 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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.updateMeasurementProtocolSecret = function updateMeasurementProtocolSecret(request, callback) { + return this.rpcCall(updateMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); + }, "name", { value: "UpdateMeasurementProtocolSecret" }); /** - * Converts this GetAccountRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * Calls UpdateMeasurementProtocolSecret. + * @function updateMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetAccountRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAccountRequest; - })(); - - v1alpha.ListAccountsRequest = (function() { /** - * Properties of a ListAccountsRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IListAccountsRequest - * @property {number|null} [pageSize] ListAccountsRequest pageSize - * @property {string|null} [pageToken] ListAccountsRequest pageToken - * @property {boolean|null} [showDeleted] ListAccountsRequest showDeleted + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef SearchChangeHistoryEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} [response] SearchChangeHistoryEventsResponse */ /** - * Constructs a new ListAccountsRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountsRequest. - * @implements IListAccountsRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback} callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + * @returns {undefined} + * @variation 1 */ - 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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.searchChangeHistoryEvents = function searchChangeHistoryEvents(request, callback) { + return this.rpcCall(searchChangeHistoryEvents, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, request, callback); + }, "name", { value: "SearchChangeHistoryEvents" }); /** - * ListAccountsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListAccountsRequest.prototype.pageSize = 0; /** - * ListAccountsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetGoogleSignalsSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} [response] GoogleSignalsSettings */ - ListAccountsRequest.prototype.pageToken = ""; /** - * ListAccountsRequest showDeleted. - * @member {boolean} showDeleted - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * Calls GetGoogleSignalsSettings. + * @function getGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} request GetGoogleSignalsSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettingsCallback} callback Node-style callback called with the error, if any, and GoogleSignalsSettings + * @returns {undefined} + * @variation 1 */ - ListAccountsRequest.prototype.showDeleted = false; + Object.defineProperty(AnalyticsAdminService.prototype.getGoogleSignalsSettings = function getGoogleSignalsSettings(request, callback) { + return this.rpcCall(getGoogleSignalsSettings, $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, $root.google.analytics.admin.v1alpha.GoogleSignalsSettings, request, callback); + }, "name", { value: "GetGoogleSignalsSettings" }); /** - * Creates a new ListAccountsRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest instance + * Calls GetGoogleSignalsSettings. + * @function getGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} request GetGoogleSignalsSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListAccountsRequest.create = function create(properties) { - return new ListAccountsRequest(properties); - }; /** - * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateGoogleSignalsSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} [response] GoogleSignalsSettings */ - 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.showDeleted); - return writer; - }; /** - * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UpdateGoogleSignalsSettings. + * @function updateGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} request UpdateGoogleSignalsSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettingsCallback} callback Node-style callback called with the error, if any, and GoogleSignalsSettings + * @returns {undefined} + * @variation 1 */ - ListAccountsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(AnalyticsAdminService.prototype.updateGoogleSignalsSettings = function updateGoogleSignalsSettings(request, callback) { + return this.rpcCall(updateGoogleSignalsSettings, $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, $root.google.analytics.admin.v1alpha.GoogleSignalsSettings, request, callback); + }, "name", { value: "UpdateGoogleSignalsSettings" }); /** - * Decodes a ListAccountsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateGoogleSignalsSettings. + * @function updateGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} request UpdateGoogleSignalsSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.analytics.admin.v1alpha.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.showDeleted = reader.bool(); - 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.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ConversionEvent} [response] ConversionEvent */ - 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.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateConversionEvent. + * @function createConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent + * @returns {undefined} + * @variation 1 */ - 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.showDeleted != null && message.hasOwnProperty("showDeleted")) - if (typeof message.showDeleted !== "boolean") - return "showDeleted: boolean expected"; - return null; - }; + Object.defineProperty(AnalyticsAdminService.prototype.createConversionEvent = function createConversionEvent(request, callback) { + return this.rpcCall(createConversionEvent, $root.google.analytics.admin.v1alpha.CreateConversionEventRequest, $root.google.analytics.admin.v1alpha.ConversionEvent, request, callback); + }, "name", { value: "CreateConversionEvent" }); /** - * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest + * Calls CreateConversionEvent. + * @function createConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListAccountsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountsRequest(); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.showDeleted != null) - message.showDeleted = Boolean(object.showDeleted); - return message; - }; /** - * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @static - * @param {google.analytics.admin.v1alpha.ListAccountsRequest} message ListAccountsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ConversionEvent} [response] ConversionEvent */ - ListAccountsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.pageSize = 0; - object.pageToken = ""; - object.showDeleted = false; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.showDeleted != null && message.hasOwnProperty("showDeleted")) - object.showDeleted = message.showDeleted; - return object; - }; /** - * Converts this ListAccountsRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * Calls GetConversionEvent. + * @function getConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} request GetConversionEventRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent + * @returns {undefined} + * @variation 1 */ - ListAccountsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListAccountsRequest; - })(); - - v1alpha.ListAccountsResponse = (function() { + Object.defineProperty(AnalyticsAdminService.prototype.getConversionEvent = function getConversionEvent(request, callback) { + return this.rpcCall(getConversionEvent, $root.google.analytics.admin.v1alpha.GetConversionEventRequest, $root.google.analytics.admin.v1alpha.ConversionEvent, request, callback); + }, "name", { value: "GetConversionEvent" }); /** - * Properties of a ListAccountsResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IListAccountsResponse - * @property {Array.|null} [accounts] ListAccountsResponse accounts - * @property {string|null} [nextPageToken] ListAccountsResponse nextPageToken + * Calls GetConversionEvent. + * @function getConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} request GetConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListAccountsResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountsResponse. - * @implements IListAccountsResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - 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.analytics.admin.v1alpha.ListAccountsResponse + * Calls DeleteConversionEvent. + * @function deleteConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEventCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListAccountsResponse.prototype.accounts = $util.emptyArray; + Object.defineProperty(AnalyticsAdminService.prototype.deleteConversionEvent = function deleteConversionEvent(request, callback) { + return this.rpcCall(deleteConversionEvent, $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteConversionEvent" }); /** - * ListAccountsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * Calls DeleteConversionEvent. + * @function deleteConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListAccountsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListAccountsResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListConversionEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} [response] ListConversionEventsResponse */ - ListAccountsResponse.create = function create(properties) { - return new ListAccountsResponse(properties); - }; /** - * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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; - }; + * Calls ListConversionEvents. + * @function listConversionEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEventsCallback} callback Node-style callback called with the error, if any, and ListConversionEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listConversionEvents = function listConversionEvents(request, callback) { + return this.rpcCall(listConversionEvents, $root.google.analytics.admin.v1alpha.ListConversionEventsRequest, $root.google.analytics.admin.v1alpha.ListConversionEventsResponse, request, callback); + }, "name", { value: "ListConversionEvents" }); /** - * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListAccountsResponse} message ListAccountsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListConversionEvents. + * @function listConversionEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension */ - 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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateCustomDimension. + * @function createCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 */ - ListAccountsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.createCustomDimension = function createCustomDimension(request, callback) { + return this.rpcCall(createCustomDimension, $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); + }, "name", { value: "CreateCustomDimension" }); /** - * Verifies a ListAccountsResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateCustomDimension. + * @function createCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension */ - ListAccountsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountsResponse(); - if (object.accounts) { - if (!Array.isArray(object.accounts)) - throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: array expected"); - message.accounts = []; - for (var i = 0; i < object.accounts.length; ++i) { - if (typeof object.accounts[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: object expected"); - message.accounts[i] = $root.google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse - * @static - * @param {google.analytics.admin.v1alpha.ListAccountsResponse} message ListAccountsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls UpdateCustomDimension. + * @function updateCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 */ - 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.analytics.admin.v1alpha.Account.toObject(message.accounts[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.updateCustomDimension = function updateCustomDimension(request, callback) { + return this.rpcCall(updateCustomDimension, $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); + }, "name", { value: "UpdateCustomDimension" }); /** - * Converts this ListAccountsResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * Calls UpdateCustomDimension. + * @function updateCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListAccountsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListAccountsResponse; - })(); - - v1alpha.DeleteAccountRequest = (function() { /** - * Properties of a DeleteAccountRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IDeleteAccountRequest - * @property {string|null} [name] DeleteAccountRequest name + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListCustomDimensionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} [response] ListCustomDimensionsResponse */ /** - * Constructs a new DeleteAccountRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteAccountRequest. - * @implements IDeleteAccountRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set + * Calls ListCustomDimensions. + * @function listCustomDimensions + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensionsCallback} callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse + * @returns {undefined} + * @variation 1 */ - 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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.listCustomDimensions = function listCustomDimensions(request, callback) { + return this.rpcCall(listCustomDimensions, $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse, request, callback); + }, "name", { value: "ListCustomDimensions" }); /** - * DeleteAccountRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * Calls ListCustomDimensions. + * @function listCustomDimensions + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteAccountRequest.prototype.name = ""; /** - * Creates a new DeleteAccountRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ArchiveCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - DeleteAccountRequest.create = function create(properties) { - return new DeleteAccountRequest(properties); - }; /** - * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ArchiveCustomDimension. + * @function archiveCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimensionCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - 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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomDimension = function archiveCustomDimension(request, callback) { + return this.rpcCall(archiveCustomDimension, $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ArchiveCustomDimension" }); /** - * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ArchiveCustomDimension. + * @function archiveCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.analytics.admin.v1alpha.DeleteAccountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest - * @throws {Error} If the payload is not a reader or valid buffer + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension + */ + + /** + * Calls GetCustomDimension. + * @function getCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getCustomDimension = function getCustomDimension(request, callback) { + return this.rpcCall(getCustomDimension, $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); + }, "name", { value: "GetCustomDimension" }); + + /** + * Calls GetCustomDimension. + * @function getCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric + */ + + /** + * Calls CreateCustomMetric. + * @function createCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createCustomMetric = function createCustomMetric(request, callback) { + return this.rpcCall(createCustomMetric, $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); + }, "name", { value: "CreateCustomMetric" }); + + /** + * Calls CreateCustomMetric. + * @function createCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric + */ + + /** + * Calls UpdateCustomMetric. + * @function updateCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateCustomMetric = function updateCustomMetric(request, callback) { + return this.rpcCall(updateCustomMetric, $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); + }, "name", { value: "UpdateCustomMetric" }); + + /** + * Calls UpdateCustomMetric. + * @function updateCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListCustomMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} [response] ListCustomMetricsResponse + */ + + /** + * Calls ListCustomMetrics. + * @function listCustomMetrics + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetricsCallback} callback Node-style callback called with the error, if any, and ListCustomMetricsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listCustomMetrics = function listCustomMetrics(request, callback) { + return this.rpcCall(listCustomMetrics, $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest, $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse, request, callback); + }, "name", { value: "ListCustomMetrics" }); + + /** + * Calls ListCustomMetrics. + * @function listCustomMetrics + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ArchiveCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls ArchiveCustomMetric. + * @function archiveCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetricCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomMetric = function archiveCustomMetric(request, callback) { + return this.rpcCall(archiveCustomMetric, $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ArchiveCustomMetric" }); + + /** + * Calls ArchiveCustomMetric. + * @function archiveCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric + */ + + /** + * Calls GetCustomMetric. + * @function getCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getCustomMetric = function getCustomMetric(request, callback) { + return this.rpcCall(getCustomMetric, $root.google.analytics.admin.v1alpha.GetCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); + }, "name", { value: "GetCustomMetric" }); + + /** + * Calls GetCustomMetric. + * @function getCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AnalyticsAdminService; + })(); + + v1alpha.GetAccountRequest = (function() { + + /** + * Properties of a GetAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetAccountRequest + * @property {string|null} [name] GetAccountRequest name + */ + + /** + * Constructs a new GetAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetAccountRequest. + * @implements IGetAccountRequest + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @instance + */ + GetAccountRequest.prototype.name = ""; + + /** + * Creates a new GetAccountRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest instance + */ + GetAccountRequest.create = function create(properties) { + return new GetAccountRequest(properties); + }; + + /** + * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest + * @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) { + 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.analytics.admin.v1alpha.DeleteAccountRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAccountRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -2406,30 +2449,30 @@ }; /** - * Decodes a DeleteAccountRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAccountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest * @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) { + GetAccountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteAccountRequest message. + * Verifies a GetAccountRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @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) { + GetAccountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -2439,32 +2482,32 @@ }; /** - * Creates a DeleteAccountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAccountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest */ - DeleteAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAccountRequest) + GetAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAccountRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteAccountRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetAccountRequest(); 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. + * Creates a plain object from a GetAccountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteAccountRequest} message DeleteAccountRequest + * @param {google.analytics.admin.v1alpha.GetAccountRequest} message GetAccountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteAccountRequest.toObject = function toObject(message, options) { + GetAccountRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -2476,38 +2519,39 @@ }; /** - * Converts this DeleteAccountRequest to JSON. + * Converts this GetAccountRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @instance * @returns {Object.} JSON object */ - DeleteAccountRequest.prototype.toJSON = function toJSON() { + GetAccountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteAccountRequest; + return GetAccountRequest; })(); - v1alpha.UpdateAccountRequest = (function() { + v1alpha.ListAccountsRequest = (function() { /** - * Properties of an UpdateAccountRequest. + * Properties of a ListAccountsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateAccountRequest - * @property {google.analytics.admin.v1alpha.IAccount|null} [account] UpdateAccountRequest account - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountRequest updateMask - */ - + * @interface IListAccountsRequest + * @property {number|null} [pageSize] ListAccountsRequest pageSize + * @property {string|null} [pageToken] ListAccountsRequest pageToken + * @property {boolean|null} [showDeleted] ListAccountsRequest showDeleted + */ + /** - * Constructs a new UpdateAccountRequest. + * Constructs a new ListAccountsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateAccountRequest. - * @implements IUpdateAccountRequest + * @classdesc Represents a ListAccountsRequest. + * @implements IListAccountsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set */ - function UpdateAccountRequest(properties) { + function ListAccountsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2515,88 +2559,101 @@ } /** - * UpdateAccountRequest account. - * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * ListAccountsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @instance */ - UpdateAccountRequest.prototype.account = null; + ListAccountsRequest.prototype.pageSize = 0; /** - * UpdateAccountRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * ListAccountsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @instance */ - UpdateAccountRequest.prototype.updateMask = null; + ListAccountsRequest.prototype.pageToken = ""; /** - * Creates a new UpdateAccountRequest instance using the specified properties. + * ListAccountsRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.showDeleted = false; + + /** + * Creates a new ListAccountsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest instance */ - UpdateAccountRequest.create = function create(properties) { - return new UpdateAccountRequest(properties); + ListAccountsRequest.create = function create(properties) { + return new ListAccountsRequest(properties); }; /** - * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. + * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAccountRequest.encode = function encode(message, writer) { + ListAccountsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - $root.google.analytics.admin.v1alpha.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(); + 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.showDeleted); return writer; }; /** - * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. + * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateAccountRequest message from the specified reader or buffer. + * Decodes a ListAccountsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest * @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) { + 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.analytics.admin.v1alpha.UpdateAccountRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageToken = reader.string(); + break; + case 3: + message.showDeleted = reader.bool(); break; default: reader.skipType(tag & 7); @@ -2607,127 +2664,126 @@ }; /** - * Decodes an UpdateAccountRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest * @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) { + ListAccountsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateAccountRequest message. + * Verifies a ListAccountsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @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) { + ListAccountsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.account != null && message.hasOwnProperty("account")) { - var error = $root.google.analytics.admin.v1alpha.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; - } + 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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; return null; }; /** - * Creates an UpdateAccountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest */ - UpdateAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAccountRequest) + ListAccountsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateAccountRequest(); - if (object.account != null) { - if (typeof object.account !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.account: object expected"); - message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListAccountsRequest(); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); return message; }; /** - * Creates a plain object from an UpdateAccountRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateAccountRequest} message UpdateAccountRequest + * @param {google.analytics.admin.v1alpha.ListAccountsRequest} message ListAccountsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateAccountRequest.toObject = function toObject(message, options) { + ListAccountsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.account = null; - object.updateMask = null; + object.pageSize = 0; + object.pageToken = ""; + object.showDeleted = false; } - if (message.account != null && message.hasOwnProperty("account")) - object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; return object; }; /** - * Converts this UpdateAccountRequest to JSON. + * Converts this ListAccountsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @instance * @returns {Object.} JSON object */ - UpdateAccountRequest.prototype.toJSON = function toJSON() { + ListAccountsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateAccountRequest; + return ListAccountsRequest; })(); - v1alpha.ProvisionAccountTicketRequest = (function() { + v1alpha.ListAccountsResponse = (function() { /** - * Properties of a ProvisionAccountTicketRequest. + * Properties of a ListAccountsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IProvisionAccountTicketRequest - * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ProvisionAccountTicketRequest account - * @property {string|null} [redirectUri] ProvisionAccountTicketRequest redirectUri + * @interface IListAccountsResponse + * @property {Array.|null} [accounts] ListAccountsResponse accounts + * @property {string|null} [nextPageToken] ListAccountsResponse nextPageToken */ /** - * Constructs a new ProvisionAccountTicketRequest. + * Constructs a new ListAccountsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ProvisionAccountTicketRequest. - * @implements IProvisionAccountTicketRequest + * @classdesc Represents a ListAccountsResponse. + * @implements IListAccountsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set */ - function ProvisionAccountTicketRequest(properties) { + function ListAccountsResponse(properties) { + this.accounts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2735,88 +2791,91 @@ } /** - * ProvisionAccountTicketRequest account. - * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * ListAccountsResponse accounts. + * @member {Array.} accounts + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @instance */ - ProvisionAccountTicketRequest.prototype.account = null; + ListAccountsResponse.prototype.accounts = $util.emptyArray; /** - * ProvisionAccountTicketRequest redirectUri. - * @member {string} redirectUri - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * ListAccountsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @instance */ - ProvisionAccountTicketRequest.prototype.redirectUri = ""; + ListAccountsResponse.prototype.nextPageToken = ""; /** - * Creates a new ProvisionAccountTicketRequest instance using the specified properties. + * Creates a new ListAccountsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse instance */ - ProvisionAccountTicketRequest.create = function create(properties) { - return new ProvisionAccountTicketRequest(properties); + ListAccountsResponse.create = function create(properties) { + return new ListAccountsResponse(properties); }; /** - * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsResponse} message ListAccountsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProvisionAccountTicketRequest.encode = function encode(message, writer) { + ListAccountsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.redirectUri != null && Object.hasOwnProperty.call(message, "redirectUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); + if (message.accounts != null && message.accounts.length) + for (var i = 0; i < message.accounts.length; ++i) + $root.google.analytics.admin.v1alpha.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 ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsResponse} message ListAccountsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProvisionAccountTicketRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. + * Decodes a ListAccountsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProvisionAccountTicketRequest.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + if (!(message.accounts && message.accounts.length)) + message.accounts = []; + message.accounts.push($root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32())); break; case 2: - message.redirectUri = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -2827,121 +2886,133 @@ }; /** - * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProvisionAccountTicketRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ProvisionAccountTicketRequest message. + * Verifies a ListAccountsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProvisionAccountTicketRequest.verify = function verify(message) { + ListAccountsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.account != null && message.hasOwnProperty("account")) { - var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); - if (error) - return "account." + error; + 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.analytics.admin.v1alpha.Account.verify(message.accounts[i]); + if (error) + return "accounts." + error; + } } - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - if (!$util.isString(message.redirectUri)) - return "redirectUri: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse */ - ProvisionAccountTicketRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + ListAccountsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); - if (object.account != null) { - if (typeof object.account !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.account: object expected"); - message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + var message = new $root.google.analytics.admin.v1alpha.ListAccountsResponse(); + if (object.accounts) { + if (!Array.isArray(object.accounts)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: array expected"); + message.accounts = []; + for (var i = 0; i < object.accounts.length; ++i) { + if (typeof object.accounts[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: object expected"); + message.accounts[i] = $root.google.analytics.admin.v1alpha.Account.fromObject(object.accounts[i]); + } } - if (object.redirectUri != null) - message.redirectUri = String(object.redirectUri); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} message ProvisionAccountTicketRequest + * @param {google.analytics.admin.v1alpha.ListAccountsResponse} message ListAccountsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProvisionAccountTicketRequest.toObject = function toObject(message, options) { + ListAccountsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.account = null; - object.redirectUri = ""; + 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.analytics.admin.v1alpha.Account.toObject(message.accounts[j], options); } - if (message.account != null && message.hasOwnProperty("account")) - object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - object.redirectUri = message.redirectUri; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ProvisionAccountTicketRequest to JSON. + * Converts this ListAccountsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @instance * @returns {Object.} JSON object */ - ProvisionAccountTicketRequest.prototype.toJSON = function toJSON() { + ListAccountsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ProvisionAccountTicketRequest; + return ListAccountsResponse; })(); - v1alpha.ProvisionAccountTicketResponse = (function() { + v1alpha.DeleteAccountRequest = (function() { /** - * Properties of a ProvisionAccountTicketResponse. + * Properties of a DeleteAccountRequest. * @memberof google.analytics.admin.v1alpha - * @interface IProvisionAccountTicketResponse - * @property {string|null} [accountTicketId] ProvisionAccountTicketResponse accountTicketId + * @interface IDeleteAccountRequest + * @property {string|null} [name] DeleteAccountRequest name */ /** - * Constructs a new ProvisionAccountTicketResponse. + * Constructs a new DeleteAccountRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ProvisionAccountTicketResponse. - * @implements IProvisionAccountTicketResponse + * @classdesc Represents a DeleteAccountRequest. + * @implements IDeleteAccountRequest * @constructor - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set */ - function ProvisionAccountTicketResponse(properties) { + function DeleteAccountRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2949,75 +3020,75 @@ } /** - * ProvisionAccountTicketResponse accountTicketId. - * @member {string} accountTicketId - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * DeleteAccountRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @instance */ - ProvisionAccountTicketResponse.prototype.accountTicketId = ""; + DeleteAccountRequest.prototype.name = ""; /** - * Creates a new ProvisionAccountTicketResponse instance using the specified properties. + * Creates a new DeleteAccountRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse instance + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest instance */ - ProvisionAccountTicketResponse.create = function create(properties) { - return new ProvisionAccountTicketResponse(properties); + DeleteAccountRequest.create = function create(properties) { + return new DeleteAccountRequest(properties); }; /** - * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProvisionAccountTicketResponse.encode = function encode(message, writer) { + DeleteAccountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.accountTicketId != null && Object.hasOwnProperty.call(message, "accountTicketId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.accountTicketId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProvisionAccountTicketResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. + * Decodes a DeleteAccountRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProvisionAccountTicketResponse.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteAccountRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.accountTicketId = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -3028,107 +3099,108 @@ }; /** - * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteAccountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProvisionAccountTicketResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteAccountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ProvisionAccountTicketResponse message. + * Verifies a DeleteAccountRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProvisionAccountTicketResponse.verify = function verify(message) { + DeleteAccountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) - if (!$util.isString(message.accountTicketId)) - return "accountTicketId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteAccountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest */ - ProvisionAccountTicketResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) + DeleteAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAccountRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); - if (object.accountTicketId != null) - message.accountTicketId = String(object.accountTicketId); + var message = new $root.google.analytics.admin.v1alpha.DeleteAccountRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteAccountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} message ProvisionAccountTicketResponse + * @param {google.analytics.admin.v1alpha.DeleteAccountRequest} message DeleteAccountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProvisionAccountTicketResponse.toObject = function toObject(message, options) { + DeleteAccountRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.accountTicketId = ""; - if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) - object.accountTicketId = message.accountTicketId; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ProvisionAccountTicketResponse to JSON. + * Converts this DeleteAccountRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @instance * @returns {Object.} JSON object */ - ProvisionAccountTicketResponse.prototype.toJSON = function toJSON() { + DeleteAccountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ProvisionAccountTicketResponse; + return DeleteAccountRequest; })(); - v1alpha.GetPropertyRequest = (function() { + v1alpha.UpdateAccountRequest = (function() { /** - * Properties of a GetPropertyRequest. + * Properties of an UpdateAccountRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetPropertyRequest - * @property {string|null} [name] GetPropertyRequest name + * @interface IUpdateAccountRequest + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] UpdateAccountRequest account + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountRequest updateMask */ /** - * Constructs a new GetPropertyRequest. + * Constructs a new UpdateAccountRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetPropertyRequest. - * @implements IGetPropertyRequest + * @classdesc Represents an UpdateAccountRequest. + * @implements IUpdateAccountRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set */ - function GetPropertyRequest(properties) { + function UpdateAccountRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3136,75 +3208,88 @@ } /** - * GetPropertyRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * UpdateAccountRequest account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @instance */ - GetPropertyRequest.prototype.name = ""; + UpdateAccountRequest.prototype.account = null; /** - * Creates a new GetPropertyRequest instance using the specified properties. + * UpdateAccountRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @instance + */ + UpdateAccountRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAccountRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest instance */ - GetPropertyRequest.create = function create(properties) { - return new GetPropertyRequest(properties); + UpdateAccountRequest.create = function create(properties) { + return new UpdateAccountRequest(properties); }; /** - * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPropertyRequest.encode = function encode(message, writer) { + UpdateAccountRequest.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")) + $root.google.analytics.admin.v1alpha.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 GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPropertyRequest message from the specified reader or buffer. + * Decodes an UpdateAccountRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPropertyRequest.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.GetPropertyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateAccountRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3215,110 +3300,127 @@ }; /** - * Decodes a GetPropertyRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateAccountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPropertyRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateAccountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPropertyRequest message. + * Verifies an UpdateAccountRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPropertyRequest.verify = function verify(message) { + UpdateAccountRequest.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")) { + var error = $root.google.analytics.admin.v1alpha.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 a GetPropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateAccountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest */ - GetPropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetPropertyRequest) + UpdateAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAccountRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetPropertyRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateAccountRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateAccountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.GetPropertyRequest} message GetPropertyRequest + * @param {google.analytics.admin.v1alpha.UpdateAccountRequest} message UpdateAccountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPropertyRequest.toObject = function toObject(message, options) { + UpdateAccountRequest.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 (options.defaults) { + object.account = null; + object.updateMask = null; + } + if (message.account != null && message.hasOwnProperty("account")) + object.account = $root.google.analytics.admin.v1alpha.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 GetPropertyRequest to JSON. + * Converts this UpdateAccountRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @instance * @returns {Object.} JSON object */ - GetPropertyRequest.prototype.toJSON = function toJSON() { + UpdateAccountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetPropertyRequest; + return UpdateAccountRequest; })(); - v1alpha.ListPropertiesRequest = (function() { + v1alpha.ProvisionAccountTicketRequest = (function() { /** - * Properties of a ListPropertiesRequest. + * Properties of a ProvisionAccountTicketRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListPropertiesRequest - * @property {string|null} [filter] ListPropertiesRequest filter - * @property {number|null} [pageSize] ListPropertiesRequest pageSize - * @property {string|null} [pageToken] ListPropertiesRequest pageToken - * @property {boolean|null} [showDeleted] ListPropertiesRequest showDeleted + * @interface IProvisionAccountTicketRequest + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ProvisionAccountTicketRequest account + * @property {string|null} [redirectUri] ProvisionAccountTicketRequest redirectUri */ /** - * Constructs a new ListPropertiesRequest. + * Constructs a new ProvisionAccountTicketRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListPropertiesRequest. - * @implements IListPropertiesRequest + * @classdesc Represents a ProvisionAccountTicketRequest. + * @implements IProvisionAccountTicketRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set */ - function ListPropertiesRequest(properties) { + function ProvisionAccountTicketRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3326,114 +3428,88 @@ } /** - * ListPropertiesRequest filter. - * @member {string} filter - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @instance - */ - ListPropertiesRequest.prototype.filter = ""; - - /** - * ListPropertiesRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @instance - */ - ListPropertiesRequest.prototype.pageSize = 0; - - /** - * ListPropertiesRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * ProvisionAccountTicketRequest account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @instance */ - ListPropertiesRequest.prototype.pageToken = ""; + ProvisionAccountTicketRequest.prototype.account = null; /** - * ListPropertiesRequest showDeleted. - * @member {boolean} showDeleted - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * ProvisionAccountTicketRequest redirectUri. + * @member {string} redirectUri + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @instance */ - ListPropertiesRequest.prototype.showDeleted = false; + ProvisionAccountTicketRequest.prototype.redirectUri = ""; /** - * Creates a new ListPropertiesRequest instance using the specified properties. + * Creates a new ProvisionAccountTicketRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest instance */ - ListPropertiesRequest.create = function create(properties) { - return new ListPropertiesRequest(properties); + ProvisionAccountTicketRequest.create = function create(properties) { + return new ProvisionAccountTicketRequest(properties); }; /** - * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPropertiesRequest.encode = function encode(message, writer) { + ProvisionAccountTicketRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); - 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.showDeleted); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.redirectUri != null && Object.hasOwnProperty.call(message, "redirectUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); return writer; }; /** - * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ProvisionAccountTicketRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPropertiesRequest message from the specified reader or buffer. + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPropertiesRequest.decode = function decode(reader, length) { + ProvisionAccountTicketRequest.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.analytics.admin.v1alpha.ListPropertiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.filter = reader.string(); + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.showDeleted = reader.bool(); + message.redirectUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -3444,134 +3520,121 @@ }; /** - * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPropertiesRequest.decodeDelimited = function decodeDelimited(reader) { + ProvisionAccountTicketRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPropertiesRequest message. + * Verifies a ProvisionAccountTicketRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPropertiesRequest.verify = function verify(message) { + ProvisionAccountTicketRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: 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.showDeleted != null && message.hasOwnProperty("showDeleted")) - if (typeof message.showDeleted !== "boolean") - return "showDeleted: boolean expected"; + if (message.account != null && message.hasOwnProperty("account")) { + var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); + if (error) + return "account." + error; + } + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + if (!$util.isString(message.redirectUri)) + return "redirectUri: string expected"; return null; }; /** - * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest */ - ListPropertiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesRequest) + ProvisionAccountTicketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListPropertiesRequest(); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.showDeleted != null) - message.showDeleted = Boolean(object.showDeleted); + var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.redirectUri != null) + message.redirectUri = String(object.redirectUri); return message; }; /** - * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.ListPropertiesRequest} message ListPropertiesRequest + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} message ProvisionAccountTicketRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPropertiesRequest.toObject = function toObject(message, options) { + ProvisionAccountTicketRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.showDeleted = false; + object.account = null; + object.redirectUri = ""; } - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.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.showDeleted != null && message.hasOwnProperty("showDeleted")) - object.showDeleted = message.showDeleted; + if (message.account != null && message.hasOwnProperty("account")) + object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + object.redirectUri = message.redirectUri; return object; }; /** - * Converts this ListPropertiesRequest to JSON. + * Converts this ProvisionAccountTicketRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @instance * @returns {Object.} JSON object */ - ListPropertiesRequest.prototype.toJSON = function toJSON() { + ProvisionAccountTicketRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListPropertiesRequest; + return ProvisionAccountTicketRequest; })(); - v1alpha.ListPropertiesResponse = (function() { + v1alpha.ProvisionAccountTicketResponse = (function() { /** - * Properties of a ListPropertiesResponse. + * Properties of a ProvisionAccountTicketResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListPropertiesResponse - * @property {Array.|null} [properties] ListPropertiesResponse properties - * @property {string|null} [nextPageToken] ListPropertiesResponse nextPageToken + * @interface IProvisionAccountTicketResponse + * @property {string|null} [accountTicketId] ProvisionAccountTicketResponse accountTicketId */ /** - * Constructs a new ListPropertiesResponse. + * Constructs a new ProvisionAccountTicketResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListPropertiesResponse. - * @implements IListPropertiesResponse + * @classdesc Represents a ProvisionAccountTicketResponse. + * @implements IProvisionAccountTicketResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set */ - function ListPropertiesResponse(properties) { - this.properties = []; + function ProvisionAccountTicketResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3579,91 +3642,75 @@ } /** - * ListPropertiesResponse properties. - * @member {Array.} properties - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @instance - */ - ListPropertiesResponse.prototype.properties = $util.emptyArray; - - /** - * ListPropertiesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * ProvisionAccountTicketResponse accountTicketId. + * @member {string} accountTicketId + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @instance */ - ListPropertiesResponse.prototype.nextPageToken = ""; + ProvisionAccountTicketResponse.prototype.accountTicketId = ""; /** - * Creates a new ListPropertiesResponse instance using the specified properties. + * Creates a new ProvisionAccountTicketResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse instance */ - ListPropertiesResponse.create = function create(properties) { - return new ListPropertiesResponse(properties); + ProvisionAccountTicketResponse.create = function create(properties) { + return new ProvisionAccountTicketResponse(properties); }; /** - * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPropertiesResponse.encode = function encode(message, writer) { + ProvisionAccountTicketResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.properties != null && message.properties.length) - for (var i = 0; i < message.properties.length; ++i) - $root.google.analytics.admin.v1alpha.Property.encode(message.properties[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.accountTicketId != null && Object.hasOwnProperty.call(message, "accountTicketId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.accountTicketId); return writer; }; /** - * Encodes the specified ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ProvisionAccountTicketResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPropertiesResponse message from the specified reader or buffer. + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPropertiesResponse.decode = function decode(reader, length) { + ProvisionAccountTicketResponse.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.analytics.admin.v1alpha.ListPropertiesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.properties && message.properties.length)) - message.properties = []; - message.properties.push($root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.accountTicketId = reader.string(); break; default: reader.skipType(tag & 7); @@ -3674,134 +3721,107 @@ }; /** - * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPropertiesResponse.decodeDelimited = function decodeDelimited(reader) { + ProvisionAccountTicketResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPropertiesResponse message. + * Verifies a ProvisionAccountTicketResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPropertiesResponse.verify = function verify(message) { + ProvisionAccountTicketResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.properties != null && message.hasOwnProperty("properties")) { - if (!Array.isArray(message.properties)) - return "properties: array expected"; - for (var i = 0; i < message.properties.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.properties[i]); - if (error) - return "properties." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + if (!$util.isString(message.accountTicketId)) + return "accountTicketId: string expected"; return null; }; /** - * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse */ - ListPropertiesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesResponse) + ProvisionAccountTicketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListPropertiesResponse(); - if (object.properties) { - if (!Array.isArray(object.properties)) - throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: array expected"); - message.properties = []; - for (var i = 0; i < object.properties.length; ++i) { - if (typeof object.properties[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: object expected"); - message.properties[i] = $root.google.analytics.admin.v1alpha.Property.fromObject(object.properties[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); + if (object.accountTicketId != null) + message.accountTicketId = String(object.accountTicketId); return message; }; /** - * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} message ListPropertiesResponse + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} message ProvisionAccountTicketResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPropertiesResponse.toObject = function toObject(message, options) { + ProvisionAccountTicketResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.properties = []; if (options.defaults) - object.nextPageToken = ""; - if (message.properties && message.properties.length) { - object.properties = []; - for (var j = 0; j < message.properties.length; ++j) - object.properties[j] = $root.google.analytics.admin.v1alpha.Property.toObject(message.properties[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.accountTicketId = ""; + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + object.accountTicketId = message.accountTicketId; return object; }; /** - * Converts this ListPropertiesResponse to JSON. + * Converts this ProvisionAccountTicketResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @instance * @returns {Object.} JSON object */ - ListPropertiesResponse.prototype.toJSON = function toJSON() { + ProvisionAccountTicketResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListPropertiesResponse; + return ProvisionAccountTicketResponse; })(); - v1alpha.UpdatePropertyRequest = (function() { + v1alpha.GetPropertyRequest = (function() { /** - * Properties of an UpdatePropertyRequest. + * Properties of a GetPropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdatePropertyRequest - * @property {google.analytics.admin.v1alpha.IProperty|null} [property] UpdatePropertyRequest property - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePropertyRequest updateMask + * @interface IGetPropertyRequest + * @property {string|null} [name] GetPropertyRequest name */ /** - * Constructs a new UpdatePropertyRequest. + * Constructs a new GetPropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdatePropertyRequest. - * @implements IUpdatePropertyRequest + * @classdesc Represents a GetPropertyRequest. + * @implements IGetPropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set */ - function UpdatePropertyRequest(properties) { + function GetPropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3809,88 +3829,75 @@ } /** - * UpdatePropertyRequest property. - * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @instance - */ - UpdatePropertyRequest.prototype.property = null; - - /** - * UpdatePropertyRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * GetPropertyRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @instance */ - UpdatePropertyRequest.prototype.updateMask = null; + GetPropertyRequest.prototype.name = ""; /** - * Creates a new UpdatePropertyRequest instance using the specified properties. + * Creates a new GetPropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest instance + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest instance */ - UpdatePropertyRequest.create = function create(properties) { - return new UpdatePropertyRequest(properties); + GetPropertyRequest.create = function create(properties) { + return new GetPropertyRequest(properties); }; /** - * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePropertyRequest.encode = function encode(message, writer) { + GetPropertyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * Encodes the specified GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePropertyRequest message from the specified reader or buffer. + * Decodes a GetPropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePropertyRequest.decode = function decode(reader, length) { + GetPropertyRequest.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.analytics.admin.v1alpha.UpdatePropertyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetPropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -3901,126 +3908,110 @@ }; /** - * Decodes an UpdatePropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + GetPropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePropertyRequest message. + * Verifies a GetPropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePropertyRequest.verify = function verify(message) { + GetPropertyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); - if (error) - return "property." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest */ - UpdatePropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdatePropertyRequest) + GetPropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetPropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdatePropertyRequest(); - if (object.property != null) { - if (typeof object.property !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.property: object expected"); - message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.GetPropertyRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.UpdatePropertyRequest} message UpdatePropertyRequest + * @param {google.analytics.admin.v1alpha.GetPropertyRequest} message GetPropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePropertyRequest.toObject = function toObject(message, options) { + GetPropertyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.property = null; - object.updateMask = null; - } - if (message.property != null && message.hasOwnProperty("property")) - object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdatePropertyRequest to JSON. + * Converts this GetPropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @instance * @returns {Object.} JSON object */ - UpdatePropertyRequest.prototype.toJSON = function toJSON() { + GetPropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdatePropertyRequest; + return GetPropertyRequest; })(); - v1alpha.CreatePropertyRequest = (function() { + v1alpha.ListPropertiesRequest = (function() { /** - * Properties of a CreatePropertyRequest. + * Properties of a ListPropertiesRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreatePropertyRequest - * @property {google.analytics.admin.v1alpha.IProperty|null} [property] CreatePropertyRequest property + * @interface IListPropertiesRequest + * @property {string|null} [filter] ListPropertiesRequest filter + * @property {number|null} [pageSize] ListPropertiesRequest pageSize + * @property {string|null} [pageToken] ListPropertiesRequest pageToken + * @property {boolean|null} [showDeleted] ListPropertiesRequest showDeleted */ /** - * Constructs a new CreatePropertyRequest. + * Constructs a new ListPropertiesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreatePropertyRequest. - * @implements ICreatePropertyRequest + * @classdesc Represents a ListPropertiesRequest. + * @implements IListPropertiesRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set */ - function CreatePropertyRequest(properties) { + function ListPropertiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4028,75 +4019,114 @@ } /** - * CreatePropertyRequest property. - * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * ListPropertiesRequest filter. + * @member {string} filter + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @instance */ - CreatePropertyRequest.prototype.property = null; + ListPropertiesRequest.prototype.filter = ""; /** - * Creates a new CreatePropertyRequest instance using the specified properties. + * ListPropertiesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.pageSize = 0; + + /** + * ListPropertiesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.pageToken = ""; + + /** + * ListPropertiesRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.showDeleted = false; + + /** + * Creates a new ListPropertiesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest instance + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest instance */ - CreatePropertyRequest.create = function create(properties) { - return new CreatePropertyRequest(properties); + ListPropertiesRequest.create = function create(properties) { + return new ListPropertiesRequest(properties); }; /** - * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePropertyRequest.encode = function encode(message, writer) { + ListPropertiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); + 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.showDeleted); return writer; }; /** - * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePropertyRequest message from the specified reader or buffer. + * Decodes a ListPropertiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePropertyRequest.decode = function decode(reader, length) { + ListPropertiesRequest.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.analytics.admin.v1alpha.CreatePropertyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListPropertiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.showDeleted = reader.bool(); break; default: reader.skipType(tag & 7); @@ -4107,112 +4137,134 @@ }; /** - * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + ListPropertiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePropertyRequest message. + * Verifies a ListPropertiesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePropertyRequest.verify = function verify(message) { + ListPropertiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); - if (error) - return "property." + error; - } + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: 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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; return null; }; /** - * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest */ - CreatePropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreatePropertyRequest) + ListPropertiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreatePropertyRequest(); - if (object.property != null) { - if (typeof object.property !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreatePropertyRequest.property: object expected"); - message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); - } + var message = new $root.google.analytics.admin.v1alpha.ListPropertiesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); return message; }; /** - * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.CreatePropertyRequest} message CreatePropertyRequest + * @param {google.analytics.admin.v1alpha.ListPropertiesRequest} message ListPropertiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePropertyRequest.toObject = function toObject(message, options) { + ListPropertiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.property = null; - if (message.property != null && message.hasOwnProperty("property")) - object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (options.defaults) { + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.showDeleted = false; + } + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.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.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; return object; }; /** - * Converts this CreatePropertyRequest to JSON. + * Converts this ListPropertiesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @instance * @returns {Object.} JSON object */ - CreatePropertyRequest.prototype.toJSON = function toJSON() { + ListPropertiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreatePropertyRequest; + return ListPropertiesRequest; })(); - v1alpha.DeletePropertyRequest = (function() { + v1alpha.ListPropertiesResponse = (function() { /** - * Properties of a DeletePropertyRequest. + * Properties of a ListPropertiesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IDeletePropertyRequest - * @property {string|null} [name] DeletePropertyRequest name + * @interface IListPropertiesResponse + * @property {Array.|null} [properties] ListPropertiesResponse properties + * @property {string|null} [nextPageToken] ListPropertiesResponse nextPageToken */ /** - * Constructs a new DeletePropertyRequest. + * Constructs a new ListPropertiesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeletePropertyRequest. - * @implements IDeletePropertyRequest + * @classdesc Represents a ListPropertiesResponse. + * @implements IListPropertiesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set */ - function DeletePropertyRequest(properties) { + function ListPropertiesResponse(properties) { + this.properties = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4220,75 +4272,91 @@ } /** - * DeletePropertyRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * ListPropertiesResponse properties. + * @member {Array.} properties + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @instance */ - DeletePropertyRequest.prototype.name = ""; + ListPropertiesResponse.prototype.properties = $util.emptyArray; /** - * Creates a new DeletePropertyRequest instance using the specified properties. + * ListPropertiesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @instance + */ + ListPropertiesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPropertiesResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest instance + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse instance */ - DeletePropertyRequest.create = function create(properties) { - return new DeletePropertyRequest(properties); + ListPropertiesResponse.create = function create(properties) { + return new ListPropertiesResponse(properties); }; /** - * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePropertyRequest.encode = function encode(message, writer) { + ListPropertiesResponse.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.properties != null && message.properties.length) + for (var i = 0; i < message.properties.length; ++i) + $root.google.analytics.admin.v1alpha.Property.encode(message.properties[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 DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * Encodes the specified ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePropertyRequest message from the specified reader or buffer. + * Decodes a ListPropertiesResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePropertyRequest.decode = function decode(reader, length) { + ListPropertiesResponse.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.analytics.admin.v1alpha.DeletePropertyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListPropertiesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.properties && message.properties.length)) + message.properties = []; + message.properties.push($root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -4299,107 +4367,134 @@ }; /** - * Decodes a DeletePropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + ListPropertiesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePropertyRequest message. + * Verifies a ListPropertiesResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePropertyRequest.verify = function verify(message) { + ListPropertiesResponse.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.properties != null && message.hasOwnProperty("properties")) { + if (!Array.isArray(message.properties)) + return "properties: array expected"; + for (var i = 0; i < message.properties.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.properties[i]); + if (error) + return "properties." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse */ - DeletePropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeletePropertyRequest) + ListPropertiesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.DeletePropertyRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListPropertiesResponse(); + if (object.properties) { + if (!Array.isArray(object.properties)) + throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: array expected"); + message.properties = []; + for (var i = 0; i < object.properties.length; ++i) { + if (typeof object.properties[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: object expected"); + message.properties[i] = $root.google.analytics.admin.v1alpha.Property.fromObject(object.properties[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.DeletePropertyRequest} message DeletePropertyRequest + * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} message ListPropertiesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePropertyRequest.toObject = function toObject(message, options) { + ListPropertiesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.properties = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.properties && message.properties.length) { + object.properties = []; + for (var j = 0; j < message.properties.length; ++j) + object.properties[j] = $root.google.analytics.admin.v1alpha.Property.toObject(message.properties[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeletePropertyRequest to JSON. + * Converts this ListPropertiesResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @instance * @returns {Object.} JSON object */ - DeletePropertyRequest.prototype.toJSON = function toJSON() { + ListPropertiesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeletePropertyRequest; + return ListPropertiesResponse; })(); - v1alpha.GetUserLinkRequest = (function() { + v1alpha.UpdatePropertyRequest = (function() { /** - * Properties of a GetUserLinkRequest. + * Properties of an UpdatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetUserLinkRequest - * @property {string|null} [name] GetUserLinkRequest name + * @interface IUpdatePropertyRequest + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] UpdatePropertyRequest property + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePropertyRequest updateMask */ /** - * Constructs a new GetUserLinkRequest. + * Constructs a new UpdatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetUserLinkRequest. - * @implements IGetUserLinkRequest + * @classdesc Represents an UpdatePropertyRequest. + * @implements IUpdatePropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set */ - function GetUserLinkRequest(properties) { + function UpdatePropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4407,75 +4502,88 @@ } /** - * GetUserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * UpdatePropertyRequest property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @instance */ - GetUserLinkRequest.prototype.name = ""; + UpdatePropertyRequest.prototype.property = null; /** - * Creates a new GetUserLinkRequest instance using the specified properties. + * UpdatePropertyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @instance + */ + UpdatePropertyRequest.prototype.updateMask = null; + + /** + * Creates a new UpdatePropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest instance */ - GetUserLinkRequest.create = function create(properties) { - return new GetUserLinkRequest(properties); + UpdatePropertyRequest.create = function create(properties) { + return new UpdatePropertyRequest(properties); }; /** - * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUserLinkRequest.encode = function encode(message, writer) { + UpdatePropertyRequest.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.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, 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 GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetUserLinkRequest message from the specified reader or buffer. + * Decodes an UpdatePropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUserLinkRequest.decode = function decode(reader, length) { + UpdatePropertyRequest.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.analytics.admin.v1alpha.GetUserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdatePropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4486,109 +4594,126 @@ }; /** - * Decodes a GetUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdatePropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + UpdatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetUserLinkRequest message. + * Verifies an UpdatePropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetUserLinkRequest.verify = function verify(message) { + UpdatePropertyRequest.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.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + 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 a GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest */ - GetUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetUserLinkRequest) + UpdatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdatePropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetUserLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.GetUserLinkRequest} message GetUserLinkRequest + * @param {google.analytics.admin.v1alpha.UpdatePropertyRequest} message UpdatePropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetUserLinkRequest.toObject = function toObject(message, options) { + UpdatePropertyRequest.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 (options.defaults) { + object.property = null; + object.updateMask = null; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetUserLinkRequest to JSON. + * Converts this UpdatePropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @instance * @returns {Object.} JSON object */ - GetUserLinkRequest.prototype.toJSON = function toJSON() { + UpdatePropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetUserLinkRequest; + return UpdatePropertyRequest; })(); - v1alpha.BatchGetUserLinksRequest = (function() { + v1alpha.CreatePropertyRequest = (function() { /** - * Properties of a BatchGetUserLinksRequest. + * Properties of a CreatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchGetUserLinksRequest - * @property {string|null} [parent] BatchGetUserLinksRequest parent - * @property {Array.|null} [names] BatchGetUserLinksRequest names + * @interface ICreatePropertyRequest + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] CreatePropertyRequest property */ /** - * Constructs a new BatchGetUserLinksRequest. + * Constructs a new CreatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchGetUserLinksRequest. - * @implements IBatchGetUserLinksRequest + * @classdesc Represents a CreatePropertyRequest. + * @implements ICreatePropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set */ - function BatchGetUserLinksRequest(properties) { - this.names = []; + function CreatePropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4596,91 +4721,75 @@ } /** - * BatchGetUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @instance - */ - BatchGetUserLinksRequest.prototype.parent = ""; - - /** - * BatchGetUserLinksRequest names. - * @member {Array.} names - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * CreatePropertyRequest property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @instance */ - BatchGetUserLinksRequest.prototype.names = $util.emptyArray; + CreatePropertyRequest.prototype.property = null; /** - * Creates a new BatchGetUserLinksRequest instance using the specified properties. + * Creates a new CreatePropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest instance */ - BatchGetUserLinksRequest.create = function create(properties) { - return new BatchGetUserLinksRequest(properties); + CreatePropertyRequest.create = function create(properties) { + return new CreatePropertyRequest(properties); }; /** - * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchGetUserLinksRequest.encode = function encode(message, writer) { + CreatePropertyRequest.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.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchGetUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. + * Decodes a CreatePropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchGetUserLinksRequest.decode = function decode(reader, length) { + CreatePropertyRequest.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.analytics.admin.v1alpha.BatchGetUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreatePropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4691,129 +4800,112 @@ }; /** - * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchGetUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + CreatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchGetUserLinksRequest message. + * Verifies a CreatePropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchGetUserLinksRequest.verify = function verify(message) { + CreatePropertyRequest.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.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + error; } return null; }; /** - * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest */ - BatchGetUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) + CreatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreatePropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksRequest.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + var message = new $root.google.analytics.admin.v1alpha.CreatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); } return message; }; /** - * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} message BatchGetUserLinksRequest + * @param {google.analytics.admin.v1alpha.CreatePropertyRequest} message CreatePropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchGetUserLinksRequest.toObject = function toObject(message, options) { + CreatePropertyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.names = []; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } + object.property = null; + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); return object; }; /** - * Converts this BatchGetUserLinksRequest to JSON. + * Converts this CreatePropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @instance * @returns {Object.} JSON object */ - BatchGetUserLinksRequest.prototype.toJSON = function toJSON() { + CreatePropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchGetUserLinksRequest; + return CreatePropertyRequest; })(); - v1alpha.BatchGetUserLinksResponse = (function() { + v1alpha.DeletePropertyRequest = (function() { /** - * Properties of a BatchGetUserLinksResponse. + * Properties of a DeletePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchGetUserLinksResponse - * @property {Array.|null} [userLinks] BatchGetUserLinksResponse userLinks + * @interface IDeletePropertyRequest + * @property {string|null} [name] DeletePropertyRequest name */ /** - * Constructs a new BatchGetUserLinksResponse. + * Constructs a new DeletePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchGetUserLinksResponse. - * @implements IBatchGetUserLinksResponse + * @classdesc Represents a DeletePropertyRequest. + * @implements IDeletePropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set */ - function BatchGetUserLinksResponse(properties) { - this.userLinks = []; + function DeletePropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4821,78 +4913,75 @@ } /** - * BatchGetUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * DeletePropertyRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @instance */ - BatchGetUserLinksResponse.prototype.userLinks = $util.emptyArray; + DeletePropertyRequest.prototype.name = ""; /** - * Creates a new BatchGetUserLinksResponse instance using the specified properties. + * Creates a new DeletePropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest instance */ - BatchGetUserLinksResponse.create = function create(properties) { - return new BatchGetUserLinksResponse(properties); + DeletePropertyRequest.create = function create(properties) { + return new DeletePropertyRequest(properties); }; /** - * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchGetUserLinksResponse.encode = function encode(message, writer) { + DeletePropertyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * Encodes the specified DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchGetUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeletePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. + * Decodes a DeletePropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchGetUserLinksResponse.decode = function decode(reader, length) { + DeletePropertyRequest.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.analytics.admin.v1alpha.BatchGetUserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeletePropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -4903,126 +4992,107 @@ }; /** - * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a DeletePropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchGetUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + DeletePropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchGetUserLinksResponse message. + * Verifies a DeletePropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchGetUserLinksResponse.verify = function verify(message) { + DeletePropertyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest */ - BatchGetUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) + DeletePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeletePropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); - } - } + var message = new $root.google.analytics.admin.v1alpha.DeletePropertyRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} message BatchGetUserLinksResponse + * @param {google.analytics.admin.v1alpha.DeletePropertyRequest} message DeletePropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchGetUserLinksResponse.toObject = function toObject(message, options) { + DeletePropertyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.userLinks = []; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BatchGetUserLinksResponse to JSON. + * Converts this DeletePropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @instance * @returns {Object.} JSON object */ - BatchGetUserLinksResponse.prototype.toJSON = function toJSON() { + DeletePropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchGetUserLinksResponse; + return DeletePropertyRequest; })(); - v1alpha.ListUserLinksRequest = (function() { + v1alpha.GetUserLinkRequest = (function() { /** - * Properties of a ListUserLinksRequest. + * Properties of a GetUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListUserLinksRequest - * @property {string|null} [parent] ListUserLinksRequest parent - * @property {number|null} [pageSize] ListUserLinksRequest pageSize - * @property {string|null} [pageToken] ListUserLinksRequest pageToken + * @interface IGetUserLinkRequest + * @property {string|null} [name] GetUserLinkRequest name */ /** - * Constructs a new ListUserLinksRequest. + * Constructs a new GetUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListUserLinksRequest. - * @implements IListUserLinksRequest + * @classdesc Represents a GetUserLinkRequest. + * @implements IGetUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set */ - function ListUserLinksRequest(properties) { + function GetUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5030,101 +5100,75 @@ } /** - * ListUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @instance - */ - ListUserLinksRequest.prototype.parent = ""; - - /** - * ListUserLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @instance - */ - ListUserLinksRequest.prototype.pageSize = 0; - - /** - * ListUserLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * GetUserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @instance */ - ListUserLinksRequest.prototype.pageToken = ""; + GetUserLinkRequest.prototype.name = ""; /** - * Creates a new ListUserLinksRequest instance using the specified properties. + * Creates a new GetUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest instance */ - ListUserLinksRequest.create = function create(properties) { - return new ListUserLinksRequest(properties); + GetUserLinkRequest.create = function create(properties) { + return new GetUserLinkRequest(properties); }; /** - * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUserLinksRequest.encode = function encode(message, writer) { + GetUserLinkRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * Encodes the specified GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUserLinksRequest message from the specified reader or buffer. + * Decodes a GetUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUserLinksRequest.decode = function decode(reader, length) { + GetUserLinkRequest.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.analytics.admin.v1alpha.ListUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetUserLinkRequest(); 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -5135,126 +5179,109 @@ }; /** - * Decodes a ListUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + GetUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListUserLinksRequest message. + * Verifies a GetUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListUserLinksRequest.verify = function verify(message) { + GetUserLinkRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest */ - ListUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksRequest) + GetUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetUserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListUserLinksRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.GetUserLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListUserLinksRequest} message ListUserLinksRequest + * @param {google.analytics.admin.v1alpha.GetUserLinkRequest} message GetUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUserLinksRequest.toObject = function toObject(message, options) { + GetUserLinkRequest.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; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListUserLinksRequest to JSON. + * Converts this GetUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @instance * @returns {Object.} JSON object */ - ListUserLinksRequest.prototype.toJSON = function toJSON() { + GetUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListUserLinksRequest; + return GetUserLinkRequest; })(); - v1alpha.ListUserLinksResponse = (function() { + v1alpha.BatchGetUserLinksRequest = (function() { /** - * Properties of a ListUserLinksResponse. + * Properties of a BatchGetUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListUserLinksResponse - * @property {Array.|null} [userLinks] ListUserLinksResponse userLinks - * @property {string|null} [nextPageToken] ListUserLinksResponse nextPageToken + * @interface IBatchGetUserLinksRequest + * @property {string|null} [parent] BatchGetUserLinksRequest parent + * @property {Array.|null} [names] BatchGetUserLinksRequest names */ /** - * Constructs a new ListUserLinksResponse. + * Constructs a new BatchGetUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListUserLinksResponse. - * @implements IListUserLinksResponse + * @classdesc Represents a BatchGetUserLinksRequest. + * @implements IBatchGetUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set */ - function ListUserLinksResponse(properties) { - this.userLinks = []; + function BatchGetUserLinksRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5262,91 +5289,91 @@ } /** - * ListUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * BatchGetUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @instance */ - ListUserLinksResponse.prototype.userLinks = $util.emptyArray; + BatchGetUserLinksRequest.prototype.parent = ""; /** - * ListUserLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * BatchGetUserLinksRequest names. + * @member {Array.} names + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @instance */ - ListUserLinksResponse.prototype.nextPageToken = ""; + BatchGetUserLinksRequest.prototype.names = $util.emptyArray; /** - * Creates a new ListUserLinksResponse instance using the specified properties. + * Creates a new BatchGetUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest instance */ - ListUserLinksResponse.create = function create(properties) { - return new ListUserLinksResponse(properties); + BatchGetUserLinksRequest.create = function create(properties) { + return new BatchGetUserLinksRequest(properties); }; /** - * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUserLinksResponse.encode = function encode(message, writer) { + BatchGetUserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[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 ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchGetUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUserLinksResponse message from the specified reader or buffer. + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUserLinksResponse.decode = function decode(reader, length) { + BatchGetUserLinksRequest.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.analytics.admin.v1alpha.ListUserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -5357,135 +5384,129 @@ }; /** - * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + BatchGetUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListUserLinksResponse message. + * Verifies a BatchGetUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListUserLinksResponse.verify = function verify(message) { + BatchGetUserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest */ - ListUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksResponse) + BatchGetUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); - } + var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} message ListUserLinksResponse + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} message BatchGetUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUserLinksResponse.toObject = function toObject(message, options) { + BatchGetUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.userLinks = []; + object.names = []; if (options.defaults) - object.nextPageToken = ""; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListUserLinksResponse to JSON. + * Converts this BatchGetUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @instance * @returns {Object.} JSON object */ - ListUserLinksResponse.prototype.toJSON = function toJSON() { + BatchGetUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListUserLinksResponse; + return BatchGetUserLinksRequest; })(); - v1alpha.AuditUserLinksRequest = (function() { + v1alpha.BatchGetUserLinksResponse = (function() { /** - * Properties of an AuditUserLinksRequest. + * Properties of a BatchGetUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLinksRequest - * @property {string|null} [parent] AuditUserLinksRequest parent - * @property {number|null} [pageSize] AuditUserLinksRequest pageSize - * @property {string|null} [pageToken] AuditUserLinksRequest pageToken + * @interface IBatchGetUserLinksResponse + * @property {Array.|null} [userLinks] BatchGetUserLinksResponse userLinks */ /** - * Constructs a new AuditUserLinksRequest. + * Constructs a new BatchGetUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLinksRequest. - * @implements IAuditUserLinksRequest + * @classdesc Represents a BatchGetUserLinksResponse. + * @implements IBatchGetUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set */ - function AuditUserLinksRequest(properties) { + function BatchGetUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5493,101 +5514,78 @@ } /** - * AuditUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @instance - */ - AuditUserLinksRequest.prototype.parent = ""; - - /** - * AuditUserLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @instance - */ - AuditUserLinksRequest.prototype.pageSize = 0; - - /** - * AuditUserLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * BatchGetUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @instance */ - AuditUserLinksRequest.prototype.pageToken = ""; + BatchGetUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * Creates a new AuditUserLinksRequest instance using the specified properties. + * Creates a new BatchGetUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse instance */ - AuditUserLinksRequest.create = function create(properties) { - return new AuditUserLinksRequest(properties); + BatchGetUserLinksResponse.create = function create(properties) { + return new BatchGetUserLinksResponse(properties); }; /** - * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLinksRequest.encode = function encode(message, writer) { + BatchGetUserLinksResponse.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.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchGetUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuditUserLinksRequest message from the specified reader or buffer. + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLinksRequest.decode = function decode(reader, length) { + BatchGetUserLinksResponse.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.analytics.admin.v1alpha.AuditUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); 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(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -5598,126 +5596,126 @@ }; /** - * Decodes an AuditUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + BatchGetUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuditUserLinksRequest message. + * Verifies a BatchGetUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserLinksRequest.verify = function verify(message) { + BatchGetUserLinksResponse.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.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } return null; }; /** - * Creates an AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse */ - AuditUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksRequest) + BatchGetUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } return message; }; /** - * Creates a plain object from an AuditUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.AuditUserLinksRequest} message AuditUserLinksRequest + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} message BatchGetUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserLinksRequest.toObject = function toObject(message, options) { + BatchGetUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); } - 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 AuditUserLinksRequest to JSON. + * Converts this BatchGetUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @instance * @returns {Object.} JSON object */ - AuditUserLinksRequest.prototype.toJSON = function toJSON() { + BatchGetUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuditUserLinksRequest; + return BatchGetUserLinksResponse; })(); - v1alpha.AuditUserLinksResponse = (function() { + v1alpha.ListUserLinksRequest = (function() { /** - * Properties of an AuditUserLinksResponse. + * Properties of a ListUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLinksResponse - * @property {Array.|null} [userLinks] AuditUserLinksResponse userLinks - * @property {string|null} [nextPageToken] AuditUserLinksResponse nextPageToken + * @interface IListUserLinksRequest + * @property {string|null} [parent] ListUserLinksRequest parent + * @property {number|null} [pageSize] ListUserLinksRequest pageSize + * @property {string|null} [pageToken] ListUserLinksRequest pageToken */ /** - * Constructs a new AuditUserLinksResponse. + * Constructs a new ListUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLinksResponse. - * @implements IAuditUserLinksResponse + * @classdesc Represents a ListUserLinksRequest. + * @implements IListUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set */ - function AuditUserLinksResponse(properties) { - this.userLinks = []; + function ListUserLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5725,91 +5723,101 @@ } /** - * AuditUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * ListUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @instance */ - AuditUserLinksResponse.prototype.userLinks = $util.emptyArray; + ListUserLinksRequest.prototype.parent = ""; /** - * AuditUserLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * ListUserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @instance */ - AuditUserLinksResponse.prototype.nextPageToken = ""; + ListUserLinksRequest.prototype.pageSize = 0; /** - * Creates a new AuditUserLinksResponse instance using the specified properties. + * ListUserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @instance + */ + ListUserLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest instance */ - AuditUserLinksResponse.create = function create(properties) { - return new AuditUserLinksResponse(properties); + ListUserLinksRequest.create = function create(properties) { + return new ListUserLinksRequest(properties); }; /** - * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLinksResponse.encode = function encode(message, writer) { + ListUserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.AuditUserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.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 AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * Encodes the specified ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuditUserLinksResponse message from the specified reader or buffer. + * Decodes a ListUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLinksResponse.decode = function decode(reader, length) { + ListUserLinksRequest.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.analytics.admin.v1alpha.AuditUserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.AuditUserLink.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -5820,135 +5828,126 @@ }; /** - * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + ListUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuditUserLinksResponse message. + * Verifies a ListUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserLinksResponse.verify = function verify(message) { + ListUserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AuditUserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string 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 an AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest */ - AuditUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksResponse) + ListUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.AuditUserLink.fromObject(object.userLinks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.ListUserLinksRequest(); + 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 an AuditUserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} message AuditUserLinksResponse + * @param {google.analytics.admin.v1alpha.ListUserLinksRequest} message ListUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserLinksResponse.toObject = function toObject(message, options) { + ListUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.userLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.AuditUserLink.toObject(message.userLinks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 AuditUserLinksResponse to JSON. + * Converts this ListUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @instance * @returns {Object.} JSON object */ - AuditUserLinksResponse.prototype.toJSON = function toJSON() { + ListUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuditUserLinksResponse; + return ListUserLinksRequest; })(); - v1alpha.CreateUserLinkRequest = (function() { + v1alpha.ListUserLinksResponse = (function() { /** - * Properties of a CreateUserLinkRequest. + * Properties of a ListUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface ICreateUserLinkRequest - * @property {string|null} [parent] CreateUserLinkRequest parent - * @property {boolean|null} [notifyNewUser] CreateUserLinkRequest notifyNewUser - * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] CreateUserLinkRequest userLink + * @interface IListUserLinksResponse + * @property {Array.|null} [userLinks] ListUserLinksResponse userLinks + * @property {string|null} [nextPageToken] ListUserLinksResponse nextPageToken */ /** - * Constructs a new CreateUserLinkRequest. + * Constructs a new ListUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateUserLinkRequest. - * @implements ICreateUserLinkRequest + * @classdesc Represents a ListUserLinksResponse. + * @implements IListUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set */ - function CreateUserLinkRequest(properties) { + function ListUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5956,101 +5955,91 @@ } /** - * CreateUserLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest - * @instance - */ - CreateUserLinkRequest.prototype.parent = ""; - - /** - * CreateUserLinkRequest notifyNewUser. - * @member {boolean} notifyNewUser - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * ListUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @instance */ - CreateUserLinkRequest.prototype.notifyNewUser = false; + ListUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * CreateUserLinkRequest userLink. - * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * ListUserLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @instance */ - CreateUserLinkRequest.prototype.userLink = null; + ListUserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateUserLinkRequest instance using the specified properties. + * Creates a new ListUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse instance */ - CreateUserLinkRequest.create = function create(properties) { - return new CreateUserLinkRequest(properties); + ListUserLinksResponse.create = function create(properties) { + return new ListUserLinksResponse(properties); }; /** - * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateUserLinkRequest.encode = function encode(message, writer) { + ListUserLinksResponse.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.notifyNewUser != null && Object.hasOwnProperty.call(message, "notifyNewUser")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUser); - if (message.userLink != null && Object.hasOwnProperty.call(message, "userLink")) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[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 CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * Encodes the specified ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateUserLinkRequest message from the specified reader or buffer. + * Decodes a ListUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateUserLinkRequest.decode = function decode(reader, length) { + ListUserLinksResponse.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.analytics.admin.v1alpha.CreateUserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); break; case 2: - message.notifyNewUser = reader.bool(); - break; - case 3: - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -6061,132 +6050,135 @@ }; /** - * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateUserLinkRequest message. + * Verifies a ListUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateUserLinkRequest.verify = function verify(message) { + ListUserLinksResponse.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.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) - if (typeof message.notifyNewUser !== "boolean") - return "notifyNewUser: boolean expected"; - if (message.userLink != null && message.hasOwnProperty("userLink")) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); - if (error) - return "userLink." + error; + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse */ - CreateUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateUserLinkRequest) + ListUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateUserLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.notifyNewUser != null) - message.notifyNewUser = Boolean(object.notifyNewUser); - if (object.userLink != null) { - if (typeof object.userLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateUserLinkRequest.userLink: object expected"); - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); + var message = new $root.google.analytics.admin.v1alpha.ListUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.CreateUserLinkRequest} message CreateUserLinkRequest + * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} message ListUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateUserLinkRequest.toObject = function toObject(message, options) { + ListUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.notifyNewUser = false; - object.userLink = null; + if (options.arrays || options.defaults) + object.userLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) - object.notifyNewUser = message.notifyNewUser; - if (message.userLink != null && message.hasOwnProperty("userLink")) - object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateUserLinkRequest to JSON. + * Converts this ListUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @instance * @returns {Object.} JSON object */ - CreateUserLinkRequest.prototype.toJSON = function toJSON() { + ListUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateUserLinkRequest; + return ListUserLinksResponse; })(); - v1alpha.BatchCreateUserLinksRequest = (function() { + v1alpha.AuditUserLinksRequest = (function() { /** - * Properties of a BatchCreateUserLinksRequest. + * Properties of an AuditUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchCreateUserLinksRequest - * @property {string|null} [parent] BatchCreateUserLinksRequest parent - * @property {boolean|null} [notifyNewUsers] BatchCreateUserLinksRequest notifyNewUsers - * @property {Array.|null} [requests] BatchCreateUserLinksRequest requests + * @interface IAuditUserLinksRequest + * @property {string|null} [parent] AuditUserLinksRequest parent + * @property {number|null} [pageSize] AuditUserLinksRequest pageSize + * @property {string|null} [pageToken] AuditUserLinksRequest pageToken */ /** - * Constructs a new BatchCreateUserLinksRequest. + * Constructs a new AuditUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchCreateUserLinksRequest. - * @implements IBatchCreateUserLinksRequest + * @classdesc Represents an AuditUserLinksRequest. + * @implements IAuditUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set */ - function BatchCreateUserLinksRequest(properties) { - this.requests = []; + function AuditUserLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6194,91 +6186,90 @@ } /** - * BatchCreateUserLinksRequest parent. + * AuditUserLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @instance */ - BatchCreateUserLinksRequest.prototype.parent = ""; + AuditUserLinksRequest.prototype.parent = ""; /** - * BatchCreateUserLinksRequest notifyNewUsers. - * @member {boolean} notifyNewUsers - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * AuditUserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @instance */ - BatchCreateUserLinksRequest.prototype.notifyNewUsers = false; + AuditUserLinksRequest.prototype.pageSize = 0; /** - * BatchCreateUserLinksRequest requests. - * @member {Array.} requests - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * AuditUserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @instance */ - BatchCreateUserLinksRequest.prototype.requests = $util.emptyArray; + AuditUserLinksRequest.prototype.pageToken = ""; /** - * Creates a new BatchCreateUserLinksRequest instance using the specified properties. + * Creates a new AuditUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest instance */ - BatchCreateUserLinksRequest.create = function create(properties) { - return new BatchCreateUserLinksRequest(properties); + AuditUserLinksRequest.create = function create(properties) { + return new AuditUserLinksRequest(properties); }; /** - * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksRequest.encode = function encode(message, writer) { + AuditUserLinksRequest.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.notifyNewUsers != null && Object.hasOwnProperty.call(message, "notifyNewUsers")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUsers); - if (message.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * Encodes the specified AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AuditUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. + * Decodes an AuditUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksRequest.decode = function decode(reader, length) { + AuditUserLinksRequest.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.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AuditUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6286,12 +6277,10 @@ message.parent = reader.string(); break; case 2: - message.notifyNewUsers = reader.bool(); + message.pageSize = reader.int32(); break; case 3: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.CreateUserLinkRequest.decode(reader, reader.uint32())); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -6302,142 +6291,125 @@ }; /** - * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes an AuditUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + AuditUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateUserLinksRequest message. + * Verifies an AuditUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateUserLinksRequest.verify = function verify(message) { + AuditUserLinksRequest.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.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) - if (typeof message.notifyNewUsers !== "boolean") - return "notifyNewUsers: boolean expected"; - if (message.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.verify(message.requests[i]); - if (error) - return "requests." + error; - } - } + 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 BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest */ - BatchCreateUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) + AuditUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); + var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.notifyNewUsers != null) - message.notifyNewUsers = Boolean(object.notifyNewUsers); - if (object.requests) { - if (!Array.isArray(object.requests)) - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: array expected"); - message.requests = []; - for (var i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: object expected"); - message.requests[i] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.fromObject(object.requests[i]); - } - } + 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 BatchCreateUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AuditUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} message BatchCreateUserLinksRequest + * @param {google.analytics.admin.v1alpha.AuditUserLinksRequest} message AuditUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateUserLinksRequest.toObject = function toObject(message, options) { + AuditUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.requests = []; if (options.defaults) { object.parent = ""; - object.notifyNewUsers = false; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) - object.notifyNewUsers = message.notifyNewUsers; - if (message.requests && message.requests.length) { - object.requests = []; - for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.toObject(message.requests[j], options); - } + 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 BatchCreateUserLinksRequest to JSON. + * Converts this AuditUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @instance * @returns {Object.} JSON object */ - BatchCreateUserLinksRequest.prototype.toJSON = function toJSON() { + AuditUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateUserLinksRequest; + return AuditUserLinksRequest; })(); - v1alpha.BatchCreateUserLinksResponse = (function() { + v1alpha.AuditUserLinksResponse = (function() { /** - * Properties of a BatchCreateUserLinksResponse. + * Properties of an AuditUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IBatchCreateUserLinksResponse - * @property {Array.|null} [userLinks] BatchCreateUserLinksResponse userLinks + * @interface IAuditUserLinksResponse + * @property {Array.|null} [userLinks] AuditUserLinksResponse userLinks + * @property {string|null} [nextPageToken] AuditUserLinksResponse nextPageToken */ /** - * Constructs a new BatchCreateUserLinksResponse. + * Constructs a new AuditUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchCreateUserLinksResponse. - * @implements IBatchCreateUserLinksResponse + * @classdesc Represents an AuditUserLinksResponse. + * @implements IAuditUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set */ - function BatchCreateUserLinksResponse(properties) { + function AuditUserLinksResponse(properties) { this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -6446,78 +6418,91 @@ } /** - * BatchCreateUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * AuditUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @instance */ - BatchCreateUserLinksResponse.prototype.userLinks = $util.emptyArray; + AuditUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * Creates a new BatchCreateUserLinksResponse instance using the specified properties. + * AuditUserLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @instance + */ + AuditUserLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new AuditUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse instance */ - BatchCreateUserLinksResponse.create = function create(properties) { - return new BatchCreateUserLinksResponse(properties); + AuditUserLinksResponse.create = function create(properties) { + return new AuditUserLinksResponse(properties); }; /** - * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksResponse.encode = function encode(message, writer) { + AuditUserLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.userLinks != null && message.userLinks.length) for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.analytics.admin.v1alpha.AuditUserLink.encode(message.userLinks[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 BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * Encodes the specified AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + AuditUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. + * Decodes an AuditUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksResponse.decode = function decode(reader, length) { + AuditUserLinksResponse.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.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AuditUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.userLinks && message.userLinks.length)) message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + message.userLinks.push($root.google.analytics.admin.v1alpha.AuditUserLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -6528,124 +6513,135 @@ }; /** - * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + AuditUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateUserLinksResponse message. + * Verifies an AuditUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateUserLinksResponse.verify = function verify(message) { + AuditUserLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.userLinks != null && message.hasOwnProperty("userLinks")) { if (!Array.isArray(message.userLinks)) return "userLinks: array expected"; for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + var error = $root.google.analytics.admin.v1alpha.AuditUserLink.verify(message.userLinks[i]); if (error) return "userLinks." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse */ - BatchCreateUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) + AuditUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); + var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksResponse(); if (object.userLinks) { if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: array expected"); + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: array expected"); message.userLinks = []; for (var i = 0; i < object.userLinks.length; ++i) { if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.AuditUserLink.fromObject(object.userLinks[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from an AuditUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} message BatchCreateUserLinksResponse + * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} message AuditUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateUserLinksResponse.toObject = function toObject(message, options) { + AuditUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.userLinks = []; + if (options.defaults) + object.nextPageToken = ""; if (message.userLinks && message.userLinks.length) { object.userLinks = []; for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + object.userLinks[j] = $root.google.analytics.admin.v1alpha.AuditUserLink.toObject(message.userLinks[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this BatchCreateUserLinksResponse to JSON. + * Converts this AuditUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @instance * @returns {Object.} JSON object */ - BatchCreateUserLinksResponse.prototype.toJSON = function toJSON() { + AuditUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateUserLinksResponse; + return AuditUserLinksResponse; })(); - v1alpha.UpdateUserLinkRequest = (function() { + v1alpha.CreateUserLinkRequest = (function() { /** - * Properties of an UpdateUserLinkRequest. + * Properties of a CreateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateUserLinkRequest - * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] UpdateUserLinkRequest userLink + * @interface ICreateUserLinkRequest + * @property {string|null} [parent] CreateUserLinkRequest parent + * @property {boolean|null} [notifyNewUser] CreateUserLinkRequest notifyNewUser + * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] CreateUserLinkRequest userLink */ /** - * Constructs a new UpdateUserLinkRequest. + * Constructs a new CreateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateUserLinkRequest. - * @implements IUpdateUserLinkRequest + * @classdesc Represents a CreateUserLinkRequest. + * @implements ICreateUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set */ - function UpdateUserLinkRequest(properties) { + function CreateUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6653,74 +6649,100 @@ } /** - * UpdateUserLinkRequest userLink. + * CreateUserLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.parent = ""; + + /** + * CreateUserLinkRequest notifyNewUser. + * @member {boolean} notifyNewUser + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.notifyNewUser = false; + + /** + * CreateUserLinkRequest userLink. * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @instance */ - UpdateUserLinkRequest.prototype.userLink = null; + CreateUserLinkRequest.prototype.userLink = null; /** - * Creates a new UpdateUserLinkRequest instance using the specified properties. + * Creates a new CreateUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest instance + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest instance */ - UpdateUserLinkRequest.create = function create(properties) { - return new UpdateUserLinkRequest(properties); + CreateUserLinkRequest.create = function create(properties) { + return new CreateUserLinkRequest(properties); }; /** - * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateUserLinkRequest.encode = function encode(message, writer) { + CreateUserLinkRequest.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.notifyNewUser != null && Object.hasOwnProperty.call(message, "notifyNewUser")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUser); if (message.userLink != null && Object.hasOwnProperty.call(message, "userLink")) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * Encodes the specified CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. + * Decodes a CreateUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateUserLinkRequest.decode = function decode(reader, length) { + CreateUserLinkRequest.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.analytics.admin.v1alpha.UpdateUserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateUserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: + message.parent = reader.string(); + break; + case 2: + message.notifyNewUser = reader.bool(); + break; + case 3: message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); break; default: @@ -6732,32 +6754,38 @@ }; /** - * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + CreateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateUserLinkRequest message. + * Verifies a CreateUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateUserLinkRequest.verify = function verify(message) { + CreateUserLinkRequest.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.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) + if (typeof message.notifyNewUser !== "boolean") + return "notifyNewUser: boolean expected"; if (message.userLink != null && message.hasOwnProperty("userLink")) { var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); if (error) @@ -6767,78 +6795,90 @@ }; /** - * Creates an UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest */ - UpdateUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest) + CreateUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateUserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.CreateUserLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.notifyNewUser != null) + message.notifyNewUser = Boolean(object.notifyNewUser); if (object.userLink != null) { if (typeof object.userLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateUserLinkRequest.userLink: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.CreateUserLinkRequest.userLink: object expected"); message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); } return message; }; /** - * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateUserLinkRequest} message UpdateUserLinkRequest + * @param {google.analytics.admin.v1alpha.CreateUserLinkRequest} message CreateUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateUserLinkRequest.toObject = function toObject(message, options) { + CreateUserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.parent = ""; + object.notifyNewUser = false; object.userLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) + object.notifyNewUser = message.notifyNewUser; if (message.userLink != null && message.hasOwnProperty("userLink")) object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); return object; }; /** - * Converts this UpdateUserLinkRequest to JSON. + * Converts this CreateUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @instance * @returns {Object.} JSON object */ - UpdateUserLinkRequest.prototype.toJSON = function toJSON() { + CreateUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateUserLinkRequest; + return CreateUserLinkRequest; })(); - v1alpha.BatchUpdateUserLinksRequest = (function() { + v1alpha.BatchCreateUserLinksRequest = (function() { /** - * Properties of a BatchUpdateUserLinksRequest. + * Properties of a BatchCreateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchUpdateUserLinksRequest - * @property {string|null} [parent] BatchUpdateUserLinksRequest parent - * @property {Array.|null} [requests] BatchUpdateUserLinksRequest requests + * @interface IBatchCreateUserLinksRequest + * @property {string|null} [parent] BatchCreateUserLinksRequest parent + * @property {boolean|null} [notifyNewUsers] BatchCreateUserLinksRequest notifyNewUsers + * @property {Array.|null} [requests] BatchCreateUserLinksRequest requests */ /** - * Constructs a new BatchUpdateUserLinksRequest. + * Constructs a new BatchCreateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchUpdateUserLinksRequest. - * @implements IBatchUpdateUserLinksRequest + * @classdesc Represents a BatchCreateUserLinksRequest. + * @implements IBatchCreateUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set */ - function BatchUpdateUserLinksRequest(properties) { + function BatchCreateUserLinksRequest(properties) { this.requests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -6847,81 +6887,91 @@ } /** - * BatchUpdateUserLinksRequest parent. + * BatchCreateUserLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @instance */ - BatchUpdateUserLinksRequest.prototype.parent = ""; + BatchCreateUserLinksRequest.prototype.parent = ""; /** - * BatchUpdateUserLinksRequest requests. - * @member {Array.} requests - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * BatchCreateUserLinksRequest notifyNewUsers. + * @member {boolean} notifyNewUsers + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @instance */ - BatchUpdateUserLinksRequest.prototype.requests = $util.emptyArray; + BatchCreateUserLinksRequest.prototype.notifyNewUsers = false; /** - * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest instance + * BatchCreateUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @instance */ - BatchUpdateUserLinksRequest.create = function create(properties) { - return new BatchUpdateUserLinksRequest(properties); - }; + BatchCreateUserLinksRequest.prototype.requests = $util.emptyArray; /** - * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode + * Creates a new BatchCreateUserLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest instance + */ + BatchCreateUserLinksRequest.create = function create(properties) { + return new BatchCreateUserLinksRequest(properties); + }; + + /** + * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksRequest.encode = function encode(message, writer) { + BatchCreateUserLinksRequest.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.notifyNewUsers != null && Object.hasOwnProperty.call(message, "notifyNewUsers")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUsers); if (message.requests != null && message.requests.length) for (var i = 0; i < message.requests.length; ++i) - $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * Encodes the specified BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksRequest.decode = function decode(reader, length) { + BatchCreateUserLinksRequest.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.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6929,9 +6979,12 @@ message.parent = reader.string(); break; case 2: + message.notifyNewUsers = reader.bool(); + break; + case 3: if (!(message.requests && message.requests.length)) message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.decode(reader, reader.uint32())); + message.requests.push($root.google.analytics.admin.v1alpha.CreateUserLinkRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -6942,40 +6995,43 @@ }; /** - * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + BatchCreateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchUpdateUserLinksRequest message. + * Verifies a BatchCreateUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchUpdateUserLinksRequest.verify = function verify(message) { + BatchCreateUserLinksRequest.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.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) + if (typeof message.notifyNewUsers !== "boolean") + return "notifyNewUsers: boolean expected"; if (message.requests != null && message.hasOwnProperty("requests")) { if (!Array.isArray(message.requests)) return "requests: array expected"; for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify(message.requests[i]); + var error = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.verify(message.requests[i]); if (error) return "requests." + error; } @@ -6984,91 +7040,97 @@ }; /** - * Creates a BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest */ - BatchUpdateUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) + BatchCreateUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); + var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); if (object.parent != null) message.parent = String(object.parent); + if (object.notifyNewUsers != null) + message.notifyNewUsers = Boolean(object.notifyNewUsers); if (object.requests) { if (!Array.isArray(object.requests)) - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: array expected"); + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: array expected"); message.requests = []; for (var i = 0; i < object.requests.length; ++i) { if (typeof object.requests[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: object expected"); - message.requests[i] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.fromObject(object.requests[i]); + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.fromObject(object.requests[i]); } } return message; }; /** - * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchCreateUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} message BatchCreateUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchUpdateUserLinksRequest.toObject = function toObject(message, options) { + BatchCreateUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.requests = []; - if (options.defaults) + if (options.defaults) { object.parent = ""; + object.notifyNewUsers = false; + } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; + if (message.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) + object.notifyNewUsers = message.notifyNewUsers; if (message.requests && message.requests.length) { object.requests = []; for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.toObject(message.requests[j], options); + object.requests[j] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.toObject(message.requests[j], options); } return object; }; /** - * Converts this BatchUpdateUserLinksRequest to JSON. + * Converts this BatchCreateUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @instance * @returns {Object.} JSON object */ - BatchUpdateUserLinksRequest.prototype.toJSON = function toJSON() { + BatchCreateUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchUpdateUserLinksRequest; + return BatchCreateUserLinksRequest; })(); - v1alpha.BatchUpdateUserLinksResponse = (function() { + v1alpha.BatchCreateUserLinksResponse = (function() { /** - * Properties of a BatchUpdateUserLinksResponse. + * Properties of a BatchCreateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IBatchUpdateUserLinksResponse - * @property {Array.|null} [userLinks] BatchUpdateUserLinksResponse userLinks + * @interface IBatchCreateUserLinksResponse + * @property {Array.|null} [userLinks] BatchCreateUserLinksResponse userLinks */ /** - * Constructs a new BatchUpdateUserLinksResponse. + * Constructs a new BatchCreateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchUpdateUserLinksResponse. - * @implements IBatchUpdateUserLinksResponse + * @classdesc Represents a BatchCreateUserLinksResponse. + * @implements IBatchCreateUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set */ - function BatchUpdateUserLinksResponse(properties) { + function BatchCreateUserLinksResponse(properties) { this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -7077,35 +7139,35 @@ } /** - * BatchUpdateUserLinksResponse userLinks. + * BatchCreateUserLinksResponse userLinks. * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @instance */ - BatchUpdateUserLinksResponse.prototype.userLinks = $util.emptyArray; + BatchCreateUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. + * Creates a new BatchCreateUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse instance */ - BatchUpdateUserLinksResponse.create = function create(properties) { - return new BatchUpdateUserLinksResponse(properties); + BatchCreateUserLinksResponse.create = function create(properties) { + return new BatchCreateUserLinksResponse(properties); }; /** - * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksResponse.encode = function encode(message, writer) { + BatchCreateUserLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.userLinks != null && message.userLinks.length) @@ -7115,33 +7177,33 @@ }; /** - * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * Encodes the specified BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksResponse.decode = function decode(reader, length) { + BatchCreateUserLinksResponse.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.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7159,30 +7221,30 @@ }; /** - * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + BatchCreateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchUpdateUserLinksResponse message. + * Verifies a BatchCreateUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchUpdateUserLinksResponse.verify = function verify(message) { + BatchCreateUserLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.userLinks != null && message.hasOwnProperty("userLinks")) { @@ -7198,24 +7260,24 @@ }; /** - * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse */ - BatchUpdateUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) + BatchCreateUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); + var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); if (object.userLinks) { if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: array expected"); + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: array expected"); message.userLinks = []; for (var i = 0; i < object.userLinks.length; ++i) { if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: object expected"); message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); } } @@ -7223,15 +7285,15 @@ }; /** - * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} message BatchCreateUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchUpdateUserLinksResponse.toObject = function toObject(message, options) { + BatchCreateUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -7246,37 +7308,37 @@ }; /** - * Converts this BatchUpdateUserLinksResponse to JSON. + * Converts this BatchCreateUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @instance * @returns {Object.} JSON object */ - BatchUpdateUserLinksResponse.prototype.toJSON = function toJSON() { + BatchCreateUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchUpdateUserLinksResponse; + return BatchCreateUserLinksResponse; })(); - v1alpha.DeleteUserLinkRequest = (function() { + v1alpha.UpdateUserLinkRequest = (function() { /** - * Properties of a DeleteUserLinkRequest. + * Properties of an UpdateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteUserLinkRequest - * @property {string|null} [name] DeleteUserLinkRequest name + * @interface IUpdateUserLinkRequest + * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] UpdateUserLinkRequest userLink */ /** - * Constructs a new DeleteUserLinkRequest. + * Constructs a new UpdateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteUserLinkRequest. - * @implements IDeleteUserLinkRequest + * @classdesc Represents an UpdateUserLinkRequest. + * @implements IUpdateUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set */ - function DeleteUserLinkRequest(properties) { + function UpdateUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7284,75 +7346,75 @@ } /** - * DeleteUserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * UpdateUserLinkRequest userLink. + * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @instance */ - DeleteUserLinkRequest.prototype.name = ""; + UpdateUserLinkRequest.prototype.userLink = null; /** - * Creates a new DeleteUserLinkRequest instance using the specified properties. + * Creates a new UpdateUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest instance */ - DeleteUserLinkRequest.create = function create(properties) { - return new DeleteUserLinkRequest(properties); + UpdateUserLinkRequest.create = function create(properties) { + return new UpdateUserLinkRequest(properties); }; /** - * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteUserLinkRequest.encode = function encode(message, writer) { + UpdateUserLinkRequest.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.userLink != null && Object.hasOwnProperty.call(message, "userLink")) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteUserLinkRequest.decode = function decode(reader, length) { + UpdateUserLinkRequest.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.analytics.admin.v1alpha.DeleteUserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -7363,108 +7425,113 @@ }; /** - * Decodes a DeleteUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteUserLinkRequest message. + * Verifies an UpdateUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteUserLinkRequest.verify = function verify(message) { + UpdateUserLinkRequest.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.userLink != null && message.hasOwnProperty("userLink")) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); + if (error) + return "userLink." + error; + } return null; }; /** - * Creates a DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest */ - DeleteUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest) + UpdateUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); + if (object.userLink != null) { + if (typeof object.userLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateUserLinkRequest.userLink: object expected"); + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); + } return message; }; /** - * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteUserLinkRequest} message DeleteUserLinkRequest + * @param {google.analytics.admin.v1alpha.UpdateUserLinkRequest} message UpdateUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteUserLinkRequest.toObject = function toObject(message, options) { + UpdateUserLinkRequest.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; + object.userLink = null; + if (message.userLink != null && message.hasOwnProperty("userLink")) + object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); return object; }; /** - * Converts this DeleteUserLinkRequest to JSON. + * Converts this UpdateUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @instance * @returns {Object.} JSON object */ - DeleteUserLinkRequest.prototype.toJSON = function toJSON() { + UpdateUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteUserLinkRequest; + return UpdateUserLinkRequest; })(); - v1alpha.BatchDeleteUserLinksRequest = (function() { + v1alpha.BatchUpdateUserLinksRequest = (function() { /** - * Properties of a BatchDeleteUserLinksRequest. + * Properties of a BatchUpdateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchDeleteUserLinksRequest - * @property {string|null} [parent] BatchDeleteUserLinksRequest parent - * @property {Array.|null} [requests] BatchDeleteUserLinksRequest requests + * @interface IBatchUpdateUserLinksRequest + * @property {string|null} [parent] BatchUpdateUserLinksRequest parent + * @property {Array.|null} [requests] BatchUpdateUserLinksRequest requests */ /** - * Constructs a new BatchDeleteUserLinksRequest. + * Constructs a new BatchUpdateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchDeleteUserLinksRequest. - * @implements IBatchDeleteUserLinksRequest + * @classdesc Represents a BatchUpdateUserLinksRequest. + * @implements IBatchUpdateUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set */ - function BatchDeleteUserLinksRequest(properties) { + function BatchUpdateUserLinksRequest(properties) { this.requests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -7473,81 +7540,81 @@ } /** - * BatchDeleteUserLinksRequest parent. + * BatchUpdateUserLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @instance */ - BatchDeleteUserLinksRequest.prototype.parent = ""; + BatchUpdateUserLinksRequest.prototype.parent = ""; /** - * BatchDeleteUserLinksRequest requests. - * @member {Array.} requests - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * BatchUpdateUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @instance */ - BatchDeleteUserLinksRequest.prototype.requests = $util.emptyArray; + BatchUpdateUserLinksRequest.prototype.requests = $util.emptyArray; /** - * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. + * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest instance */ - BatchDeleteUserLinksRequest.create = function create(properties) { - return new BatchDeleteUserLinksRequest(properties); + BatchUpdateUserLinksRequest.create = function create(properties) { + return new BatchUpdateUserLinksRequest(properties); }; /** - * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteUserLinksRequest.encode = function encode(message, writer) { + BatchUpdateUserLinksRequest.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.requests != null && message.requests.length) for (var i = 0; i < message.requests.length; ++i) - $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchUpdateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteUserLinksRequest.decode = function decode(reader, length) { + BatchUpdateUserLinksRequest.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.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7557,7 +7624,7 @@ case 2: if (!(message.requests && message.requests.length)) message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.decode(reader, reader.uint32())); + message.requests.push($root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -7568,30 +7635,30 @@ }; /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + BatchUpdateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeleteUserLinksRequest message. + * Verifies a BatchUpdateUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeleteUserLinksRequest.verify = function verify(message) { + BatchUpdateUserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -7601,7 +7668,7 @@ if (!Array.isArray(message.requests)) return "requests: array expected"; for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify(message.requests[i]); + var error = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify(message.requests[i]); if (error) return "requests." + error; } @@ -7610,42 +7677,42 @@ }; /** - * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest */ - BatchDeleteUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) + BatchUpdateUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); + var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.requests) { if (!Array.isArray(object.requests)) - throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: array expected"); + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: array expected"); message.requests = []; for (var i = 0; i < object.requests.length; ++i) { if (typeof object.requests[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: object expected"); - message.requests[i] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.fromObject(object.requests[i]); + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.fromObject(object.requests[i]); } } return message; }; /** - * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeleteUserLinksRequest.toObject = function toObject(message, options) { + BatchUpdateUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -7658,43 +7725,44 @@ if (message.requests && message.requests.length) { object.requests = []; for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.toObject(message.requests[j], options); + object.requests[j] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.toObject(message.requests[j], options); } return object; }; /** - * Converts this BatchDeleteUserLinksRequest to JSON. + * Converts this BatchUpdateUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @instance * @returns {Object.} JSON object */ - BatchDeleteUserLinksRequest.prototype.toJSON = function toJSON() { + BatchUpdateUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchDeleteUserLinksRequest; + return BatchUpdateUserLinksRequest; })(); - v1alpha.GetWebDataStreamRequest = (function() { + v1alpha.BatchUpdateUserLinksResponse = (function() { /** - * Properties of a GetWebDataStreamRequest. + * Properties of a BatchUpdateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IGetWebDataStreamRequest - * @property {string|null} [name] GetWebDataStreamRequest name + * @interface IBatchUpdateUserLinksResponse + * @property {Array.|null} [userLinks] BatchUpdateUserLinksResponse userLinks */ /** - * Constructs a new GetWebDataStreamRequest. + * Constructs a new BatchUpdateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetWebDataStreamRequest. - * @implements IGetWebDataStreamRequest + * @classdesc Represents a BatchUpdateUserLinksResponse. + * @implements IBatchUpdateUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set */ - function GetWebDataStreamRequest(properties) { + function BatchUpdateUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7702,75 +7770,78 @@ } /** - * GetWebDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * BatchUpdateUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @instance */ - GetWebDataStreamRequest.prototype.name = ""; + BatchUpdateUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * Creates a new GetWebDataStreamRequest instance using the specified properties. + * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse instance */ - GetWebDataStreamRequest.create = function create(properties) { - return new GetWebDataStreamRequest(properties); + BatchUpdateUserLinksResponse.create = function create(properties) { + return new BatchUpdateUserLinksResponse(properties); }; /** - * Encodes the specified GetWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWebDataStreamRequest.encode = function encode(message, writer) { + BatchUpdateUserLinksResponse.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.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchUpdateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWebDataStreamRequest message from the specified reader or buffer. + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWebDataStreamRequest.decode = function decode(reader, length) { + BatchUpdateUserLinksResponse.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.analytics.admin.v1alpha.GetWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -7781,107 +7852,124 @@ }; /** - * Decodes a GetWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + BatchUpdateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetWebDataStreamRequest message. + * Verifies a BatchUpdateUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetWebDataStreamRequest.verify = function verify(message) { + BatchUpdateUserLinksResponse.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.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } return null; }; /** - * Creates a GetWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse */ - GetWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest) + BatchUpdateUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } return message; }; /** - * Creates a plain object from a GetWebDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.GetWebDataStreamRequest} message GetWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWebDataStreamRequest.toObject = function toObject(message, options) { + BatchUpdateUserLinksResponse.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 (options.arrays || options.defaults) + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + } return object; }; /** - * Converts this GetWebDataStreamRequest to JSON. + * Converts this BatchUpdateUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @instance * @returns {Object.} JSON object */ - GetWebDataStreamRequest.prototype.toJSON = function toJSON() { + BatchUpdateUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetWebDataStreamRequest; + return BatchUpdateUserLinksResponse; })(); - v1alpha.DeleteWebDataStreamRequest = (function() { + v1alpha.DeleteUserLinkRequest = (function() { /** - * Properties of a DeleteWebDataStreamRequest. + * Properties of a DeleteUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteWebDataStreamRequest - * @property {string|null} [name] DeleteWebDataStreamRequest name + * @interface IDeleteUserLinkRequest + * @property {string|null} [name] DeleteUserLinkRequest name */ /** - * Constructs a new DeleteWebDataStreamRequest. + * Constructs a new DeleteUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteWebDataStreamRequest. - * @implements IDeleteWebDataStreamRequest + * @classdesc Represents a DeleteUserLinkRequest. + * @implements IDeleteUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set */ - function DeleteWebDataStreamRequest(properties) { + function DeleteUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7889,35 +7977,35 @@ } /** - * DeleteWebDataStreamRequest name. + * DeleteUserLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @instance */ - DeleteWebDataStreamRequest.prototype.name = ""; + DeleteUserLinkRequest.prototype.name = ""; /** - * Creates a new DeleteWebDataStreamRequest instance using the specified properties. + * Creates a new DeleteUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest instance */ - DeleteWebDataStreamRequest.create = function create(properties) { - return new DeleteWebDataStreamRequest(properties); + DeleteUserLinkRequest.create = function create(properties) { + return new DeleteUserLinkRequest(properties); }; /** - * Encodes the specified DeleteWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebDataStreamRequest.encode = function encode(message, writer) { + DeleteUserLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -7926,33 +8014,33 @@ }; /** - * Encodes the specified DeleteWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * Encodes the specified DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer. + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebDataStreamRequest.decode = function decode(reader, length) { + DeleteUserLinkRequest.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.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7968,30 +8056,30 @@ }; /** - * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteWebDataStreamRequest message. + * Verifies a DeleteUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteWebDataStreamRequest.verify = function verify(message) { + DeleteUserLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -8001,32 +8089,32 @@ }; /** - * Creates a DeleteWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest */ - DeleteWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + DeleteUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteWebDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} message DeleteWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.DeleteUserLinkRequest} message DeleteUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteWebDataStreamRequest.toObject = function toObject(message, options) { + DeleteUserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -8038,38 +8126,39 @@ }; /** - * Converts this DeleteWebDataStreamRequest to JSON. + * Converts this DeleteUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @instance * @returns {Object.} JSON object */ - DeleteWebDataStreamRequest.prototype.toJSON = function toJSON() { + DeleteUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteWebDataStreamRequest; + return DeleteUserLinkRequest; })(); - v1alpha.UpdateWebDataStreamRequest = (function() { + v1alpha.BatchDeleteUserLinksRequest = (function() { /** - * Properties of an UpdateWebDataStreamRequest. + * Properties of a BatchDeleteUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateWebDataStreamRequest - * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] UpdateWebDataStreamRequest webDataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebDataStreamRequest updateMask + * @interface IBatchDeleteUserLinksRequest + * @property {string|null} [parent] BatchDeleteUserLinksRequest parent + * @property {Array.|null} [requests] BatchDeleteUserLinksRequest requests */ /** - * Constructs a new UpdateWebDataStreamRequest. + * Constructs a new BatchDeleteUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateWebDataStreamRequest. - * @implements IUpdateWebDataStreamRequest + * @classdesc Represents a BatchDeleteUserLinksRequest. + * @implements IBatchDeleteUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set */ - function UpdateWebDataStreamRequest(properties) { + function BatchDeleteUserLinksRequest(properties) { + this.requests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8077,88 +8166,91 @@ } /** - * UpdateWebDataStreamRequest webDataStream. - * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * BatchDeleteUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @instance */ - UpdateWebDataStreamRequest.prototype.webDataStream = null; + BatchDeleteUserLinksRequest.prototype.parent = ""; /** - * UpdateWebDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest - * @instance - */ - UpdateWebDataStreamRequest.prototype.updateMask = null; + * BatchDeleteUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @instance + */ + BatchDeleteUserLinksRequest.prototype.requests = $util.emptyArray; /** - * Creates a new UpdateWebDataStreamRequest instance using the specified properties. + * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest instance */ - UpdateWebDataStreamRequest.create = function create(properties) { - return new UpdateWebDataStreamRequest(properties); + BatchDeleteUserLinksRequest.create = function create(properties) { + return new BatchDeleteUserLinksRequest(properties); }; /** - * Encodes the specified UpdateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebDataStreamRequest.encode = function encode(message, writer) { + BatchDeleteUserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeleteUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebDataStreamRequest.decode = function decode(reader, length) { + BatchDeleteUserLinksRequest.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.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -8169,127 +8261,133 @@ }; /** - * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + BatchDeleteUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateWebDataStreamRequest message. + * Verifies a BatchDeleteUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateWebDataStreamRequest.verify = function verify(message) { + BatchDeleteUserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); - if (error) - return "webDataStream." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } } return null; }; /** - * Creates an UpdateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest */ - UpdateWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + BatchDeleteUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); - if (object.webDataStream != null) { - if (typeof object.webDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.webDataStream: object expected"); - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.fromObject(object.requests[i]); + } } return message; }; /** - * Creates a plain object from an UpdateWebDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} message UpdateWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateWebDataStreamRequest.toObject = function toObject(message, options) { + BatchDeleteUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.webDataStream = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.requests = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.toObject(message.requests[j], options); } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) - object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateWebDataStreamRequest to JSON. + * Converts this BatchDeleteUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @instance * @returns {Object.} JSON object */ - UpdateWebDataStreamRequest.prototype.toJSON = function toJSON() { + BatchDeleteUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateWebDataStreamRequest; + return BatchDeleteUserLinksRequest; })(); - v1alpha.CreateWebDataStreamRequest = (function() { + v1alpha.GetWebDataStreamRequest = (function() { /** - * Properties of a CreateWebDataStreamRequest. + * Properties of a GetWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateWebDataStreamRequest - * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] CreateWebDataStreamRequest webDataStream - * @property {string|null} [parent] CreateWebDataStreamRequest parent + * @interface IGetWebDataStreamRequest + * @property {string|null} [name] GetWebDataStreamRequest name */ /** - * Constructs a new CreateWebDataStreamRequest. + * Constructs a new GetWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateWebDataStreamRequest. - * @implements ICreateWebDataStreamRequest + * @classdesc Represents a GetWebDataStreamRequest. + * @implements IGetWebDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set */ - function CreateWebDataStreamRequest(properties) { + function GetWebDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8297,88 +8395,75 @@ } /** - * CreateWebDataStreamRequest webDataStream. - * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest - * @instance - */ - CreateWebDataStreamRequest.prototype.webDataStream = null; - - /** - * CreateWebDataStreamRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * GetWebDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @instance */ - CreateWebDataStreamRequest.prototype.parent = ""; + GetWebDataStreamRequest.prototype.name = ""; /** - * Creates a new CreateWebDataStreamRequest instance using the specified properties. + * Creates a new GetWebDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest instance */ - CreateWebDataStreamRequest.create = function create(properties) { - return new CreateWebDataStreamRequest(properties); + GetWebDataStreamRequest.create = function create(properties) { + return new GetWebDataStreamRequest(properties); }; /** - * Encodes the specified CreateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified GetWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebDataStreamRequest.encode = function encode(message, writer) { + GetWebDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified GetWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer. + * Decodes a GetWebDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebDataStreamRequest.decode = function decode(reader, length) { + GetWebDataStreamRequest.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.analytics.admin.v1alpha.CreateWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -8389,123 +8474,107 @@ }; /** - * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a GetWebDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + GetWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateWebDataStreamRequest message. + * Verifies a GetWebDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateWebDataStreamRequest.verify = function verify(message) { + GetWebDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); - if (error) - return "webDataStream." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest */ - CreateWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + GetWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(); - if (object.webDataStream != null) { - if (typeof object.webDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateWebDataStreamRequest.webDataStream: object expected"); - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); - } - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateWebDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetWebDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} message CreateWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.GetWebDataStreamRequest} message GetWebDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateWebDataStreamRequest.toObject = function toObject(message, options) { + GetWebDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.webDataStream = null; - object.parent = ""; - } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) - object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateWebDataStreamRequest to JSON. + * Converts this GetWebDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest * @instance * @returns {Object.} JSON object */ - CreateWebDataStreamRequest.prototype.toJSON = function toJSON() { + GetWebDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateWebDataStreamRequest; + return GetWebDataStreamRequest; })(); - v1alpha.ListWebDataStreamsRequest = (function() { + v1alpha.DeleteWebDataStreamRequest = (function() { /** - * Properties of a ListWebDataStreamsRequest. + * Properties of a DeleteWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListWebDataStreamsRequest - * @property {string|null} [parent] ListWebDataStreamsRequest parent - * @property {number|null} [pageSize] ListWebDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListWebDataStreamsRequest pageToken + * @interface IDeleteWebDataStreamRequest + * @property {string|null} [name] DeleteWebDataStreamRequest name */ /** - * Constructs a new ListWebDataStreamsRequest. + * Constructs a new DeleteWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListWebDataStreamsRequest. - * @implements IListWebDataStreamsRequest + * @classdesc Represents a DeleteWebDataStreamRequest. + * @implements IDeleteWebDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set */ - function ListWebDataStreamsRequest(properties) { + function DeleteWebDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8513,101 +8582,75 @@ } /** - * ListWebDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest - * @instance - */ - ListWebDataStreamsRequest.prototype.parent = ""; - - /** - * ListWebDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest - * @instance - */ - ListWebDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListWebDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * DeleteWebDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @instance */ - ListWebDataStreamsRequest.prototype.pageToken = ""; + DeleteWebDataStreamRequest.prototype.name = ""; /** - * Creates a new ListWebDataStreamsRequest instance using the specified properties. + * Creates a new DeleteWebDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest instance */ - ListWebDataStreamsRequest.create = function create(properties) { - return new ListWebDataStreamsRequest(properties); + DeleteWebDataStreamRequest.create = function create(properties) { + return new DeleteWebDataStreamRequest(properties); }; /** - * Encodes the specified ListWebDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * Encodes the specified DeleteWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsRequest.encode = function encode(message, writer) { + DeleteWebDataStreamRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListWebDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * Encodes the specified DeleteWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer. + * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsRequest.decode = function decode(reader, length) { + DeleteWebDataStreamRequest.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.analytics.admin.v1alpha.ListWebDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -8618,126 +8661,108 @@ }; /** - * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebDataStreamsRequest message. + * Verifies a DeleteWebDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebDataStreamsRequest.verify = function verify(message) { + DeleteWebDataStreamRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListWebDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest */ - ListWebDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) + DeleteWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListWebDataStreamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteWebDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} message ListWebDataStreamsRequest + * @param {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} message DeleteWebDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebDataStreamsRequest.toObject = function toObject(message, options) { + DeleteWebDataStreamRequest.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; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListWebDataStreamsRequest to JSON. + * Converts this DeleteWebDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListWebDataStreamsRequest.prototype.toJSON = function toJSON() { + DeleteWebDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebDataStreamsRequest; + return DeleteWebDataStreamRequest; })(); - v1alpha.ListWebDataStreamsResponse = (function() { + v1alpha.UpdateWebDataStreamRequest = (function() { /** - * Properties of a ListWebDataStreamsResponse. + * Properties of an UpdateWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListWebDataStreamsResponse - * @property {Array.|null} [webDataStreams] ListWebDataStreamsResponse webDataStreams - * @property {string|null} [nextPageToken] ListWebDataStreamsResponse nextPageToken + * @interface IUpdateWebDataStreamRequest + * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] UpdateWebDataStreamRequest webDataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebDataStreamRequest updateMask */ /** - * Constructs a new ListWebDataStreamsResponse. + * Constructs a new UpdateWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListWebDataStreamsResponse. - * @implements IListWebDataStreamsResponse + * @classdesc Represents an UpdateWebDataStreamRequest. + * @implements IUpdateWebDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set */ - function ListWebDataStreamsResponse(properties) { - this.webDataStreams = []; + function UpdateWebDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8745,91 +8770,88 @@ } /** - * ListWebDataStreamsResponse webDataStreams. - * @member {Array.} webDataStreams - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * UpdateWebDataStreamRequest webDataStream. + * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @instance */ - ListWebDataStreamsResponse.prototype.webDataStreams = $util.emptyArray; + UpdateWebDataStreamRequest.prototype.webDataStream = null; /** - * ListWebDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * UpdateWebDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @instance */ - ListWebDataStreamsResponse.prototype.nextPageToken = ""; + UpdateWebDataStreamRequest.prototype.updateMask = null; /** - * Creates a new ListWebDataStreamsResponse instance using the specified properties. + * Creates a new UpdateWebDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest instance */ - ListWebDataStreamsResponse.create = function create(properties) { - return new ListWebDataStreamsResponse(properties); + UpdateWebDataStreamRequest.create = function create(properties) { + return new UpdateWebDataStreamRequest(properties); }; /** - * Encodes the specified ListWebDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * Encodes the specified UpdateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsResponse.encode = function encode(message, writer) { + UpdateWebDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webDataStreams != null && message.webDataStreams.length) - for (var i = 0; i < message.webDataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, 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 ListWebDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * Encodes the specified UpdateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer. + * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsResponse.decode = function decode(reader, length) { + UpdateWebDataStreamRequest.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.analytics.admin.v1alpha.ListWebDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.webDataStreams && message.webDataStreams.length)) - message.webDataStreams = []; - message.webDataStreams.push($root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32())); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -8840,133 +8862,127 @@ }; /** - * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebDataStreamsResponse message. + * Verifies an UpdateWebDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebDataStreamsResponse.verify = function verify(message) { + UpdateWebDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webDataStreams != null && message.hasOwnProperty("webDataStreams")) { - if (!Array.isArray(message.webDataStreams)) - return "webDataStreams: array expected"; - for (var i = 0; i < message.webDataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStreams[i]); - if (error) - return "webDataStreams." + error; - } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); + if (error) + return "webDataStream." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListWebDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest */ - ListWebDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + UpdateWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(); - if (object.webDataStreams) { - if (!Array.isArray(object.webDataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: array expected"); - message.webDataStreams = []; - for (var i = 0; i < object.webDataStreams.length; ++i) { - if (typeof object.webDataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: object expected"); - message.webDataStreams[i] = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStreams[i]); - } + var message = new $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); + if (object.webDataStream != null) { + if (typeof object.webDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.webDataStream: object expected"); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListWebDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateWebDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} message ListWebDataStreamsResponse + * @param {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} message UpdateWebDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebDataStreamsResponse.toObject = function toObject(message, options) { + UpdateWebDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.webDataStreams = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.webDataStreams && message.webDataStreams.length) { - object.webDataStreams = []; - for (var j = 0; j < message.webDataStreams.length; ++j) - object.webDataStreams[j] = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStreams[j], options); + if (options.defaults) { + object.webDataStream = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) + object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListWebDataStreamsResponse to JSON. + * Converts this UpdateWebDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListWebDataStreamsResponse.prototype.toJSON = function toJSON() { + UpdateWebDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebDataStreamsResponse; + return UpdateWebDataStreamRequest; })(); - v1alpha.GetIosAppDataStreamRequest = (function() { + v1alpha.CreateWebDataStreamRequest = (function() { /** - * Properties of a GetIosAppDataStreamRequest. + * Properties of a CreateWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetIosAppDataStreamRequest - * @property {string|null} [name] GetIosAppDataStreamRequest name + * @interface ICreateWebDataStreamRequest + * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] CreateWebDataStreamRequest webDataStream + * @property {string|null} [parent] CreateWebDataStreamRequest parent */ /** - * Constructs a new GetIosAppDataStreamRequest. + * Constructs a new CreateWebDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetIosAppDataStreamRequest. - * @implements IGetIosAppDataStreamRequest + * @classdesc Represents a CreateWebDataStreamRequest. + * @implements ICreateWebDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set */ - function GetIosAppDataStreamRequest(properties) { + function CreateWebDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8974,75 +8990,88 @@ } /** - * GetIosAppDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * CreateWebDataStreamRequest webDataStream. + * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @instance */ - GetIosAppDataStreamRequest.prototype.name = ""; + CreateWebDataStreamRequest.prototype.webDataStream = null; /** - * Creates a new GetIosAppDataStreamRequest instance using the specified properties. + * CreateWebDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @instance + */ + CreateWebDataStreamRequest.prototype.parent = ""; + + /** + * Creates a new CreateWebDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest instance */ - GetIosAppDataStreamRequest.create = function create(properties) { - return new GetIosAppDataStreamRequest(properties); + CreateWebDataStreamRequest.create = function create(properties) { + return new CreateWebDataStreamRequest(properties); }; /** - * Encodes the specified GetIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified CreateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIosAppDataStreamRequest.encode = function encode(message, writer) { + CreateWebDataStreamRequest.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.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); return writer; }; /** - * Encodes the specified GetIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified CreateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer. + * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIosAppDataStreamRequest.decode = function decode(reader, length) { + CreateWebDataStreamRequest.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.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -9053,107 +9082,123 @@ }; /** - * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + CreateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIosAppDataStreamRequest message. + * Verifies a CreateWebDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIosAppDataStreamRequest.verify = function verify(message) { + CreateWebDataStreamRequest.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.webDataStream != null && message.hasOwnProperty("webDataStream")) { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); + if (error) + return "webDataStream." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a GetIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest */ - GetIosAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + CreateWebDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(); + if (object.webDataStream != null) { + if (typeof object.webDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateWebDataStreamRequest.webDataStream: object expected"); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + } + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a GetIosAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateWebDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} message GetIosAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} message CreateWebDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIosAppDataStreamRequest.toObject = function toObject(message, options) { + CreateWebDataStreamRequest.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 (options.defaults) { + object.webDataStream = null; + object.parent = ""; + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) + object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this GetIosAppDataStreamRequest to JSON. + * Converts this CreateWebDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest * @instance * @returns {Object.} JSON object */ - GetIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + CreateWebDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIosAppDataStreamRequest; + return CreateWebDataStreamRequest; })(); - v1alpha.DeleteIosAppDataStreamRequest = (function() { + v1alpha.ListWebDataStreamsRequest = (function() { /** - * Properties of a DeleteIosAppDataStreamRequest. + * Properties of a ListWebDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteIosAppDataStreamRequest - * @property {string|null} [name] DeleteIosAppDataStreamRequest name + * @interface IListWebDataStreamsRequest + * @property {string|null} [parent] ListWebDataStreamsRequest parent + * @property {number|null} [pageSize] ListWebDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListWebDataStreamsRequest pageToken */ /** - * Constructs a new DeleteIosAppDataStreamRequest. + * Constructs a new ListWebDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteIosAppDataStreamRequest. - * @implements IDeleteIosAppDataStreamRequest + * @classdesc Represents a ListWebDataStreamsRequest. + * @implements IListWebDataStreamsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set */ - function DeleteIosAppDataStreamRequest(properties) { + function ListWebDataStreamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9161,75 +9206,101 @@ } /** - * DeleteIosAppDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * ListWebDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @instance */ - DeleteIosAppDataStreamRequest.prototype.name = ""; + ListWebDataStreamsRequest.prototype.parent = ""; /** - * Creates a new DeleteIosAppDataStreamRequest instance using the specified properties. + * ListWebDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @instance + */ + ListWebDataStreamsRequest.prototype.pageSize = 0; + + /** + * ListWebDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @instance + */ + ListWebDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListWebDataStreamsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest instance */ - DeleteIosAppDataStreamRequest.create = function create(properties) { - return new DeleteIosAppDataStreamRequest(properties); + ListWebDataStreamsRequest.create = function create(properties) { + return new ListWebDataStreamsRequest(properties); }; /** - * Encodes the specified DeleteIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListWebDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIosAppDataStreamRequest.encode = function encode(message, writer) { + ListWebDataStreamsRequest.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.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 DeleteIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListWebDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWebDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer. + * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIosAppDataStreamRequest.decode = function decode(reader, length) { + ListWebDataStreamsRequest.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.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -9240,108 +9311,126 @@ }; /** - * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListWebDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIosAppDataStreamRequest message. + * Verifies a ListWebDataStreamsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIosAppDataStreamRequest.verify = function verify(message) { + ListWebDataStreamsRequest.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.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 DeleteIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest */ - DeleteIosAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + ListWebDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(); + 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 DeleteIosAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWebDataStreamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} message ListWebDataStreamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIosAppDataStreamRequest.toObject = function toObject(message, options) { + ListWebDataStreamsRequest.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 (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 DeleteIosAppDataStreamRequest to JSON. + * Converts this ListWebDataStreamsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest * @instance * @returns {Object.} JSON object */ - DeleteIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + ListWebDataStreamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIosAppDataStreamRequest; + return ListWebDataStreamsRequest; })(); - v1alpha.UpdateIosAppDataStreamRequest = (function() { + v1alpha.ListWebDataStreamsResponse = (function() { /** - * Properties of an UpdateIosAppDataStreamRequest. + * Properties of a ListWebDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateIosAppDataStreamRequest - * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] UpdateIosAppDataStreamRequest iosAppDataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIosAppDataStreamRequest updateMask + * @interface IListWebDataStreamsResponse + * @property {Array.|null} [webDataStreams] ListWebDataStreamsResponse webDataStreams + * @property {string|null} [nextPageToken] ListWebDataStreamsResponse nextPageToken */ /** - * Constructs a new UpdateIosAppDataStreamRequest. + * Constructs a new ListWebDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateIosAppDataStreamRequest. - * @implements IUpdateIosAppDataStreamRequest + * @classdesc Represents a ListWebDataStreamsResponse. + * @implements IListWebDataStreamsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set */ - function UpdateIosAppDataStreamRequest(properties) { + function ListWebDataStreamsResponse(properties) { + this.webDataStreams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9349,88 +9438,91 @@ } /** - * UpdateIosAppDataStreamRequest iosAppDataStream. - * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * ListWebDataStreamsResponse webDataStreams. + * @member {Array.} webDataStreams + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @instance */ - UpdateIosAppDataStreamRequest.prototype.iosAppDataStream = null; + ListWebDataStreamsResponse.prototype.webDataStreams = $util.emptyArray; /** - * UpdateIosAppDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * ListWebDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @instance */ - UpdateIosAppDataStreamRequest.prototype.updateMask = null; + ListWebDataStreamsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateIosAppDataStreamRequest instance using the specified properties. + * Creates a new ListWebDataStreamsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse instance */ - UpdateIosAppDataStreamRequest.create = function create(properties) { - return new UpdateIosAppDataStreamRequest(properties); + ListWebDataStreamsResponse.create = function create(properties) { + return new ListWebDataStreamsResponse(properties); }; /** - * Encodes the specified UpdateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListWebDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIosAppDataStreamRequest.encode = function encode(message, writer) { + ListWebDataStreamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.webDataStreams != null && message.webDataStreams.length) + for (var i = 0; i < message.webDataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStreams[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 UpdateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListWebDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWebDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer. + * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIosAppDataStreamRequest.decode = function decode(reader, length) { + ListWebDataStreamsResponse.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.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); + if (!(message.webDataStreams && message.webDataStreams.length)) + message.webDataStreams = []; + message.webDataStreams.push($root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -9441,128 +9533,133 @@ }; /** - * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListWebDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIosAppDataStreamRequest message. + * Verifies a ListWebDataStreamsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIosAppDataStreamRequest.verify = function verify(message) { + ListWebDataStreamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); - if (error) - return "iosAppDataStream." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.webDataStreams != null && message.hasOwnProperty("webDataStreams")) { + if (!Array.isArray(message.webDataStreams)) + return "webDataStreams: array expected"; + for (var i = 0; i < message.webDataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStreams[i]); + if (error) + return "webDataStreams." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebDataStreamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse */ - UpdateIosAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + ListWebDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); - if (object.iosAppDataStream != null) { - if (typeof object.iosAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.iosAppDataStream: object expected"); - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(); + if (object.webDataStreams) { + if (!Array.isArray(object.webDataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: array expected"); + message.webDataStreams = []; + for (var i = 0; i < object.webDataStreams.length; ++i) { + if (typeof object.webDataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: object expected"); + message.webDataStreams[i] = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStreams[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateIosAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWebDataStreamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} message ListWebDataStreamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIosAppDataStreamRequest.toObject = function toObject(message, options) { + ListWebDataStreamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.iosAppDataStream = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.webDataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.webDataStreams && message.webDataStreams.length) { + object.webDataStreams = []; + for (var j = 0; j < message.webDataStreams.length; ++j) + object.webDataStreams[j] = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStreams[j], options); } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) - object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateIosAppDataStreamRequest to JSON. + * Converts this ListWebDataStreamsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse * @instance * @returns {Object.} JSON object */ - UpdateIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + ListWebDataStreamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIosAppDataStreamRequest; + return ListWebDataStreamsResponse; })(); - v1alpha.ListIosAppDataStreamsRequest = (function() { + v1alpha.GetIosAppDataStreamRequest = (function() { /** - * Properties of a ListIosAppDataStreamsRequest. + * Properties of a GetIosAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListIosAppDataStreamsRequest - * @property {string|null} [parent] ListIosAppDataStreamsRequest parent - * @property {number|null} [pageSize] ListIosAppDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListIosAppDataStreamsRequest pageToken + * @interface IGetIosAppDataStreamRequest + * @property {string|null} [name] GetIosAppDataStreamRequest name */ /** - * Constructs a new ListIosAppDataStreamsRequest. + * Constructs a new GetIosAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListIosAppDataStreamsRequest. - * @implements IListIosAppDataStreamsRequest + * @classdesc Represents a GetIosAppDataStreamRequest. + * @implements IGetIosAppDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set */ - function ListIosAppDataStreamsRequest(properties) { + function GetIosAppDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9570,101 +9667,75 @@ } /** - * ListIosAppDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - * @instance - */ - ListIosAppDataStreamsRequest.prototype.parent = ""; - - /** - * ListIosAppDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - * @instance - */ - ListIosAppDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListIosAppDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * GetIosAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @instance */ - ListIosAppDataStreamsRequest.prototype.pageToken = ""; + GetIosAppDataStreamRequest.prototype.name = ""; /** - * Creates a new ListIosAppDataStreamsRequest instance using the specified properties. + * Creates a new GetIosAppDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest instance */ - ListIosAppDataStreamsRequest.create = function create(properties) { - return new ListIosAppDataStreamsRequest(properties); + GetIosAppDataStreamRequest.create = function create(properties) { + return new GetIosAppDataStreamRequest(properties); }; /** - * Encodes the specified ListIosAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsRequest.encode = function encode(message, writer) { + GetIosAppDataStreamRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListIosAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer. + * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsRequest.decode = function decode(reader, length) { + GetIosAppDataStreamRequest.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.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -9675,126 +9746,107 @@ }; /** - * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + GetIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIosAppDataStreamsRequest message. + * Verifies a GetIosAppDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIosAppDataStreamsRequest.verify = function verify(message) { + GetIosAppDataStreamRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListIosAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest */ - ListIosAppDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + GetIosAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListIosAppDataStreamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIosAppDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest + * @param {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} message GetIosAppDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIosAppDataStreamsRequest.toObject = function toObject(message, options) { + GetIosAppDataStreamRequest.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; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListIosAppDataStreamsRequest to JSON. + * Converts this GetIosAppDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListIosAppDataStreamsRequest.prototype.toJSON = function toJSON() { + GetIosAppDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIosAppDataStreamsRequest; + return GetIosAppDataStreamRequest; })(); - v1alpha.ListIosAppDataStreamsResponse = (function() { + v1alpha.DeleteIosAppDataStreamRequest = (function() { /** - * Properties of a ListIosAppDataStreamsResponse. + * Properties of a DeleteIosAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListIosAppDataStreamsResponse - * @property {Array.|null} [iosAppDataStreams] ListIosAppDataStreamsResponse iosAppDataStreams - * @property {string|null} [nextPageToken] ListIosAppDataStreamsResponse nextPageToken + * @interface IDeleteIosAppDataStreamRequest + * @property {string|null} [name] DeleteIosAppDataStreamRequest name */ /** - * Constructs a new ListIosAppDataStreamsResponse. + * Constructs a new DeleteIosAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListIosAppDataStreamsResponse. - * @implements IListIosAppDataStreamsResponse + * @classdesc Represents a DeleteIosAppDataStreamRequest. + * @implements IDeleteIosAppDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set */ - function ListIosAppDataStreamsResponse(properties) { - this.iosAppDataStreams = []; + function DeleteIosAppDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9802,91 +9854,75 @@ } /** - * ListIosAppDataStreamsResponse iosAppDataStreams. - * @member {Array.} iosAppDataStreams - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - * @instance - */ - ListIosAppDataStreamsResponse.prototype.iosAppDataStreams = $util.emptyArray; - - /** - * ListIosAppDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * DeleteIosAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @instance */ - ListIosAppDataStreamsResponse.prototype.nextPageToken = ""; + DeleteIosAppDataStreamRequest.prototype.name = ""; /** - * Creates a new ListIosAppDataStreamsResponse instance using the specified properties. + * Creates a new DeleteIosAppDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest instance */ - ListIosAppDataStreamsResponse.create = function create(properties) { - return new ListIosAppDataStreamsResponse(properties); + DeleteIosAppDataStreamRequest.create = function create(properties) { + return new DeleteIosAppDataStreamRequest(properties); }; /** - * Encodes the specified ListIosAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified DeleteIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsResponse.encode = function encode(message, writer) { + DeleteIosAppDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.iosAppDataStreams != null && message.iosAppDataStreams.length) - for (var i = 0; i < message.iosAppDataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListIosAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified DeleteIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer. + * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsResponse.decode = function decode(reader, length) { + DeleteIosAppDataStreamRequest.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.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.iosAppDataStreams && message.iosAppDataStreams.length)) - message.iosAppDataStreams = []; - message.iosAppDataStreams.push($root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -9897,133 +9933,108 @@ }; /** - * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIosAppDataStreamsResponse message. + * Verifies a DeleteIosAppDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIosAppDataStreamsResponse.verify = function verify(message) { + DeleteIosAppDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.iosAppDataStreams != null && message.hasOwnProperty("iosAppDataStreams")) { - if (!Array.isArray(message.iosAppDataStreams)) - return "iosAppDataStreams: array expected"; - for (var i = 0; i < message.iosAppDataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStreams[i]); - if (error) - return "iosAppDataStreams." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListIosAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest */ - ListIosAppDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + DeleteIosAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); - if (object.iosAppDataStreams) { - if (!Array.isArray(object.iosAppDataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: array expected"); - message.iosAppDataStreams = []; - for (var i = 0; i < object.iosAppDataStreams.length; ++i) { - if (typeof object.iosAppDataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: object expected"); - message.iosAppDataStreams[i] = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStreams[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListIosAppDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIosAppDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse + * @param {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIosAppDataStreamsResponse.toObject = function toObject(message, options) { + DeleteIosAppDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.iosAppDataStreams = []; if (options.defaults) - object.nextPageToken = ""; - if (message.iosAppDataStreams && message.iosAppDataStreams.length) { - object.iosAppDataStreams = []; - for (var j = 0; j < message.iosAppDataStreams.length; ++j) - object.iosAppDataStreams[j] = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStreams[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListIosAppDataStreamsResponse to JSON. + * Converts this DeleteIosAppDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListIosAppDataStreamsResponse.prototype.toJSON = function toJSON() { + DeleteIosAppDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIosAppDataStreamsResponse; + return DeleteIosAppDataStreamRequest; })(); - v1alpha.GetAndroidAppDataStreamRequest = (function() { + v1alpha.UpdateIosAppDataStreamRequest = (function() { /** - * Properties of a GetAndroidAppDataStreamRequest. + * Properties of an UpdateIosAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetAndroidAppDataStreamRequest - * @property {string|null} [name] GetAndroidAppDataStreamRequest name + * @interface IUpdateIosAppDataStreamRequest + * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] UpdateIosAppDataStreamRequest iosAppDataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIosAppDataStreamRequest updateMask */ /** - * Constructs a new GetAndroidAppDataStreamRequest. + * Constructs a new UpdateIosAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetAndroidAppDataStreamRequest. - * @implements IGetAndroidAppDataStreamRequest + * @classdesc Represents an UpdateIosAppDataStreamRequest. + * @implements IUpdateIosAppDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set */ - function GetAndroidAppDataStreamRequest(properties) { + function UpdateIosAppDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10031,75 +10042,88 @@ } /** - * GetAndroidAppDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * UpdateIosAppDataStreamRequest iosAppDataStream. + * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @instance */ - GetAndroidAppDataStreamRequest.prototype.name = ""; + UpdateIosAppDataStreamRequest.prototype.iosAppDataStream = null; /** - * Creates a new GetAndroidAppDataStreamRequest instance using the specified properties. + * UpdateIosAppDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @instance + */ + UpdateIosAppDataStreamRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIosAppDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest instance */ - GetAndroidAppDataStreamRequest.create = function create(properties) { - return new GetAndroidAppDataStreamRequest(properties); + UpdateIosAppDataStreamRequest.create = function create(properties) { + return new UpdateIosAppDataStreamRequest(properties); }; /** - * Encodes the specified GetAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified UpdateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAndroidAppDataStreamRequest.encode = function encode(message, writer) { + UpdateIosAppDataStreamRequest.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.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, 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 GetAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified UpdateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer. + * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAndroidAppDataStreamRequest.decode = function decode(reader, length) { + UpdateIosAppDataStreamRequest.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.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10110,107 +10134,128 @@ }; /** - * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAndroidAppDataStreamRequest message. + * Verifies an UpdateIosAppDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAndroidAppDataStreamRequest.verify = function verify(message) { + UpdateIosAppDataStreamRequest.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.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); + if (error) + return "iosAppDataStream." + 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 a GetAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest */ - GetAndroidAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + UpdateIosAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); + if (object.iosAppDataStream != null) { + if (typeof object.iosAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.iosAppDataStream: object expected"); + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIosAppDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + UpdateIosAppDataStreamRequest.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 (options.defaults) { + object.iosAppDataStream = null; + object.updateMask = null; + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) + object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetAndroidAppDataStreamRequest to JSON. + * Converts this UpdateIosAppDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest * @instance * @returns {Object.} JSON object */ - GetAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + UpdateIosAppDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetAndroidAppDataStreamRequest; + return UpdateIosAppDataStreamRequest; })(); - v1alpha.DeleteAndroidAppDataStreamRequest = (function() { + v1alpha.ListIosAppDataStreamsRequest = (function() { /** - * Properties of a DeleteAndroidAppDataStreamRequest. + * Properties of a ListIosAppDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteAndroidAppDataStreamRequest - * @property {string|null} [name] DeleteAndroidAppDataStreamRequest name + * @interface IListIosAppDataStreamsRequest + * @property {string|null} [parent] ListIosAppDataStreamsRequest parent + * @property {number|null} [pageSize] ListIosAppDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListIosAppDataStreamsRequest pageToken */ /** - * Constructs a new DeleteAndroidAppDataStreamRequest. + * Constructs a new ListIosAppDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteAndroidAppDataStreamRequest. - * @implements IDeleteAndroidAppDataStreamRequest + * @classdesc Represents a ListIosAppDataStreamsRequest. + * @implements IListIosAppDataStreamsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set */ - function DeleteAndroidAppDataStreamRequest(properties) { + function ListIosAppDataStreamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10218,75 +10263,101 @@ } /** - * DeleteAndroidAppDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * ListIosAppDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @instance */ - DeleteAndroidAppDataStreamRequest.prototype.name = ""; + ListIosAppDataStreamsRequest.prototype.parent = ""; /** - * Creates a new DeleteAndroidAppDataStreamRequest instance using the specified properties. + * ListIosAppDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @instance + */ + ListIosAppDataStreamsRequest.prototype.pageSize = 0; + + /** + * ListIosAppDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @instance + */ + ListIosAppDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListIosAppDataStreamsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest instance */ - DeleteAndroidAppDataStreamRequest.create = function create(properties) { - return new DeleteAndroidAppDataStreamRequest(properties); + ListIosAppDataStreamsRequest.create = function create(properties) { + return new ListIosAppDataStreamsRequest(properties); }; /** - * Encodes the specified DeleteAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListIosAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAndroidAppDataStreamRequest.encode = function encode(message, writer) { + ListIosAppDataStreamsRequest.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.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 DeleteAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListIosAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIosAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer. + * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteAndroidAppDataStreamRequest.decode = function decode(reader, length) { + ListIosAppDataStreamsRequest.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.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -10297,108 +10368,126 @@ }; /** - * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListIosAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteAndroidAppDataStreamRequest message. + * Verifies a ListIosAppDataStreamsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteAndroidAppDataStreamRequest.verify = function verify(message) { + ListIosAppDataStreamsRequest.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.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 DeleteAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIosAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest */ - DeleteAndroidAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + ListIosAppDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); + 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 DeleteAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIosAppDataStreamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + ListIosAppDataStreamsRequest.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 (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 DeleteAndroidAppDataStreamRequest to JSON. + * Converts this ListIosAppDataStreamsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest * @instance * @returns {Object.} JSON object */ - DeleteAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + ListIosAppDataStreamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteAndroidAppDataStreamRequest; + return ListIosAppDataStreamsRequest; })(); - v1alpha.UpdateAndroidAppDataStreamRequest = (function() { + v1alpha.ListIosAppDataStreamsResponse = (function() { /** - * Properties of an UpdateAndroidAppDataStreamRequest. + * Properties of a ListIosAppDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateAndroidAppDataStreamRequest - * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] UpdateAndroidAppDataStreamRequest androidAppDataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAndroidAppDataStreamRequest updateMask + * @interface IListIosAppDataStreamsResponse + * @property {Array.|null} [iosAppDataStreams] ListIosAppDataStreamsResponse iosAppDataStreams + * @property {string|null} [nextPageToken] ListIosAppDataStreamsResponse nextPageToken */ /** - * Constructs a new UpdateAndroidAppDataStreamRequest. + * Constructs a new ListIosAppDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateAndroidAppDataStreamRequest. - * @implements IUpdateAndroidAppDataStreamRequest + * @classdesc Represents a ListIosAppDataStreamsResponse. + * @implements IListIosAppDataStreamsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set */ - function UpdateAndroidAppDataStreamRequest(properties) { + function ListIosAppDataStreamsResponse(properties) { + this.iosAppDataStreams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10406,88 +10495,91 @@ } /** - * UpdateAndroidAppDataStreamRequest androidAppDataStream. - * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * ListIosAppDataStreamsResponse iosAppDataStreams. + * @member {Array.} iosAppDataStreams + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @instance */ - UpdateAndroidAppDataStreamRequest.prototype.androidAppDataStream = null; + ListIosAppDataStreamsResponse.prototype.iosAppDataStreams = $util.emptyArray; /** - * UpdateAndroidAppDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * ListIosAppDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @instance */ - UpdateAndroidAppDataStreamRequest.prototype.updateMask = null; + ListIosAppDataStreamsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateAndroidAppDataStreamRequest instance using the specified properties. + * Creates a new ListIosAppDataStreamsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse instance */ - UpdateAndroidAppDataStreamRequest.create = function create(properties) { - return new UpdateAndroidAppDataStreamRequest(properties); + ListIosAppDataStreamsResponse.create = function create(properties) { + return new ListIosAppDataStreamsResponse(properties); }; /** - * Encodes the specified UpdateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListIosAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAndroidAppDataStreamRequest.encode = function encode(message, writer) { + ListIosAppDataStreamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.iosAppDataStreams != null && message.iosAppDataStreams.length) + for (var i = 0; i < message.iosAppDataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStreams[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 UpdateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListIosAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIosAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer. + * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAndroidAppDataStreamRequest.decode = function decode(reader, length) { + ListIosAppDataStreamsResponse.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.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); + if (!(message.iosAppDataStreams && message.iosAppDataStreams.length)) + message.iosAppDataStreams = []; + message.iosAppDataStreams.push($root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -10498,128 +10590,133 @@ }; /** - * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListIosAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateAndroidAppDataStreamRequest message. + * Verifies a ListIosAppDataStreamsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateAndroidAppDataStreamRequest.verify = function verify(message) { + ListIosAppDataStreamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); - if (error) - return "androidAppDataStream." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.iosAppDataStreams != null && message.hasOwnProperty("iosAppDataStreams")) { + if (!Array.isArray(message.iosAppDataStreams)) + return "iosAppDataStreams: array expected"; + for (var i = 0; i < message.iosAppDataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStreams[i]); + if (error) + return "iosAppDataStreams." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIosAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse */ - UpdateAndroidAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + ListIosAppDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); - if (object.androidAppDataStream != null) { - if (typeof object.androidAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.androidAppDataStream: object expected"); - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); + if (object.iosAppDataStreams) { + if (!Array.isArray(object.iosAppDataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: array expected"); + message.iosAppDataStreams = []; + for (var i = 0; i < object.iosAppDataStreams.length; ++i) { + if (typeof object.iosAppDataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: object expected"); + message.iosAppDataStreams[i] = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStreams[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIosAppDataStreamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + ListIosAppDataStreamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.androidAppDataStream = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.iosAppDataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.iosAppDataStreams && message.iosAppDataStreams.length) { + object.iosAppDataStreams = []; + for (var j = 0; j < message.iosAppDataStreams.length; ++j) + object.iosAppDataStreams[j] = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStreams[j], options); } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) - object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateAndroidAppDataStreamRequest to JSON. + * Converts this ListIosAppDataStreamsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse * @instance * @returns {Object.} JSON object */ - UpdateAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + ListIosAppDataStreamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateAndroidAppDataStreamRequest; + return ListIosAppDataStreamsResponse; })(); - v1alpha.ListAndroidAppDataStreamsRequest = (function() { + v1alpha.GetAndroidAppDataStreamRequest = (function() { /** - * Properties of a ListAndroidAppDataStreamsRequest. + * Properties of a GetAndroidAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAndroidAppDataStreamsRequest - * @property {string|null} [parent] ListAndroidAppDataStreamsRequest parent - * @property {number|null} [pageSize] ListAndroidAppDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListAndroidAppDataStreamsRequest pageToken + * @interface IGetAndroidAppDataStreamRequest + * @property {string|null} [name] GetAndroidAppDataStreamRequest name */ /** - * Constructs a new ListAndroidAppDataStreamsRequest. + * Constructs a new GetAndroidAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAndroidAppDataStreamsRequest. - * @implements IListAndroidAppDataStreamsRequest + * @classdesc Represents a GetAndroidAppDataStreamRequest. + * @implements IGetAndroidAppDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set */ - function ListAndroidAppDataStreamsRequest(properties) { + function GetAndroidAppDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10627,101 +10724,75 @@ } /** - * ListAndroidAppDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.parent = ""; - - /** - * ListAndroidAppDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListAndroidAppDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * GetAndroidAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @instance */ - ListAndroidAppDataStreamsRequest.prototype.pageToken = ""; + GetAndroidAppDataStreamRequest.prototype.name = ""; /** - * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. + * Creates a new GetAndroidAppDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest instance */ - ListAndroidAppDataStreamsRequest.create = function create(properties) { - return new ListAndroidAppDataStreamsRequest(properties); + GetAndroidAppDataStreamRequest.create = function create(properties) { + return new GetAndroidAppDataStreamRequest(properties); }; /** - * Encodes the specified ListAndroidAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsRequest.encode = function encode(message, writer) { + GetAndroidAppDataStreamRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListAndroidAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer. + * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsRequest.decode = function decode(reader, length) { + GetAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -10732,126 +10803,107 @@ }; /** - * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + GetAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAndroidAppDataStreamsRequest message. + * Verifies a GetAndroidAppDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAndroidAppDataStreamsRequest.verify = function verify(message) { + GetAndroidAppDataStreamRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListAndroidAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest */ - ListAndroidAppDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + GetAndroidAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListAndroidAppDataStreamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetAndroidAppDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest + * @param {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAndroidAppDataStreamsRequest.toObject = function toObject(message, options) { + GetAndroidAppDataStreamRequest.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; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListAndroidAppDataStreamsRequest to JSON. + * Converts this GetAndroidAppDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListAndroidAppDataStreamsRequest.prototype.toJSON = function toJSON() { + GetAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAndroidAppDataStreamsRequest; + return GetAndroidAppDataStreamRequest; })(); - v1alpha.ListAndroidAppDataStreamsResponse = (function() { + v1alpha.DeleteAndroidAppDataStreamRequest = (function() { /** - * Properties of a ListAndroidAppDataStreamsResponse. + * Properties of a DeleteAndroidAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAndroidAppDataStreamsResponse - * @property {Array.|null} [androidAppDataStreams] ListAndroidAppDataStreamsResponse androidAppDataStreams - * @property {string|null} [nextPageToken] ListAndroidAppDataStreamsResponse nextPageToken + * @interface IDeleteAndroidAppDataStreamRequest + * @property {string|null} [name] DeleteAndroidAppDataStreamRequest name */ /** - * Constructs a new ListAndroidAppDataStreamsResponse. + * Constructs a new DeleteAndroidAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAndroidAppDataStreamsResponse. - * @implements IListAndroidAppDataStreamsResponse + * @classdesc Represents a DeleteAndroidAppDataStreamRequest. + * @implements IDeleteAndroidAppDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set */ - function ListAndroidAppDataStreamsResponse(properties) { - this.androidAppDataStreams = []; + function DeleteAndroidAppDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10859,91 +10911,75 @@ } /** - * ListAndroidAppDataStreamsResponse androidAppDataStreams. - * @member {Array.} androidAppDataStreams - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - * @instance - */ - ListAndroidAppDataStreamsResponse.prototype.androidAppDataStreams = $util.emptyArray; - - /** - * ListAndroidAppDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * DeleteAndroidAppDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @instance */ - ListAndroidAppDataStreamsResponse.prototype.nextPageToken = ""; + DeleteAndroidAppDataStreamRequest.prototype.name = ""; /** - * Creates a new ListAndroidAppDataStreamsResponse instance using the specified properties. + * Creates a new DeleteAndroidAppDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest instance */ - ListAndroidAppDataStreamsResponse.create = function create(properties) { - return new ListAndroidAppDataStreamsResponse(properties); + DeleteAndroidAppDataStreamRequest.create = function create(properties) { + return new DeleteAndroidAppDataStreamRequest(properties); }; /** - * Encodes the specified ListAndroidAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified DeleteAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsResponse.encode = function encode(message, writer) { + DeleteAndroidAppDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.androidAppDataStreams != null && message.androidAppDataStreams.length) - for (var i = 0; i < message.androidAppDataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListAndroidAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified DeleteAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer. + * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsResponse.decode = function decode(reader, length) { + DeleteAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.androidAppDataStreams && message.androidAppDataStreams.length)) - message.androidAppDataStreams = []; - message.androidAppDataStreams.push($root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -10954,133 +10990,108 @@ }; /** - * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAndroidAppDataStreamsResponse message. + * Verifies a DeleteAndroidAppDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAndroidAppDataStreamsResponse.verify = function verify(message) { + DeleteAndroidAppDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.androidAppDataStreams != null && message.hasOwnProperty("androidAppDataStreams")) { - if (!Array.isArray(message.androidAppDataStreams)) - return "androidAppDataStreams: array expected"; - for (var i = 0; i < message.androidAppDataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStreams[i]); - if (error) - return "androidAppDataStreams." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListAndroidAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest */ - ListAndroidAppDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + DeleteAndroidAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); - if (object.androidAppDataStreams) { - if (!Array.isArray(object.androidAppDataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: array expected"); - message.androidAppDataStreams = []; - for (var i = 0; i < object.androidAppDataStreams.length; ++i) { - if (typeof object.androidAppDataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: object expected"); - message.androidAppDataStreams[i] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStreams[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListAndroidAppDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteAndroidAppDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse + * @param {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAndroidAppDataStreamsResponse.toObject = function toObject(message, options) { + DeleteAndroidAppDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.androidAppDataStreams = []; if (options.defaults) - object.nextPageToken = ""; - if (message.androidAppDataStreams && message.androidAppDataStreams.length) { - object.androidAppDataStreams = []; - for (var j = 0; j < message.androidAppDataStreams.length; ++j) - object.androidAppDataStreams[j] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStreams[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListAndroidAppDataStreamsResponse to JSON. + * Converts this DeleteAndroidAppDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListAndroidAppDataStreamsResponse.prototype.toJSON = function toJSON() { + DeleteAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAndroidAppDataStreamsResponse; + return DeleteAndroidAppDataStreamRequest; })(); - v1alpha.GetEnhancedMeasurementSettingsRequest = (function() { + v1alpha.UpdateAndroidAppDataStreamRequest = (function() { /** - * Properties of a GetEnhancedMeasurementSettingsRequest. + * Properties of an UpdateAndroidAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetEnhancedMeasurementSettingsRequest - * @property {string|null} [name] GetEnhancedMeasurementSettingsRequest name + * @interface IUpdateAndroidAppDataStreamRequest + * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] UpdateAndroidAppDataStreamRequest androidAppDataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAndroidAppDataStreamRequest updateMask */ /** - * Constructs a new GetEnhancedMeasurementSettingsRequest. + * Constructs a new UpdateAndroidAppDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetEnhancedMeasurementSettingsRequest. - * @implements IGetEnhancedMeasurementSettingsRequest + * @classdesc Represents an UpdateAndroidAppDataStreamRequest. + * @implements IUpdateAndroidAppDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set */ - function GetEnhancedMeasurementSettingsRequest(properties) { + function UpdateAndroidAppDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11088,75 +11099,88 @@ } /** - * GetEnhancedMeasurementSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * UpdateAndroidAppDataStreamRequest androidAppDataStream. + * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @instance */ - GetEnhancedMeasurementSettingsRequest.prototype.name = ""; + UpdateAndroidAppDataStreamRequest.prototype.androidAppDataStream = null; /** - * Creates a new GetEnhancedMeasurementSettingsRequest instance using the specified properties. + * UpdateAndroidAppDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @instance + */ + UpdateAndroidAppDataStreamRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAndroidAppDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest instance */ - GetEnhancedMeasurementSettingsRequest.create = function create(properties) { - return new GetEnhancedMeasurementSettingsRequest(properties); + UpdateAndroidAppDataStreamRequest.create = function create(properties) { + return new UpdateAndroidAppDataStreamRequest(properties); }; /** - * Encodes the specified GetEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified UpdateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnhancedMeasurementSettingsRequest.encode = function encode(message, writer) { + UpdateAndroidAppDataStreamRequest.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.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, 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 GetEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified UpdateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnhancedMeasurementSettingsRequest.decode = function decode(reader, length) { + UpdateAndroidAppDataStreamRequest.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.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -11167,108 +11191,128 @@ }; /** - * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnhancedMeasurementSettingsRequest message. + * Verifies an UpdateAndroidAppDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnhancedMeasurementSettingsRequest.verify = function verify(message) { + UpdateAndroidAppDataStreamRequest.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.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); + if (error) + return "androidAppDataStream." + 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 a GetEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest */ - GetEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + UpdateAndroidAppDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); + if (object.androidAppDataStream != null) { + if (typeof object.androidAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.androidAppDataStream: object expected"); + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateAndroidAppDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest + * @param {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnhancedMeasurementSettingsRequest.toObject = function toObject(message, options) { + UpdateAndroidAppDataStreamRequest.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 (options.defaults) { + object.androidAppDataStream = null; + object.updateMask = null; + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) + object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetEnhancedMeasurementSettingsRequest to JSON. + * Converts this UpdateAndroidAppDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest * @instance * @returns {Object.} JSON object */ - GetEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { + UpdateAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEnhancedMeasurementSettingsRequest; + return UpdateAndroidAppDataStreamRequest; })(); - v1alpha.UpdateEnhancedMeasurementSettingsRequest = (function() { + v1alpha.ListAndroidAppDataStreamsRequest = (function() { /** - * Properties of an UpdateEnhancedMeasurementSettingsRequest. + * Properties of a ListAndroidAppDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateEnhancedMeasurementSettingsRequest - * @property {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null} [enhancedMeasurementSettings] UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnhancedMeasurementSettingsRequest updateMask + * @interface IListAndroidAppDataStreamsRequest + * @property {string|null} [parent] ListAndroidAppDataStreamsRequest parent + * @property {number|null} [pageSize] ListAndroidAppDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListAndroidAppDataStreamsRequest pageToken */ /** - * Constructs a new UpdateEnhancedMeasurementSettingsRequest. + * Constructs a new ListAndroidAppDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateEnhancedMeasurementSettingsRequest. - * @implements IUpdateEnhancedMeasurementSettingsRequest + * @classdesc Represents a ListAndroidAppDataStreamsRequest. + * @implements IListAndroidAppDataStreamsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set */ - function UpdateEnhancedMeasurementSettingsRequest(properties) { + function ListAndroidAppDataStreamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11276,88 +11320,101 @@ } /** - * UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings. - * @member {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null|undefined} enhancedMeasurementSettings - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * ListAndroidAppDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @instance */ - UpdateEnhancedMeasurementSettingsRequest.prototype.enhancedMeasurementSettings = null; + ListAndroidAppDataStreamsRequest.prototype.parent = ""; /** - * UpdateEnhancedMeasurementSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * ListAndroidAppDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @instance */ - UpdateEnhancedMeasurementSettingsRequest.prototype.updateMask = null; + ListAndroidAppDataStreamsRequest.prototype.pageSize = 0; /** - * Creates a new UpdateEnhancedMeasurementSettingsRequest instance using the specified properties. + * ListAndroidAppDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @instance + */ + ListAndroidAppDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest instance */ - UpdateEnhancedMeasurementSettingsRequest.create = function create(properties) { - return new UpdateEnhancedMeasurementSettingsRequest(properties); + ListAndroidAppDataStreamsRequest.create = function create(properties) { + return new ListAndroidAppDataStreamsRequest(properties); }; /** - * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified ListAndroidAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnhancedMeasurementSettingsRequest.encode = function encode(message, writer) { + ListAndroidAppDataStreamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enhancedMeasurementSettings != null && Object.hasOwnProperty.call(message, "enhancedMeasurementSettings")) - $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.encode(message.enhancedMeasurementSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified ListAndroidAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAndroidAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnhancedMeasurementSettingsRequest.decode = function decode(reader, length) { + ListAndroidAppDataStreamsRequest.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.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -11368,127 +11425,126 @@ }; /** - * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListAndroidAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEnhancedMeasurementSettingsRequest message. + * Verifies a ListAndroidAppDataStreamsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEnhancedMeasurementSettingsRequest.verify = function verify(message) { + ListAndroidAppDataStreamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) { - var error = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify(message.enhancedMeasurementSettings); - if (error) - return "enhancedMeasurementSettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAndroidAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest */ - UpdateEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + ListAndroidAppDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); - if (object.enhancedMeasurementSettings != null) { - if (typeof object.enhancedMeasurementSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.enhancedMeasurementSettings: object expected"); - message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.fromObject(object.enhancedMeasurementSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); + 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 an UpdateEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAndroidAppDataStreamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest + * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEnhancedMeasurementSettingsRequest.toObject = function toObject(message, options) { + ListAndroidAppDataStreamsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.enhancedMeasurementSettings = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) - object.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.toObject(message.enhancedMeasurementSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateEnhancedMeasurementSettingsRequest to JSON. + * Converts this ListAndroidAppDataStreamsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest * @instance * @returns {Object.} JSON object */ - UpdateEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { + ListAndroidAppDataStreamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEnhancedMeasurementSettingsRequest; + return ListAndroidAppDataStreamsRequest; })(); - v1alpha.CreateFirebaseLinkRequest = (function() { + v1alpha.ListAndroidAppDataStreamsResponse = (function() { /** - * Properties of a CreateFirebaseLinkRequest. + * Properties of a ListAndroidAppDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @interface ICreateFirebaseLinkRequest - * @property {string|null} [parent] CreateFirebaseLinkRequest parent - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink + * @interface IListAndroidAppDataStreamsResponse + * @property {Array.|null} [androidAppDataStreams] ListAndroidAppDataStreamsResponse androidAppDataStreams + * @property {string|null} [nextPageToken] ListAndroidAppDataStreamsResponse nextPageToken */ /** - * Constructs a new CreateFirebaseLinkRequest. + * Constructs a new ListAndroidAppDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateFirebaseLinkRequest. - * @implements ICreateFirebaseLinkRequest + * @classdesc Represents a ListAndroidAppDataStreamsResponse. + * @implements IListAndroidAppDataStreamsResponse * @constructor - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set */ - function CreateFirebaseLinkRequest(properties) { + function ListAndroidAppDataStreamsResponse(properties) { + this.androidAppDataStreams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11496,88 +11552,91 @@ } /** - * CreateFirebaseLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * ListAndroidAppDataStreamsResponse androidAppDataStreams. + * @member {Array.} androidAppDataStreams + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @instance */ - CreateFirebaseLinkRequest.prototype.parent = ""; + ListAndroidAppDataStreamsResponse.prototype.androidAppDataStreams = $util.emptyArray; /** - * CreateFirebaseLinkRequest firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * ListAndroidAppDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @instance */ - CreateFirebaseLinkRequest.prototype.firebaseLink = null; + ListAndroidAppDataStreamsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * Creates a new ListAndroidAppDataStreamsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse instance */ - CreateFirebaseLinkRequest.create = function create(properties) { - return new CreateFirebaseLinkRequest(properties); + ListAndroidAppDataStreamsResponse.create = function create(properties) { + return new ListAndroidAppDataStreamsResponse(properties); }; /** - * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ListAndroidAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encode = function encode(message, writer) { + ListAndroidAppDataStreamsResponse.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.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.androidAppDataStreams != null && message.androidAppDataStreams.length) + for (var i = 0; i < message.androidAppDataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStreams[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 CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ListAndroidAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAndroidAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decode = function decode(reader, length) { + ListAndroidAppDataStreamsResponse.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.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.androidAppDataStreams && message.androidAppDataStreams.length)) + message.androidAppDataStreams = []; + message.androidAppDataStreams.push($root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32())); break; case 2: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -11588,122 +11647,133 @@ }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListAndroidAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFirebaseLinkRequest message. + * Verifies a ListAndroidAppDataStreamsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFirebaseLinkRequest.verify = function verify(message) { + ListAndroidAppDataStreamsResponse.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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; + if (message.androidAppDataStreams != null && message.hasOwnProperty("androidAppDataStreams")) { + if (!Array.isArray(message.androidAppDataStreams)) + return "androidAppDataStreams: array expected"; + for (var i = 0; i < message.androidAppDataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStreams[i]); + if (error) + return "androidAppDataStreams." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAndroidAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse */ - CreateFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + ListAndroidAppDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); + if (object.androidAppDataStreams) { + if (!Array.isArray(object.androidAppDataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: array expected"); + message.androidAppDataStreams = []; + for (var i = 0; i < object.androidAppDataStreams.length; ++i) { + if (typeof object.androidAppDataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: object expected"); + message.androidAppDataStreams[i] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStreams[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAndroidAppDataStreamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFirebaseLinkRequest.toObject = function toObject(message, options) { + ListAndroidAppDataStreamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.firebaseLink = null; + if (options.arrays || options.defaults) + object.androidAppDataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.androidAppDataStreams && message.androidAppDataStreams.length) { + object.androidAppDataStreams = []; + for (var j = 0; j < message.androidAppDataStreams.length; ++j) + object.androidAppDataStreams[j] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStreams[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateFirebaseLinkRequest to JSON. + * Converts this ListAndroidAppDataStreamsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse * @instance * @returns {Object.} JSON object */ - CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + ListAndroidAppDataStreamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFirebaseLinkRequest; + return ListAndroidAppDataStreamsResponse; })(); - v1alpha.UpdateFirebaseLinkRequest = (function() { + v1alpha.GetEnhancedMeasurementSettingsRequest = (function() { /** - * Properties of an UpdateFirebaseLinkRequest. + * Properties of a GetEnhancedMeasurementSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateFirebaseLinkRequest - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] UpdateFirebaseLinkRequest firebaseLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFirebaseLinkRequest updateMask + * @interface IGetEnhancedMeasurementSettingsRequest + * @property {string|null} [name] GetEnhancedMeasurementSettingsRequest name */ /** - * Constructs a new UpdateFirebaseLinkRequest. + * Constructs a new GetEnhancedMeasurementSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateFirebaseLinkRequest. - * @implements IUpdateFirebaseLinkRequest + * @classdesc Represents a GetEnhancedMeasurementSettingsRequest. + * @implements IGetEnhancedMeasurementSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set */ - function UpdateFirebaseLinkRequest(properties) { + function GetEnhancedMeasurementSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11711,88 +11781,75 @@ } /** - * UpdateFirebaseLinkRequest firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @instance - */ - UpdateFirebaseLinkRequest.prototype.firebaseLink = null; - - /** - * UpdateFirebaseLinkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * GetEnhancedMeasurementSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @instance */ - UpdateFirebaseLinkRequest.prototype.updateMask = null; + GetEnhancedMeasurementSettingsRequest.prototype.name = ""; /** - * Creates a new UpdateFirebaseLinkRequest instance using the specified properties. + * Creates a new GetEnhancedMeasurementSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest instance */ - UpdateFirebaseLinkRequest.create = function create(properties) { - return new UpdateFirebaseLinkRequest(properties); + GetEnhancedMeasurementSettingsRequest.create = function create(properties) { + return new GetEnhancedMeasurementSettingsRequest(properties); }; /** - * Encodes the specified UpdateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified GetEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFirebaseLinkRequest.encode = function encode(message, writer) { + GetEnhancedMeasurementSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified GetEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFirebaseLinkRequest.decode = function decode(reader, length) { + GetEnhancedMeasurementSettingsRequest.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.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -11803,126 +11860,108 @@ }; /** - * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + GetEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFirebaseLinkRequest message. + * Verifies a GetEnhancedMeasurementSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFirebaseLinkRequest.verify = function verify(message) { + GetEnhancedMeasurementSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; }; /** - * Creates an UpdateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest */ - UpdateFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + GetEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFirebaseLinkRequest.toObject = function toObject(message, options) { + GetEnhancedMeasurementSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.firebaseLink = null; - object.updateMask = null; - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateFirebaseLinkRequest to JSON. + * Converts this GetEnhancedMeasurementSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest * @instance * @returns {Object.} JSON object */ - UpdateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + GetEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateFirebaseLinkRequest; + return GetEnhancedMeasurementSettingsRequest; })(); - v1alpha.DeleteFirebaseLinkRequest = (function() { + v1alpha.UpdateEnhancedMeasurementSettingsRequest = (function() { /** - * Properties of a DeleteFirebaseLinkRequest. + * Properties of an UpdateEnhancedMeasurementSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteFirebaseLinkRequest - * @property {string|null} [name] DeleteFirebaseLinkRequest name + * @interface IUpdateEnhancedMeasurementSettingsRequest + * @property {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null} [enhancedMeasurementSettings] UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnhancedMeasurementSettingsRequest updateMask */ /** - * Constructs a new DeleteFirebaseLinkRequest. + * Constructs a new UpdateEnhancedMeasurementSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteFirebaseLinkRequest. - * @implements IDeleteFirebaseLinkRequest + * @classdesc Represents an UpdateEnhancedMeasurementSettingsRequest. + * @implements IUpdateEnhancedMeasurementSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set */ - function DeleteFirebaseLinkRequest(properties) { + function UpdateEnhancedMeasurementSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11930,75 +11969,88 @@ } /** - * DeleteFirebaseLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings. + * @member {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null|undefined} enhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @instance */ - DeleteFirebaseLinkRequest.prototype.name = ""; + UpdateEnhancedMeasurementSettingsRequest.prototype.enhancedMeasurementSettings = null; /** - * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * UpdateEnhancedMeasurementSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @instance + */ + UpdateEnhancedMeasurementSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateEnhancedMeasurementSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest instance */ - DeleteFirebaseLinkRequest.create = function create(properties) { - return new DeleteFirebaseLinkRequest(properties); + UpdateEnhancedMeasurementSettingsRequest.create = function create(properties) { + return new UpdateEnhancedMeasurementSettingsRequest(properties); }; /** - * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encode = function encode(message, writer) { + UpdateEnhancedMeasurementSettingsRequest.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.enhancedMeasurementSettings != null && Object.hasOwnProperty.call(message, "enhancedMeasurementSettings")) + $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.encode(message.enhancedMeasurementSettings, 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 DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decode = function decode(reader, length) { + UpdateEnhancedMeasurementSettingsRequest.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.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12009,109 +12061,127 @@ }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFirebaseLinkRequest message. + * Verifies an UpdateEnhancedMeasurementSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFirebaseLinkRequest.verify = function verify(message) { + UpdateEnhancedMeasurementSettingsRequest.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.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) { + var error = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify(message.enhancedMeasurementSettings); + if (error) + return "enhancedMeasurementSettings." + 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 a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest */ - DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + UpdateEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); + if (object.enhancedMeasurementSettings != null) { + if (typeof object.enhancedMeasurementSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.enhancedMeasurementSettings: object expected"); + message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.fromObject(object.enhancedMeasurementSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { + UpdateEnhancedMeasurementSettingsRequest.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 (options.defaults) { + object.enhancedMeasurementSettings = null; + object.updateMask = null; + } + if (message.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) + object.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.toObject(message.enhancedMeasurementSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this DeleteFirebaseLinkRequest to JSON. + * Converts this UpdateEnhancedMeasurementSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest * @instance * @returns {Object.} JSON object */ - DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { + UpdateEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteFirebaseLinkRequest; + return UpdateEnhancedMeasurementSettingsRequest; })(); - v1alpha.ListFirebaseLinksRequest = (function() { + v1alpha.CreateFirebaseLinkRequest = (function() { /** - * Properties of a ListFirebaseLinksRequest. + * Properties of a CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksRequest - * @property {string|null} [parent] ListFirebaseLinksRequest parent - * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize - * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken + * @interface ICreateFirebaseLinkRequest + * @property {string|null} [parent] CreateFirebaseLinkRequest parent + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink */ /** - * Constructs a new ListFirebaseLinksRequest. + * Constructs a new CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksRequest. - * @implements IListFirebaseLinksRequest + * @classdesc Represents a CreateFirebaseLinkRequest. + * @implements ICreateFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set */ - function ListFirebaseLinksRequest(properties) { + function CreateFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12119,90 +12189,80 @@ } /** - * ListFirebaseLinksRequest parent. + * CreateFirebaseLinkRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance */ - ListFirebaseLinksRequest.prototype.parent = ""; + CreateFirebaseLinkRequest.prototype.parent = ""; /** - * ListFirebaseLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * CreateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance */ - ListFirebaseLinksRequest.prototype.pageSize = 0; + CreateFirebaseLinkRequest.prototype.firebaseLink = null; /** - * ListFirebaseLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest - * @instance - */ - ListFirebaseLinksRequest.prototype.pageToken = ""; - - /** - * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance */ - ListFirebaseLinksRequest.create = function create(properties) { - return new ListFirebaseLinksRequest(properties); + CreateFirebaseLinkRequest.create = function create(properties) { + return new CreateFirebaseLinkRequest(properties); }; /** - * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encode = function encode(message, writer) { + CreateFirebaseLinkRequest.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.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decode = function decode(reader, length) { + CreateFirebaseLinkRequest.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.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12210,10 +12270,7 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12224,126 +12281,122 @@ }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksRequest message. + * Verifies a CreateFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksRequest.verify = function verify(message) { + CreateFirebaseLinkRequest.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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } return null; }; /** - * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest */ - ListFirebaseLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + CreateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); 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.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } return message; }; /** - * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest + * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksRequest.toObject = function toObject(message, options) { + CreateFirebaseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.firebaseLink = 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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); return object; }; /** - * Converts this ListFirebaseLinksRequest to JSON. + * Converts this CreateFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { + CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksRequest; + return CreateFirebaseLinkRequest; })(); - v1alpha.ListFirebaseLinksResponse = (function() { + v1alpha.UpdateFirebaseLinkRequest = (function() { /** - * Properties of a ListFirebaseLinksResponse. + * Properties of an UpdateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksResponse - * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks - * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken + * @interface IUpdateFirebaseLinkRequest + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] UpdateFirebaseLinkRequest firebaseLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFirebaseLinkRequest updateMask */ /** - * Constructs a new ListFirebaseLinksResponse. + * Constructs a new UpdateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksResponse. - * @implements IListFirebaseLinksResponse + * @classdesc Represents an UpdateFirebaseLinkRequest. + * @implements IUpdateFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set */ - function ListFirebaseLinksResponse(properties) { - this.firebaseLinks = []; + function UpdateFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12351,91 +12404,88 @@ } /** - * ListFirebaseLinksResponse firebaseLinks. - * @member {Array.} firebaseLinks - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * UpdateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @instance */ - ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; + UpdateFirebaseLinkRequest.prototype.firebaseLink = null; /** - * ListFirebaseLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * UpdateFirebaseLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @instance */ - ListFirebaseLinksResponse.prototype.nextPageToken = ""; + UpdateFirebaseLinkRequest.prototype.updateMask = null; /** - * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * Creates a new UpdateFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest instance */ - ListFirebaseLinksResponse.create = function create(properties) { - return new ListFirebaseLinksResponse(properties); + UpdateFirebaseLinkRequest.create = function create(properties) { + return new UpdateFirebaseLinkRequest(properties); }; /** - * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified UpdateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encode = function encode(message, writer) { + UpdateFirebaseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.firebaseLinks != null && message.firebaseLinks.length) - for (var i = 0; i < message.firebaseLinks.length; ++i) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, 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 ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified UpdateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decode = function decode(reader, length) { + UpdateFirebaseLinkRequest.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.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.firebaseLinks && message.firebaseLinks.length)) - message.firebaseLinks = []; - message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12446,133 +12496,126 @@ }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksResponse message. + * Verifies an UpdateFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksResponse.verify = function verify(message) { + UpdateFirebaseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { - if (!Array.isArray(message.firebaseLinks)) - return "firebaseLinks: array expected"; - for (var i = 0; i < message.firebaseLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); - if (error) - return "firebaseLinks." + error; - } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest */ - ListFirebaseLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + UpdateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); - if (object.firebaseLinks) { - if (!Array.isArray(object.firebaseLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); - message.firebaseLinks = []; - for (var i = 0; i < object.firebaseLinks.length; ++i) { - if (typeof object.firebaseLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); - message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); - } + var message = new $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse + * @param {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksResponse.toObject = function toObject(message, options) { + UpdateFirebaseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.firebaseLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.firebaseLinks && message.firebaseLinks.length) { - object.firebaseLinks = []; - for (var j = 0; j < message.firebaseLinks.length; ++j) - object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); + if (options.defaults) { + object.firebaseLink = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListFirebaseLinksResponse to JSON. + * Converts this UpdateFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { + UpdateFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksResponse; + return UpdateFirebaseLinkRequest; })(); - v1alpha.GetGlobalSiteTagRequest = (function() { + v1alpha.DeleteFirebaseLinkRequest = (function() { /** - * Properties of a GetGlobalSiteTagRequest. + * Properties of a DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetGlobalSiteTagRequest - * @property {string|null} [name] GetGlobalSiteTagRequest name + * @interface IDeleteFirebaseLinkRequest + * @property {string|null} [name] DeleteFirebaseLinkRequest name */ /** - * Constructs a new GetGlobalSiteTagRequest. + * Constructs a new DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetGlobalSiteTagRequest. - * @implements IGetGlobalSiteTagRequest + * @classdesc Represents a DeleteFirebaseLinkRequest. + * @implements IDeleteFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set */ - function GetGlobalSiteTagRequest(properties) { + function DeleteFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12580,35 +12623,35 @@ } /** - * GetGlobalSiteTagRequest name. + * DeleteFirebaseLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance */ - GetGlobalSiteTagRequest.prototype.name = ""; + DeleteFirebaseLinkRequest.prototype.name = ""; /** - * Creates a new GetGlobalSiteTagRequest instance using the specified properties. + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance */ - GetGlobalSiteTagRequest.create = function create(properties) { - return new GetGlobalSiteTagRequest(properties); + DeleteFirebaseLinkRequest.create = function create(properties) { + return new DeleteFirebaseLinkRequest(properties); }; /** - * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encode = function encode(message, writer) { + DeleteFirebaseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -12617,33 +12660,33 @@ }; /** - * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decode = function decode(reader, length) { + DeleteFirebaseLinkRequest.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.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12659,30 +12702,30 @@ }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGlobalSiteTagRequest message. + * Verifies a DeleteFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGlobalSiteTagRequest.verify = function verify(message) { + DeleteFirebaseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -12692,32 +12735,32 @@ }; /** - * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest */ - GetGlobalSiteTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest + * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGlobalSiteTagRequest.toObject = function toObject(message, options) { + DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -12729,38 +12772,39 @@ }; /** - * Converts this GetGlobalSiteTagRequest to JSON. + * Converts this DeleteFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { + DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetGlobalSiteTagRequest; + return DeleteFirebaseLinkRequest; })(); - v1alpha.CreateGoogleAdsLinkRequest = (function() { + v1alpha.ListFirebaseLinksRequest = (function() { /** - * Properties of a CreateGoogleAdsLinkRequest. + * Properties of a ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateGoogleAdsLinkRequest - * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink + * @interface IListFirebaseLinksRequest + * @property {string|null} [parent] ListFirebaseLinksRequest parent + * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize + * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken */ /** - * Constructs a new CreateGoogleAdsLinkRequest. + * Constructs a new ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateGoogleAdsLinkRequest. - * @implements ICreateGoogleAdsLinkRequest + * @classdesc Represents a ListFirebaseLinksRequest. + * @implements IListFirebaseLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set */ - function CreateGoogleAdsLinkRequest(properties) { + function ListFirebaseLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12768,80 +12812,90 @@ } /** - * CreateGoogleAdsLinkRequest parent. + * ListFirebaseLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - CreateGoogleAdsLinkRequest.prototype.parent = ""; + ListFirebaseLinksRequest.prototype.parent = ""; /** - * CreateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * ListFirebaseLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + ListFirebaseLinksRequest.prototype.pageSize = 0; /** - * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * ListFirebaseLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListFirebaseLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance */ - CreateGoogleAdsLinkRequest.create = function create(properties) { - return new CreateGoogleAdsLinkRequest(properties); + ListFirebaseLinksRequest.create = function create(properties) { + return new ListFirebaseLinksRequest(properties); }; /** - * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encode = function encode(message, writer) { + ListFirebaseLinksRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decode = function decode(reader, length) { + ListFirebaseLinksRequest.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.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12849,7 +12903,10 @@ message.parent = reader.string(); break; case 2: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -12860,122 +12917,126 @@ }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateGoogleAdsLinkRequest message. + * Verifies a ListFirebaseLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateGoogleAdsLinkRequest.verify = function verify(message) { + ListFirebaseLinksRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } + 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 CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest */ - CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + ListFirebaseLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } + 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 CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + ListFirebaseLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.googleAdsLink = null; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + 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 CreateGoogleAdsLinkRequest to JSON. + * Converts this ListFirebaseLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance * @returns {Object.} JSON object */ - CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateGoogleAdsLinkRequest; + return ListFirebaseLinksRequest; })(); - v1alpha.UpdateGoogleAdsLinkRequest = (function() { + v1alpha.ListFirebaseLinksResponse = (function() { /** - * Properties of an UpdateGoogleAdsLinkRequest. + * Properties of a ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateGoogleAdsLinkRequest - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask + * @interface IListFirebaseLinksResponse + * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks + * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken */ /** - * Constructs a new UpdateGoogleAdsLinkRequest. + * Constructs a new ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateGoogleAdsLinkRequest. - * @implements IUpdateGoogleAdsLinkRequest + * @classdesc Represents a ListFirebaseLinksResponse. + * @implements IListFirebaseLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set */ - function UpdateGoogleAdsLinkRequest(properties) { + function ListFirebaseLinksResponse(properties) { + this.firebaseLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12983,88 +13044,91 @@ } /** - * UpdateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * ListFirebaseLinksResponse firebaseLinks. + * @member {Array.} firebaseLinks + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance */ - UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; /** - * UpdateGoogleAdsLinkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * ListFirebaseLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance */ - UpdateGoogleAdsLinkRequest.prototype.updateMask = null; + ListFirebaseLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * Creates a new ListFirebaseLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance */ - UpdateGoogleAdsLinkRequest.create = function create(properties) { - return new UpdateGoogleAdsLinkRequest(properties); + ListFirebaseLinksResponse.create = function create(properties) { + return new ListFirebaseLinksResponse(properties); }; /** - * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encode = function encode(message, writer) { + ListFirebaseLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.firebaseLinks != null && message.firebaseLinks.length) + for (var i = 0; i < message.firebaseLinks.length; ++i) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[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 UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decode = function decode(reader, length) { + ListFirebaseLinksResponse.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.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -13075,126 +13139,133 @@ }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateGoogleAdsLinkRequest message. + * Verifies a ListFirebaseLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateGoogleAdsLinkRequest.verify = function verify(message) { + ListFirebaseLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { + if (!Array.isArray(message.firebaseLinks)) + return "firebaseLinks: array expected"; + for (var i = 0; i < message.firebaseLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); + if (error) + return "firebaseLinks." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse */ - UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + ListFirebaseLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + if (object.firebaseLinks) { + if (!Array.isArray(object.firebaseLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); + message.firebaseLinks = []; + for (var i = 0; i < object.firebaseLinks.length; ++i) { + if (typeof object.firebaseLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); + message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + ListFirebaseLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.googleAdsLink = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.firebaseLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.firebaseLinks && message.firebaseLinks.length) { + object.firebaseLinks = []; + for (var j = 0; j < message.firebaseLinks.length; ++j) + object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateGoogleAdsLinkRequest to JSON. + * Converts this ListFirebaseLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance * @returns {Object.} JSON object */ - UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateGoogleAdsLinkRequest; + return ListFirebaseLinksResponse; })(); - v1alpha.DeleteGoogleAdsLinkRequest = (function() { + v1alpha.GetGlobalSiteTagRequest = (function() { /** - * Properties of a DeleteGoogleAdsLinkRequest. + * Properties of a GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteGoogleAdsLinkRequest - * @property {string|null} [name] DeleteGoogleAdsLinkRequest name + * @interface IGetGlobalSiteTagRequest + * @property {string|null} [name] GetGlobalSiteTagRequest name */ /** - * Constructs a new DeleteGoogleAdsLinkRequest. + * Constructs a new GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteGoogleAdsLinkRequest. - * @implements IDeleteGoogleAdsLinkRequest + * @classdesc Represents a GetGlobalSiteTagRequest. + * @implements IGetGlobalSiteTagRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set */ - function DeleteGoogleAdsLinkRequest(properties) { + function GetGlobalSiteTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13202,35 +13273,35 @@ } /** - * DeleteGoogleAdsLinkRequest name. + * GetGlobalSiteTagRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance */ - DeleteGoogleAdsLinkRequest.prototype.name = ""; + GetGlobalSiteTagRequest.prototype.name = ""; /** - * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * Creates a new GetGlobalSiteTagRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance */ - DeleteGoogleAdsLinkRequest.create = function create(properties) { - return new DeleteGoogleAdsLinkRequest(properties); + GetGlobalSiteTagRequest.create = function create(properties) { + return new GetGlobalSiteTagRequest(properties); }; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encode = function encode(message, writer) { + GetGlobalSiteTagRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -13239,33 +13310,33 @@ }; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decode = function decode(reader, length) { + GetGlobalSiteTagRequest.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.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13281,30 +13352,30 @@ }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteGoogleAdsLinkRequest message. + * Verifies a GetGlobalSiteTagRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteGoogleAdsLinkRequest.verify = function verify(message) { + GetGlobalSiteTagRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -13314,32 +13385,32 @@ }; /** - * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest */ - DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + GetGlobalSiteTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { + GetGlobalSiteTagRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -13351,39 +13422,38 @@ }; /** - * Converts this DeleteGoogleAdsLinkRequest to JSON. + * Converts this GetGlobalSiteTagRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance * @returns {Object.} JSON object */ - DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteGoogleAdsLinkRequest; + return GetGlobalSiteTagRequest; })(); - v1alpha.ListGoogleAdsLinksRequest = (function() { + v1alpha.CreateGoogleAdsLinkRequest = (function() { /** - * Properties of a ListGoogleAdsLinksRequest. + * Properties of a CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksRequest - * @property {string|null} [parent] ListGoogleAdsLinksRequest parent - * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize - * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken + * @interface ICreateGoogleAdsLinkRequest + * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink */ /** - * Constructs a new ListGoogleAdsLinksRequest. + * Constructs a new CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksRequest. - * @implements IListGoogleAdsLinksRequest + * @classdesc Represents a CreateGoogleAdsLinkRequest. + * @implements ICreateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set */ - function ListGoogleAdsLinksRequest(properties) { + function CreateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13391,90 +13461,80 @@ } /** - * ListGoogleAdsLinksRequest parent. + * CreateGoogleAdsLinkRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest - * @instance - */ - ListGoogleAdsLinksRequest.prototype.parent = ""; - - /** - * ListGoogleAdsLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance */ - ListGoogleAdsLinksRequest.prototype.pageSize = 0; + CreateGoogleAdsLinkRequest.prototype.parent = ""; /** - * ListGoogleAdsLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * CreateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance */ - ListGoogleAdsLinksRequest.prototype.pageToken = ""; + CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; /** - * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance */ - ListGoogleAdsLinksRequest.create = function create(properties) { - return new ListGoogleAdsLinksRequest(properties); + CreateGoogleAdsLinkRequest.create = function create(properties) { + return new CreateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encode = function encode(message, writer) { + CreateGoogleAdsLinkRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decode = function decode(reader, length) { + CreateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13482,10 +13542,7 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13496,126 +13553,122 @@ }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { + CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksRequest message. + * Verifies a CreateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksRequest.verify = function verify(message) { + CreateGoogleAdsLinkRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } return null; }; /** - * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest */ - ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); 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.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } return message; }; /** - * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest + * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksRequest.toObject = function toObject(message, options) { + CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.googleAdsLink = 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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); return object; }; /** - * Converts this ListGoogleAdsLinksRequest to JSON. + * Converts this CreateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { + CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksRequest; + return CreateGoogleAdsLinkRequest; })(); - v1alpha.ListGoogleAdsLinksResponse = (function() { + v1alpha.UpdateGoogleAdsLinkRequest = (function() { /** - * Properties of a ListGoogleAdsLinksResponse. + * Properties of an UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksResponse - * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks - * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken + * @interface IUpdateGoogleAdsLinkRequest + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask */ /** - * Constructs a new ListGoogleAdsLinksResponse. + * Constructs a new UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksResponse. - * @implements IListGoogleAdsLinksResponse + * @classdesc Represents an UpdateGoogleAdsLinkRequest. + * @implements IUpdateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set */ - function ListGoogleAdsLinksResponse(properties) { - this.googleAdsLinks = []; + function UpdateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13623,91 +13676,88 @@ } /** - * ListGoogleAdsLinksResponse googleAdsLinks. - * @member {Array.} googleAdsLinks - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * UpdateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance */ - ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; + UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; /** - * ListGoogleAdsLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * UpdateGoogleAdsLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance */ - ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; + UpdateGoogleAdsLinkRequest.prototype.updateMask = null; /** - * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance */ - ListGoogleAdsLinksResponse.create = function create(properties) { - return new ListGoogleAdsLinksResponse(properties); + UpdateGoogleAdsLinkRequest.create = function create(properties) { + return new UpdateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encode = function encode(message, writer) { + UpdateGoogleAdsLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLinks != null && message.googleAdsLinks.length) - for (var i = 0; i < message.googleAdsLinks.length; ++i) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, 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 ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decode = function decode(reader, length) { + UpdateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.googleAdsLinks && message.googleAdsLinks.length)) - message.googleAdsLinks = []; - message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13718,133 +13768,126 @@ }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksResponse message. + * Verifies an UpdateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksResponse.verify = function verify(message) { + UpdateGoogleAdsLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { - if (!Array.isArray(message.googleAdsLinks)) - return "googleAdsLinks: array expected"; - for (var i = 0; i < message.googleAdsLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); - if (error) - return "googleAdsLinks." + error; - } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest */ - ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); - if (object.googleAdsLinks) { - if (!Array.isArray(object.googleAdsLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); - message.googleAdsLinks = []; - for (var i = 0; i < object.googleAdsLinks.length; ++i) { - if (typeof object.googleAdsLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); - message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); - } + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse + * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { + UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.googleAdsLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.googleAdsLinks && message.googleAdsLinks.length) { - object.googleAdsLinks = []; - for (var j = 0; j < message.googleAdsLinks.length; ++j) - object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + if (options.defaults) { + object.googleAdsLink = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListGoogleAdsLinksResponse to JSON. + * Converts this UpdateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { + UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksResponse; + return UpdateGoogleAdsLinkRequest; })(); - v1alpha.GetDataSharingSettingsRequest = (function() { + v1alpha.DeleteGoogleAdsLinkRequest = (function() { /** - * Properties of a GetDataSharingSettingsRequest. + * Properties of a DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataSharingSettingsRequest - * @property {string|null} [name] GetDataSharingSettingsRequest name + * @interface IDeleteGoogleAdsLinkRequest + * @property {string|null} [name] DeleteGoogleAdsLinkRequest name */ /** - * Constructs a new GetDataSharingSettingsRequest. + * Constructs a new DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataSharingSettingsRequest. - * @implements IGetDataSharingSettingsRequest + * @classdesc Represents a DeleteGoogleAdsLinkRequest. + * @implements IDeleteGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set */ - function GetDataSharingSettingsRequest(properties) { + function DeleteGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13852,35 +13895,35 @@ } /** - * GetDataSharingSettingsRequest name. + * DeleteGoogleAdsLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance */ - GetDataSharingSettingsRequest.prototype.name = ""; + DeleteGoogleAdsLinkRequest.prototype.name = ""; /** - * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance */ - GetDataSharingSettingsRequest.create = function create(properties) { - return new GetDataSharingSettingsRequest(properties); + DeleteGoogleAdsLinkRequest.create = function create(properties) { + return new DeleteGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encode = function encode(message, writer) { + DeleteGoogleAdsLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -13889,33 +13932,33 @@ }; /** - * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decode = function decode(reader, length) { + DeleteGoogleAdsLinkRequest.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.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13931,30 +13974,30 @@ }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataSharingSettingsRequest message. + * Verifies a DeleteGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataSharingSettingsRequest.verify = function verify(message) { + DeleteGoogleAdsLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -13964,32 +14007,32 @@ }; /** - * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest */ - GetDataSharingSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest + * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataSharingSettingsRequest.toObject = function toObject(message, options) { + DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -14001,38 +14044,39 @@ }; /** - * Converts this GetDataSharingSettingsRequest to JSON. + * Converts this DeleteGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { + DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDataSharingSettingsRequest; + return DeleteGoogleAdsLinkRequest; })(); - v1alpha.ListAccountSummariesRequest = (function() { + v1alpha.ListGoogleAdsLinksRequest = (function() { /** - * Properties of a ListAccountSummariesRequest. + * Properties of a ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesRequest - * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize - * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken + * @interface IListGoogleAdsLinksRequest + * @property {string|null} [parent] ListGoogleAdsLinksRequest parent + * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize + * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken */ /** - * Constructs a new ListAccountSummariesRequest. + * Constructs a new ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesRequest. - * @implements IListAccountSummariesRequest + * @classdesc Represents a ListGoogleAdsLinksRequest. + * @implements IListGoogleAdsLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set */ - function ListAccountSummariesRequest(properties) { + function ListGoogleAdsLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14040,87 +14084,100 @@ } /** - * ListAccountSummariesRequest pageSize. + * ListGoogleAdsLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.parent = ""; + + /** + * ListGoogleAdsLinksRequest pageSize. * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance */ - ListAccountSummariesRequest.prototype.pageSize = 0; + ListGoogleAdsLinksRequest.prototype.pageSize = 0; /** - * ListAccountSummariesRequest pageToken. + * ListGoogleAdsLinksRequest pageToken. * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance */ - ListAccountSummariesRequest.prototype.pageToken = ""; + ListGoogleAdsLinksRequest.prototype.pageToken = ""; /** - * Creates a new ListAccountSummariesRequest instance using the specified properties. + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance */ - ListAccountSummariesRequest.create = function create(properties) { - return new ListAccountSummariesRequest(properties); + ListGoogleAdsLinksRequest.create = function create(properties) { + return new ListGoogleAdsLinksRequest(properties); }; /** - * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encode = function encode(message, writer) { + ListGoogleAdsLinksRequest.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 1, wireType 0 =*/8).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decode = function decode(reader, length) { + ListGoogleAdsLinksRequest.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.analytics.admin.v1alpha.ListAccountSummariesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pageSize = reader.int32(); + message.parent = reader.string(); break; case 2: + message.pageSize = reader.int32(); + break; + case 3: message.pageToken = reader.string(); break; default: @@ -14132,32 +14189,35 @@ }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesRequest message. + * Verifies a ListGoogleAdsLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesRequest.verify = function verify(message) { + ListGoogleAdsLinksRequest.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"; @@ -14168,17 +14228,19 @@ }; /** - * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest */ - ListAccountSummariesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) + ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -14187,22 +14249,25 @@ }; /** - * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesRequest.toObject = function toObject(message, options) { + ListGoogleAdsLinksRequest.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")) @@ -14211,39 +14276,39 @@ }; /** - * Converts this ListAccountSummariesRequest to JSON. + * Converts this ListGoogleAdsLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance * @returns {Object.} JSON object */ - ListAccountSummariesRequest.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesRequest; + return ListGoogleAdsLinksRequest; })(); - v1alpha.ListAccountSummariesResponse = (function() { + v1alpha.ListGoogleAdsLinksResponse = (function() { /** - * Properties of a ListAccountSummariesResponse. + * Properties of a ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesResponse - * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries - * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken + * @interface IListGoogleAdsLinksResponse + * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks + * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken */ /** - * Constructs a new ListAccountSummariesResponse. + * Constructs a new ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesResponse. - * @implements IListAccountSummariesResponse + * @classdesc Represents a ListGoogleAdsLinksResponse. + * @implements IListGoogleAdsLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set */ - function ListAccountSummariesResponse(properties) { - this.accountSummaries = []; + function ListGoogleAdsLinksResponse(properties) { + this.googleAdsLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14251,88 +14316,88 @@ } /** - * ListAccountSummariesResponse accountSummaries. - * @member {Array.} accountSummaries - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * ListGoogleAdsLinksResponse googleAdsLinks. + * @member {Array.} googleAdsLinks + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance */ - ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; + ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; /** - * ListAccountSummariesResponse nextPageToken. + * ListGoogleAdsLinksResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance */ - ListAccountSummariesResponse.prototype.nextPageToken = ""; + ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListAccountSummariesResponse instance using the specified properties. + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance */ - ListAccountSummariesResponse.create = function create(properties) { - return new ListAccountSummariesResponse(properties); + ListGoogleAdsLinksResponse.create = function create(properties) { + return new ListGoogleAdsLinksResponse(properties); }; /** - * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encode = function encode(message, writer) { + ListGoogleAdsLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.accountSummaries != null && message.accountSummaries.length) - for (var i = 0; i < message.accountSummaries.length; ++i) - $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.googleAdsLinks != null && message.googleAdsLinks.length) + for (var i = 0; i < message.googleAdsLinks.length; ++i) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[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 ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decode = function decode(reader, length) { + ListGoogleAdsLinksResponse.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.analytics.admin.v1alpha.ListAccountSummariesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.accountSummaries && message.accountSummaries.length)) - message.accountSummaries = []; - message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -14346,39 +14411,39 @@ }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesResponse message. + * Verifies a ListGoogleAdsLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesResponse.verify = function verify(message) { + ListGoogleAdsLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { - if (!Array.isArray(message.accountSummaries)) - return "accountSummaries: array expected"; - for (var i = 0; i < message.accountSummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); + if (message.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { + if (!Array.isArray(message.googleAdsLinks)) + return "googleAdsLinks: array expected"; + for (var i = 0; i < message.googleAdsLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); if (error) - return "accountSummaries." + error; + return "googleAdsLinks." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -14388,25 +14453,25 @@ }; /** - * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse */ - ListAccountSummariesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) + ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); - if (object.accountSummaries) { - if (!Array.isArray(object.accountSummaries)) - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); - message.accountSummaries = []; - for (var i = 0; i < object.accountSummaries.length; ++i) { - if (typeof object.accountSummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); - message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + if (object.googleAdsLinks) { + if (!Array.isArray(object.googleAdsLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); + message.googleAdsLinks = []; + for (var i = 0; i < object.googleAdsLinks.length; ++i) { + if (typeof object.googleAdsLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); + message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); } } if (object.nextPageToken != null) @@ -14415,26 +14480,26 @@ }; /** - * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesResponse.toObject = function toObject(message, options) { + ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.accountSummaries = []; + object.googleAdsLinks = []; if (options.defaults) object.nextPageToken = ""; - if (message.accountSummaries && message.accountSummaries.length) { - object.accountSummaries = []; - for (var j = 0; j < message.accountSummaries.length; ++j) - object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); + if (message.googleAdsLinks && message.googleAdsLinks.length) { + object.googleAdsLinks = []; + for (var j = 0; j < message.googleAdsLinks.length; ++j) + object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -14442,48 +14507,37 @@ }; /** - * Converts this ListAccountSummariesResponse to JSON. + * Converts this ListGoogleAdsLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance * @returns {Object.} JSON object */ - ListAccountSummariesResponse.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesResponse; + return ListGoogleAdsLinksResponse; })(); - v1alpha.SearchChangeHistoryEventsRequest = (function() { + v1alpha.GetDataSharingSettingsRequest = (function() { /** - * Properties of a SearchChangeHistoryEventsRequest. + * Properties of a GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface ISearchChangeHistoryEventsRequest - * @property {string|null} [account] SearchChangeHistoryEventsRequest account - * @property {string|null} [property] SearchChangeHistoryEventsRequest property - * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType - * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action - * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail - * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime - * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime - * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize - * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken + * @interface IGetDataSharingSettingsRequest + * @property {string|null} [name] GetDataSharingSettingsRequest name */ /** - * Constructs a new SearchChangeHistoryEventsRequest. + * Constructs a new GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a SearchChangeHistoryEventsRequest. - * @implements ISearchChangeHistoryEventsRequest + * @classdesc Represents a GetDataSharingSettingsRequest. + * @implements IGetDataSharingSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set */ - function SearchChangeHistoryEventsRequest(properties) { - this.resourceType = []; - this.action = []; - this.actorEmail = []; + function GetDataSharingSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14491,204 +14545,75 @@ } /** - * SearchChangeHistoryEventsRequest account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.account = ""; - - /** - * SearchChangeHistoryEventsRequest property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.property = ""; - - /** - * SearchChangeHistoryEventsRequest resourceType. - * @member {Array.} resourceType - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest action. - * @member {Array.} action - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest actorEmail. - * @member {Array.} actorEmail - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest earliestChangeTime. - * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; - - /** - * SearchChangeHistoryEventsRequest latestChangeTime. - * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; - - /** - * SearchChangeHistoryEventsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.pageSize = 0; - - /** - * SearchChangeHistoryEventsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * GetDataSharingSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance */ - SearchChangeHistoryEventsRequest.prototype.pageToken = ""; + GetDataSharingSettingsRequest.prototype.name = ""; /** - * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance */ - SearchChangeHistoryEventsRequest.create = function create(properties) { - return new SearchChangeHistoryEventsRequest(properties); + GetDataSharingSettingsRequest.create = function create(properties) { + return new GetDataSharingSettingsRequest(properties); }; /** - * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsRequest.encode = function encode(message, writer) { + GetDataSharingSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); - if (message.resourceType != null && message.resourceType.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (var i = 0; i < message.resourceType.length; ++i) - writer.int32(message.resourceType[i]); - writer.ldelim(); - } - if (message.action != null && message.action.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (var i = 0; i < message.action.length; ++i) - writer.int32(message.action[i]); - writer.ldelim(); - } - if (message.actorEmail != null && message.actorEmail.length) - for (var i = 0; i < message.actorEmail.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); - if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) - $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) - $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsRequest.decode = function decode(reader, length) { + GetDataSharingSettingsRequest.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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.account = reader.string(); - break; - case 2: - message.property = reader.string(); - break; - case 3: - if (!(message.resourceType && message.resourceType.length)) - message.resourceType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.resourceType.push(reader.int32()); - } else - message.resourceType.push(reader.int32()); - break; - case 4: - if (!(message.action && message.action.length)) - message.action = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.action.push(reader.int32()); - } else - message.action.push(reader.int32()); - break; - case 5: - if (!(message.actorEmail && message.actorEmail.length)) - message.actorEmail = []; - message.actorEmail.push(reader.string()); - break; - case 6: - message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.pageSize = reader.int32(); - break; - case 9: - message.pageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -14699,292 +14624,108 @@ }; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchChangeHistoryEventsRequest message. + * Verifies a GetDataSharingSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchChangeHistoryEventsRequest.verify = function verify(message) { + GetDataSharingSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.account != null && message.hasOwnProperty("account")) - if (!$util.isString(message.account)) - return "account: string expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) { - if (!Array.isArray(message.resourceType)) - return "resourceType: array expected"; - for (var i = 0; i < message.resourceType.length; ++i) - switch (message.resourceType[i]) { - default: - return "resourceType: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - } - if (message.action != null && message.hasOwnProperty("action")) { - if (!Array.isArray(message.action)) - return "action: array expected"; - for (var i = 0; i < message.action.length; ++i) - switch (message.action[i]) { - default: - return "action: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { - if (!Array.isArray(message.actorEmail)) - return "actorEmail: array expected"; - for (var i = 0; i < message.actorEmail.length; ++i) - if (!$util.isString(message.actorEmail[i])) - return "actorEmail: string[] expected"; - } - if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); - if (error) - return "earliestChangeTime." + error; - } - if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); - if (error) - return "latestChangeTime." + error; - } - 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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest */ - SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + GetDataSharingSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); - if (object.account != null) - message.account = String(object.account); - if (object.property != null) - message.property = String(object.property); - if (object.resourceType) { - if (!Array.isArray(object.resourceType)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.resourceType: array expected"); - message.resourceType = []; - for (var i = 0; i < object.resourceType.length; ++i) - switch (object.resourceType[i]) { - default: - case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": - case 0: - message.resourceType[i] = 0; - break; - case "ACCOUNT": - case 1: - message.resourceType[i] = 1; - break; - case "PROPERTY": - case 2: - message.resourceType[i] = 2; - break; - case "WEB_DATA_STREAM": - case 3: - message.resourceType[i] = 3; - break; - case "ANDROID_APP_DATA_STREAM": - case 4: - message.resourceType[i] = 4; - break; - case "IOS_APP_DATA_STREAM": - case 5: - message.resourceType[i] = 5; - break; - case "FIREBASE_LINK": - case 6: - message.resourceType[i] = 6; - break; - case "GOOGLE_ADS_LINK": - case 7: - message.resourceType[i] = 7; - break; - } - } - if (object.action) { - if (!Array.isArray(object.action)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.action: array expected"); - message.action = []; - for (var i = 0; i < object.action.length; ++i) - switch (object.action[i]) { - default: - case "ACTION_TYPE_UNSPECIFIED": - case 0: - message.action[i] = 0; - break; - case "CREATED": - case 1: - message.action[i] = 1; - break; - case "UPDATED": - case 2: - message.action[i] = 2; - break; - case "DELETED": - case 3: - message.action[i] = 3; - break; - } - } - if (object.actorEmail) { - if (!Array.isArray(object.actorEmail)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.actorEmail: array expected"); - message.actorEmail = []; - for (var i = 0; i < object.actorEmail.length; ++i) - message.actorEmail[i] = String(object.actorEmail[i]); - } - if (object.earliestChangeTime != null) { - if (typeof object.earliestChangeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); - message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); - } - if (object.latestChangeTime != null) { - if (typeof object.latestChangeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); - message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); - } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest + * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { + GetDataSharingSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.resourceType = []; - object.action = []; - object.actorEmail = []; - } - if (options.defaults) { - object.account = ""; - object.property = ""; - object.earliestChangeTime = null; - object.latestChangeTime = null; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.resourceType && message.resourceType.length) { - object.resourceType = []; - for (var j = 0; j < message.resourceType.length; ++j) - object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; - } - if (message.action && message.action.length) { - object.action = []; - for (var j = 0; j < message.action.length; ++j) - object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; - } - if (message.actorEmail && message.actorEmail.length) { - object.actorEmail = []; - for (var j = 0; j < message.actorEmail.length; ++j) - object.actorEmail[j] = message.actorEmail[j]; - } - if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) - object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); - if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) - object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SearchChangeHistoryEventsRequest to JSON. + * Converts this GetDataSharingSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance * @returns {Object.} JSON object */ - SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { + GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchChangeHistoryEventsRequest; + return GetDataSharingSettingsRequest; })(); - v1alpha.SearchChangeHistoryEventsResponse = (function() { + v1alpha.ListAccountSummariesRequest = (function() { /** - * Properties of a SearchChangeHistoryEventsResponse. + * Properties of a ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @interface ISearchChangeHistoryEventsResponse - * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents - * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken + * @interface IListAccountSummariesRequest + * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize + * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken */ /** - * Constructs a new SearchChangeHistoryEventsResponse. + * Constructs a new ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a SearchChangeHistoryEventsResponse. - * @implements ISearchChangeHistoryEventsResponse + * @classdesc Represents a ListAccountSummariesRequest. + * @implements IListAccountSummariesRequest * @constructor - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set */ - function SearchChangeHistoryEventsResponse(properties) { - this.changeHistoryEvents = []; + function ListAccountSummariesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14992,91 +14733,88 @@ } /** - * SearchChangeHistoryEventsResponse changeHistoryEvents. - * @member {Array.} changeHistoryEvents - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * ListAccountSummariesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; + ListAccountSummariesRequest.prototype.pageSize = 0; /** - * SearchChangeHistoryEventsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * ListAccountSummariesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; + ListAccountSummariesRequest.prototype.pageToken = ""; /** - * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * Creates a new ListAccountSummariesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance */ - SearchChangeHistoryEventsResponse.create = function create(properties) { - return new SearchChangeHistoryEventsResponse(properties); + ListAccountSummariesRequest.create = function create(properties) { + return new ListAccountSummariesRequest(properties); }; /** - * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsResponse.encode = function encode(message, writer) { + ListAccountSummariesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) - for (var i = 0; i < message.changeHistoryEvents.length; ++i) - $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.encode(message.changeHistoryEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.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); return writer; }; /** - * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsResponse.decode = function decode(reader, length) { + ListAccountSummariesRequest.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.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) - message.changeHistoryEvents = []; - message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); + message.pageSize = reader.int32(); break; case 2: - message.nextPageToken = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15087,284 +14825,118 @@ }; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { + ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchChangeHistoryEventsResponse message. + * Verifies a ListAccountSummariesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchChangeHistoryEventsResponse.verify = function verify(message) { + ListAccountSummariesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { - if (!Array.isArray(message.changeHistoryEvents)) - return "changeHistoryEvents: array expected"; - for (var i = 0; i < message.changeHistoryEvents.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); - if (error) - return "changeHistoryEvents." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: 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 SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest */ - SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + ListAccountSummariesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); - if (object.changeHistoryEvents) { - if (!Array.isArray(object.changeHistoryEvents)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); - message.changeHistoryEvents = []; - for (var i = 0; i < object.changeHistoryEvents.length; ++i) { - if (typeof object.changeHistoryEvents[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); - message.changeHistoryEvents[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); + 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 SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse + * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { + ListAccountSummariesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.changeHistoryEvents = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.changeHistoryEvents && message.changeHistoryEvents.length) { - object.changeHistoryEvents = []; - for (var j = 0; j < message.changeHistoryEvents.length; ++j) - object.changeHistoryEvents[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); + if (options.defaults) { + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 SearchChangeHistoryEventsResponse to JSON. + * Converts this ListAccountSummariesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance * @returns {Object.} JSON object */ - SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { + ListAccountSummariesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchChangeHistoryEventsResponse; + return ListAccountSummariesRequest; })(); - /** - * MaximumUserAccess enum. - * @name google.analytics.admin.v1alpha.MaximumUserAccess - * @enum {number} - * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value - * @property {number} NO_ACCESS=1 NO_ACCESS value - * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value - * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value - * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value - */ - v1alpha.MaximumUserAccess = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NO_ACCESS"] = 1; - values[valuesById[2] = "READ_AND_ANALYZE"] = 2; - values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; - values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; - return values; - })(); - - /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory - * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); - - /** - * ActorType enum. - * @name google.analytics.admin.v1alpha.ActorType - * @enum {number} - * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value - * @property {number} SUPPORT=3 SUPPORT value - */ - v1alpha.ActorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - values[valuesById[3] = "SUPPORT"] = 3; - return values; - })(); - - /** - * ActionType enum. - * @name google.analytics.admin.v1alpha.ActionType - * @enum {number} - * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value - * @property {number} CREATED=1 CREATED value - * @property {number} UPDATED=2 UPDATED value - * @property {number} DELETED=3 DELETED value - */ - v1alpha.ActionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATED"] = 1; - values[valuesById[2] = "UPDATED"] = 2; - values[valuesById[3] = "DELETED"] = 3; - return values; - })(); - - /** - * ChangeHistoryResourceType enum. - * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType - * @enum {number} - * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value - * @property {number} ACCOUNT=1 ACCOUNT value - * @property {number} PROPERTY=2 PROPERTY value - * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value - * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value - * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value - * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value - * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value - */ - v1alpha.ChangeHistoryResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACCOUNT"] = 1; - values[valuesById[2] = "PROPERTY"] = 2; - values[valuesById[3] = "WEB_DATA_STREAM"] = 3; - values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; - values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; - values[valuesById[6] = "FIREBASE_LINK"] = 6; - values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; - return values; - })(); - - v1alpha.Account = (function() { + v1alpha.ListAccountSummariesResponse = (function() { /** - * Properties of an Account. + * Properties of a ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAccount - * @property {string|null} [name] Account name - * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime - * @property {string|null} [displayName] Account displayName - * @property {string|null} [regionCode] Account regionCode - * @property {boolean|null} [deleted] Account deleted + * @interface IListAccountSummariesResponse + * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries + * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken */ /** - * Constructs a new Account. + * Constructs a new ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Account. - * @implements IAccount + * @classdesc Represents a ListAccountSummariesResponse. + * @implements IListAccountSummariesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set */ - function Account(properties) { + function ListAccountSummariesResponse(properties) { + this.accountSummaries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15372,143 +14944,94 @@ } /** - * Account name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.name = ""; - - /** - * Account createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.createTime = null; - - /** - * Account updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.updateTime = null; - - /** - * Account displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.displayName = ""; - - /** - * Account regionCode. - * @member {string} regionCode - * @memberof google.analytics.admin.v1alpha.Account + * ListAccountSummariesResponse accountSummaries. + * @member {Array.} accountSummaries + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance */ - Account.prototype.regionCode = ""; + ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; /** - * Account deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Account + * ListAccountSummariesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance */ - Account.prototype.deleted = false; + ListAccountSummariesResponse.prototype.nextPageToken = ""; /** - * Creates a new Account instance using the specified properties. + * Creates a new ListAccountSummariesResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Account} Account instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance */ - Account.create = function create(properties) { - return new Account(properties); + ListAccountSummariesResponse.create = function create(properties) { + return new ListAccountSummariesResponse(properties); }; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encode = function encode(message, writer) { + ListAccountSummariesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + if (message.accountSummaries != null && message.accountSummaries.length) + for (var i = 0; i < message.accountSummaries.length; ++i) + $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[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 Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @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) { + ListAccountSummariesResponse.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.analytics.admin.v1alpha.Account(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); break; case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; - case 4: - message.displayName = reader.string(); - break; - case 5: - message.regionCode = reader.string(); - break; - case 6: - message.deleted = reader.bool(); - break; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -15516,167 +15039,144 @@ }; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @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) { + ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Account message. + * Verifies a ListAccountSummariesResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @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) { + ListAccountSummariesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { + if (!Array.isArray(message.accountSummaries)) + return "accountSummaries: array expected"; + for (var i = 0; i < message.accountSummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); + if (error) + return "accountSummaries." + error; + } } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - if (!$util.isString(message.regionCode)) - return "regionCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an Account message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse */ - Account.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Account) + ListAccountSummariesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.Account(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); + if (object.accountSummaries) { + if (!Array.isArray(object.accountSummaries)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); + message.accountSummaries = []; + for (var i = 0; i < object.accountSummaries.length; ++i) { + if (typeof object.accountSummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); + message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); + } } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.regionCode != null) - message.regionCode = String(object.regionCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.Account} message Account + * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Account.toObject = function toObject(message, options) { + ListAccountSummariesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.regionCode = ""; - object.deleted = false; + if (options.arrays || options.defaults) + object.accountSummaries = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.accountSummaries && message.accountSummaries.length) { + object.accountSummaries = []; + for (var j = 0; j < message.accountSummaries.length; ++j) + object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - object.regionCode = message.regionCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this Account to JSON. + * Converts this ListAccountSummariesResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance * @returns {Object.} JSON object */ - Account.prototype.toJSON = function toJSON() { + ListAccountSummariesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Account; + return ListAccountSummariesResponse; })(); - v1alpha.Property = (function() { + v1alpha.SearchChangeHistoryEventsRequest = (function() { /** - * Properties of a Property. + * Properties of a SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IProperty - * @property {string|null} [name] Property name - * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime - * @property {string|null} [parent] Property parent - * @property {string|null} [displayName] Property displayName - * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory - * @property {string|null} [timeZone] Property timeZone - * @property {string|null} [currencyCode] Property currencyCode - * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime - * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + * @interface ISearchChangeHistoryEventsRequest + * @property {string|null} [account] SearchChangeHistoryEventsRequest account + * @property {string|null} [property] SearchChangeHistoryEventsRequest property + * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType + * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action + * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail + * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime + * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime + * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize + * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken */ /** - * Constructs a new Property. + * Constructs a new SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a Property. - * @implements IProperty + * @classdesc Represents a SearchChangeHistoryEventsRequest. + * @implements ISearchChangeHistoryEventsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set */ - function Property(properties) { + function SearchChangeHistoryEventsRequest(properties) { + this.resourceType = []; + this.action = []; + this.actorEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15684,192 +15184,204 @@ } /** - * Property name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.name = ""; + SearchChangeHistoryEventsRequest.prototype.account = ""; /** - * Property createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.createTime = null; + SearchChangeHistoryEventsRequest.prototype.property = ""; /** - * Property updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest resourceType. + * @member {Array.} resourceType + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.updateTime = null; + SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; /** - * Property parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest action. + * @member {Array.} action + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.parent = ""; + SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; /** - * Property displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest actorEmail. + * @member {Array.} actorEmail + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.displayName = ""; + SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; /** - * Property industryCategory. - * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest earliestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.industryCategory = 0; + SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; /** - * Property timeZone. - * @member {string} timeZone - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest latestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.timeZone = ""; + SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; /** - * Property currencyCode. - * @member {string} currencyCode - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.currencyCode = ""; + SearchChangeHistoryEventsRequest.prototype.pageSize = 0; /** - * Property deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.analytics.admin.v1alpha.Property + * SearchChangeHistoryEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - Property.prototype.deleteTime = null; + SearchChangeHistoryEventsRequest.prototype.pageToken = ""; /** - * Property expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.expireTime = null; - - /** - * Creates a new Property instance using the specified properties. + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Property} Property instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance */ - Property.create = function create(properties) { - return new Property(properties); + SearchChangeHistoryEventsRequest.create = function create(properties) { + return new SearchChangeHistoryEventsRequest(properties); }; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encode = function encode(message, writer) { + SearchChangeHistoryEventsRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); - if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); - if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); + if (message.resourceType != null && message.resourceType.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.resourceType.length; ++i) + writer.int32(message.resourceType[i]); + writer.ldelim(); + } + if (message.action != null && message.action.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.action.length; ++i) + writer.int32(message.action[i]); + writer.ldelim(); + } + if (message.actorEmail != null && message.actorEmail.length) + for (var i = 0; i < message.actorEmail.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); + if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); return writer; }; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decode = function decode(reader, length) { + SearchChangeHistoryEventsRequest.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.analytics.admin.v1alpha.Property(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.account = reader.string(); + break; + case 2: + message.property = reader.string(); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.resourceType && message.resourceType.length)) + message.resourceType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.resourceType.push(reader.int32()); + } else + message.resourceType.push(reader.int32()); break; case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); + if (!(message.action && message.action.length)) + message.action = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.action.push(reader.int32()); + } else + message.action.push(reader.int32()); break; case 5: - message.displayName = reader.string(); + if (!(message.actorEmail && message.actorEmail.length)) + message.actorEmail = []; + message.actorEmail.push(reader.string()); break; case 6: - message.industryCategory = reader.int32(); + message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 7: - message.timeZone = reader.string(); + message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 8: - message.currencyCode = reader.string(); - break; - case 11: - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; - case 12: - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 9: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15880,343 +15392,317 @@ }; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decodeDelimited = function decodeDelimited(reader) { + SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Property message. + * Verifies a SearchChangeHistoryEventsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Property.verify = function verify(message) { + SearchChangeHistoryEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) { + if (!Array.isArray(message.resourceType)) + return "resourceType: array expected"; + for (var i = 0; i < message.resourceType.length; ++i) + switch (message.resourceType[i]) { + default: + return "resourceType: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + break; + } } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.action != null && message.hasOwnProperty("action")) { + if (!Array.isArray(message.action)) + return "action: array expected"; + for (var i = 0; i < message.action.length; ++i) + switch (message.action[i]) { + default: + return "action: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - switch (message.industryCategory) { - default: - return "industryCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - break; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - if (!$util.isString(message.currencyCode)) - return "currencyCode: string expected"; - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { + if (!Array.isArray(message.actorEmail)) + return "actorEmail: array expected"; + for (var i = 0; i < message.actorEmail.length; ++i) + if (!$util.isString(message.actorEmail[i])) + return "actorEmail: string[] expected"; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); if (error) - return "deleteTime." + error; + return "earliestChangeTime." + error; } - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); if (error) - return "expireTime." + error; + return "latestChangeTime." + error; } - return null; + 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 Property message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest */ - Property.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Property) + SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.Property(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + if (object.account != null) + message.account = String(object.account); + if (object.property != null) + message.property = String(object.property); + if (object.resourceType) { + if (!Array.isArray(object.resourceType)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.resourceType: array expected"); + message.resourceType = []; + for (var i = 0; i < object.resourceType.length; ++i) + switch (object.resourceType[i]) { + default: + case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType[i] = 0; + break; + case "ACCOUNT": + case 1: + message.resourceType[i] = 1; + break; + case "PROPERTY": + case 2: + message.resourceType[i] = 2; + break; + case "WEB_DATA_STREAM": + case 3: + message.resourceType[i] = 3; + break; + case "ANDROID_APP_DATA_STREAM": + case 4: + message.resourceType[i] = 4; + break; + case "IOS_APP_DATA_STREAM": + case 5: + message.resourceType[i] = 5; + break; + case "FIREBASE_LINK": + case 6: + message.resourceType[i] = 6; + break; + case "GOOGLE_ADS_LINK": + case 7: + message.resourceType[i] = 7; + break; + case "GOOGLE_SIGNALS_SETTINGS": + case 8: + message.resourceType[i] = 8; + break; + case "CONVERSION_EVENT": + case 9: + message.resourceType[i] = 9; + break; + case "MEASUREMENT_PROTOCOL_SECRET": + case 10: + message.resourceType[i] = 10; + break; + case "CUSTOM_DIMENSION": + case 11: + message.resourceType[i] = 11; + break; + case "CUSTOM_METRIC": + case 12: + message.resourceType[i] = 12; + break; + } } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.action) { + if (!Array.isArray(object.action)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.action: array expected"); + message.action = []; + for (var i = 0; i < object.action.length; ++i) + switch (object.action[i]) { + default: + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action[i] = 0; + break; + case "CREATED": + case 1: + message.action[i] = 1; + break; + case "UPDATED": + case 2: + message.action[i] = 2; + break; + case "DELETED": + case 3: + message.action[i] = 3; + break; + } } - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.industryCategory) { - case "INDUSTRY_CATEGORY_UNSPECIFIED": - case 0: - message.industryCategory = 0; - break; - case "AUTOMOTIVE": - case 1: - message.industryCategory = 1; - break; - case "BUSINESS_AND_INDUSTRIAL_MARKETS": - case 2: - message.industryCategory = 2; - break; - case "FINANCE": - case 3: - message.industryCategory = 3; - break; - case "HEALTHCARE": - case 4: - message.industryCategory = 4; - break; - case "TECHNOLOGY": - case 5: - message.industryCategory = 5; - break; - case "TRAVEL": - case 6: - message.industryCategory = 6; - break; - case "OTHER": - case 7: - message.industryCategory = 7; - break; - case "ARTS_AND_ENTERTAINMENT": - case 8: - message.industryCategory = 8; - break; - case "BEAUTY_AND_FITNESS": - case 9: - message.industryCategory = 9; - break; - case "BOOKS_AND_LITERATURE": - case 10: - message.industryCategory = 10; - break; - case "FOOD_AND_DRINK": - case 11: - message.industryCategory = 11; - break; - case "GAMES": - case 12: - message.industryCategory = 12; - break; - case "HOBBIES_AND_LEISURE": - case 13: - message.industryCategory = 13; - break; - case "HOME_AND_GARDEN": - case 14: - message.industryCategory = 14; - break; - case "INTERNET_AND_TELECOM": - case 15: - message.industryCategory = 15; - break; - case "LAW_AND_GOVERNMENT": - case 16: - message.industryCategory = 16; - break; - case "NEWS": - case 17: - message.industryCategory = 17; - break; - case "ONLINE_COMMUNITIES": - case 18: - message.industryCategory = 18; - break; - case "PEOPLE_AND_SOCIETY": - case 19: - message.industryCategory = 19; - break; - case "PETS_AND_ANIMALS": - case 20: - message.industryCategory = 20; - break; - case "REAL_ESTATE": - case 21: - message.industryCategory = 21; - break; - case "REFERENCE": - case 22: - message.industryCategory = 22; - break; - case "SCIENCE": - case 23: - message.industryCategory = 23; - break; - case "SPORTS": - case 24: - message.industryCategory = 24; - break; - case "JOBS_AND_EDUCATION": - case 25: - message.industryCategory = 25; - break; - case "SHOPPING": - case 26: - message.industryCategory = 26; - break; + if (object.actorEmail) { + if (!Array.isArray(object.actorEmail)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.actorEmail: array expected"); + message.actorEmail = []; + for (var i = 0; i < object.actorEmail.length; ++i) + message.actorEmail[i] = String(object.actorEmail[i]); } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.currencyCode != null) - message.currencyCode = String(object.currencyCode); - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + if (object.earliestChangeTime != null) { + if (typeof object.earliestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); + message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); } - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + if (object.latestChangeTime != null) { + if (typeof object.latestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); + message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); } + 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 Property message. Also converts values to other types if specified. + * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Property.toObject = function toObject(message, options) { + SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.parent = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; - object.timeZone = ""; - object.currencyCode = ""; - object.deleteTime = null; - object.expireTime = null; + if (options.arrays || options.defaults) { + object.resourceType = []; + object.action = []; + object.actorEmail = []; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - object.currencyCode = message.currencyCode; - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (options.defaults) { + object.account = ""; + object.property = ""; + object.earliestChangeTime = null; + object.latestChangeTime = null; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.resourceType && message.resourceType.length) { + object.resourceType = []; + for (var j = 0; j < message.resourceType.length; ++j) + object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; + } + if (message.action && message.action.length) { + object.action = []; + for (var j = 0; j < message.action.length; ++j) + object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; + } + if (message.actorEmail && message.actorEmail.length) { + object.actorEmail = []; + for (var j = 0; j < message.actorEmail.length; ++j) + object.actorEmail[j] = message.actorEmail[j]; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) + object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) + object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); + 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 Property to JSON. + * Converts this SearchChangeHistoryEventsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance * @returns {Object.} JSON object */ - Property.prototype.toJSON = function toJSON() { + SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Property; + return SearchChangeHistoryEventsRequest; })(); - v1alpha.AndroidAppDataStream = (function() { + v1alpha.SearchChangeHistoryEventsResponse = (function() { /** - * Properties of an AndroidAppDataStream. + * Properties of a SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAndroidAppDataStream - * @property {string|null} [name] AndroidAppDataStream name - * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime - * @property {string|null} [packageName] AndroidAppDataStream packageName - * @property {string|null} [displayName] AndroidAppDataStream displayName + * @interface ISearchChangeHistoryEventsResponse + * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents + * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken */ /** - * Constructs a new AndroidAppDataStream. + * Constructs a new SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AndroidAppDataStream. - * @implements IAndroidAppDataStream + * @classdesc Represents a SearchChangeHistoryEventsResponse. + * @implements ISearchChangeHistoryEventsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set */ - function AndroidAppDataStream(properties) { + function SearchChangeHistoryEventsResponse(properties) { + this.changeHistoryEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16224,140 +15710,91 @@ } /** - * AndroidAppDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.name = ""; - - /** - * AndroidAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.firebaseAppId = ""; - - /** - * AndroidAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.createTime = null; - - /** - * AndroidAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.updateTime = null; - - /** - * AndroidAppDataStream packageName. - * @member {string} packageName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * SearchChangeHistoryEventsResponse changeHistoryEvents. + * @member {Array.} changeHistoryEvents + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - AndroidAppDataStream.prototype.packageName = ""; + SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; /** - * AndroidAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * SearchChangeHistoryEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - AndroidAppDataStream.prototype.displayName = ""; + SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance */ - AndroidAppDataStream.create = function create(properties) { - return new AndroidAppDataStream(properties); + SearchChangeHistoryEventsResponse.create = function create(properties) { + return new SearchChangeHistoryEventsResponse(properties); }; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encode = function encode(message, writer) { + SearchChangeHistoryEventsResponse.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) + for (var i = 0; i < message.changeHistoryEvents.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.encode(message.changeHistoryEvents[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 AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decode = function decode(reader, length) { + SearchChangeHistoryEventsResponse.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.analytics.admin.v1alpha.AndroidAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) + message.changeHistoryEvents = []; + message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); break; case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.packageName = reader.string(); - break; - case 6: - message.displayName = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -16368,163 +15805,133 @@ }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AndroidAppDataStream message. + * Verifies a SearchChangeHistoryEventsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AndroidAppDataStream.verify = function verify(message) { + SearchChangeHistoryEventsResponse.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { + if (!Array.isArray(message.changeHistoryEvents)) + return "changeHistoryEvents: array expected"; + for (var i = 0; i < message.changeHistoryEvents.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); + if (error) + return "changeHistoryEvents." + error; + } } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.packageName != null && message.hasOwnProperty("packageName")) - if (!$util.isString(message.packageName)) - return "packageName: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse */ - AndroidAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + if (object.changeHistoryEvents) { + if (!Array.isArray(object.changeHistoryEvents)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); + message.changeHistoryEvents = []; + for (var i = 0; i < object.changeHistoryEvents.length; ++i) { + if (typeof object.changeHistoryEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); + message.changeHistoryEvents[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); + } } - if (object.packageName != null) - message.packageName = String(object.packageName); - if (object.displayName != null) - message.displayName = String(object.displayName); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AndroidAppDataStream.toObject = function toObject(message, options) { + SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.packageName = ""; - object.displayName = ""; + if (options.arrays || options.defaults) + object.changeHistoryEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.changeHistoryEvents && message.changeHistoryEvents.length) { + object.changeHistoryEvents = []; + for (var j = 0; j < message.changeHistoryEvents.length; ++j) + object.changeHistoryEvents[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.packageName != null && message.hasOwnProperty("packageName")) - object.packageName = message.packageName; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this SearchChangeHistoryEventsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance * @returns {Object.} JSON object */ - AndroidAppDataStream.prototype.toJSON = function toJSON() { + SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AndroidAppDataStream; + return SearchChangeHistoryEventsResponse; })(); - v1alpha.IosAppDataStream = (function() { + v1alpha.GetMeasurementProtocolSecretRequest = (function() { /** - * Properties of an IosAppDataStream. + * Properties of a GetMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IIosAppDataStream - * @property {string|null} [name] IosAppDataStream name - * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime - * @property {string|null} [bundleId] IosAppDataStream bundleId - * @property {string|null} [displayName] IosAppDataStream displayName + * @interface IGetMeasurementProtocolSecretRequest + * @property {string|null} [name] GetMeasurementProtocolSecretRequest name */ /** - * Constructs a new IosAppDataStream. + * Constructs a new GetMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an IosAppDataStream. - * @implements IIosAppDataStream + * @classdesc Represents a GetMeasurementProtocolSecretRequest. + * @implements IGetMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function IosAppDataStream(properties) { + function GetMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16532,141 +15939,76 @@ } /** - * IosAppDataStream name. + * GetMeasurementProtocolSecretRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.name = ""; - - /** - * IosAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.firebaseAppId = ""; - - /** - * IosAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @instance */ - IosAppDataStream.prototype.createTime = null; - - /** - * IosAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.updateTime = null; - - /** - * IosAppDataStream bundleId. - * @member {string} bundleId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.bundleId = ""; - - /** - * IosAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.displayName = ""; + GetMeasurementProtocolSecretRequest.prototype.name = ""; /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest instance */ - IosAppDataStream.create = function create(properties) { - return new IosAppDataStream(properties); + GetMeasurementProtocolSecretRequest.create = function create(properties) { + return new GetMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encode = function encode(message, writer) { + GetMeasurementProtocolSecretRequest.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); return writer; }; /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + GetMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decode = function decode(reader, length) { + GetMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.IosAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.bundleId = reader.string(); - break; - case 6: - message.displayName = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -16676,164 +16018,108 @@ }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + GetMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IosAppDataStream message. + * Verifies a GetMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IosAppDataStream.verify = function verify(message) { + GetMeasurementProtocolSecretRequest.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - if (!$util.isString(message.bundleId)) - return "bundleId: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest */ - IosAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + GetMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + var message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); if (object.name != null) message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.bundleId != null) - message.bundleId = String(object.bundleId); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IosAppDataStream.toObject = function toObject(message, options) { + GetMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.bundleId = ""; - object.displayName = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - object.bundleId = message.bundleId; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; return object; }; /** - * Converts this IosAppDataStream to JSON. + * Converts this GetMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - IosAppDataStream.prototype.toJSON = function toJSON() { + GetMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IosAppDataStream; + return GetMeasurementProtocolSecretRequest; })(); - v1alpha.WebDataStream = (function() { + v1alpha.CreateMeasurementProtocolSecretRequest = (function() { /** - * Properties of a WebDataStream. + * Properties of a CreateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IWebDataStream - * @property {string|null} [name] WebDataStream name - * @property {string|null} [measurementId] WebDataStream measurementId - * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime - * @property {string|null} [defaultUri] WebDataStream defaultUri - * @property {string|null} [displayName] WebDataStream displayName + * @interface ICreateMeasurementProtocolSecretRequest + * @property {string|null} [parent] CreateMeasurementProtocolSecretRequest parent + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] CreateMeasurementProtocolSecretRequest measurementProtocolSecret */ /** - * Constructs a new WebDataStream. + * Constructs a new CreateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a WebDataStream. - * @implements IWebDataStream + * @classdesc Represents a CreateMeasurementProtocolSecretRequest. + * @implements ICreateMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function WebDataStream(properties) { + function CreateMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16841,153 +16127,88 @@ } /** - * WebDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.name = ""; - - /** - * WebDataStream measurementId. - * @member {string} measurementId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.measurementId = ""; - - /** - * WebDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.firebaseAppId = ""; - - /** - * WebDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.createTime = null; - - /** - * WebDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.updateTime = null; - - /** - * WebDataStream defaultUri. - * @member {string} defaultUri - * @memberof google.analytics.admin.v1alpha.WebDataStream + * CreateMeasurementProtocolSecretRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance */ - WebDataStream.prototype.defaultUri = ""; + CreateMeasurementProtocolSecretRequest.prototype.parent = ""; /** - * WebDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.WebDataStream + * CreateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance */ - WebDataStream.prototype.displayName = ""; + CreateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest instance */ - WebDataStream.create = function create(properties) { - return new WebDataStream(properties); + CreateMeasurementProtocolSecretRequest.create = function create(properties) { + return new CreateMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encode = function encode(message, writer) { + CreateMeasurementProtocolSecretRequest.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + CreateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decode = function decode(reader, length) { + CreateMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.WebDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.measurementId = reader.string(); - break; - case 3: - message.firebaseAppId = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.defaultUri = reader.string(); - break; - case 7: - message.displayName = reader.string(); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -16998,169 +16219,121 @@ }; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decodeDelimited = function decodeDelimited(reader) { + CreateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebDataStream message. + * Verifies a CreateMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebDataStream.verify = function verify(message) { + CreateMeasurementProtocolSecretRequest.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.measurementId != null && message.hasOwnProperty("measurementId")) - if (!$util.isString(message.measurementId)) - return "measurementId: string expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); if (error) - return "updateTime." + error; + return "measurementProtocolSecret." + error; } - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - if (!$util.isString(message.defaultUri)) - return "defaultUri: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest */ - WebDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + CreateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.measurementId != null) - message.measurementId = String(object.measurementId); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); } - if (object.defaultUri != null) - message.defaultUri = String(object.defaultUri); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebDataStream.toObject = function toObject(message, options) { + CreateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.measurementId = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.defaultUri = ""; - object.displayName = ""; + object.parent = ""; + object.measurementProtocolSecret = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - object.measurementId = message.measurementId; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - object.defaultUri = message.defaultUri; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); return object; }; /** - * Converts this WebDataStream to JSON. + * Converts this CreateMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - WebDataStream.prototype.toJSON = function toJSON() { + CreateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WebDataStream; + return CreateMeasurementProtocolSecretRequest; })(); - v1alpha.UserLink = (function() { + v1alpha.DeleteMeasurementProtocolSecretRequest = (function() { /** - * Properties of a UserLink. + * Properties of a DeleteMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUserLink - * @property {string|null} [name] UserLink name - * @property {string|null} [emailAddress] UserLink emailAddress - * @property {Array.|null} [directRoles] UserLink directRoles + * @interface IDeleteMeasurementProtocolSecretRequest + * @property {string|null} [name] DeleteMeasurementProtocolSecretRequest name */ /** - * Constructs a new UserLink. + * Constructs a new DeleteMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a UserLink. - * @implements IUserLink + * @classdesc Represents a DeleteMeasurementProtocolSecretRequest. + * @implements IDeleteMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function UserLink(properties) { - this.directRoles = []; + function DeleteMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17168,105 +16341,76 @@ } /** - * UserLink name. + * DeleteMeasurementProtocolSecretRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @instance */ - UserLink.prototype.name = ""; + DeleteMeasurementProtocolSecretRequest.prototype.name = ""; /** - * UserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.UserLink - * @instance + * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest instance */ - UserLink.prototype.emailAddress = ""; + DeleteMeasurementProtocolSecretRequest.create = function create(properties) { + return new DeleteMeasurementProtocolSecretRequest(properties); + }; /** - * UserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.UserLink - * @instance + * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - UserLink.prototype.directRoles = $util.emptyArray; - - /** - * Creates a new UserLink instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.UserLink - * @static - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance - */ - UserLink.create = function create(properties) { - return new UserLink(properties); - }; - - /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.UserLink - * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserLink.encode = function encode(message, writer) { + DeleteMeasurementProtocolSecretRequest.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); return writer; }; /** - * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decode = function decode(reader, length) { + DeleteMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.UserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.emailAddress = reader.string(); - break; - case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -17276,142 +16420,108 @@ }; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decodeDelimited = function decodeDelimited(reader) { + DeleteMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserLink message. + * Verifies a DeleteMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserLink.verify = function verify(message) { + DeleteMeasurementProtocolSecretRequest.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.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; - } return null; }; /** - * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest */ - UserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + DeleteMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UserLink(); + var message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); if (object.name != null) message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); - } return message; }; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserLink.toObject = function toObject(message, options) { + DeleteMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.directRoles = []; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.emailAddress = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; - } return object; }; /** - * Converts this UserLink to JSON. + * Converts this DeleteMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - UserLink.prototype.toJSON = function toJSON() { + DeleteMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UserLink; + return DeleteMeasurementProtocolSecretRequest; })(); - v1alpha.AuditUserLink = (function() { + v1alpha.UpdateMeasurementProtocolSecretRequest = (function() { /** - * Properties of an AuditUserLink. + * Properties of an UpdateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLink - * @property {string|null} [name] AuditUserLink name - * @property {string|null} [emailAddress] AuditUserLink emailAddress - * @property {Array.|null} [directRoles] AuditUserLink directRoles - * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + * @interface IUpdateMeasurementProtocolSecretRequest + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] UpdateMeasurementProtocolSecretRequest measurementProtocolSecret + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMeasurementProtocolSecretRequest updateMask */ /** - * Constructs a new AuditUserLink. + * Constructs a new UpdateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLink. - * @implements IAuditUserLink + * @classdesc Represents an UpdateMeasurementProtocolSecretRequest. + * @implements IUpdateMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function AuditUserLink(properties) { - this.directRoles = []; - this.effectiveRoles = []; + function UpdateMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17419,120 +16529,88 @@ } /** - * AuditUserLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.AuditUserLink - * @instance - */ - AuditUserLink.prototype.name = ""; - - /** - * AuditUserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.AuditUserLink - * @instance - */ - AuditUserLink.prototype.emailAddress = ""; - - /** - * AuditUserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @instance */ - AuditUserLink.prototype.directRoles = $util.emptyArray; + UpdateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; /** - * AuditUserLink effectiveRoles. - * @member {Array.} effectiveRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * UpdateMeasurementProtocolSecretRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @instance */ - AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + UpdateMeasurementProtocolSecretRequest.prototype.updateMask = null; /** - * Creates a new AuditUserLink instance using the specified properties. + * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest instance */ - AuditUserLink.create = function create(properties) { - return new AuditUserLink(properties); + UpdateMeasurementProtocolSecretRequest.create = function create(properties) { + return new UpdateMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encode = function encode(message, writer) { + UpdateMeasurementProtocolSecretRequest.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); - if (message.effectiveRoles != null && message.effectiveRoles.length) - for (var i = 0; i < message.effectiveRoles.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, 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 AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + UpdateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decode = function decode(reader, length) { + UpdateMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.AuditUserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); break; case 2: - message.emailAddress = reader.string(); - break; - case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); - break; - case 4: - if (!(message.effectiveRoles && message.effectiveRoles.length)) - message.effectiveRoles = []; - message.effectiveRoles.push(reader.string()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17543,169 +16621,128 @@ }; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + UpdateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuditUserLink message. + * Verifies an UpdateMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserLink.verify = function verify(message) { + UpdateMeasurementProtocolSecretRequest.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.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; } - if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { - if (!Array.isArray(message.effectiveRoles)) - return "effectiveRoles: array expected"; - for (var i = 0; i < message.effectiveRoles.length; ++i) - if (!$util.isString(message.effectiveRoles[i])) - return "effectiveRoles: string[] expected"; + 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 AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest */ - AuditUserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + UpdateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); - if (object.name != null) - message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); + var message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); } - if (object.effectiveRoles) { - if (!Array.isArray(object.effectiveRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); - message.effectiveRoles = []; - for (var i = 0; i < object.effectiveRoles.length; ++i) - message.effectiveRoles[i] = String(object.effectiveRoles[i]); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserLink.toObject = function toObject(message, options) { + UpdateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.directRoles = []; - object.effectiveRoles = []; - } if (options.defaults) { - object.name = ""; - object.emailAddress = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; - } - if (message.effectiveRoles && message.effectiveRoles.length) { - object.effectiveRoles = []; - for (var j = 0; j < message.effectiveRoles.length; ++j) - object.effectiveRoles[j] = message.effectiveRoles[j]; + object.measurementProtocolSecret = null; + object.updateMask = null; } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this AuditUserLink to JSON. + * Converts this UpdateMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - AuditUserLink.prototype.toJSON = function toJSON() { + UpdateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuditUserLink; + return UpdateMeasurementProtocolSecretRequest; })(); - v1alpha.EnhancedMeasurementSettings = (function() { + v1alpha.ListMeasurementProtocolSecretsRequest = (function() { /** - * Properties of an EnhancedMeasurementSettings. + * Properties of a ListMeasurementProtocolSecretsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IEnhancedMeasurementSettings - * @property {string|null} [name] EnhancedMeasurementSettings name - * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled - * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled - * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled - * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled - * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled - * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled - * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled - * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled - * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled - * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter - * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter + * @interface IListMeasurementProtocolSecretsRequest + * @property {string|null} [parent] ListMeasurementProtocolSecretsRequest parent + * @property {number|null} [pageSize] ListMeasurementProtocolSecretsRequest pageSize + * @property {string|null} [pageToken] ListMeasurementProtocolSecretsRequest pageToken */ /** - * Constructs a new EnhancedMeasurementSettings. + * Constructs a new ListMeasurementProtocolSecretsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an EnhancedMeasurementSettings. - * @implements IEnhancedMeasurementSettings + * @classdesc Represents a ListMeasurementProtocolSecretsRequest. + * @implements IListMeasurementProtocolSecretsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set */ - function EnhancedMeasurementSettings(properties) { + function ListMeasurementProtocolSecretsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17713,218 +16750,101 @@ } /** - * EnhancedMeasurementSettings name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.name = ""; - - /** - * EnhancedMeasurementSettings streamEnabled. - * @member {boolean} streamEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.streamEnabled = false; - - /** - * EnhancedMeasurementSettings pageViewsEnabled. - * @member {boolean} pageViewsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; - - /** - * EnhancedMeasurementSettings scrollsEnabled. - * @member {boolean} scrollsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.scrollsEnabled = false; - - /** - * EnhancedMeasurementSettings outboundClicksEnabled. - * @member {boolean} outboundClicksEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; - - /** - * EnhancedMeasurementSettings siteSearchEnabled. - * @member {boolean} siteSearchEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; - - /** - * EnhancedMeasurementSettings videoEngagementEnabled. - * @member {boolean} videoEngagementEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; - - /** - * EnhancedMeasurementSettings fileDownloadsEnabled. - * @member {boolean} fileDownloadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; - - /** - * EnhancedMeasurementSettings pageLoadsEnabled. - * @member {boolean} pageLoadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; - - /** - * EnhancedMeasurementSettings pageChangesEnabled. - * @member {boolean} pageChangesEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * ListMeasurementProtocolSecretsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance */ - EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; + ListMeasurementProtocolSecretsRequest.prototype.parent = ""; /** - * EnhancedMeasurementSettings searchQueryParameter. - * @member {string} searchQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * ListMeasurementProtocolSecretsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance */ - EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; + ListMeasurementProtocolSecretsRequest.prototype.pageSize = 0; /** - * EnhancedMeasurementSettings uriQueryParameter. - * @member {string} uriQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * ListMeasurementProtocolSecretsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance */ - EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; + ListMeasurementProtocolSecretsRequest.prototype.pageToken = ""; /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest instance */ - EnhancedMeasurementSettings.create = function create(properties) { - return new EnhancedMeasurementSettings(properties); + ListMeasurementProtocolSecretsRequest.create = function create(properties) { + return new ListMeasurementProtocolSecretsRequest(properties); }; /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encode = function encode(message, writer) { + ListMeasurementProtocolSecretsRequest.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); - if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); - if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); - if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); - if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); - if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); - if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); - if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); - if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); - if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); - if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); + 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 EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + ListMeasurementProtocolSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.decode = function decode(reader, length) { + ListMeasurementProtocolSecretsRequest.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.streamEnabled = reader.bool(); + message.pageSize = reader.int32(); break; case 3: - message.pageViewsEnabled = reader.bool(); - break; - case 4: - message.scrollsEnabled = reader.bool(); - break; - case 5: - message.outboundClicksEnabled = reader.bool(); - break; - case 7: - message.siteSearchEnabled = reader.bool(); - break; - case 9: - message.videoEngagementEnabled = reader.bool(); - break; - case 10: - message.fileDownloadsEnabled = reader.bool(); - break; - case 12: - message.pageLoadsEnabled = reader.bool(); - break; - case 13: - message.pageChangesEnabled = reader.bool(); - break; - case 16: - message.searchQueryParameter = reader.string(); - break; - case 17: - message.uriQueryParameter = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -17935,199 +16855,126 @@ }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + ListMeasurementProtocolSecretsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnhancedMeasurementSettings message. + * Verifies a ListMeasurementProtocolSecretsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnhancedMeasurementSettings.verify = function verify(message) { + ListMeasurementProtocolSecretsRequest.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - if (typeof message.streamEnabled !== "boolean") - return "streamEnabled: boolean expected"; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - if (typeof message.pageViewsEnabled !== "boolean") - return "pageViewsEnabled: boolean expected"; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - if (typeof message.scrollsEnabled !== "boolean") - return "scrollsEnabled: boolean expected"; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - if (typeof message.outboundClicksEnabled !== "boolean") - return "outboundClicksEnabled: boolean expected"; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - if (typeof message.siteSearchEnabled !== "boolean") - return "siteSearchEnabled: boolean expected"; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - if (typeof message.videoEngagementEnabled !== "boolean") - return "videoEngagementEnabled: boolean expected"; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - if (typeof message.fileDownloadsEnabled !== "boolean") - return "fileDownloadsEnabled: boolean expected"; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - if (typeof message.pageLoadsEnabled !== "boolean") - return "pageLoadsEnabled: boolean expected"; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - if (typeof message.pageChangesEnabled !== "boolean") - return "pageChangesEnabled: boolean expected"; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - if (!$util.isString(message.searchQueryParameter)) - return "searchQueryParameter: string expected"; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - if (!$util.isString(message.uriQueryParameter)) - return "uriQueryParameter: string 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 an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest */ - EnhancedMeasurementSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + ListMeasurementProtocolSecretsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.streamEnabled != null) - message.streamEnabled = Boolean(object.streamEnabled); - if (object.pageViewsEnabled != null) - message.pageViewsEnabled = Boolean(object.pageViewsEnabled); - if (object.scrollsEnabled != null) - message.scrollsEnabled = Boolean(object.scrollsEnabled); - if (object.outboundClicksEnabled != null) - message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); - if (object.siteSearchEnabled != null) - message.siteSearchEnabled = Boolean(object.siteSearchEnabled); - if (object.videoEngagementEnabled != null) - message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); - if (object.fileDownloadsEnabled != null) - message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); - if (object.pageLoadsEnabled != null) - message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); - if (object.pageChangesEnabled != null) - message.pageChangesEnabled = Boolean(object.pageChangesEnabled); - if (object.searchQueryParameter != null) - message.searchQueryParameter = String(object.searchQueryParameter); - if (object.uriQueryParameter != null) - message.uriQueryParameter = String(object.uriQueryParameter); + var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + 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 an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnhancedMeasurementSettings.toObject = function toObject(message, options) { + ListMeasurementProtocolSecretsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.streamEnabled = false; - object.pageViewsEnabled = false; - object.scrollsEnabled = false; - object.outboundClicksEnabled = false; - object.siteSearchEnabled = false; - object.videoEngagementEnabled = false; - object.fileDownloadsEnabled = false; - object.pageLoadsEnabled = false; - object.pageChangesEnabled = false; - object.searchQueryParameter = ""; - object.uriQueryParameter = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - object.streamEnabled = message.streamEnabled; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - object.pageViewsEnabled = message.pageViewsEnabled; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - object.scrollsEnabled = message.scrollsEnabled; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - object.outboundClicksEnabled = message.outboundClicksEnabled; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - object.siteSearchEnabled = message.siteSearchEnabled; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - object.videoEngagementEnabled = message.videoEngagementEnabled; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - object.fileDownloadsEnabled = message.fileDownloadsEnabled; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - object.pageLoadsEnabled = message.pageLoadsEnabled; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - object.pageChangesEnabled = message.pageChangesEnabled; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - object.searchQueryParameter = message.searchQueryParameter; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - object.uriQueryParameter = message.uriQueryParameter; + 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 EnhancedMeasurementSettings to JSON. + * Converts this ListMeasurementProtocolSecretsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance * @returns {Object.} JSON object */ - EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + ListMeasurementProtocolSecretsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnhancedMeasurementSettings; + return ListMeasurementProtocolSecretsRequest; })(); - v1alpha.FirebaseLink = (function() { + v1alpha.ListMeasurementProtocolSecretsResponse = (function() { /** - * Properties of a FirebaseLink. + * Properties of a ListMeasurementProtocolSecretsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IFirebaseLink - * @property {string|null} [name] FirebaseLink name - * @property {string|null} [project] FirebaseLink project - * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime - * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess + * @interface IListMeasurementProtocolSecretsResponse + * @property {Array.|null} [measurementProtocolSecrets] ListMeasurementProtocolSecretsResponse measurementProtocolSecrets + * @property {string|null} [nextPageToken] ListMeasurementProtocolSecretsResponse nextPageToken */ /** - * Constructs a new FirebaseLink. + * Constructs a new ListMeasurementProtocolSecretsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a FirebaseLink. - * @implements IFirebaseLink + * @classdesc Represents a ListMeasurementProtocolSecretsResponse. + * @implements IListMeasurementProtocolSecretsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set */ - function FirebaseLink(properties) { + function ListMeasurementProtocolSecretsResponse(properties) { + this.measurementProtocolSecrets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18135,114 +16982,91 @@ } /** - * FirebaseLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.FirebaseLink - * @instance - */ - FirebaseLink.prototype.name = ""; - - /** - * FirebaseLink project. - * @member {string} project - * @memberof google.analytics.admin.v1alpha.FirebaseLink - * @instance - */ - FirebaseLink.prototype.project = ""; - - /** - * FirebaseLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. + * @member {Array.} measurementProtocolSecrets + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance */ - FirebaseLink.prototype.createTime = null; + ListMeasurementProtocolSecretsResponse.prototype.measurementProtocolSecrets = $util.emptyArray; /** - * FirebaseLink maximumUserAccess. - * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * ListMeasurementProtocolSecretsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance */ - FirebaseLink.prototype.maximumUserAccess = 0; + ListMeasurementProtocolSecretsResponse.prototype.nextPageToken = ""; /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse instance */ - FirebaseLink.create = function create(properties) { - return new FirebaseLink(properties); + ListMeasurementProtocolSecretsResponse.create = function create(properties) { + return new ListMeasurementProtocolSecretsResponse(properties); }; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encode = function encode(message, writer) { + ListMeasurementProtocolSecretsResponse.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.project != null && Object.hasOwnProperty.call(message, "project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); + if (message.measurementProtocolSecrets != null && message.measurementProtocolSecrets.length) + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecrets[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 FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + ListMeasurementProtocolSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decode = function decode(reader, length) { + ListMeasurementProtocolSecretsResponse.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.analytics.admin.v1alpha.FirebaseLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) + message.measurementProtocolSecrets = []; + message.measurementProtocolSecrets.push($root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32())); break; case 2: - message.project = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.maximumUserAccess = reader.int32(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -18253,166 +17077,133 @@ }; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + ListMeasurementProtocolSecretsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FirebaseLink message. + * Verifies a ListMeasurementProtocolSecretsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FirebaseLink.verify = function verify(message) { + ListMeasurementProtocolSecretsResponse.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.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - switch (message.maximumUserAccess) { - default: - return "maximumUserAccess: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + if (message.measurementProtocolSecrets != null && message.hasOwnProperty("measurementProtocolSecrets")) { + if (!Array.isArray(message.measurementProtocolSecrets)) + return "measurementProtocolSecrets: array expected"; + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecrets[i]); + if (error) + return "measurementProtocolSecrets." + error; } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse */ - FirebaseLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + ListMeasurementProtocolSecretsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); - if (object.name != null) - message.name = String(object.name); - if (object.project != null) - message.project = String(object.project); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - switch (object.maximumUserAccess) { - case "MAXIMUM_USER_ACCESS_UNSPECIFIED": - case 0: - message.maximumUserAccess = 0; - break; - case "NO_ACCESS": - case 1: - message.maximumUserAccess = 1; - break; - case "READ_AND_ANALYZE": - case 2: - message.maximumUserAccess = 2; - break; - case "EDITOR_WITHOUT_LINK_MANAGEMENT": - case 3: - message.maximumUserAccess = 3; - break; - case "EDITOR_INCLUDING_LINK_MANAGEMENT": - case 4: - message.maximumUserAccess = 4; - break; + var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + if (object.measurementProtocolSecrets) { + if (!Array.isArray(object.measurementProtocolSecrets)) + throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: array expected"); + message.measurementProtocolSecrets = []; + for (var i = 0; i < object.measurementProtocolSecrets.length; ++i) { + if (typeof object.measurementProtocolSecrets[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: object expected"); + message.measurementProtocolSecrets[i] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecrets[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FirebaseLink.toObject = function toObject(message, options) { + ListMeasurementProtocolSecretsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.project = ""; - object.createTime = null; - object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; + if (options.arrays || options.defaults) + object.measurementProtocolSecrets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.measurementProtocolSecrets && message.measurementProtocolSecrets.length) { + object.measurementProtocolSecrets = []; + for (var j = 0; j < message.measurementProtocolSecrets.length; ++j) + object.measurementProtocolSecrets[j] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecrets[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.project != null && message.hasOwnProperty("project")) - object.project = message.project; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FirebaseLink to JSON. + * Converts this ListMeasurementProtocolSecretsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance * @returns {Object.} JSON object */ - FirebaseLink.prototype.toJSON = function toJSON() { + ListMeasurementProtocolSecretsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FirebaseLink; + return ListMeasurementProtocolSecretsResponse; })(); - v1alpha.GlobalSiteTag = (function() { + v1alpha.GetGoogleSignalsSettingsRequest = (function() { /** - * Properties of a GlobalSiteTag. + * Properties of a GetGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGlobalSiteTag - * @property {string|null} [name] GlobalSiteTag name - * @property {string|null} [snippet] GlobalSiteTag snippet + * @interface IGetGoogleSignalsSettingsRequest + * @property {string|null} [name] GetGoogleSignalsSettingsRequest name */ /** - * Constructs a new GlobalSiteTag. + * Constructs a new GetGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GlobalSiteTag. - * @implements IGlobalSiteTag + * @classdesc Represents a GetGoogleSignalsSettingsRequest. + * @implements IGetGoogleSignalsSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set */ - function GlobalSiteTag(properties) { + function GetGoogleSignalsSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18420,89 +17211,76 @@ } /** - * GlobalSiteTag name. + * GetGoogleSignalsSettingsRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag - * @instance - */ - GlobalSiteTag.prototype.name = ""; - - /** - * GlobalSiteTag snippet. - * @member {string} snippet - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @instance */ - GlobalSiteTag.prototype.snippet = ""; + GetGoogleSignalsSettingsRequest.prototype.name = ""; /** - * Creates a new GlobalSiteTag instance using the specified properties. + * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest instance */ - GlobalSiteTag.create = function create(properties) { - return new GlobalSiteTag(properties); + GetGoogleSignalsSettingsRequest.create = function create(properties) { + return new GetGoogleSignalsSettingsRequest(properties); }; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encode = function encode(message, writer) { + GetGoogleSignalsSettingsRequest.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.snippet != null && Object.hasOwnProperty.call(message, "snippet")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); return writer; }; /** - * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + GetGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decode = function decode(reader, length) { + GetGoogleSignalsSettingsRequest.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.analytics.admin.v1alpha.GlobalSiteTag(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.snippet = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -18512,122 +17290,108 @@ }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + GetGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GlobalSiteTag message. + * Verifies a GetGoogleSignalsSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalSiteTag.verify = function verify(message) { + GetGoogleSignalsSettingsRequest.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.snippet != null && message.hasOwnProperty("snippet")) - if (!$util.isString(message.snippet)) - return "snippet: string expected"; return null; }; /** - * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest */ - GlobalSiteTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + GetGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + var message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); if (object.name != null) message.name = String(object.name); - if (object.snippet != null) - message.snippet = String(object.snippet); return message; }; /** - * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalSiteTag.toObject = function toObject(message, options) { + GetGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.snippet = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.snippet != null && message.hasOwnProperty("snippet")) - object.snippet = message.snippet; return object; }; /** - * Converts this GlobalSiteTag to JSON. + * Converts this GetGoogleSignalsSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @instance * @returns {Object.} JSON object */ - GlobalSiteTag.prototype.toJSON = function toJSON() { + GetGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GlobalSiteTag; + return GetGoogleSignalsSettingsRequest; })(); - v1alpha.GoogleAdsLink = (function() { + v1alpha.UpdateGoogleSignalsSettingsRequest = (function() { /** - * Properties of a GoogleAdsLink. + * Properties of an UpdateGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGoogleAdsLink - * @property {string|null} [name] GoogleAdsLink name - * @property {string|null} [customerId] GoogleAdsLink customerId - * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients - * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled - * @property {string|null} [emailAddress] GoogleAdsLink emailAddress - * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + * @interface IUpdateGoogleSignalsSettingsRequest + * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] UpdateGoogleSignalsSettingsRequest googleSignalsSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleSignalsSettingsRequest updateMask */ /** - * Constructs a new GoogleAdsLink. + * Constructs a new UpdateGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GoogleAdsLink. - * @implements IGoogleAdsLink + * @classdesc Represents an UpdateGoogleSignalsSettingsRequest. + * @implements IUpdateGoogleSignalsSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set */ - function GoogleAdsLink(properties) { + function UpdateGoogleSignalsSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18635,153 +17399,88 @@ } /** - * GoogleAdsLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.name = ""; - - /** - * GoogleAdsLink customerId. - * @member {string} customerId - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.customerId = ""; - - /** - * GoogleAdsLink canManageClients. - * @member {boolean} canManageClients - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.canManageClients = false; - - /** - * GoogleAdsLink adsPersonalizationEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.adsPersonalizationEnabled = null; - - /** - * GoogleAdsLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.emailAddress = ""; - - /** - * GoogleAdsLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * UpdateGoogleSignalsSettingsRequest googleSignalsSettings. + * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance */ - GoogleAdsLink.prototype.createTime = null; + UpdateGoogleSignalsSettingsRequest.prototype.googleSignalsSettings = null; /** - * GoogleAdsLink updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * UpdateGoogleSignalsSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance */ - GoogleAdsLink.prototype.updateTime = null; + UpdateGoogleSignalsSettingsRequest.prototype.updateMask = null; /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest instance */ - GoogleAdsLink.create = function create(properties) { - return new GoogleAdsLink(properties); + UpdateGoogleSignalsSettingsRequest.create = function create(properties) { + return new UpdateGoogleSignalsSettingsRequest(properties); }; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encode = function encode(message, writer) { + UpdateGoogleSignalsSettingsRequest.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.customerId != null && Object.hasOwnProperty.call(message, "customerId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); - if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) + $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, 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 GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decode = function decode(reader, length) { + UpdateGoogleSignalsSettingsRequest.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.analytics.admin.v1alpha.GoogleAdsLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 3: - message.customerId = reader.string(); - break; - case 4: - message.canManageClients = reader.bool(); - break; - case 5: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 6: - message.emailAddress = reader.string(); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18792,176 +17491,127 @@ }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + UpdateGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GoogleAdsLink message. + * Verifies an UpdateGoogleSignalsSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GoogleAdsLink.verify = function verify(message) { + UpdateGoogleSignalsSettingsRequest.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.customerId != null && message.hasOwnProperty("customerId")) - if (!$util.isString(message.customerId)) - return "customerId: string expected"; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - if (typeof message.canManageClients !== "boolean") - return "canManageClients: boolean expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); - if (error) - return "adsPersonalizationEnabled." + error; - } - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); if (error) - return "createTime." + error; + return "googleSignalsSettings." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "updateTime." + error; + return "updateMask." + error; } return null; }; /** - * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest */ - GoogleAdsLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + UpdateGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); - if (object.name != null) - message.name = String(object.name); - if (object.customerId != null) - message.customerId = String(object.customerId); - if (object.canManageClients != null) - message.canManageClients = Boolean(object.canManageClients); - if (object.adsPersonalizationEnabled != null) { - if (typeof object.adsPersonalizationEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + if (object.googleSignalsSettings != null) { + if (typeof object.googleSignalsSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.googleSignalsSettings: object expected"); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); } - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoogleAdsLink.toObject = function toObject(message, options) { + UpdateGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.customerId = ""; - object.canManageClients = false; - object.adsPersonalizationEnabled = null; - object.emailAddress = ""; - object.createTime = null; - object.updateTime = null; + object.googleSignalsSettings = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.customerId != null && message.hasOwnProperty("customerId")) - object.customerId = message.customerId; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - object.canManageClients = message.canManageClients; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) + object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GoogleAdsLink to JSON. + * Converts this UpdateGoogleSignalsSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance * @returns {Object.} JSON object */ - GoogleAdsLink.prototype.toJSON = function toJSON() { + UpdateGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GoogleAdsLink; + return UpdateGoogleSignalsSettingsRequest; })(); - v1alpha.DataSharingSettings = (function() { + v1alpha.CreateConversionEventRequest = (function() { /** - * Properties of a DataSharingSettings. + * Properties of a CreateConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDataSharingSettings - * @property {string|null} [name] DataSharingSettings name - * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled - * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled - * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled - * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled - * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled + * @interface ICreateConversionEventRequest + * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] CreateConversionEventRequest conversionEvent + * @property {string|null} [parent] CreateConversionEventRequest parent */ /** - * Constructs a new DataSharingSettings. + * Constructs a new CreateConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DataSharingSettings. - * @implements IDataSharingSettings + * @classdesc Represents a CreateConversionEventRequest. + * @implements ICreateConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set */ - function DataSharingSettings(properties) { + function CreateConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18969,140 +17619,88 @@ } /** - * DataSharingSettings name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.name = ""; - - /** - * DataSharingSettings sharingWithGoogleSupportEnabled. - * @member {boolean} sharingWithGoogleSupportEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; - - /** - * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. - * @member {boolean} sharingWithGoogleAssignedSalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; - - /** - * DataSharingSettings sharingWithGoogleAnySalesEnabled. - * @member {boolean} sharingWithGoogleAnySalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; - - /** - * DataSharingSettings sharingWithGoogleProductsEnabled. - * @member {boolean} sharingWithGoogleProductsEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * CreateConversionEventRequest conversionEvent. + * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance */ - DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + CreateConversionEventRequest.prototype.conversionEvent = null; /** - * DataSharingSettings sharingWithOthersEnabled. - * @member {boolean} sharingWithOthersEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * CreateConversionEventRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance */ - DataSharingSettings.prototype.sharingWithOthersEnabled = false; + CreateConversionEventRequest.prototype.parent = ""; /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a new CreateConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest instance */ - DataSharingSettings.create = function create(properties) { - return new DataSharingSettings(properties); + CreateConversionEventRequest.create = function create(properties) { + return new CreateConversionEventRequest(properties); }; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encode = function encode(message, writer) { + CreateConversionEventRequest.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); - if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); - if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); - if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); - if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); return writer; }; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + CreateConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decode = function decode(reader, length) { + CreateConversionEventRequest.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.analytics.admin.v1alpha.DataSharingSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); break; case 2: - message.sharingWithGoogleSupportEnabled = reader.bool(); - break; - case 3: - message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); - break; - case 4: - message.sharingWithGoogleAnySalesEnabled = reader.bool(); - break; - case 5: - message.sharingWithGoogleProductsEnabled = reader.bool(); - break; - case 6: - message.sharingWithOthersEnabled = reader.bool(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -19113,152 +17711,121 @@ }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + CreateConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataSharingSettings message. + * Verifies a CreateConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataSharingSettings.verify = function verify(message) { + CreateConversionEventRequest.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") - return "sharingWithGoogleSupportEnabled: boolean expected"; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") - return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") - return "sharingWithGoogleAnySalesEnabled: boolean expected"; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") - return "sharingWithGoogleProductsEnabled: boolean expected"; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - if (typeof message.sharingWithOthersEnabled !== "boolean") - return "sharingWithOthersEnabled: boolean expected"; + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest */ - DataSharingSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + CreateConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.sharingWithGoogleSupportEnabled != null) - message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); - if (object.sharingWithGoogleAssignedSalesEnabled != null) - message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); - if (object.sharingWithGoogleAnySalesEnabled != null) - message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); - if (object.sharingWithGoogleProductsEnabled != null) - message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); - if (object.sharingWithOthersEnabled != null) - message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + var message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateConversionEventRequest.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); + } + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {google.analytics.admin.v1alpha.CreateConversionEventRequest} message CreateConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataSharingSettings.toObject = function toObject(message, options) { + CreateConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.sharingWithGoogleSupportEnabled = false; - object.sharingWithGoogleAssignedSalesEnabled = false; - object.sharingWithGoogleAnySalesEnabled = false; - object.sharingWithGoogleProductsEnabled = false; - object.sharingWithOthersEnabled = false; + object.conversionEvent = null; + object.parent = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) + object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this DataSharingSettings to JSON. + * Converts this CreateConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance * @returns {Object.} JSON object */ - DataSharingSettings.prototype.toJSON = function toJSON() { + CreateConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataSharingSettings; + return CreateConversionEventRequest; })(); - v1alpha.AccountSummary = (function() { + v1alpha.GetConversionEventRequest = (function() { /** - * Properties of an AccountSummary. + * Properties of a GetConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAccountSummary - * @property {string|null} [name] AccountSummary name - * @property {string|null} [account] AccountSummary account - * @property {string|null} [displayName] AccountSummary displayName - * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + * @interface IGetConversionEventRequest + * @property {string|null} [name] GetConversionEventRequest name */ /** - * Constructs a new AccountSummary. + * Constructs a new GetConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AccountSummary. - * @implements IAccountSummary + * @classdesc Represents a GetConversionEventRequest. + * @implements IGetConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set */ - function AccountSummary(properties) { - this.propertySummaries = []; + function GetConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19266,118 +17833,76 @@ } /** - * AccountSummary name. + * GetConversionEventRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @instance */ - AccountSummary.prototype.name = ""; + GetConversionEventRequest.prototype.name = ""; /** - * AccountSummary account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance + * Creates a new GetConversionEventRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest instance */ - AccountSummary.prototype.account = ""; + GetConversionEventRequest.create = function create(properties) { + return new GetConversionEventRequest(properties); + }; /** - * AccountSummary displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance + * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - AccountSummary.prototype.displayName = ""; - - /** - * AccountSummary propertySummaries. - * @member {Array.} propertySummaries - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance - */ - AccountSummary.prototype.propertySummaries = $util.emptyArray; - - /** - * Creates a new AccountSummary instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance - */ - AccountSummary.create = function create(properties) { - return new AccountSummary(properties); - }; - - /** - * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AccountSummary.encode = function encode(message, writer) { + GetConversionEventRequest.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 2 =*/18).string(message.account); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.propertySummaries != null && message.propertySummaries.length) - for (var i = 0; i < message.propertySummaries.length; ++i) - $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + GetConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AccountSummary message from the specified reader or buffer. + * Decodes a GetConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decode = function decode(reader, length) { + GetConversionEventRequest.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.analytics.admin.v1alpha.AccountSummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.account = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - if (!(message.propertySummaries && message.propertySummaries.length)) - message.propertySummaries = []; - message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -19387,151 +17912,107 @@ }; /** - * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decodeDelimited = function decodeDelimited(reader) { + GetConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AccountSummary message. + * Verifies a GetConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountSummary.verify = function verify(message) { + GetConversionEventRequest.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.isString(message.account)) - return "account: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { - if (!Array.isArray(message.propertySummaries)) - return "propertySummaries: array expected"; - for (var i = 0; i < message.propertySummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); - if (error) - return "propertySummaries." + error; - } - } return null; }; /** - * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest */ - AccountSummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) + GetConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); + var message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); if (object.name != null) message.name = String(object.name); - if (object.account != null) - message.account = String(object.account); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.propertySummaries) { - if (!Array.isArray(object.propertySummaries)) - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); - message.propertySummaries = []; - for (var i = 0; i < object.propertySummaries.length; ++i) { - if (typeof object.propertySummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); - message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); - } - } return message; }; /** - * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary + * @param {google.analytics.admin.v1alpha.GetConversionEventRequest} message GetConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountSummary.toObject = function toObject(message, options) { + GetConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.propertySummaries = []; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.account = ""; - object.displayName = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.propertySummaries && message.propertySummaries.length) { - object.propertySummaries = []; - for (var j = 0; j < message.propertySummaries.length; ++j) - object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); - } return object; }; /** - * Converts this AccountSummary to JSON. + * Converts this GetConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @instance * @returns {Object.} JSON object */ - AccountSummary.prototype.toJSON = function toJSON() { + GetConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AccountSummary; + return GetConversionEventRequest; })(); - v1alpha.PropertySummary = (function() { + v1alpha.DeleteConversionEventRequest = (function() { /** - * Properties of a PropertySummary. + * Properties of a DeleteConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IPropertySummary - * @property {string|null} [property] PropertySummary property - * @property {string|null} [displayName] PropertySummary displayName + * @interface IDeleteConversionEventRequest + * @property {string|null} [name] DeleteConversionEventRequest name */ /** - * Constructs a new PropertySummary. + * Constructs a new DeleteConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a PropertySummary. - * @implements IPropertySummary + * @classdesc Represents a DeleteConversionEventRequest. + * @implements IDeleteConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set */ - function PropertySummary(properties) { + function DeleteConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19539,88 +18020,75 @@ } /** - * PropertySummary property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.PropertySummary - * @instance - */ - PropertySummary.prototype.property = ""; - - /** - * PropertySummary displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.PropertySummary + * DeleteConversionEventRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @instance */ - PropertySummary.prototype.displayName = ""; + DeleteConversionEventRequest.prototype.name = ""; /** - * Creates a new PropertySummary instance using the specified properties. + * Creates a new DeleteConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest instance */ - PropertySummary.create = function create(properties) { - return new PropertySummary(properties); + DeleteConversionEventRequest.create = function create(properties) { + return new DeleteConversionEventRequest(properties); }; /** - * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encode = function encode(message, writer) { + DeleteConversionEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + DeleteConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PropertySummary message from the specified reader or buffer. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decode = function decode(reader, length) { + DeleteConversionEventRequest.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.analytics.admin.v1alpha.PropertySummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.property = reader.string(); - break; - case 2: - message.displayName = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -19631,122 +18099,109 @@ }; /** - * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decodeDelimited = function decodeDelimited(reader) { + DeleteConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PropertySummary message. + * Verifies a DeleteConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PropertySummary.verify = function verify(message) { + DeleteConversionEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest */ - PropertySummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) + DeleteConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); - if (object.property != null) - message.property = String(object.property); - if (object.displayName != null) - message.displayName = String(object.displayName); + var message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary + * @param {google.analytics.admin.v1alpha.DeleteConversionEventRequest} message DeleteConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PropertySummary.toObject = function toObject(message, options) { + DeleteConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.property = ""; - object.displayName = ""; - } - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PropertySummary to JSON. + * Converts this DeleteConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @instance * @returns {Object.} JSON object */ - PropertySummary.prototype.toJSON = function toJSON() { + DeleteConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PropertySummary; + return DeleteConversionEventRequest; })(); - v1alpha.ChangeHistoryEvent = (function() { + v1alpha.ListConversionEventsRequest = (function() { /** - * Properties of a ChangeHistoryEvent. + * Properties of a ListConversionEventsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IChangeHistoryEvent - * @property {string|null} [id] ChangeHistoryEvent id - * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime - * @property {google.analytics.admin.v1alpha.ActorType|null} [actorType] ChangeHistoryEvent actorType - * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail - * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered - * @property {Array.|null} [changes] ChangeHistoryEvent changes + * @interface IListConversionEventsRequest + * @property {string|null} [parent] ListConversionEventsRequest parent + * @property {number|null} [pageSize] ListConversionEventsRequest pageSize + * @property {string|null} [pageToken] ListConversionEventsRequest pageToken */ /** - * Constructs a new ChangeHistoryEvent. + * Constructs a new ListConversionEventsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChangeHistoryEvent. - * @implements IChangeHistoryEvent + * @classdesc Represents a ListConversionEventsRequest. + * @implements IListConversionEventsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set */ - function ChangeHistoryEvent(properties) { - this.changes = []; + function ListConversionEventsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19754,143 +18209,101 @@ } /** - * ChangeHistoryEvent id. - * @member {string} id - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * ListConversionEventsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance */ - ChangeHistoryEvent.prototype.id = ""; + ListConversionEventsRequest.prototype.parent = ""; /** - * ChangeHistoryEvent changeTime. - * @member {google.protobuf.ITimestamp|null|undefined} changeTime - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * ListConversionEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance */ - ChangeHistoryEvent.prototype.changeTime = null; + ListConversionEventsRequest.prototype.pageSize = 0; /** - * ChangeHistoryEvent actorType. - * @member {google.analytics.admin.v1alpha.ActorType} actorType - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * ListConversionEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance */ - ChangeHistoryEvent.prototype.actorType = 0; + ListConversionEventsRequest.prototype.pageToken = ""; /** - * ChangeHistoryEvent userActorEmail. - * @member {string} userActorEmail - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent - * @instance - */ - ChangeHistoryEvent.prototype.userActorEmail = ""; - - /** - * ChangeHistoryEvent changesFiltered. - * @member {boolean} changesFiltered - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent - * @instance - */ - ChangeHistoryEvent.prototype.changesFiltered = false; - - /** - * ChangeHistoryEvent changes. - * @member {Array.} changes - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent - * @instance - */ - ChangeHistoryEvent.prototype.changes = $util.emptyArray; - - /** - * Creates a new ChangeHistoryEvent instance using the specified properties. + * Creates a new ListConversionEventsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest instance */ - ChangeHistoryEvent.create = function create(properties) { - return new ChangeHistoryEvent(properties); + ListConversionEventsRequest.create = function create(properties) { + return new ListConversionEventsRequest(properties); }; /** - * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryEvent.encode = function encode(message, writer) { + ListConversionEventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) - $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); - if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); - if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); - if (message.changes != null && message.changes.length) - for (var i = 0; i < message.changes.length; ++i) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + 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 ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { + ListConversionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryEvent.decode = function decode(reader, length) { + ListConversionEventsRequest.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.analytics.admin.v1alpha.ChangeHistoryEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.parent = reader.string(); break; case 2: - message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 3: - message.actorType = reader.int32(); - break; - case 4: - message.userActorEmail = reader.string(); - break; - case 5: - message.changesFiltered = reader.bool(); - break; - case 6: - if (!(message.changes && message.changes.length)) - message.changes = []; - message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19901,197 +18314,126 @@ }; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { + ListConversionEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeHistoryEvent message. + * Verifies a ListConversionEventsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeHistoryEvent.verify = function verify(message) { + ListConversionEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.changeTime != null && message.hasOwnProperty("changeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.changeTime); - if (error) - return "changeTime." + error; - } - if (message.actorType != null && message.hasOwnProperty("actorType")) - switch (message.actorType) { - default: - return "actorType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) - if (!$util.isString(message.userActorEmail)) - return "userActorEmail: string expected"; - if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) - if (typeof message.changesFiltered !== "boolean") - return "changesFiltered: boolean expected"; - if (message.changes != null && message.hasOwnProperty("changes")) { - if (!Array.isArray(message.changes)) - return "changes: array expected"; - for (var i = 0; i < message.changes.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.verify(message.changes[i]); - if (error) - return "changes." + error; - } - } + 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 ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest */ - ChangeHistoryEvent.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryEvent) + ListConversionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); - if (object.id != null) - message.id = String(object.id); - if (object.changeTime != null) { - if (typeof object.changeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changeTime: object expected"); - message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); - } - switch (object.actorType) { - case "ACTOR_TYPE_UNSPECIFIED": - case 0: - message.actorType = 0; - break; - case "USER": - case 1: - message.actorType = 1; - break; - case "SYSTEM": - case 2: - message.actorType = 2; - break; - case "SUPPORT": - case 3: - message.actorType = 3; - break; - } - if (object.userActorEmail != null) - message.userActorEmail = String(object.userActorEmail); - if (object.changesFiltered != null) - message.changesFiltered = Boolean(object.changesFiltered); - if (object.changes) { - if (!Array.isArray(object.changes)) - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: array expected"); - message.changes = []; - for (var i = 0; i < object.changes.length; ++i) { - if (typeof object.changes[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: object expected"); - message.changes[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.fromObject(object.changes[i]); - } - } + var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); + 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 ChangeHistoryEvent message. Also converts values to other types if specified. + * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryEvent} message ChangeHistoryEvent + * @param {google.analytics.admin.v1alpha.ListConversionEventsRequest} message ListConversionEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeHistoryEvent.toObject = function toObject(message, options) { + ListConversionEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.changes = []; if (options.defaults) { - object.id = ""; - object.changeTime = null; - object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; - object.userActorEmail = ""; - object.changesFiltered = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.changeTime != null && message.hasOwnProperty("changeTime")) - object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); - if (message.actorType != null && message.hasOwnProperty("actorType")) - object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; - if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) - object.userActorEmail = message.userActorEmail; - if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) - object.changesFiltered = message.changesFiltered; - if (message.changes && message.changes.length) { - object.changes = []; - for (var j = 0; j < message.changes.length; ++j) - object.changes[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.toObject(message.changes[j], options); + 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 ChangeHistoryEvent to JSON. + * Converts this ListConversionEventsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance * @returns {Object.} JSON object */ - ChangeHistoryEvent.prototype.toJSON = function toJSON() { + ListConversionEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeHistoryEvent; + return ListConversionEventsRequest; })(); - v1alpha.ChangeHistoryChange = (function() { + v1alpha.ListConversionEventsResponse = (function() { /** - * Properties of a ChangeHistoryChange. + * Properties of a ListConversionEventsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IChangeHistoryChange - * @property {string|null} [resource] ChangeHistoryChange resource - * @property {google.analytics.admin.v1alpha.ActionType|null} [action] ChangeHistoryChange action - * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange - * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange + * @interface IListConversionEventsResponse + * @property {Array.|null} [conversionEvents] ListConversionEventsResponse conversionEvents + * @property {string|null} [nextPageToken] ListConversionEventsResponse nextPageToken */ /** - * Constructs a new ChangeHistoryChange. + * Constructs a new ListConversionEventsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChangeHistoryChange. - * @implements IChangeHistoryChange + * @classdesc Represents a ListConversionEventsResponse. + * @implements IListConversionEventsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set */ - function ChangeHistoryChange(properties) { + function ListConversionEventsResponse(properties) { + this.conversionEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20099,114 +18441,91 @@ } /** - * ChangeHistoryChange resource. - * @member {string} resource - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @instance - */ - ChangeHistoryChange.prototype.resource = ""; - - /** - * ChangeHistoryChange action. - * @member {google.analytics.admin.v1alpha.ActionType} action - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * ListConversionEventsResponse conversionEvents. + * @member {Array.} conversionEvents + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance */ - ChangeHistoryChange.prototype.action = 0; + ListConversionEventsResponse.prototype.conversionEvents = $util.emptyArray; /** - * ChangeHistoryChange resourceBeforeChange. - * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * ListConversionEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance */ - ChangeHistoryChange.prototype.resourceBeforeChange = null; + ListConversionEventsResponse.prototype.nextPageToken = ""; /** - * ChangeHistoryChange resourceAfterChange. - * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @instance + * Creates a new ListConversionEventsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse instance */ - ChangeHistoryChange.prototype.resourceAfterChange = null; + ListConversionEventsResponse.create = function create(properties) { + return new ListConversionEventsResponse(properties); + }; /** - * Creates a new ChangeHistoryChange instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange instance - */ - ChangeHistoryChange.create = function create(properties) { - return new ChangeHistoryChange(properties); - }; - - /** - * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryChange.encode = function encode(message, writer) { + ListConversionEventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); - if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.conversionEvents != null && message.conversionEvents.length) + for (var i = 0; i < message.conversionEvents.length; ++i) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvents[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 ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { + ListConversionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryChange.decode = function decode(reader, length) { + ListConversionEventsResponse.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.analytics.admin.v1alpha.ChangeHistoryChange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.resource = reader.string(); + if (!(message.conversionEvents && message.conversionEvents.length)) + message.conversionEvents = []; + message.conversionEvents.push($root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32())); break; case 2: - message.action = reader.int32(); - break; - case 3: - message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); - break; - case 4: - message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20217,560 +18536,9952 @@ }; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { + ListConversionEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeHistoryChange message. + * Verifies a ListConversionEventsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeHistoryChange.verify = function verify(message) { + ListConversionEventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + if (message.conversionEvents != null && message.hasOwnProperty("conversionEvents")) { + if (!Array.isArray(message.conversionEvents)) + return "conversionEvents: array expected"; + for (var i = 0; i < message.conversionEvents.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvents[i]); + if (error) + return "conversionEvents." + error; } - if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); - if (error) - return "resourceBeforeChange." + error; - } - if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); - if (error) - return "resourceAfterChange." + error; } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse */ - ChangeHistoryChange.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange) + ListConversionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); - if (object.resource != null) - message.resource = String(object.resource); - switch (object.action) { - case "ACTION_TYPE_UNSPECIFIED": - case 0: - message.action = 0; - break; - case "CREATED": - case 1: - message.action = 1; - break; - case "UPDATED": - case 2: - message.action = 2; - break; - case "DELETED": - case 3: - message.action = 3; - break; - } - if (object.resourceBeforeChange != null) { - if (typeof object.resourceBeforeChange !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceBeforeChange: object expected"); - message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); - } - if (object.resourceAfterChange != null) { - if (typeof object.resourceAfterChange !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceAfterChange: object expected"); - message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); + if (object.conversionEvents) { + if (!Array.isArray(object.conversionEvents)) + throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: array expected"); + message.conversionEvents = []; + for (var i = 0; i < object.conversionEvents.length; ++i) { + if (typeof object.conversionEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: object expected"); + message.conversionEvents[i] = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvents[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange} message ChangeHistoryChange + * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} message ListConversionEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeHistoryChange.toObject = function toObject(message, options) { + ListConversionEventsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.resource = ""; - object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; - object.resourceBeforeChange = null; - object.resourceAfterChange = null; + if (options.arrays || options.defaults) + object.conversionEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.conversionEvents && message.conversionEvents.length) { + object.conversionEvents = []; + for (var j = 0; j < message.conversionEvents.length; ++j) + object.conversionEvents[j] = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvents[j], options); } - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; - if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) - object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); - if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) - object.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ChangeHistoryChange to JSON. + * Converts this ListConversionEventsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance * @returns {Object.} JSON object */ - ChangeHistoryChange.prototype.toJSON = function toJSON() { + ListConversionEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ChangeHistoryChange.ChangeHistoryResource = (function() { + return ListConversionEventsResponse; + })(); - /** - * Properties of a ChangeHistoryResource. - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @interface IChangeHistoryResource - * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account - * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property - * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] ChangeHistoryResource webDataStream - * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] ChangeHistoryResource androidAppDataStream - * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] ChangeHistoryResource iosAppDataStream - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink - */ + v1alpha.CreateCustomDimensionRequest = (function() { - /** - * Constructs a new ChangeHistoryResource. - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @classdesc Represents a ChangeHistoryResource. - * @implements IChangeHistoryResource - * @constructor - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set - */ - function ChangeHistoryResource(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a CreateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateCustomDimensionRequest + * @property {string|null} [parent] CreateCustomDimensionRequest parent + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension + */ - /** - * ChangeHistoryResource account. - * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.account = null; + /** + * Constructs a new CreateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateCustomDimensionRequest. + * @implements ICreateCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + */ + function CreateCustomDimensionRequest(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]]; + } - /** - * ChangeHistoryResource property. - * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.property = null; + /** + * CreateCustomDimensionRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @instance + */ + CreateCustomDimensionRequest.prototype.parent = ""; - /** - * ChangeHistoryResource webDataStream. - * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.webDataStream = null; + /** + * CreateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @instance + */ + CreateCustomDimensionRequest.prototype.customDimension = null; - /** - * ChangeHistoryResource androidAppDataStream. - * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.androidAppDataStream = null; + /** + * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance + */ + CreateCustomDimensionRequest.create = function create(properties) { + return new CreateCustomDimensionRequest(properties); + }; - /** - * ChangeHistoryResource iosAppDataStream. - * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.iosAppDataStream = null; + /** + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomDimensionRequest.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.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * ChangeHistoryResource firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.firebaseLink = null; + /** + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ChangeHistoryResource googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomDimensionRequest.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.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCustomDimensionRequest.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.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } + return null; + }; + + /** + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + */ + CreateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + return message; + }; + + /** + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCustomDimensionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.customDimension = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + return object; + }; + + /** + * Converts this CreateCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateCustomDimensionRequest; + })(); + + v1alpha.UpdateCustomDimensionRequest = (function() { + + /** + * Properties of an UpdateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateCustomDimensionRequest + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask + */ + + /** + * Constructs a new UpdateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateCustomDimensionRequest. + * @implements IUpdateCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + */ + function UpdateCustomDimensionRequest(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]]; + } + + /** + * UpdateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @instance + */ + UpdateCustomDimensionRequest.prototype.customDimension = null; + + /** + * UpdateCustomDimensionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @instance + */ + UpdateCustomDimensionRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance + */ + UpdateCustomDimensionRequest.create = function create(properties) { + return new UpdateCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomDimensionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, 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 UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomDimensionRequest.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.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.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 UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateCustomDimensionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + 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 UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + */ + UpdateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateCustomDimensionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.customDimension = null; + object.updateMask = null; + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateCustomDimensionRequest; + })(); + + v1alpha.ListCustomDimensionsRequest = (function() { + + /** + * Properties of a ListCustomDimensionsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomDimensionsRequest + * @property {string|null} [parent] ListCustomDimensionsRequest parent + * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize + * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken + */ + + /** + * Constructs a new ListCustomDimensionsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomDimensionsRequest. + * @implements IListCustomDimensionsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + */ + function ListCustomDimensionsRequest(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]]; + } + + /** + * ListCustomDimensionsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.parent = ""; + + /** + * ListCustomDimensionsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageSize = 0; + + /** + * ListCustomDimensionsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance + */ + ListCustomDimensionsRequest.create = function create(properties) { + return new ListCustomDimensionsRequest(properties); + }; + + /** + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsRequest.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.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + 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 ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomDimensionsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + */ + ListCustomDimensionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + 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 ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomDimensionsRequest; + })(); + + v1alpha.ListCustomDimensionsResponse = (function() { + + /** + * Properties of a ListCustomDimensionsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomDimensionsResponse + * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions + * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken + */ + + /** + * Constructs a new ListCustomDimensionsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomDimensionsResponse. + * @implements IListCustomDimensionsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + */ + function ListCustomDimensionsResponse(properties) { + this.customDimensions = []; + 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]]; + } + + /** + * ListCustomDimensionsResponse customDimensions. + * @member {Array.} customDimensions + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @instance + */ + ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; + + /** + * ListCustomDimensionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @instance + */ + ListCustomDimensionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance + */ + ListCustomDimensionsResponse.create = function create(properties) { + return new ListCustomDimensionsResponse(properties); + }; + + /** + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customDimensions != null && message.customDimensions.length) + for (var i = 0; i < message.customDimensions.length; ++i) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[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 ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsResponse.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.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomDimensionsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomDimensionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { + if (!Array.isArray(message.customDimensions)) + return "customDimensions: array expected"; + for (var i = 0; i < message.customDimensions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); + if (error) + return "customDimensions." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + */ + ListCustomDimensionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + if (object.customDimensions) { + if (!Array.isArray(object.customDimensions)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); + message.customDimensions = []; + for (var i = 0; i < object.customDimensions.length; ++i) { + if (typeof object.customDimensions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); + message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomDimensionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.customDimensions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customDimensions && message.customDimensions.length) { + object.customDimensions = []; + for (var j = 0; j < message.customDimensions.length; ++j) + object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListCustomDimensionsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomDimensionsResponse; + })(); + + v1alpha.ArchiveCustomDimensionRequest = (function() { + + /** + * Properties of an ArchiveCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IArchiveCustomDimensionRequest + * @property {string|null} [name] ArchiveCustomDimensionRequest name + */ + + /** + * Constructs a new ArchiveCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ArchiveCustomDimensionRequest. + * @implements IArchiveCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + */ + function ArchiveCustomDimensionRequest(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]]; + } + + /** + * ArchiveCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @instance + */ + ArchiveCustomDimensionRequest.prototype.name = ""; + + /** + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance + */ + ArchiveCustomDimensionRequest.create = function create(properties) { + return new ArchiveCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomDimensionRequest.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.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + 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 an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArchiveCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveCustomDimensionRequest.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 an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + */ + ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArchiveCustomDimensionRequest; + })(); + + v1alpha.GetCustomDimensionRequest = (function() { + + /** + * Properties of a GetCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetCustomDimensionRequest + * @property {string|null} [name] GetCustomDimensionRequest name + */ + + /** + * Constructs a new GetCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetCustomDimensionRequest. + * @implements IGetCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + */ + function GetCustomDimensionRequest(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]]; + } + + /** + * GetCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @instance + */ + GetCustomDimensionRequest.prototype.name = ""; + + /** + * Creates a new GetCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance + */ + GetCustomDimensionRequest.create = function create(properties) { + return new GetCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomDimensionRequest.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.analytics.admin.v1alpha.GetCustomDimensionRequest(); + 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 GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + */ + GetCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + GetCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCustomDimensionRequest; + })(); + + v1alpha.CreateCustomMetricRequest = (function() { + + /** + * Properties of a CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateCustomMetricRequest + * @property {string|null} [parent] CreateCustomMetricRequest parent + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric + */ + + /** + * Constructs a new CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateCustomMetricRequest. + * @implements ICreateCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + */ + function CreateCustomMetricRequest(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]]; + } + + /** + * CreateCustomMetricRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.parent = ""; + + /** + * CreateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.customMetric = null; + + /** + * Creates a new CreateCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance + */ + CreateCustomMetricRequest.create = function create(properties) { + return new CreateCustomMetricRequest(properties); + }; + + /** + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomMetricRequest.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.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomMetricRequest.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.analytics.admin.v1alpha.CreateCustomMetricRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCustomMetricRequest.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.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } + return null; + }; + + /** + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + */ + CreateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } + return message; + }; + + /** + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCustomMetricRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.customMetric = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + return object; + }; + + /** + * Converts this CreateCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateCustomMetricRequest; + })(); + + v1alpha.UpdateCustomMetricRequest = (function() { + + /** + * Properties of an UpdateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateCustomMetricRequest + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask + */ + + /** + * Constructs a new UpdateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateCustomMetricRequest. + * @implements IUpdateCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + */ + function UpdateCustomMetricRequest(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]]; + } + + /** + * UpdateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @instance + */ + UpdateCustomMetricRequest.prototype.customMetric = null; + + /** + * UpdateCustomMetricRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @instance + */ + UpdateCustomMetricRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance + */ + UpdateCustomMetricRequest.create = function create(properties) { + return new UpdateCustomMetricRequest(properties); + }; + + /** + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomMetricRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, 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 UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomMetricRequest.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.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.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 UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateCustomMetricRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + */ + UpdateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateCustomMetricRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.customMetric = null; + object.updateMask = null; + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateCustomMetricRequest; + })(); + + v1alpha.ListCustomMetricsRequest = (function() { + + /** + * Properties of a ListCustomMetricsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomMetricsRequest + * @property {string|null} [parent] ListCustomMetricsRequest parent + * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize + * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken + */ + + /** + * Constructs a new ListCustomMetricsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomMetricsRequest. + * @implements IListCustomMetricsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + */ + function ListCustomMetricsRequest(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]]; + } + + /** + * ListCustomMetricsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.parent = ""; + + /** + * ListCustomMetricsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageSize = 0; + + /** + * ListCustomMetricsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance + */ + ListCustomMetricsRequest.create = function create(properties) { + return new ListCustomMetricsRequest(properties); + }; + + /** + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsRequest.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.analytics.admin.v1alpha.ListCustomMetricsRequest(); + 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 ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomMetricsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + */ + ListCustomMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + 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 ListCustomMetricsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + * @returns {Object.} JSON object + */ + ListCustomMetricsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomMetricsRequest; + })(); + + v1alpha.ListCustomMetricsResponse = (function() { + + /** + * Properties of a ListCustomMetricsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomMetricsResponse + * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics + * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken + */ + + /** + * Constructs a new ListCustomMetricsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomMetricsResponse. + * @implements IListCustomMetricsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + */ + function ListCustomMetricsResponse(properties) { + this.customMetrics = []; + 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]]; + } + + /** + * ListCustomMetricsResponse customMetrics. + * @member {Array.} customMetrics + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @instance + */ + ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; + + /** + * ListCustomMetricsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @instance + */ + ListCustomMetricsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomMetricsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance + */ + ListCustomMetricsResponse.create = function create(properties) { + return new ListCustomMetricsResponse(properties); + }; + + /** + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customMetrics != null && message.customMetrics.length) + for (var i = 0; i < message.customMetrics.length; ++i) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[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 ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsResponse.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.analytics.admin.v1alpha.ListCustomMetricsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomMetricsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomMetricsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { + if (!Array.isArray(message.customMetrics)) + return "customMetrics: array expected"; + for (var i = 0; i < message.customMetrics.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); + if (error) + return "customMetrics." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + */ + ListCustomMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + if (object.customMetrics) { + if (!Array.isArray(object.customMetrics)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); + message.customMetrics = []; + for (var i = 0; i < object.customMetrics.length; ++i) { + if (typeof object.customMetrics[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); + message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomMetricsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.customMetrics = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customMetrics && message.customMetrics.length) { + object.customMetrics = []; + for (var j = 0; j < message.customMetrics.length; ++j) + object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListCustomMetricsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @instance + * @returns {Object.} JSON object + */ + ListCustomMetricsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomMetricsResponse; + })(); + + v1alpha.ArchiveCustomMetricRequest = (function() { + + /** + * Properties of an ArchiveCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IArchiveCustomMetricRequest + * @property {string|null} [name] ArchiveCustomMetricRequest name + */ + + /** + * Constructs a new ArchiveCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ArchiveCustomMetricRequest. + * @implements IArchiveCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + */ + function ArchiveCustomMetricRequest(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]]; + } + + /** + * ArchiveCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @instance + */ + ArchiveCustomMetricRequest.prototype.name = ""; + + /** + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance + */ + ArchiveCustomMetricRequest.create = function create(properties) { + return new ArchiveCustomMetricRequest(properties); + }; + + /** + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomMetricRequest.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.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + 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 an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArchiveCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveCustomMetricRequest.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 an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + */ + ArchiveCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArchiveCustomMetricRequest; + })(); + + v1alpha.GetCustomMetricRequest = (function() { + + /** + * Properties of a GetCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetCustomMetricRequest + * @property {string|null} [name] GetCustomMetricRequest name + */ + + /** + * Constructs a new GetCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetCustomMetricRequest. + * @implements IGetCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + */ + function GetCustomMetricRequest(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]]; + } + + /** + * GetCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @instance + */ + GetCustomMetricRequest.prototype.name = ""; + + /** + * Creates a new GetCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance + */ + GetCustomMetricRequest.create = function create(properties) { + return new GetCustomMetricRequest(properties); + }; + + /** + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomMetricRequest.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 GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomMetricRequest.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.analytics.admin.v1alpha.GetCustomMetricRequest(); + 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 GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetCustomMetricRequest.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 GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + */ + GetCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCustomMetricRequest.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 GetCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + GetCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCustomMetricRequest; + })(); + + /** + * MaximumUserAccess enum. + * @name google.analytics.admin.v1alpha.MaximumUserAccess + * @enum {number} + * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value + * @property {number} NO_ACCESS=1 NO_ACCESS value + * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value + * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value + * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value + */ + v1alpha.MaximumUserAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_ACCESS"] = 1; + values[valuesById[2] = "READ_AND_ANALYZE"] = 2; + values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; + values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; + return values; + })(); + + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + + /** + * ActorType enum. + * @name google.analytics.admin.v1alpha.ActorType + * @enum {number} + * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} SUPPORT=3 SUPPORT value + */ + v1alpha.ActorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "SUPPORT"] = 3; + return values; + })(); + + /** + * ActionType enum. + * @name google.analytics.admin.v1alpha.ActionType + * @enum {number} + * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value + * @property {number} CREATED=1 CREATED value + * @property {number} UPDATED=2 UPDATED value + * @property {number} DELETED=3 DELETED value + */ + v1alpha.ActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "UPDATED"] = 2; + values[valuesById[3] = "DELETED"] = 3; + return values; + })(); + + /** + * ChangeHistoryResourceType enum. + * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType + * @enum {number} + * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} ACCOUNT=1 ACCOUNT value + * @property {number} PROPERTY=2 PROPERTY value + * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value + * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value + * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value + * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value + * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value + * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value + * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value + * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value + * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value + * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value + */ + v1alpha.ChangeHistoryResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACCOUNT"] = 1; + values[valuesById[2] = "PROPERTY"] = 2; + values[valuesById[3] = "WEB_DATA_STREAM"] = 3; + values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; + values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; + values[valuesById[6] = "FIREBASE_LINK"] = 6; + values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; + values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; + values[valuesById[9] = "CONVERSION_EVENT"] = 9; + values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; + values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; + values[valuesById[12] = "CUSTOM_METRIC"] = 12; + return values; + })(); + + /** + * GoogleSignalsState enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsState + * @enum {number} + * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value + * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value + */ + v1alpha.GoogleSignalsState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; + values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; + return values; + })(); + + /** + * GoogleSignalsConsent enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsConsent + * @enum {number} + * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value + * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value + */ + v1alpha.GoogleSignalsConsent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; + values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; + values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; + return values; + })(); + + v1alpha.Account = (function() { + + /** + * Properties of an Account. + * @memberof google.analytics.admin.v1alpha + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [regionCode] Account regionCode + * @property {boolean|null} [deleted] Account deleted + */ + + /** + * Constructs a new Account. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an Account. + * @implements IAccount + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.name = ""; + + /** + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.createTime = null; + + /** + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.updateTime = null; + + /** + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.displayName = ""; + + /** + * Account regionCode. + * @member {string} regionCode + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.regionCode = ""; + + /** + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.deleted = false; + + /** + * Creates a new Account instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance + */ + Account.create = function create(properties) { + return new Account(properties); + }; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + return writer; + }; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.displayName = reader.string(); + break; + case 5: + message.regionCode = reader.string(); + break; + case 6: + message.deleted = reader.bool(); + 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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; + return null; + }; + + /** + * Creates an Account message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Account} Account + */ + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) + return object; + var message = new $root.google.analytics.admin.v1alpha.Account(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + return message; + }; + + /** + * Creates a plain object from an Account message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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 = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.regionCode = ""; + object.deleted = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; + return object; + }; + + /** + * Converts this Account to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Account + * @instance + * @returns {Object.} JSON object + */ + Account.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Account; + })(); + + v1alpha.Property = (function() { + + /** + * Properties of a Property. + * @memberof google.analytics.admin.v1alpha + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + */ + + /** + * Constructs a new Property. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a Property. + * @implements IProperty + * @constructor + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + */ + function Property(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]]; + } + + /** + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.name = ""; + + /** + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.createTime = null; + + /** + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.updateTime = null; + + /** + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.parent = ""; + + /** + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.displayName = ""; + + /** + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.industryCategory = 0; + + /** + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.deleteTime = null; + + /** + * Property expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.expireTime = null; + + /** + * Creates a new Property instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance + */ + Property.create = function create(properties) { + return new Property(properties); + }; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Property message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.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.analytics.admin.v1alpha.Property(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + case 5: + message.displayName = reader.string(); + break; + case 6: + message.industryCategory = reader.int32(); + break; + case 7: + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 11: + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Property message. + * @function verify + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Property.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + return null; + }; + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Property} Property + */ + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) + return object; + var message = new $root.google.analytics.admin.v1alpha.Property(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": + case 0: + message.industryCategory = 0; + break; + case "AUTOMOTIVE": + case 1: + message.industryCategory = 1; + break; + case "BUSINESS_AND_INDUSTRIAL_MARKETS": + case 2: + message.industryCategory = 2; + break; + case "FINANCE": + case 3: + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; + break; + } + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + return message; + }; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Property.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parent = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.deleteTime = null; + object.expireTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + return object; + }; + + /** + * Converts this Property to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Property + * @instance + * @returns {Object.} JSON object + */ + Property.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Property; + })(); + + v1alpha.AndroidAppDataStream = (function() { + + /** + * Properties of an AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IAndroidAppDataStream + * @property {string|null} [name] AndroidAppDataStream name + * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime + * @property {string|null} [packageName] AndroidAppDataStream packageName + * @property {string|null} [displayName] AndroidAppDataStream displayName + */ + + /** + * Constructs a new AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AndroidAppDataStream. + * @implements IAndroidAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + */ + function AndroidAppDataStream(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]]; + } + + /** + * AndroidAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.name = ""; + + /** + * AndroidAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.firebaseAppId = ""; + + /** + * AndroidAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.createTime = null; + + /** + * AndroidAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.updateTime = null; + + /** + * AndroidAppDataStream packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.packageName = ""; + + /** + * AndroidAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.displayName = ""; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + */ + AndroidAppDataStream.create = function create(properties) { + return new AndroidAppDataStream(properties); + }; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.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.analytics.admin.v1alpha.AndroidAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.packageName = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AndroidAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + */ + AndroidAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.packageName != null) + message.packageName = String(object.packageName); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.packageName = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + * @returns {Object.} JSON object + */ + AndroidAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AndroidAppDataStream; + })(); + + v1alpha.IosAppDataStream = (function() { + + /** + * Properties of an IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IIosAppDataStream + * @property {string|null} [name] IosAppDataStream name + * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime + * @property {string|null} [bundleId] IosAppDataStream bundleId + * @property {string|null} [displayName] IosAppDataStream displayName + */ + + /** + * Constructs a new IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an IosAppDataStream. + * @implements IIosAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + */ + function IosAppDataStream(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]]; + } + + /** + * IosAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.name = ""; + + /** + * IosAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.firebaseAppId = ""; + + /** + * IosAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.createTime = null; + + /** + * IosAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.updateTime = null; + + /** + * IosAppDataStream bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.bundleId = ""; + + /** + * IosAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.displayName = ""; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + */ + IosAppDataStream.create = function create(properties) { + return new IosAppDataStream(properties); + }; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.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.analytics.admin.v1alpha.IosAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.bundleId = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + */ + IosAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IosAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.bundleId = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this IosAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + * @returns {Object.} JSON object + */ + IosAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IosAppDataStream; + })(); + + v1alpha.WebDataStream = (function() { + + /** + * Properties of a WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IWebDataStream + * @property {string|null} [name] WebDataStream name + * @property {string|null} [measurementId] WebDataStream measurementId + * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime + * @property {string|null} [defaultUri] WebDataStream defaultUri + * @property {string|null} [displayName] WebDataStream displayName + */ + + /** + * Constructs a new WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a WebDataStream. + * @implements IWebDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + */ + function WebDataStream(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]]; + } + + /** + * WebDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.name = ""; + + /** + * WebDataStream measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.measurementId = ""; + + /** + * WebDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.firebaseAppId = ""; + + /** + * WebDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.createTime = null; + + /** + * WebDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.updateTime = null; + + /** + * WebDataStream defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.defaultUri = ""; + + /** + * WebDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.displayName = ""; + + /** + * Creates a new WebDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + */ + WebDataStream.create = function create(properties) { + return new WebDataStream(properties); + }; + + /** + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.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.analytics.admin.v1alpha.WebDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.measurementId = reader.string(); + break; + case 3: + message.firebaseAppId = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.defaultUri = reader.string(); + break; + case 7: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WebDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebDataStream.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.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + */ + WebDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.measurementId = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.defaultUri = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this WebDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + * @returns {Object.} JSON object + */ + WebDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return WebDataStream; + })(); + + v1alpha.UserLink = (function() { + + /** + * Properties of a UserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IUserLink + * @property {string|null} [name] UserLink name + * @property {string|null} [emailAddress] UserLink emailAddress + * @property {Array.|null} [directRoles] UserLink directRoles + */ + + /** + * Constructs a new UserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a UserLink. + * @implements IUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + */ + function UserLink(properties) { + this.directRoles = []; + 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]]; + } + + /** + * UserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.name = ""; + + /** + * UserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.emailAddress = ""; + + /** + * UserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.directRoles = $util.emptyArray; + + /** + * Creates a new UserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance + */ + UserLink.create = function create(properties) { + return new UserLink(properties); + }; + + /** + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + return writer; + }; + + /** + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.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.analytics.admin.v1alpha.UserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.emailAddress = reader.string(); + break; + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + return null; + }; + + /** + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + */ + UserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.UserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.directRoles = []; + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + return object; + }; + + /** + * Converts this UserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + * @returns {Object.} JSON object + */ + UserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UserLink; + })(); + + v1alpha.AuditUserLink = (function() { + + /** + * Properties of an AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IAuditUserLink + * @property {string|null} [name] AuditUserLink name + * @property {string|null} [emailAddress] AuditUserLink emailAddress + * @property {Array.|null} [directRoles] AuditUserLink directRoles + * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + */ + + /** + * Constructs a new AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AuditUserLink. + * @implements IAuditUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + */ + function AuditUserLink(properties) { + this.directRoles = []; + this.effectiveRoles = []; + 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]]; + } + + /** + * AuditUserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.name = ""; + + /** + * AuditUserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.emailAddress = ""; + + /** + * AuditUserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.directRoles = $util.emptyArray; + + /** + * AuditUserLink effectiveRoles. + * @member {Array.} effectiveRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + + /** + * Creates a new AuditUserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + */ + AuditUserLink.create = function create(properties) { + return new AuditUserLink(properties); + }; + + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.effectiveRoles != null && message.effectiveRoles.length) + for (var i = 0; i < message.effectiveRoles.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + return writer; + }; + + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.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.analytics.admin.v1alpha.AuditUserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.emailAddress = reader.string(); + break; + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + case 4: + if (!(message.effectiveRoles && message.effectiveRoles.length)) + message.effectiveRoles = []; + message.effectiveRoles.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditUserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditUserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { + if (!Array.isArray(message.effectiveRoles)) + return "effectiveRoles: array expected"; + for (var i = 0; i < message.effectiveRoles.length; ++i) + if (!$util.isString(message.effectiveRoles[i])) + return "effectiveRoles: string[] expected"; + } + return null; + }; + + /** + * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + */ + AuditUserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + if (object.effectiveRoles) { + if (!Array.isArray(object.effectiveRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); + message.effectiveRoles = []; + for (var i = 0; i < object.effectiveRoles.length; ++i) + message.effectiveRoles[i] = String(object.effectiveRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditUserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.directRoles = []; + object.effectiveRoles = []; + } + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + if (message.effectiveRoles && message.effectiveRoles.length) { + object.effectiveRoles = []; + for (var j = 0; j < message.effectiveRoles.length; ++j) + object.effectiveRoles[j] = message.effectiveRoles[j]; + } + return object; + }; + + /** + * Converts this AuditUserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + * @returns {Object.} JSON object + */ + AuditUserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditUserLink; + })(); + + v1alpha.EnhancedMeasurementSettings = (function() { + + /** + * Properties of an EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IEnhancedMeasurementSettings + * @property {string|null} [name] EnhancedMeasurementSettings name + * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled + * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled + * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled + * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled + * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled + * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled + * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled + * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled + * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled + * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter + * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter + */ + + /** + * Constructs a new EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an EnhancedMeasurementSettings. + * @implements IEnhancedMeasurementSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + */ + function EnhancedMeasurementSettings(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]]; + } + + /** + * EnhancedMeasurementSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.name = ""; + + /** + * EnhancedMeasurementSettings streamEnabled. + * @member {boolean} streamEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.streamEnabled = false; + + /** + * EnhancedMeasurementSettings pageViewsEnabled. + * @member {boolean} pageViewsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; + + /** + * EnhancedMeasurementSettings scrollsEnabled. + * @member {boolean} scrollsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.scrollsEnabled = false; + + /** + * EnhancedMeasurementSettings outboundClicksEnabled. + * @member {boolean} outboundClicksEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; + + /** + * EnhancedMeasurementSettings siteSearchEnabled. + * @member {boolean} siteSearchEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; + + /** + * EnhancedMeasurementSettings videoEngagementEnabled. + * @member {boolean} videoEngagementEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; + + /** + * EnhancedMeasurementSettings fileDownloadsEnabled. + * @member {boolean} fileDownloadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageLoadsEnabled. + * @member {boolean} pageLoadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageChangesEnabled. + * @member {boolean} pageChangesEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; + + /** + * EnhancedMeasurementSettings searchQueryParameter. + * @member {string} searchQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; + + /** + * EnhancedMeasurementSettings uriQueryParameter. + * @member {string} uriQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; + + /** + * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + */ + EnhancedMeasurementSettings.create = function create(properties) { + return new EnhancedMeasurementSettings(properties); + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); + if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); + if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); + if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); + if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); + if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); + if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); + if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); + if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); + if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); + if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); + return writer; + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.streamEnabled = reader.bool(); + break; + case 3: + message.pageViewsEnabled = reader.bool(); + break; + case 4: + message.scrollsEnabled = reader.bool(); + break; + case 5: + message.outboundClicksEnabled = reader.bool(); + break; + case 7: + message.siteSearchEnabled = reader.bool(); + break; + case 9: + message.videoEngagementEnabled = reader.bool(); + break; + case 10: + message.fileDownloadsEnabled = reader.bool(); + break; + case 12: + message.pageLoadsEnabled = reader.bool(); + break; + case 13: + message.pageChangesEnabled = reader.bool(); + break; + case 16: + message.searchQueryParameter = reader.string(); + break; + case 17: + message.uriQueryParameter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnhancedMeasurementSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnhancedMeasurementSettings.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + if (typeof message.streamEnabled !== "boolean") + return "streamEnabled: boolean expected"; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + if (typeof message.pageViewsEnabled !== "boolean") + return "pageViewsEnabled: boolean expected"; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + if (typeof message.scrollsEnabled !== "boolean") + return "scrollsEnabled: boolean expected"; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + if (typeof message.outboundClicksEnabled !== "boolean") + return "outboundClicksEnabled: boolean expected"; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + if (typeof message.siteSearchEnabled !== "boolean") + return "siteSearchEnabled: boolean expected"; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + if (typeof message.videoEngagementEnabled !== "boolean") + return "videoEngagementEnabled: boolean expected"; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + if (typeof message.fileDownloadsEnabled !== "boolean") + return "fileDownloadsEnabled: boolean expected"; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + if (typeof message.pageLoadsEnabled !== "boolean") + return "pageLoadsEnabled: boolean expected"; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + if (typeof message.pageChangesEnabled !== "boolean") + return "pageChangesEnabled: boolean expected"; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + if (!$util.isString(message.searchQueryParameter)) + return "searchQueryParameter: string expected"; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + if (!$util.isString(message.uriQueryParameter)) + return "uriQueryParameter: string expected"; + return null; + }; + + /** + * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + */ + EnhancedMeasurementSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.streamEnabled != null) + message.streamEnabled = Boolean(object.streamEnabled); + if (object.pageViewsEnabled != null) + message.pageViewsEnabled = Boolean(object.pageViewsEnabled); + if (object.scrollsEnabled != null) + message.scrollsEnabled = Boolean(object.scrollsEnabled); + if (object.outboundClicksEnabled != null) + message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); + if (object.siteSearchEnabled != null) + message.siteSearchEnabled = Boolean(object.siteSearchEnabled); + if (object.videoEngagementEnabled != null) + message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); + if (object.fileDownloadsEnabled != null) + message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); + if (object.pageLoadsEnabled != null) + message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); + if (object.pageChangesEnabled != null) + message.pageChangesEnabled = Boolean(object.pageChangesEnabled); + if (object.searchQueryParameter != null) + message.searchQueryParameter = String(object.searchQueryParameter); + if (object.uriQueryParameter != null) + message.uriQueryParameter = String(object.uriQueryParameter); + return message; + }; + + /** + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnhancedMeasurementSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.streamEnabled = false; + object.pageViewsEnabled = false; + object.scrollsEnabled = false; + object.outboundClicksEnabled = false; + object.siteSearchEnabled = false; + object.videoEngagementEnabled = false; + object.fileDownloadsEnabled = false; + object.pageLoadsEnabled = false; + object.pageChangesEnabled = false; + object.searchQueryParameter = ""; + object.uriQueryParameter = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + object.streamEnabled = message.streamEnabled; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + object.pageViewsEnabled = message.pageViewsEnabled; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + object.scrollsEnabled = message.scrollsEnabled; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + object.outboundClicksEnabled = message.outboundClicksEnabled; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + object.siteSearchEnabled = message.siteSearchEnabled; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + object.videoEngagementEnabled = message.videoEngagementEnabled; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + object.fileDownloadsEnabled = message.fileDownloadsEnabled; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + object.pageLoadsEnabled = message.pageLoadsEnabled; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + object.pageChangesEnabled = message.pageChangesEnabled; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + object.searchQueryParameter = message.searchQueryParameter; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + object.uriQueryParameter = message.uriQueryParameter; + return object; + }; + + /** + * Converts this EnhancedMeasurementSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + * @returns {Object.} JSON object + */ + EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnhancedMeasurementSettings; + })(); + + v1alpha.FirebaseLink = (function() { + + /** + * Properties of a FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @interface IFirebaseLink + * @property {string|null} [name] FirebaseLink name + * @property {string|null} [project] FirebaseLink project + * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess + */ + + /** + * Constructs a new FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a FirebaseLink. + * @implements IFirebaseLink + * @constructor + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + */ + function FirebaseLink(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]]; + } + + /** + * FirebaseLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.name = ""; + + /** + * FirebaseLink project. + * @member {string} project + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.project = ""; + + /** + * FirebaseLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.createTime = null; + + /** + * FirebaseLink maximumUserAccess. + * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.maximumUserAccess = 0; + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + */ + FirebaseLink.create = function create(properties) { + return new FirebaseLink(properties); + }; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.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.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); + return writer; + }; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.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.analytics.admin.v1alpha.FirebaseLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.maximumUserAccess = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FirebaseLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FirebaseLink.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.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + switch (message.maximumUserAccess) { + default: + return "maximumUserAccess: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + */ + FirebaseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + if (object.name != null) + message.name = String(object.name); + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + switch (object.maximumUserAccess) { + case "MAXIMUM_USER_ACCESS_UNSPECIFIED": + case 0: + message.maximumUserAccess = 0; + break; + case "NO_ACCESS": + case 1: + message.maximumUserAccess = 1; + break; + case "READ_AND_ANALYZE": + case 2: + message.maximumUserAccess = 2; + break; + case "EDITOR_WITHOUT_LINK_MANAGEMENT": + case 3: + message.maximumUserAccess = 3; + break; + case "EDITOR_INCLUDING_LINK_MANAGEMENT": + case 4: + message.maximumUserAccess = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FirebaseLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.project = ""; + object.createTime = null; + object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) + object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; + return object; + }; + + /** + * Converts this FirebaseLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + * @returns {Object.} JSON object + */ + FirebaseLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FirebaseLink; + })(); + + v1alpha.GlobalSiteTag = (function() { + + /** + * Properties of a GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @interface IGlobalSiteTag + * @property {string|null} [name] GlobalSiteTag name + * @property {string|null} [snippet] GlobalSiteTag snippet + */ + + /** + * Constructs a new GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GlobalSiteTag. + * @implements IGlobalSiteTag + * @constructor + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + */ + function GlobalSiteTag(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]]; + } + + /** + * GlobalSiteTag name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.name = ""; + + /** + * GlobalSiteTag snippet. + * @member {string} snippet + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.snippet = ""; + + /** + * Creates a new GlobalSiteTag instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + */ + GlobalSiteTag.create = function create(properties) { + return new GlobalSiteTag(properties); + }; + + /** + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.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.snippet != null && Object.hasOwnProperty.call(message, "snippet")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); + return writer; + }; + + /** + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.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.analytics.admin.v1alpha.GlobalSiteTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.snippet = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalSiteTag message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalSiteTag.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.snippet != null && message.hasOwnProperty("snippet")) + if (!$util.isString(message.snippet)) + return "snippet: string expected"; + return null; + }; + + /** + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + */ + GlobalSiteTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + return object; + var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + if (object.name != null) + message.name = String(object.name); + if (object.snippet != null) + message.snippet = String(object.snippet); + return message; + }; + + /** + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalSiteTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.snippet = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.snippet != null && message.hasOwnProperty("snippet")) + object.snippet = message.snippet; + return object; + }; + + /** + * Converts this GlobalSiteTag to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + * @returns {Object.} JSON object + */ + GlobalSiteTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GlobalSiteTag; + })(); + + v1alpha.GoogleAdsLink = (function() { + + /** + * Properties of a GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @interface IGoogleAdsLink + * @property {string|null} [name] GoogleAdsLink name + * @property {string|null} [customerId] GoogleAdsLink customerId + * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled + * @property {string|null} [emailAddress] GoogleAdsLink emailAddress + * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + */ + + /** + * Constructs a new GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GoogleAdsLink. + * @implements IGoogleAdsLink + * @constructor + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + */ + function GoogleAdsLink(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]]; + } + + /** + * GoogleAdsLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.name = ""; + + /** + * GoogleAdsLink customerId. + * @member {string} customerId + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.customerId = ""; + + /** + * GoogleAdsLink canManageClients. + * @member {boolean} canManageClients + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.canManageClients = false; + + /** + * GoogleAdsLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + + /** + * GoogleAdsLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.emailAddress = ""; + + /** + * GoogleAdsLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.createTime = null; + + /** + * GoogleAdsLink updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.updateTime = null; + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + */ + GoogleAdsLink.create = function create(properties) { + return new GoogleAdsLink(properties); + }; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.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.customerId != null && Object.hasOwnProperty.call(message, "customerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); + if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.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.analytics.admin.v1alpha.GoogleAdsLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.customerId = reader.string(); + break; + case 4: + message.canManageClients = reader.bool(); + break; + case 5: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 6: + message.emailAddress = reader.string(); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleAdsLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleAdsLink.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.customerId != null && message.hasOwnProperty("customerId")) + if (!$util.isString(message.customerId)) + return "customerId: string expected"; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + if (typeof message.canManageClients !== "boolean") + return "canManageClients: boolean expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + */ + GoogleAdsLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + if (object.name != null) + message.name = String(object.name); + if (object.customerId != null) + message.customerId = String(object.customerId); + if (object.canManageClients != null) + message.canManageClients = Boolean(object.canManageClients); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleAdsLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.customerId = ""; + object.canManageClients = false; + object.adsPersonalizationEnabled = null; + object.emailAddress = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.customerId != null && message.hasOwnProperty("customerId")) + object.customerId = message.customerId; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + object.canManageClients = message.canManageClients; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + return object; + }; + + /** + * Converts this GoogleAdsLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + * @returns {Object.} JSON object + */ + GoogleAdsLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GoogleAdsLink; + })(); + + v1alpha.DataSharingSettings = (function() { + + /** + * Properties of a DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IDataSharingSettings + * @property {string|null} [name] DataSharingSettings name + * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled + * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled + * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled + * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled + * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled + */ + + /** + * Constructs a new DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DataSharingSettings. + * @implements IDataSharingSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + */ + function DataSharingSettings(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]]; + } + + /** + * DataSharingSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.name = ""; + + /** + * DataSharingSettings sharingWithGoogleSupportEnabled. + * @member {boolean} sharingWithGoogleSupportEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. + * @member {boolean} sharingWithGoogleAssignedSalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAnySalesEnabled. + * @member {boolean} sharingWithGoogleAnySalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleProductsEnabled. + * @member {boolean} sharingWithGoogleProductsEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + + /** + * DataSharingSettings sharingWithOthersEnabled. + * @member {boolean} sharingWithOthersEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithOthersEnabled = false; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + */ + DataSharingSettings.create = function create(properties) { + return new DataSharingSettings(properties); + }; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); + if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); + if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); + if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); + if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + return writer; + }; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.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.analytics.admin.v1alpha.DataSharingSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + case 3: + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + case 4: + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + case 5: + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + case 6: + message.sharingWithOthersEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataSharingSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") + return "sharingWithGoogleSupportEnabled: boolean expected"; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") + return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") + return "sharingWithGoogleAnySalesEnabled: boolean expected"; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") + return "sharingWithGoogleProductsEnabled: boolean expected"; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + if (typeof message.sharingWithOthersEnabled !== "boolean") + return "sharingWithOthersEnabled: boolean expected"; + return null; + }; + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + */ + DataSharingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.sharingWithGoogleSupportEnabled != null) + message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); + if (object.sharingWithGoogleAssignedSalesEnabled != null) + message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); + if (object.sharingWithGoogleAnySalesEnabled != null) + message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); + if (object.sharingWithGoogleProductsEnabled != null) + message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); + if (object.sharingWithOthersEnabled != null) + message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + return message; + }; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataSharingSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.sharingWithGoogleSupportEnabled = false; + object.sharingWithGoogleAssignedSalesEnabled = false; + object.sharingWithGoogleAnySalesEnabled = false; + object.sharingWithGoogleProductsEnabled = false; + object.sharingWithOthersEnabled = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + return object; + }; + + /** + * Converts this DataSharingSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + * @returns {Object.} JSON object + */ + DataSharingSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataSharingSettings; + })(); + + v1alpha.AccountSummary = (function() { + + /** + * Properties of an AccountSummary. + * @memberof google.analytics.admin.v1alpha + * @interface IAccountSummary + * @property {string|null} [name] AccountSummary name + * @property {string|null} [account] AccountSummary account + * @property {string|null} [displayName] AccountSummary displayName + * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + */ + + /** + * Constructs a new AccountSummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccountSummary. + * @implements IAccountSummary + * @constructor + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + */ + function AccountSummary(properties) { + this.propertySummaries = []; + 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]]; + } + + /** + * AccountSummary name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.name = ""; + + /** + * AccountSummary account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.account = ""; + + /** + * AccountSummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.displayName = ""; + + /** + * AccountSummary propertySummaries. + * @member {Array.} propertySummaries + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.propertySummaries = $util.emptyArray; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance + */ + AccountSummary.create = function create(properties) { + return new AccountSummary(properties); + }; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.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 2 =*/18).string(message.account); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.propertySummaries != null && message.propertySummaries.length) + for (var i = 0; i < message.propertySummaries.length; ++i) + $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.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.analytics.admin.v1alpha.AccountSummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.account = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AccountSummary message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AccountSummary.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.isString(message.account)) + return "account: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { + if (!Array.isArray(message.propertySummaries)) + return "propertySummaries: array expected"; + for (var i = 0; i < message.propertySummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); + if (error) + return "propertySummaries." + error; + } + } + return null; + }; + + /** + * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + */ + AccountSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); + if (object.name != null) + message.name = String(object.name); + if (object.account != null) + message.account = String(object.account); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.propertySummaries) { + if (!Array.isArray(object.propertySummaries)) + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); + message.propertySummaries = []; + for (var i = 0; i < object.propertySummaries.length; ++i) { + if (typeof object.propertySummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); + message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AccountSummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.propertySummaries = []; + if (options.defaults) { + object.name = ""; + object.account = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertySummaries && message.propertySummaries.length) { + object.propertySummaries = []; + for (var j = 0; j < message.propertySummaries.length; ++j) + object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); + } + return object; + }; + + /** + * Converts this AccountSummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + * @returns {Object.} JSON object + */ + AccountSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccountSummary; + })(); + + v1alpha.PropertySummary = (function() { + + /** + * Properties of a PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @interface IPropertySummary + * @property {string|null} [property] PropertySummary property + * @property {string|null} [displayName] PropertySummary displayName + */ + + /** + * Constructs a new PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a PropertySummary. + * @implements IPropertySummary + * @constructor + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + */ + function PropertySummary(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]]; + } + + /** + * PropertySummary property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.property = ""; + + /** + * PropertySummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.displayName = ""; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance + */ + PropertySummary.create = function create(properties) { + return new PropertySummary(properties); + }; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.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.analytics.admin.v1alpha.PropertySummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PropertySummary message. + * @function verify + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PropertySummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + */ + PropertySummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) + return object; + var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); + if (object.property != null) + message.property = String(object.property); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PropertySummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = ""; + object.displayName = ""; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this PropertySummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + * @returns {Object.} JSON object + */ + PropertySummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PropertySummary; + })(); + + v1alpha.MeasurementProtocolSecret = (function() { + + /** + * Properties of a MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1alpha + * @interface IMeasurementProtocolSecret + * @property {string|null} [name] MeasurementProtocolSecret name + * @property {string|null} [displayName] MeasurementProtocolSecret displayName + * @property {string|null} [secretValue] MeasurementProtocolSecret secretValue + */ + + /** + * Constructs a new MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a MeasurementProtocolSecret. + * @implements IMeasurementProtocolSecret + * @constructor + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + */ + function MeasurementProtocolSecret(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]]; + } + + /** + * MeasurementProtocolSecret name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.name = ""; + + /** + * MeasurementProtocolSecret displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.displayName = ""; + + /** + * MeasurementProtocolSecret secretValue. + * @member {string} secretValue + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.secretValue = ""; + + /** + * Creates a new MeasurementProtocolSecret instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret instance + */ + MeasurementProtocolSecret.create = function create(properties) { + return new MeasurementProtocolSecret(properties); + }; + + /** + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.secretValue != null && Object.hasOwnProperty.call(message, "secretValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.secretValue); + return writer; + }; + + /** + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.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.analytics.admin.v1alpha.MeasurementProtocolSecret(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.secretValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MeasurementProtocolSecret message. + * @function verify + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MeasurementProtocolSecret.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + if (!$util.isString(message.secretValue)) + return "secretValue: string expected"; + return null; + }; + + /** + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + */ + MeasurementProtocolSecret.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret) + return object; + var message = new $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.secretValue != null) + message.secretValue = String(object.secretValue); + return message; + }; + + /** + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} message MeasurementProtocolSecret + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MeasurementProtocolSecret.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.secretValue = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + object.secretValue = message.secretValue; + return object; + }; + + /** + * Converts this MeasurementProtocolSecret to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + * @returns {Object.} JSON object + */ + MeasurementProtocolSecret.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MeasurementProtocolSecret; + })(); + + v1alpha.ChangeHistoryEvent = (function() { + + /** + * Properties of a ChangeHistoryEvent. + * @memberof google.analytics.admin.v1alpha + * @interface IChangeHistoryEvent + * @property {string|null} [id] ChangeHistoryEvent id + * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime + * @property {google.analytics.admin.v1alpha.ActorType|null} [actorType] ChangeHistoryEvent actorType + * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail + * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered + * @property {Array.|null} [changes] ChangeHistoryEvent changes + */ + + /** + * Constructs a new ChangeHistoryEvent. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ChangeHistoryEvent. + * @implements IChangeHistoryEvent + * @constructor + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + */ + function ChangeHistoryEvent(properties) { + this.changes = []; + 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]]; + } + + /** + * ChangeHistoryEvent id. + * @member {string} id + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.id = ""; + + /** + * ChangeHistoryEvent changeTime. + * @member {google.protobuf.ITimestamp|null|undefined} changeTime + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changeTime = null; + + /** + * ChangeHistoryEvent actorType. + * @member {google.analytics.admin.v1alpha.ActorType} actorType + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.actorType = 0; + + /** + * ChangeHistoryEvent userActorEmail. + * @member {string} userActorEmail + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.userActorEmail = ""; + + /** + * ChangeHistoryEvent changesFiltered. + * @member {boolean} changesFiltered + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changesFiltered = false; + + /** + * ChangeHistoryEvent changes. + * @member {Array.} changes + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changes = $util.emptyArray; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent instance + */ + ChangeHistoryEvent.create = function create(properties) { + return new ChangeHistoryEvent(properties); + }; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) + $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); + if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); + if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); + if (message.changes != null && message.changes.length) + for (var i = 0; i < message.changes.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.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.analytics.admin.v1alpha.ChangeHistoryEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.actorType = reader.int32(); + break; + case 4: + message.userActorEmail = reader.string(); + break; + case 5: + message.changesFiltered = reader.bool(); + break; + case 6: + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryEvent message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.changeTime); + if (error) + return "changeTime." + error; + } + if (message.actorType != null && message.hasOwnProperty("actorType")) + switch (message.actorType) { + default: + return "actorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + if (!$util.isString(message.userActorEmail)) + return "userActorEmail: string expected"; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + if (typeof message.changesFiltered !== "boolean") + return "changesFiltered: boolean expected"; + if (message.changes != null && message.hasOwnProperty("changes")) { + if (!Array.isArray(message.changes)) + return "changes: array expected"; + for (var i = 0; i < message.changes.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.verify(message.changes[i]); + if (error) + return "changes." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + */ + ChangeHistoryEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryEvent) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + if (object.id != null) + message.id = String(object.id); + if (object.changeTime != null) { + if (typeof object.changeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changeTime: object expected"); + message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); + } + switch (object.actorType) { + case "ACTOR_TYPE_UNSPECIFIED": + case 0: + message.actorType = 0; + break; + case "USER": + case 1: + message.actorType = 1; + break; + case "SYSTEM": + case 2: + message.actorType = 2; + break; + case "SUPPORT": + case 3: + message.actorType = 3; + break; + } + if (object.userActorEmail != null) + message.userActorEmail = String(object.userActorEmail); + if (object.changesFiltered != null) + message.changesFiltered = Boolean(object.changesFiltered); + if (object.changes) { + if (!Array.isArray(object.changes)) + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: array expected"); + message.changes = []; + for (var i = 0; i < object.changes.length; ++i) { + if (typeof object.changes[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: object expected"); + message.changes[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.fromObject(object.changes[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryEvent} message ChangeHistoryEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changes = []; + if (options.defaults) { + object.id = ""; + object.changeTime = null; + object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; + object.userActorEmail = ""; + object.changesFiltered = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) + object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); + if (message.actorType != null && message.hasOwnProperty("actorType")) + object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + object.userActorEmail = message.userActorEmail; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + object.changesFiltered = message.changesFiltered; + if (message.changes && message.changes.length) { + object.changes = []; + for (var j = 0; j < message.changes.length; ++j) + object.changes[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.toObject(message.changes[j], options); + } + return object; + }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeHistoryEvent; + })(); + + v1alpha.ChangeHistoryChange = (function() { + + /** + * Properties of a ChangeHistoryChange. + * @memberof google.analytics.admin.v1alpha + * @interface IChangeHistoryChange + * @property {string|null} [resource] ChangeHistoryChange resource + * @property {google.analytics.admin.v1alpha.ActionType|null} [action] ChangeHistoryChange action + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange + */ + + /** + * Constructs a new ChangeHistoryChange. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ChangeHistoryChange. + * @implements IChangeHistoryChange + * @constructor + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + */ + function ChangeHistoryChange(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]]; + } + + /** + * ChangeHistoryChange resource. + * @member {string} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resource = ""; + + /** + * ChangeHistoryChange action. + * @member {google.analytics.admin.v1alpha.ActionType} action + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.action = 0; + + /** + * ChangeHistoryChange resourceBeforeChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceBeforeChange = null; + + /** + * ChangeHistoryChange resourceAfterChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceAfterChange = null; + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange instance + */ + ChangeHistoryChange.create = function create(properties) { + return new ChangeHistoryChange(properties); + }; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); + if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.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.analytics.admin.v1alpha.ChangeHistoryChange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resource = reader.string(); + break; + case 2: + message.action = reader.int32(); + break; + case 3: + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + case 4: + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryChange message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryChange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); + if (error) + return "resourceBeforeChange." + error; + } + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); + if (error) + return "resourceAfterChange." + error; + } + return null; + }; + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + */ + ChangeHistoryChange.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); + if (object.resource != null) + message.resource = String(object.resource); + switch (object.action) { + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action = 0; + break; + case "CREATED": + case 1: + message.action = 1; + break; + case "UPDATED": + case 2: + message.action = 2; + break; + case "DELETED": + case 3: + message.action = 3; + break; + } + if (object.resourceBeforeChange != null) { + if (typeof object.resourceBeforeChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceBeforeChange: object expected"); + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); + } + if (object.resourceAfterChange != null) { + if (typeof object.resourceAfterChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceAfterChange: object expected"); + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange} message ChangeHistoryChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; + object.resourceBeforeChange = null; + object.resourceAfterChange = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) + object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) + object.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); + return object; + }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ChangeHistoryChange.ChangeHistoryResource = (function() { + + /** + * Properties of a ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @interface IChangeHistoryResource + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property + * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] ChangeHistoryResource webDataStream + * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] ChangeHistoryResource androidAppDataStream + * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] ChangeHistoryResource iosAppDataStream + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink + * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] ChangeHistoryResource googleSignalsSettings + * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] ChangeHistoryResource conversionEvent + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] ChangeHistoryResource measurementProtocolSecret + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] ChangeHistoryResource customDimension + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] ChangeHistoryResource customMetric + */ + + /** + * Constructs a new ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @classdesc Represents a ChangeHistoryResource. + * @implements IChangeHistoryResource + * @constructor + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + */ + function ChangeHistoryResource(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]]; + } + + /** + * ChangeHistoryResource account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.account = null; + + /** + * ChangeHistoryResource property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.property = null; + + /** + * ChangeHistoryResource webDataStream. + * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.webDataStream = null; + + /** + * ChangeHistoryResource androidAppDataStream. + * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.androidAppDataStream = null; + + /** + * ChangeHistoryResource iosAppDataStream. + * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.iosAppDataStream = null; + + /** + * ChangeHistoryResource firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.firebaseLink = null; + + /** + * ChangeHistoryResource googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ ChangeHistoryResource.prototype.googleAdsLink = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ChangeHistoryResource googleSignalsSettings. + * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.googleSignalsSettings = null; + + /** + * ChangeHistoryResource conversionEvent. + * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.conversionEvent = null; + + /** + * ChangeHistoryResource measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.measurementProtocolSecret = null; + + /** + * ChangeHistoryResource customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.customDimension = null; + + /** + * ChangeHistoryResource customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.customMetric = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ChangeHistoryResource resource. + * @member {"account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|undefined} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + Object.defineProperty(ChangeHistoryResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["account", "property", "webDataStream", "androidAppDataStream", "iosAppDataStream", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance + */ + ChangeHistoryResource.create = function create(properties) { + return new ChangeHistoryResource(properties); + }; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) + $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + case 2: + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + case 3: + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + break; + case 4: + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); + break; + case 5: + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); + break; + case 6: + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + break; + case 7: + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + case 8: + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); + break; + case 11: + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); + break; + case 12: + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + case 13: + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + case 14: + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryResource message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.account != null && message.hasOwnProperty("account")) { + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); + if (error) + return "account." + error; + } + } + if (message.property != null && message.hasOwnProperty("property")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + error; + } + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); + if (error) + return "webDataStream." + error; + } + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); + if (error) + return "androidAppDataStream." + error; + } + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); + if (error) + return "iosAppDataStream." + error; + } + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + } + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); + if (error) + return "googleSignalsSettings." + error; + } + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; + } + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; + } + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + */ + ChangeHistoryResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + if (object.webDataStream != null) { + if (typeof object.webDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.webDataStream: object expected"); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + } + if (object.androidAppDataStream != null) { + if (typeof object.androidAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.androidAppDataStream: object expected"); + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); + } + if (object.iosAppDataStream != null) { + if (typeof object.iosAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.iosAppDataStream: object expected"); + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); + } + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.googleSignalsSettings != null) { + if (typeof object.googleSignalsSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleSignalsSettings: object expected"); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); + } + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); + } + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.account != null && message.hasOwnProperty("account")) { + object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); + if (options.oneofs) + object.resource = "account"; + } + if (message.property != null && message.hasOwnProperty("property")) { + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (options.oneofs) + object.resource = "property"; + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); + if (options.oneofs) + object.resource = "webDataStream"; + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); + if (options.oneofs) + object.resource = "androidAppDataStream"; + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); + if (options.oneofs) + object.resource = "iosAppDataStream"; + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (options.oneofs) + object.resource = "firebaseLink"; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (options.oneofs) + object.resource = "googleAdsLink"; + } + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); + if (options.oneofs) + object.resource = "googleSignalsSettings"; + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); + if (options.oneofs) + object.resource = "conversionEvent"; + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (options.oneofs) + object.resource = "measurementProtocolSecret"; + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (options.oneofs) + object.resource = "customDimension"; + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (options.oneofs) + object.resource = "customMetric"; + } + return object; + }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeHistoryResource; + })(); + + return ChangeHistoryChange; + })(); + + v1alpha.ConversionEvent = (function() { + + /** + * Properties of a ConversionEvent. + * @memberof google.analytics.admin.v1alpha + * @interface IConversionEvent + * @property {string|null} [name] ConversionEvent name + * @property {string|null} [eventName] ConversionEvent eventName + * @property {google.protobuf.ITimestamp|null} [createTime] ConversionEvent createTime + * @property {boolean|null} [isDeletable] ConversionEvent isDeletable + */ + + /** + * Constructs a new ConversionEvent. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ConversionEvent. + * @implements IConversionEvent + * @constructor + * @param {google.analytics.admin.v1alpha.IConversionEvent=} [properties] Properties to set + */ + function ConversionEvent(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]]; + } + + /** + * ConversionEvent name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.name = ""; + + /** + * ConversionEvent eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.eventName = ""; + + /** + * ConversionEvent createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.createTime = null; + + /** + * ConversionEvent isDeletable. + * @member {boolean} isDeletable + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.isDeletable = false; + + /** + * Creates a new ConversionEvent instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.IConversionEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent instance + */ + ConversionEvent.create = function create(properties) { + return new ConversionEvent(properties); + }; + + /** + * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversionEvent.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.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.isDeletable != null && Object.hasOwnProperty.call(message, "isDeletable")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isDeletable); + return writer; + }; + + /** + * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversionEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversionEvent.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.analytics.admin.v1alpha.ConversionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.eventName = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.isDeletable = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversionEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConversionEvent message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConversionEvent.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.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.isDeletable != null && message.hasOwnProperty("isDeletable")) + if (typeof message.isDeletable !== "boolean") + return "isDeletable: boolean expected"; + return null; + }; + + /** + * Creates a ConversionEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + */ + ConversionEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ConversionEvent) + return object; + var message = new $root.google.analytics.admin.v1alpha.ConversionEvent(); + if (object.name != null) + message.name = String(object.name); + if (object.eventName != null) + message.eventName = String(object.eventName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ConversionEvent.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.isDeletable != null) + message.isDeletable = Boolean(object.isDeletable); + return message; + }; + + /** + * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.ConversionEvent} message ConversionEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConversionEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.eventName = ""; + object.createTime = null; + object.isDeletable = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.isDeletable != null && message.hasOwnProperty("isDeletable")) + object.isDeletable = message.isDeletable; + return object; + }; + + /** + * Converts this ConversionEvent to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + * @returns {Object.} JSON object + */ + ConversionEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ConversionEvent; + })(); + + v1alpha.GoogleSignalsSettings = (function() { + + /** + * Properties of a GoogleSignalsSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IGoogleSignalsSettings + * @property {string|null} [name] GoogleSignalsSettings name + * @property {google.analytics.admin.v1alpha.GoogleSignalsState|null} [state] GoogleSignalsSettings state + * @property {google.analytics.admin.v1alpha.GoogleSignalsConsent|null} [consent] GoogleSignalsSettings consent + */ + + /** + * Constructs a new GoogleSignalsSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GoogleSignalsSettings. + * @implements IGoogleSignalsSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings=} [properties] Properties to set + */ + function GoogleSignalsSettings(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]]; + } + + /** + * GoogleSignalsSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + */ + GoogleSignalsSettings.prototype.name = ""; + + /** + * GoogleSignalsSettings state. + * @member {google.analytics.admin.v1alpha.GoogleSignalsState} state + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + */ + GoogleSignalsSettings.prototype.state = 0; + + /** + * GoogleSignalsSettings consent. + * @member {google.analytics.admin.v1alpha.GoogleSignalsConsent} consent + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + */ + GoogleSignalsSettings.prototype.consent = 0; + + /** + * Creates a new GoogleSignalsSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings instance + */ + GoogleSignalsSettings.create = function create(properties) { + return new GoogleSignalsSettings(properties); + }; + + /** + * Encodes the specified GoogleSignalsSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings} message GoogleSignalsSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleSignalsSettings.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 3, wireType 0 =*/24).int32(message.state); + if (message.consent != null && Object.hasOwnProperty.call(message, "consent")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.consent); + return writer; + }; + + /** + * Encodes the specified GoogleSignalsSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings} message GoogleSignalsSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleSignalsSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleSignalsSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleSignalsSettings.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.analytics.admin.v1alpha.GoogleSignalsSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.state = reader.int32(); + break; + case 4: + message.consent = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleSignalsSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleSignalsSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleSignalsSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleSignalsSettings.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.consent != null && message.hasOwnProperty("consent")) + switch (message.consent) { + default: + return "consent: enum value expected"; + case 0: + case 2: + case 1: + break; + } + return null; + }; + + /** + * Creates a GoogleSignalsSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + */ + GoogleSignalsSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleSignalsSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + if (object.name != null) + message.name = String(object.name); + switch (object.state) { + case "GOOGLE_SIGNALS_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "GOOGLE_SIGNALS_ENABLED": + case 1: + message.state = 1; + break; + case "GOOGLE_SIGNALS_DISABLED": + case 2: + message.state = 2; + break; + } + switch (object.consent) { + case "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED": + case 0: + message.consent = 0; + break; + case "GOOGLE_SIGNALS_CONSENT_CONSENTED": + case 2: + message.consent = 2; + break; + case "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED": + case 1: + message.consent = 1; + break; + } + return message; + }; + + /** + * Creates a plain object from a GoogleSignalsSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} message GoogleSignalsSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleSignalsSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.state = options.enums === String ? "GOOGLE_SIGNALS_STATE_UNSPECIFIED" : 0; + object.consent = options.enums === String ? "GOOGLE_SIGNALS_CONSENT_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.analytics.admin.v1alpha.GoogleSignalsState[message.state] : message.state; + if (message.consent != null && message.hasOwnProperty("consent")) + object.consent = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] : message.consent; + return object; + }; + + /** + * Converts this GoogleSignalsSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + * @returns {Object.} JSON object + */ + GoogleSignalsSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GoogleSignalsSettings; + })(); + + v1alpha.CustomDimension = (function() { + + /** + * Properties of a CustomDimension. + * @memberof google.analytics.admin.v1alpha + * @interface ICustomDimension + * @property {string|null} [name] CustomDimension name + * @property {string|null} [parameterName] CustomDimension parameterName + * @property {string|null} [displayName] CustomDimension displayName + * @property {string|null} [description] CustomDimension description + * @property {google.analytics.admin.v1alpha.CustomDimension.DimensionScope|null} [scope] CustomDimension scope + * @property {boolean|null} [disallowAdsPersonalization] CustomDimension disallowAdsPersonalization + */ + + /** + * Constructs a new CustomDimension. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CustomDimension. + * @implements ICustomDimension + * @constructor + * @param {google.analytics.admin.v1alpha.ICustomDimension=} [properties] Properties to set + */ + function CustomDimension(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]]; + } + + /** + * CustomDimension name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @instance + */ + CustomDimension.prototype.name = ""; + + /** + * CustomDimension parameterName. + * @member {string} parameterName + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @instance + */ + CustomDimension.prototype.parameterName = ""; + + /** + * CustomDimension displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @instance + */ + CustomDimension.prototype.displayName = ""; + + /** + * CustomDimension description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @instance + */ + CustomDimension.prototype.description = ""; + + /** + * CustomDimension scope. + * @member {google.analytics.admin.v1alpha.CustomDimension.DimensionScope} scope + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @instance + */ + CustomDimension.prototype.scope = 0; + + /** + * CustomDimension disallowAdsPersonalization. + * @member {boolean} disallowAdsPersonalization + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @instance + */ + CustomDimension.prototype.disallowAdsPersonalization = false; + + /** + * Creates a new CustomDimension instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {google.analytics.admin.v1alpha.ICustomDimension=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension instance + */ + CustomDimension.create = function create(properties) { + return new CustomDimension(properties); + }; + + /** + * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {google.analytics.admin.v1alpha.ICustomDimension} message CustomDimension message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomDimension.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.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scope); + if (message.disallowAdsPersonalization != null && Object.hasOwnProperty.call(message, "disallowAdsPersonalization")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disallowAdsPersonalization); + return writer; + }; + + /** + * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {google.analytics.admin.v1alpha.ICustomDimension} message CustomDimension message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomDimension.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomDimension message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomDimension.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.analytics.admin.v1alpha.CustomDimension(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.parameterName = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.description = reader.string(); + break; + case 5: + message.scope = reader.int32(); + break; + case 6: + message.disallowAdsPersonalization = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomDimension message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomDimension.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomDimension message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomDimension.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.parameterName != null && message.hasOwnProperty("parameterName")) + if (!$util.isString(message.parameterName)) + return "parameterName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) + if (typeof message.disallowAdsPersonalization !== "boolean") + return "disallowAdsPersonalization: boolean expected"; + return null; + }; + + /** + * Creates a CustomDimension message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension + */ + CustomDimension.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CustomDimension) + return object; + var message = new $root.google.analytics.admin.v1alpha.CustomDimension(); + if (object.name != null) + message.name = String(object.name); + if (object.parameterName != null) + message.parameterName = String(object.parameterName); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.scope) { + case "DIMENSION_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "EVENT": + case 1: + message.scope = 1; + break; + case "USER": + case 2: + message.scope = 2; + break; + } + if (object.disallowAdsPersonalization != null) + message.disallowAdsPersonalization = Boolean(object.disallowAdsPersonalization); + return message; + }; + + /** + * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {google.analytics.admin.v1alpha.CustomDimension} message CustomDimension + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomDimension.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parameterName = ""; + object.displayName = ""; + object.description = ""; + object.scope = options.enums === String ? "DIMENSION_SCOPE_UNSPECIFIED" : 0; + object.disallowAdsPersonalization = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + object.parameterName = message.parameterName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] : message.scope; + if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) + object.disallowAdsPersonalization = message.disallowAdsPersonalization; + return object; + }; + + /** + * Converts this CustomDimension to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @instance + * @returns {Object.} JSON object + */ + CustomDimension.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * DimensionScope enum. + * @name google.analytics.admin.v1alpha.CustomDimension.DimensionScope + * @enum {number} + * @property {number} DIMENSION_SCOPE_UNSPECIFIED=0 DIMENSION_SCOPE_UNSPECIFIED value + * @property {number} EVENT=1 EVENT value + * @property {number} USER=2 USER value + */ + CustomDimension.DimensionScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DIMENSION_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EVENT"] = 1; + values[valuesById[2] = "USER"] = 2; + return values; + })(); + + return CustomDimension; + })(); + + v1alpha.CustomMetric = (function() { + + /** + * Properties of a CustomMetric. + * @memberof google.analytics.admin.v1alpha + * @interface ICustomMetric + * @property {string|null} [name] CustomMetric name + * @property {string|null} [parameterName] CustomMetric parameterName + * @property {string|null} [displayName] CustomMetric displayName + * @property {string|null} [description] CustomMetric description + * @property {google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|null} [measurementUnit] CustomMetric measurementUnit + * @property {google.analytics.admin.v1alpha.CustomMetric.MetricScope|null} [scope] CustomMetric scope + */ + + /** + * Constructs a new CustomMetric. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CustomMetric. + * @implements ICustomMetric + * @constructor + * @param {google.analytics.admin.v1alpha.ICustomMetric=} [properties] Properties to set + */ + function CustomMetric(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]]; + } + + /** + * CustomMetric name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + */ + CustomMetric.prototype.name = ""; - /** - * ChangeHistoryResource resource. - * @member {"account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|undefined} resource - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - Object.defineProperty(ChangeHistoryResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["account", "property", "webDataStream", "androidAppDataStream", "iosAppDataStream", "firebaseLink", "googleAdsLink"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * CustomMetric parameterName. + * @member {string} parameterName + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + */ + CustomMetric.prototype.parameterName = ""; - /** - * Creates a new ChangeHistoryResource instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance - */ - ChangeHistoryResource.create = function create(properties) { - return new ChangeHistoryResource(properties); - }; + /** + * CustomMetric displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + */ + CustomMetric.prototype.displayName = ""; - /** - * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeHistoryResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; + /** + * CustomMetric description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + */ + CustomMetric.prototype.description = ""; - /** - * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CustomMetric measurementUnit. + * @member {google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit} measurementUnit + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + */ + CustomMetric.prototype.measurementUnit = 0; - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeHistoryResource.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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); - break; - case 2: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; - case 3: - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); - break; - case 4: - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); - break; - case 5: - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); - break; - case 6: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); - break; - case 7: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * CustomMetric scope. + * @member {google.analytics.admin.v1alpha.CustomMetric.MetricScope} scope + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + */ + CustomMetric.prototype.scope = 0; - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new CustomMetric instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {google.analytics.admin.v1alpha.ICustomMetric=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric instance + */ + CustomMetric.create = function create(properties) { + return new CustomMetric(properties); + }; - /** - * Verifies a ChangeHistoryResource message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ChangeHistoryResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.account != null && message.hasOwnProperty("account")) { - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); - if (error) - return "account." + error; - } - } - if (message.property != null && message.hasOwnProperty("property")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); - if (error) - return "property." + error; - } - } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); - if (error) - return "webDataStream." + error; - } - } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); - if (error) - return "androidAppDataStream." + error; - } - } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); - if (error) - return "iosAppDataStream." + error; - } - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; - } - } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } + /** + * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {google.analytics.admin.v1alpha.ICustomMetric} message CustomMetric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomMetric.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.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.measurementUnit != null && Object.hasOwnProperty.call(message, "measurementUnit")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.measurementUnit); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scope); + return writer; + }; + + /** + * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {google.analytics.admin.v1alpha.ICustomMetric} message CustomMetric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomMetric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomMetric message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomMetric.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.analytics.admin.v1alpha.CustomMetric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.parameterName = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.description = reader.string(); + break; + case 5: + message.measurementUnit = reader.int32(); + break; + case 6: + message.scope = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource - */ - ChangeHistoryResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) - return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); - if (object.account != null) { - if (typeof object.account !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); - message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); - } - if (object.property != null) { - if (typeof object.property !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); - message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); - } - if (object.webDataStream != null) { - if (typeof object.webDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.webDataStream: object expected"); - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); - } - if (object.androidAppDataStream != null) { - if (typeof object.androidAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.androidAppDataStream: object expected"); - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); - } - if (object.iosAppDataStream != null) { - if (typeof object.iosAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.iosAppDataStream: object expected"); - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); - } - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); - } - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } - return message; - }; + /** + * Decodes a CustomMetric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomMetric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ChangeHistoryResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.account != null && message.hasOwnProperty("account")) { - object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); - if (options.oneofs) - object.resource = "account"; - } - if (message.property != null && message.hasOwnProperty("property")) { - object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); - if (options.oneofs) - object.resource = "property"; - } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); - if (options.oneofs) - object.resource = "webDataStream"; - } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); - if (options.oneofs) - object.resource = "androidAppDataStream"; - } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); - if (options.oneofs) - object.resource = "iosAppDataStream"; - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); - if (options.oneofs) - object.resource = "firebaseLink"; + /** + * Verifies a CustomMetric message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomMetric.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.parameterName != null && message.hasOwnProperty("parameterName")) + if (!$util.isString(message.parameterName)) + return "parameterName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) + switch (message.measurementUnit) { + default: + return "measurementUnit: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); - if (options.oneofs) - object.resource = "googleAdsLink"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + break; } + return null; + }; + + /** + * Creates a CustomMetric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric + */ + CustomMetric.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CustomMetric) return object; - }; + var message = new $root.google.analytics.admin.v1alpha.CustomMetric(); + if (object.name != null) + message.name = String(object.name); + if (object.parameterName != null) + message.parameterName = String(object.parameterName); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.measurementUnit) { + case "MEASUREMENT_UNIT_UNSPECIFIED": + case 0: + message.measurementUnit = 0; + break; + case "STANDARD": + case 1: + message.measurementUnit = 1; + break; + case "CURRENCY": + case 2: + message.measurementUnit = 2; + break; + case "FEET": + case 3: + message.measurementUnit = 3; + break; + case "METERS": + case 4: + message.measurementUnit = 4; + break; + case "KILOMETERS": + case 5: + message.measurementUnit = 5; + break; + case "MILES": + case 6: + message.measurementUnit = 6; + break; + case "MILLISECONDS": + case 7: + message.measurementUnit = 7; + break; + case "SECONDS": + case 8: + message.measurementUnit = 8; + break; + case "MINUTES": + case 9: + message.measurementUnit = 9; + break; + case "HOURS": + case 10: + message.measurementUnit = 10; + break; + } + switch (object.scope) { + case "METRIC_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "EVENT": + case 1: + message.scope = 1; + break; + } + return message; + }; - /** - * Converts this ChangeHistoryResource to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - * @returns {Object.} JSON object - */ - ChangeHistoryResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {google.analytics.admin.v1alpha.CustomMetric} message CustomMetric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomMetric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parameterName = ""; + object.displayName = ""; + object.description = ""; + object.measurementUnit = options.enums === String ? "MEASUREMENT_UNIT_UNSPECIFIED" : 0; + object.scope = options.enums === String ? "METRIC_SCOPE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + object.parameterName = message.parameterName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) + object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] : message.scope; + return object; + }; - return ChangeHistoryResource; + /** + * Converts this CustomMetric to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + * @returns {Object.} JSON object + */ + CustomMetric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * MeasurementUnit enum. + * @name google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + * @enum {number} + * @property {number} MEASUREMENT_UNIT_UNSPECIFIED=0 MEASUREMENT_UNIT_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} CURRENCY=2 CURRENCY value + * @property {number} FEET=3 FEET value + * @property {number} METERS=4 METERS value + * @property {number} KILOMETERS=5 KILOMETERS value + * @property {number} MILES=6 MILES value + * @property {number} MILLISECONDS=7 MILLISECONDS value + * @property {number} SECONDS=8 SECONDS value + * @property {number} MINUTES=9 MINUTES value + * @property {number} HOURS=10 HOURS value + */ + CustomMetric.MeasurementUnit = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MEASUREMENT_UNIT_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "CURRENCY"] = 2; + values[valuesById[3] = "FEET"] = 3; + values[valuesById[4] = "METERS"] = 4; + values[valuesById[5] = "KILOMETERS"] = 5; + values[valuesById[6] = "MILES"] = 6; + values[valuesById[7] = "MILLISECONDS"] = 7; + values[valuesById[8] = "SECONDS"] = 8; + values[valuesById[9] = "MINUTES"] = 9; + values[valuesById[10] = "HOURS"] = 10; + return values; })(); - return ChangeHistoryChange; + /** + * MetricScope enum. + * @name google.analytics.admin.v1alpha.CustomMetric.MetricScope + * @enum {number} + * @property {number} METRIC_SCOPE_UNSPECIFIED=0 METRIC_SCOPE_UNSPECIFIED value + * @property {number} EVENT=1 EVENT value + */ + CustomMetric.MetricScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EVENT"] = 1; + return values; + })(); + + return CustomMetric; })(); return v1alpha; diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 6106af298a1..5df82d2dad8 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -902,6 +902,151 @@ } ] }, + "GetMeasurementProtocolSecret": { + "requestType": "GetMeasurementProtocolSecretRequest", + "responseType": "MeasurementProtocolSecret", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).additional_bindings.get": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", + "additional_bindings": [ + { + "get": "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + }, + { + "get": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + ] + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListMeasurementProtocolSecrets": { + "requestType": "ListMeasurementProtocolSecretsRequest", + "responseType": "ListMeasurementProtocolSecretsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", + "(google.api.http).additional_bindings.get": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", + "additional_bindings": [ + { + "get": "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" + }, + { + "get": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" + } + ] + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateMeasurementProtocolSecret": { + "requestType": "CreateMeasurementProtocolSecretRequest", + "responseType": "MeasurementProtocolSecret", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", + "(google.api.http).body": "measurement_protocol_secret", + "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets", + "(google.api.http).additional_bindings.body": "measurement_protocol_secret", + "(google.api.method_signature)": "parent,measurement_protocol_secret" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", + "body": "measurement_protocol_secret", + "additional_bindings": [ + { + "post": "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets", + "body": "measurement_protocol_secret" + }, + { + "post": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets", + "body": "measurement_protocol_secret" + } + ] + } + }, + { + "(google.api.method_signature)": "parent,measurement_protocol_secret" + } + ] + }, + "DeleteMeasurementProtocolSecret": { + "requestType": "DeleteMeasurementProtocolSecretRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).additional_bindings.delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", + "additional_bindings": [ + { + "delete": "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + }, + { + "delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + ] + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateMeasurementProtocolSecret": { + "requestType": "UpdateMeasurementProtocolSecretRequest", + "responseType": "MeasurementProtocolSecret", + "options": { + "(google.api.http).patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).body": "measurement_protocol_secret", + "(google.api.http).additional_bindings.patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).additional_bindings.body": "measurement_protocol_secret", + "(google.api.method_signature)": "measurement_protocol_secret,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", + "body": "measurement_protocol_secret", + "additional_bindings": [ + { + "patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}", + "body": "measurement_protocol_secret" + }, + { + "patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", + "body": "measurement_protocol_secret" + } + ] + } + }, + { + "(google.api.method_signature)": "measurement_protocol_secret,update_mask" + } + ] + }, "SearchChangeHistoryEvents": { "requestType": "SearchChangeHistoryEventsRequest", "responseType": "SearchChangeHistoryEventsResponse", @@ -917,73 +1062,687 @@ } } ] + }, + "GetGoogleSignalsSettings": { + "requestType": "GetGoogleSignalsSettingsRequest", + "responseType": "GoogleSignalsSettings", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/googleSignalsSettings}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/googleSignalsSettings}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateGoogleSignalsSettings": { + "requestType": "UpdateGoogleSignalsSettingsRequest", + "responseType": "GoogleSignalsSettings", + "options": { + "(google.api.http).patch": "/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}", + "(google.api.http).body": "google_signals_settings", + "(google.api.method_signature)": "google_signals_settings,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}", + "body": "google_signals_settings" + } + }, + { + "(google.api.method_signature)": "google_signals_settings,update_mask" + } + ] + }, + "CreateConversionEvent": { + "requestType": "CreateConversionEventRequest", + "responseType": "ConversionEvent", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/conversionEvents", + "(google.api.http).body": "conversion_event", + "(google.api.method_signature)": "parent,conversion_event" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/conversionEvents", + "body": "conversion_event" + } + }, + { + "(google.api.method_signature)": "parent,conversion_event" + } + ] + }, + "GetConversionEvent": { + "requestType": "GetConversionEventRequest", + "responseType": "ConversionEvent", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/conversionEvents/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/conversionEvents/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "DeleteConversionEvent": { + "requestType": "DeleteConversionEventRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/conversionEvents/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/conversionEvents/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListConversionEvents": { + "requestType": "ListConversionEventsRequest", + "responseType": "ListConversionEventsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/conversionEvents", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/conversionEvents" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateCustomDimension": { + "requestType": "CreateCustomDimensionRequest", + "responseType": "CustomDimension", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/customDimensions", + "(google.api.http).body": "custom_dimension", + "(google.api.method_signature)": "parent,custom_dimension" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/customDimensions", + "body": "custom_dimension" + } + }, + { + "(google.api.method_signature)": "parent,custom_dimension" + } + ] + }, + "UpdateCustomDimension": { + "requestType": "UpdateCustomDimensionRequest", + "responseType": "CustomDimension", + "options": { + "(google.api.http).patch": "/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}", + "(google.api.http).body": "custom_dimension", + "(google.api.method_signature)": "custom_dimension,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}", + "body": "custom_dimension" + } + }, + { + "(google.api.method_signature)": "custom_dimension,update_mask" + } + ] + }, + "ListCustomDimensions": { + "requestType": "ListCustomDimensionsRequest", + "responseType": "ListCustomDimensionsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/customDimensions", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/customDimensions" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "ArchiveCustomDimension": { + "requestType": "ArchiveCustomDimensionRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1alpha/{name=properties/*/customDimensions/*}:archive", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{name=properties/*/customDimensions/*}:archive", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetCustomDimension": { + "requestType": "GetCustomDimensionRequest", + "responseType": "CustomDimension", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/customDimensions/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/customDimensions/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateCustomMetric": { + "requestType": "CreateCustomMetricRequest", + "responseType": "CustomMetric", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/customMetrics", + "(google.api.http).body": "custom_metric", + "(google.api.method_signature)": "parent,custom_metric" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/customMetrics", + "body": "custom_metric" + } + }, + { + "(google.api.method_signature)": "parent,custom_metric" + } + ] + }, + "UpdateCustomMetric": { + "requestType": "UpdateCustomMetricRequest", + "responseType": "CustomMetric", + "options": { + "(google.api.http).patch": "/v1alpha/{custom_metric.name=properties/*/customMetrics/*}", + "(google.api.http).body": "custom_metric", + "(google.api.method_signature)": "custom_metric,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{custom_metric.name=properties/*/customMetrics/*}", + "body": "custom_metric" + } + }, + { + "(google.api.method_signature)": "custom_metric,update_mask" + } + ] + }, + "ListCustomMetrics": { + "requestType": "ListCustomMetricsRequest", + "responseType": "ListCustomMetricsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/customMetrics", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/customMetrics" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "ArchiveCustomMetric": { + "requestType": "ArchiveCustomMetricRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1alpha/{name=properties/*/customMetrics/*}:archive", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{name=properties/*/customMetrics/*}:archive", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetCustomMetric": { + "requestType": "GetCustomMetricRequest", + "responseType": "CustomMetric", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/customMetrics/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/customMetrics/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + }, + "GetAccountRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "ListAccountsRequest": { + "fields": { + "pageSize": { + "type": "int32", + "id": 1 + }, + "pageToken": { + "type": "string", + "id": 2 + }, + "showDeleted": { + "type": "bool", + "id": 3 + } + } + }, + "ListAccountsResponse": { + "fields": { + "accounts": { + "rule": "repeated", + "type": "Account", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteAccountRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "UpdateAccountRequest": { + "fields": { + "account": { + "type": "Account", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ProvisionAccountTicketRequest": { + "fields": { + "account": { + "type": "Account", + "id": 1 + }, + "redirectUri": { + "type": "string", + "id": 2 + } + } + }, + "ProvisionAccountTicketResponse": { + "fields": { + "accountTicketId": { + "type": "string", + "id": 1 + } + } + }, + "GetPropertyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + } + } + }, + "ListPropertiesRequest": { + "fields": { + "filter": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "showDeleted": { + "type": "bool", + "id": 4 + } + } + }, + "ListPropertiesResponse": { + "fields": { + "properties": { + "rule": "repeated", + "type": "Property", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "UpdatePropertyRequest": { + "fields": { + "property": { + "type": "Property", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CreatePropertyRequest": { + "fields": { + "property": { + "type": "Property", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeletePropertyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + } + } + }, + "GetUserLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + } + } + } + }, + "BatchGetUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "names": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + } + } + } + }, + "BatchGetUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "UserLink", + "id": 1 + } + } + }, + "ListUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "UserLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "AuditUserLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "AuditUserLinksResponse": { + "fields": { + "userLinks": { + "rule": "repeated", + "type": "AuditUserLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } } }, - "GetAccountRequest": { + "CreateUserLinkRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "notifyNewUser": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "userLink": { + "type": "UserLink", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" } } } }, - "ListAccountsRequest": { + "BatchCreateUserLinksRequest": { "fields": { - "pageSize": { - "type": "int32", - "id": 1 - }, - "pageToken": { + "parent": { "type": "string", - "id": 2 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } }, - "showDeleted": { + "notifyNewUsers": { "type": "bool", - "id": 3 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "requests": { + "rule": "repeated", + "type": "CreateUserLinkRequest", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListAccountsResponse": { + "BatchCreateUserLinksResponse": { "fields": { - "accounts": { + "userLinks": { "rule": "repeated", - "type": "Account", + "type": "UserLink", "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 } } }, - "DeleteAccountRequest": { + "UpdateUserLinkRequest": { "fields": { - "name": { - "type": "string", + "userLink": { + "type": "UserLink", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "UpdateAccountRequest": { + "BatchUpdateUserLinksRequest": { "fields": { - "account": { - "type": "Account", + "parent": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "requests": { + "rule": "repeated", + "type": "UpdateUserLinkRequest", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -991,47 +1750,118 @@ } } }, - "ProvisionAccountTicketRequest": { + "BatchUpdateUserLinksResponse": { "fields": { - "account": { - "type": "Account", + "userLinks": { + "rule": "repeated", + "type": "UserLink", "id": 1 - }, - "redirectUri": { + } + } + }, + "DeleteUserLinkRequest": { + "fields": { + "name": { "type": "string", - "id": 2 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + } } } }, - "ProvisionAccountTicketResponse": { + "BatchDeleteUserLinksRequest": { "fields": { - "accountTicketId": { + "parent": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "requests": { + "rule": "repeated", + "type": "DeleteUserLinkRequest", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "GetPropertyRequest": { + "GetWebDataStreamRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" } } } }, - "ListPropertiesRequest": { + "DeleteWebDataStreamRequest": { "fields": { - "filter": { + "name": { "type": "string", "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" + } + } + } + }, + "UpdateWebDataStreamRequest": { + "fields": { + "webDataStream": { + "type": "WebDataStream", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CreateWebDataStreamRequest": { + "fields": { + "webDataStream": { + "type": "WebDataStream", + "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" + } + } + } + }, + "ListWebDataStreamsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" + } + }, "pageSize": { "type": "int32", "id": 2 @@ -1039,18 +1869,14 @@ "pageToken": { "type": "string", "id": 3 - }, - "showDeleted": { - "type": "bool", - "id": 4 } } }, - "ListPropertiesResponse": { + "ListWebDataStreamsResponse": { "fields": { - "properties": { + "webDataStreams": { "rule": "repeated", - "type": "Property", + "type": "WebDataStream", "id": 1 }, "nextPageToken": { @@ -1059,10 +1885,34 @@ } } }, - "UpdatePropertyRequest": { + "GetIosAppDataStreamRequest": { "fields": { - "property": { - "type": "Property", + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" + } + } + } + }, + "DeleteIosAppDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" + } + } + } + }, + "UpdateIosAppDataStreamRequest": { + "fields": { + "iosAppDataStream": { + "type": "IosAppDataStream", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1077,79 +1927,89 @@ } } }, - "CreatePropertyRequest": { + "ListIosAppDataStreamsRequest": { "fields": { - "property": { - "type": "Property", + "parent": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/IosAppDataStream" } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 } } }, - "DeletePropertyRequest": { + "ListIosAppDataStreamsResponse": { + "fields": { + "iosAppDataStreams": { + "rule": "repeated", + "type": "IosAppDataStream", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetAndroidAppDataStreamRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" } } } }, - "GetUserLinkRequest": { + "DeleteAndroidAppDataStreamRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" } } } }, - "BatchGetUserLinksRequest": { + "UpdateAndroidAppDataStreamRequest": { "fields": { - "parent": { - "type": "string", + "androidAppDataStream": { + "type": "AndroidAppDataStream", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.field_behavior)": "REQUIRED" } }, - "names": { - "rule": "repeated", - "type": "string", + "updateMask": { + "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "BatchGetUserLinksResponse": { - "fields": { - "userLinks": { - "rule": "repeated", - "type": "UserLink", - "id": 1 - } - } - }, - "ListUserLinksRequest": { + "ListAndroidAppDataStreamsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AndroidAppDataStream" } }, "pageSize": { @@ -1162,11 +2022,11 @@ } } }, - "ListUserLinksResponse": { + "ListAndroidAppDataStreamsResponse": { "fields": { - "userLinks": { + "androidAppDataStreams": { "rule": "repeated", - "type": "UserLink", + "type": "AndroidAppDataStream", "id": 1 }, "nextPageToken": { @@ -1175,166 +2035,142 @@ } } }, - "AuditUserLinksRequest": { + "GetEnhancedMeasurementSettingsRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 } } }, - "AuditUserLinksResponse": { + "UpdateEnhancedMeasurementSettingsRequest": { "fields": { - "userLinks": { - "rule": "repeated", - "type": "AuditUserLink", - "id": 1 + "enhancedMeasurementSettings": { + "type": "EnhancedMeasurementSettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "nextPageToken": { - "type": "string", - "id": 2 + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "CreateUserLinkRequest": { + "CreateFirebaseLinkRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" } }, - "notifyNewUser": { - "type": "bool", + "firebaseLink": { + "type": "FirebaseLink", "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "userLink": { - "type": "UserLink", - "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "BatchCreateUserLinksRequest": { + "UpdateFirebaseLinkRequest": { "fields": { - "parent": { - "type": "string", + "firebaseLink": { + "type": "FirebaseLink", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.field_behavior)": "REQUIRED" } }, - "notifyNewUsers": { - "type": "bool", + "updateMask": { + "type": "google.protobuf.FieldMask", "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "requests": { - "rule": "repeated", - "type": "CreateUserLinkRequest", - "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "BatchCreateUserLinksResponse": { - "fields": { - "userLinks": { - "rule": "repeated", - "type": "UserLink", - "id": 1 - } - } - }, - "UpdateUserLinkRequest": { + "DeleteFirebaseLinkRequest": { "fields": { - "userLink": { - "type": "UserLink", + "name": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/FirebaseLink" } } } }, - "BatchUpdateUserLinksRequest": { + "ListFirebaseLinksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" } }, - "requests": { - "rule": "repeated", - "type": "UpdateUserLinkRequest", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 } } }, - "BatchUpdateUserLinksResponse": { + "ListFirebaseLinksResponse": { "fields": { - "userLinks": { + "firebaseLinks": { "rule": "repeated", - "type": "UserLink", + "type": "FirebaseLink", "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } } }, - "DeleteUserLinkRequest": { + "GetGlobalSiteTagRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GlobalSiteTag" } } } }, - "BatchDeleteUserLinksRequest": { + "CreateGoogleAdsLinkRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" } }, - "requests": { - "rule": "repeated", - "type": "DeleteUserLinkRequest", + "googleAdsLink": { + "type": "GoogleAdsLink", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1342,92 +2178,95 @@ } } }, - "GetWebDataStreamRequest": { + "UpdateGoogleAdsLinkRequest": { "fields": { - "name": { - "type": "string", - "id": 1, + "googleAdsLink": { + "type": "GoogleAdsLink", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteWebDataStreamRequest": { + "DeleteGoogleAdsLinkRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GoogleAdsLink" } } } }, - "UpdateWebDataStreamRequest": { + "ListGoogleAdsLinksRequest": { "fields": { - "webDataStream": { - "type": "WebDataStream", + "parent": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 } } }, - "CreateWebDataStreamRequest": { + "ListGoogleAdsLinksResponse": { "fields": { - "webDataStream": { - "type": "WebDataStream", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "googleAdsLinks": { + "rule": "repeated", + "type": "GoogleAdsLink", + "id": 1 }, - "parent": { + "nextPageToken": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" - } + "id": 2 } } }, - "ListWebDataStreamsRequest": { + "GetDataSharingSettingsRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataSharingSettings" } - }, + } + } + }, + "ListAccountSummariesRequest": { + "fields": { "pageSize": { "type": "int32", - "id": 2 + "id": 1 }, "pageToken": { "type": "string", - "id": 3 + "id": 2 } } }, - "ListWebDataStreamsResponse": { + "ListAccountSummariesResponse": { "fields": { - "webDataStreams": { + "accountSummaries": { "rule": "repeated", - "type": "WebDataStream", + "type": "AccountSummary", "id": 1 }, "nextPageToken": { @@ -1436,73 +2275,83 @@ } } }, - "GetIosAppDataStreamRequest": { + "SearchChangeHistoryEventsRequest": { "fields": { - "name": { + "account": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" } - } - } - }, - "DeleteIosAppDataStreamRequest": { - "fields": { - "name": { + }, + "property": { "type": "string", - "id": 1, + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" } - } - } - }, - "UpdateIosAppDataStreamRequest": { - "fields": { - "iosAppDataStream": { - "type": "IosAppDataStream", - "id": 1, + }, + "resourceType": { + "rule": "repeated", + "type": "ChangeHistoryResourceType", + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, + "action": { + "rule": "repeated", + "type": "ActionType", + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } - } - } - }, - "ListIosAppDataStreamsRequest": { - "fields": { - "parent": { + }, + "actorEmail": { + "rule": "repeated", "type": "string", - "id": 1, + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/IosAppDataStream" + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "earliestChangeTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "latestChangeTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } }, "pageSize": { "type": "int32", - "id": 2 + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, "pageToken": { "type": "string", - "id": 3 + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "ListIosAppDataStreamsResponse": { + "SearchChangeHistoryEventsResponse": { "fields": { - "iosAppDataStreams": { + "changeHistoryEvents": { "rule": "repeated", - "type": "IosAppDataStream", + "type": "ChangeHistoryEvent", "id": 1 }, "nextPageToken": { @@ -1511,34 +2360,53 @@ } } }, - "GetAndroidAppDataStreamRequest": { + "GetMeasurementProtocolSecretRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" } } } }, - "DeleteAndroidAppDataStreamRequest": { + "CreateMeasurementProtocolSecretRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + }, + "measurementProtocolSecret": { + "type": "MeasurementProtocolSecret", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteMeasurementProtocolSecretRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" } } } }, - "UpdateAndroidAppDataStreamRequest": { + "UpdateMeasurementProtocolSecretRequest": { "fields": { - "androidAppDataStream": { - "type": "AndroidAppDataStream", + "measurementProtocolSecret": { + "type": "MeasurementProtocolSecret", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1546,21 +2414,18 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 2 } } }, - "ListAndroidAppDataStreamsRequest": { + "ListMeasurementProtocolSecretsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" } }, "pageSize": { @@ -1573,11 +2438,11 @@ } } }, - "ListAndroidAppDataStreamsResponse": { + "ListMeasurementProtocolSecretsResponse": { "fields": { - "androidAppDataStreams": { + "measurementProtocolSecrets": { "rule": "repeated", - "type": "AndroidAppDataStream", + "type": "MeasurementProtocolSecret", "id": 1 }, "nextPageToken": { @@ -1586,22 +2451,22 @@ } } }, - "GetEnhancedMeasurementSettingsRequest": { + "GetGoogleSignalsSettingsRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GoogleSignalsSettings" } } } }, - "UpdateEnhancedMeasurementSettingsRequest": { + "UpdateGoogleSignalsSettingsRequest": { "fields": { - "enhancedMeasurementSettings": { - "type": "EnhancedMeasurementSettings", + "googleSignalsSettings": { + "type": "GoogleSignalsSettings", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1616,63 +2481,57 @@ } } }, - "CreateFirebaseLinkRequest": { + "CreateConversionEventRequest": { "fields": { - "parent": { - "type": "string", + "conversionEvent": { + "type": "ConversionEvent", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" + "(google.api.field_behavior)": "REQUIRED" } }, - "firebaseLink": { - "type": "FirebaseLink", + "parent": { + "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/ConversionEvent" } } } }, - "UpdateFirebaseLinkRequest": { + "GetConversionEventRequest": { "fields": { - "firebaseLink": { - "type": "FirebaseLink", + "name": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/ConversionEvent" } } } }, - "DeleteFirebaseLinkRequest": { + "DeleteConversionEventRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/FirebaseLink" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/ConversionEvent" } } } }, - "ListFirebaseLinksRequest": { + "ListConversionEventsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/ConversionEvent" } }, "pageSize": { @@ -1685,11 +2544,11 @@ } } }, - "ListFirebaseLinksResponse": { + "ListConversionEventsResponse": { "fields": { - "firebaseLinks": { + "conversionEvents": { "rule": "repeated", - "type": "FirebaseLink", + "type": "ConversionEvent", "id": 1 }, "nextPageToken": { @@ -1698,30 +2557,18 @@ } } }, - "GetGlobalSiteTagRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GlobalSiteTag" - } - } - } - }, - "CreateGoogleAdsLinkRequest": { + "CreateCustomDimensionRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" } }, - "googleAdsLink": { - "type": "GoogleAdsLink", + "customDimension": { + "type": "CustomDimension", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -1729,10 +2576,10 @@ } } }, - "UpdateGoogleAdsLinkRequest": { + "UpdateCustomDimensionRequest": { "fields": { - "googleAdsLink": { - "type": "GoogleAdsLink", + "customDimension": { + "type": "CustomDimension", "id": 1 }, "updateMask": { @@ -1744,26 +2591,14 @@ } } }, - "DeleteGoogleAdsLinkRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GoogleAdsLink" - } - } - } - }, - "ListGoogleAdsLinksRequest": { + "ListCustomDimensionsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" } }, "pageSize": { @@ -1776,11 +2611,11 @@ } } }, - "ListGoogleAdsLinksResponse": { + "ListCustomDimensionsResponse": { "fields": { - "googleAdsLinks": { + "customDimensions": { "rule": "repeated", - "type": "GoogleAdsLink", + "type": "CustomDimension", "id": 1 }, "nextPageToken": { @@ -1789,120 +2624,89 @@ } } }, - "GetDataSharingSettingsRequest": { + "ArchiveCustomDimensionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataSharingSettings" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" } } } }, - "ListAccountSummariesRequest": { - "fields": { - "pageSize": { - "type": "int32", - "id": 1 - }, - "pageToken": { - "type": "string", - "id": 2 - } - } - }, - "ListAccountSummariesResponse": { - "fields": { - "accountSummaries": { - "rule": "repeated", - "type": "AccountSummary", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "SearchChangeHistoryEventsRequest": { + "GetCustomDimensionRequest": { "fields": { - "account": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" - } - }, - "property": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" - } - }, - "resourceType": { - "rule": "repeated", - "type": "ChangeHistoryResourceType", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "action": { - "rule": "repeated", - "type": "ActionType", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" } - }, - "actorEmail": { - "rule": "repeated", + } + } + }, + "CreateCustomMetricRequest": { + "fields": { + "parent": { "type": "string", - "id": 5, + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" } }, - "earliestChangeTime": { - "type": "google.protobuf.Timestamp", - "id": 6, + "customMetric": { + "type": "CustomMetric", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } + } + } + }, + "UpdateCustomMetricRequest": { + "fields": { + "customMetric": { + "type": "CustomMetric", + "id": 1 }, - "latestChangeTime": { - "type": "google.protobuf.Timestamp", - "id": 7, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListCustomMetricsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" } }, "pageSize": { "type": "int32", - "id": 8, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 2 }, "pageToken": { "type": "string", - "id": 9, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 3 } } }, - "SearchChangeHistoryEventsResponse": { + "ListCustomMetricsResponse": { "fields": { - "changeHistoryEvents": { + "customMetrics": { "rule": "repeated", - "type": "ChangeHistoryEvent", + "type": "CustomMetric", "id": 1 }, "nextPageToken": { @@ -1911,6 +2715,30 @@ } } }, + "ArchiveCustomMetricRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomMetric" + } + } + } + }, + "GetCustomMetricRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomMetric" + } + } + } + }, "MaximumUserAccess": { "values": { "MAXIMUM_USER_ACCESS_UNSPECIFIED": 0, @@ -1976,7 +2804,26 @@ "ANDROID_APP_DATA_STREAM": 4, "IOS_APP_DATA_STREAM": 5, "FIREBASE_LINK": 6, - "GOOGLE_ADS_LINK": 7 + "GOOGLE_ADS_LINK": 7, + "GOOGLE_SIGNALS_SETTINGS": 8, + "CONVERSION_EVENT": 9, + "MEASUREMENT_PROTOCOL_SECRET": 10, + "CUSTOM_DIMENSION": 11, + "CUSTOM_METRIC": 12 + } + }, + "GoogleSignalsState": { + "values": { + "GOOGLE_SIGNALS_STATE_UNSPECIFIED": 0, + "GOOGLE_SIGNALS_ENABLED": 1, + "GOOGLE_SIGNALS_DISABLED": 2 + } + }, + "GoogleSignalsConsent": { + "values": { + "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED": 0, + "GOOGLE_SIGNALS_CONSENT_CONSENTED": 2, + "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED": 1 } }, "Account": { @@ -2257,11 +3104,17 @@ "fields": { "name": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "emailAddress": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } }, "directRoles": { "rule": "repeated", @@ -2547,6 +3400,35 @@ } } }, + "MeasurementProtocolSecret": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret", + "(google.api.resource).pattern": "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "secretValue": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "ChangeHistoryEvent": { "fields": { "id": { @@ -2606,7 +3488,12 @@ "androidAppDataStream", "iosAppDataStream", "firebaseLink", - "googleAdsLink" + "googleAdsLink", + "googleSignalsSettings", + "conversionEvent", + "measurementProtocolSecret", + "customDimension", + "customMetric" ] } }, @@ -2638,10 +3525,224 @@ "googleAdsLink": { "type": "GoogleAdsLink", "id": 7 + }, + "googleSignalsSettings": { + "type": "GoogleSignalsSettings", + "id": 8 + }, + "conversionEvent": { + "type": "ConversionEvent", + "id": 11 + }, + "measurementProtocolSecret": { + "type": "MeasurementProtocolSecret", + "id": 12 + }, + "customDimension": { + "type": "CustomDimension", + "id": 13 + }, + "customMetric": { + "type": "CustomMetric", + "id": 14 } } } } + }, + "ConversionEvent": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/ConversionEvent", + "(google.api.resource).pattern": "properties/{property}/conversionEvents/{conversion_event}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "eventName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "isDeletable": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "GoogleSignalsSettings": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/GoogleSignalsSettings", + "(google.api.resource).pattern": "properties/{property}/googleSignalsSettings" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "GoogleSignalsState", + "id": 3 + }, + "consent": { + "type": "GoogleSignalsConsent", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "CustomDimension": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/CustomDimension", + "(google.api.resource).pattern": "properties/{property}/customDimensions" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameterName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "scope": { + "type": "DimensionScope", + "id": 5, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "disallowAdsPersonalization": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "DimensionScope": { + "values": { + "DIMENSION_SCOPE_UNSPECIFIED": 0, + "EVENT": 1, + "USER": 2 + } + } + } + }, + "CustomMetric": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/CustomMetric", + "(google.api.resource).pattern": "properties/{property}/customMetrics" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameterName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "measurementUnit": { + "type": "MeasurementUnit", + "id": 5, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "scope": { + "type": "MetricScope", + "id": 6, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + }, + "nested": { + "MeasurementUnit": { + "values": { + "MEASUREMENT_UNIT_UNSPECIFIED": 0, + "STANDARD": 1, + "CURRENCY": 2, + "FEET": 3, + "METERS": 4, + "KILOMETERS": 5, + "MILES": 6, + "MILLISECONDS": 7, + "SECONDS": 8, + "MINUTES": 9, + "HOURS": 10 + } + }, + "MetricScope": { + "values": { + "METRIC_SCOPE_UNSPECIFIED": 0, + "EVENT": 1 + } + } + } } } } diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 7daeb8669f4..e1399f1d896 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -166,6 +166,15 @@ export class AnalyticsAdminServiceClient { androidAppDataStreamPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/androidAppDataStreams/{android_app_data_stream}' ), + conversionEventPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/conversionEvents/{conversion_event}' + ), + customDimensionPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/customDimensions' + ), + customMetricPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/customMetrics' + ), dataSharingSettingsPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}/dataSharingSettings' ), @@ -181,9 +190,15 @@ export class AnalyticsAdminServiceClient { googleAdsLinkPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/googleAdsLinks/{google_ads_link}' ), + googleSignalsSettingsPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/googleSignalsSettings' + ), iosAppDataStreamPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/iosAppDataStreams/{ios_app_data_stream}' ), + measurementProtocolSecretPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}' + ), propertyPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}' ), @@ -249,11 +264,31 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'googleAdsLinks' ), + listMeasurementProtocolSecrets: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'measurementProtocolSecrets' + ), searchChangeHistoryEvents: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', 'changeHistoryEvents' ), + listConversionEvents: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'conversionEvents' + ), + listCustomDimensions: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'customDimensions' + ), + listCustomMetrics: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'customMetrics' + ), }; // Put together the default options sent with requests. @@ -349,7 +384,28 @@ export class AnalyticsAdminServiceClient { 'deleteGoogleAdsLink', 'listGoogleAdsLinks', 'getDataSharingSettings', + 'getMeasurementProtocolSecret', + 'listMeasurementProtocolSecrets', + 'createMeasurementProtocolSecret', + 'deleteMeasurementProtocolSecret', + 'updateMeasurementProtocolSecret', 'searchChangeHistoryEvents', + 'getGoogleSignalsSettings', + 'updateGoogleSignalsSettings', + 'createConversionEvent', + 'getConversionEvent', + 'deleteConversionEvent', + 'listConversionEvents', + 'createCustomDimension', + 'updateCustomDimension', + 'listCustomDimensions', + 'archiveCustomDimension', + 'getCustomDimension', + 'createCustomMetric', + 'updateCustomMetric', + 'listCustomMetrics', + 'archiveCustomMetric', + 'getCustomMetric', ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( @@ -4038,97 +4094,87 @@ export class AnalyticsAdminServiceClient { callback ); } - - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined ] >; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. + * Lookup for a single "GA4" MeasurementProtocolSecret. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * @param {string} request.name + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, + * AndroidAppDataStream) may be a parent. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. + * @example + * const [response] = await client.getMeasurementProtocolSecret(request); */ - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined ] > | void { request = request || {}; @@ -4140,188 +4186,2776 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); - return this.innerApiCalls.listAccounts(request, options, callback); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Stream} - * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed. Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccountsStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): Transform { - request = request || {}; - options = options || {}; - const callSettings = new gax.CallSettings(options); - this.initialize(); - return this.descriptors.page.listAccounts.createStream( - this.innerApiCalls.listAccounts as gax.GaxCall, + return this.innerApiCalls.getMeasurementProtocolSecret( request, - callSettings + options, + callback ); } - - /** - * Equivalent to `listAccounts`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - * @example - * const iterable = client.listAccountsAsync(request); - * for await (const response of iterable) { - * // process response - * } - */ - listAccountsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options = options || {}; - const callSettings = new gax.CallSettings(options); - this.initialize(); - return this.descriptors.page.listAccounts.asyncIterate( - this.innerApiCalls['listAccounts'] as GaxCall, - request as unknown as RequestType, - callSettings - ) as AsyncIterable; - } - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined ] >; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): void; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): void; /** - * Returns summaries of all accounts accessible by the caller. + * Creates a measurement protocol secret. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * @param {string} request.parent + * Required. The parent resource where this secret will be created. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: properties/{property}/webDataStreams/{webDataStream} + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` - * method described below for async iteration which you can stop as needed. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. + * @example + * const [response] = await client.createMeasurementProtocolSecret(request); */ - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createMeasurementProtocolSecret( + request, + options, + callback + ); + } + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + >; + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes target MeasurementProtocolSecret. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, + * AndroidAppDataStream) may be a parent. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteMeasurementProtocolSecret(request); + */ + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteMeasurementProtocolSecret( + request, + options, + callback + ); + } + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + >; + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a measurement protocol secret. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateMeasurementProtocolSecret(request); + */ + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'measurement_protocol_secret.name': + request.measurementProtocolSecret!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateMeasurementProtocolSecret( + request, + options, + callback + ); + } + getGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for Google Signals settings for a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getGoogleSignalsSettings(request); + */ + getGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getGoogleSignalsSettings( + request, + options, + callback + ); + } + updateGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | undefined + ), + {} | undefined + ] + >; + updateGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates Google Signals settings for a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} request.googleSignalsSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateGoogleSignalsSettings(request); + */ + updateGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'google_signals_settings.name': + request.googleSignalsSettings!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateGoogleSignalsSettings( + request, + options, + callback + ); + } + createConversionEvent( + request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IConversionEvent, + ( + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | undefined + ), + {} | undefined + ] + >; + createConversionEvent( + request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createConversionEvent( + request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a conversion event with the specified attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.ConversionEvent} request.conversionEvent + * Required. The conversion event to create. + * @param {string} request.parent + * Required. The resource name of the parent property where this conversion event will + * be created. Format: properties/123 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createConversionEvent(request); + */ + createConversionEvent( + request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IConversionEvent, + ( + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createConversionEvent(request, options, callback); + } + getConversionEvent( + request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IConversionEvent, + ( + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | undefined + ), + {} | undefined + ] + >; + getConversionEvent( + request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getConversionEvent( + request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Retrieve a single conversion event. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getConversionEvent(request); + */ + getConversionEvent( + request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IConversionEvent, + ( + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getConversionEvent(request, options, callback); + } + deleteConversionEvent( + request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | undefined + ), + {} | undefined + ] + >; + deleteConversionEvent( + request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteConversionEvent( + request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a conversion event in a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteConversionEvent(request); + */ + deleteConversionEvent( + request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteConversionEvent(request, options, callback); + } + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a CustomDimension. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension + * Required. The CustomDimension to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createCustomDimension(request); + */ + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createCustomDimension(request, options, callback); + } + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a CustomDimension on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension + * The CustomDimension to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateCustomDimension(request); + */ + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'custom_dimension.name': request.customDimension!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateCustomDimension(request, options, callback); + } + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Archives a CustomDimension on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.archiveCustomDimension(request); + */ + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.archiveCustomDimension( + request, + options, + callback + ); + } + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for a single CustomDimension. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getCustomDimension(request); + */ + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getCustomDimension(request, options, callback); + } + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a CustomMetric. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric + * Required. The CustomMetric to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createCustomMetric(request); + */ + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createCustomMetric(request, options, callback); + } + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates a CustomMetric on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric + * The CustomMetric to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateCustomMetric(request); + */ + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'custom_metric.name': request.customMetric!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateCustomMetric(request, options, callback); + } + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Archives a CustomMetric on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.archiveCustomMetric(request); + */ + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.archiveCustomMetric(request, options, callback); + } + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, + {} | undefined + ] + >; + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lookup for a single CustomMetric. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getCustomMetric(request); + */ + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getCustomMetric(request, options, callback); + } + + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + >; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.listAccounts(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccounts`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listAccountsAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listAccountsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + >; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + /** + * Returns summaries of all accounts accessible by the caller. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse | null | undefined, protos.google.analytics.admin.v1alpha.IAccountSummary > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.listAccountSummaries(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummariesStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.createStream( + this.innerApiCalls.listAccountSummaries as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccountSummaries`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listAccountSummariesAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listAccountSummariesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.asyncIterate( + this.innerApiCalls['listAccountSummaries'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + >; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + this.initialize(); + return this.innerApiCalls.listProperties(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listPropertiesStream( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listProperties.createStream( + this.innerApiCalls.listProperties as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listProperties`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listPropertiesAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listPropertiesAsync( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listProperties.asyncIterate( + this.innerApiCalls['listProperties'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse + ] + >; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + /** + * Lists all user links on an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listUserLinks(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listUserLinks.createStream( + this.innerApiCalls.listUserLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listUserLinks`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listUserLinksAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listUserLinks.asyncIterate( + this.innerApiCalls['listUserLinks'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + ] + >; + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): void; + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): void; + /** + * Lists all user links on an account or property, including implicit ones + * that come from effective permissions granted by groups or organization + * admin roles. + * + * If a returned user link does not have direct permissions, they cannot + * be removed from the account or property directly with the DeleteUserLink + * command. They have to be removed from the group/etc that gives them + * permissions, which is currently only usable/discoverable in the GA or GMP + * UIs. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. + * @param {string} request.pageToken + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `auditUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.auditUserLinks(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. + * @param {string} request.pageToken + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `auditUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + auditUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.auditUserLinks.createStream( + this.innerApiCalls.auditUserLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `auditUserLinks`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. + * @param {string} request.pageToken + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.auditUserLinksAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + auditUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.auditUserLinks.asyncIterate( + this.innerApiCalls['auditUserLinks'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream[], + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + ] + >; + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): void; + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): void; + /** + * Returns child web data streams under the specified parent property. + * + * Web data streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant web data streams are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListWebDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListWebDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listWebDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream[], + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse ] > | void { request = request || {}; @@ -4333,203 +6967,210 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); - return this.innerApiCalls.listAccountSummaries(request, options, callback); + return this.innerApiCalls.listWebDataStreams(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListWebDataStreams` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListWebDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + * An object stream which emits an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` + * We recommend using `listWebDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountSummariesStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listWebDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.createStream( - this.innerApiCalls.listAccountSummaries as gax.GaxCall, + return this.descriptors.page.listWebDataStreams.createStream( + this.innerApiCalls.listWebDataStreams as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listAccountSummaries`, but returns an iterable object. + * Equivalent to `listWebDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListWebDataStreams` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListWebDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, + * [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listAccountSummariesAsync(request); + * const iterable = client.listWebDataStreamsAsync(request); * for await (const response of iterable) { * // process response * } */ - listAccountSummariesAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listWebDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.asyncIterate( - this.innerApiCalls['listAccountSummaries'] as GaxCall, + return this.descriptors.page.listWebDataStreams.asyncIterate( + this.innerApiCalls['listWebDataStreams'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IIosAppDataStream[], + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse ] >; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IIosAppDataStream > ): void; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IIosAppDataStream > ): void; /** - * Returns child Properties under the specified parent Account. + * Returns child iOS app data streams under the specified parent property. * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. + * iOS app data streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant iOS app data streams are found. * * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. + * The first element of the array is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `listIosAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IIosAppDataStream >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IIosAppDataStream > ): Promise< [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IIosAppDataStream[], + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse ] > | void { request = request || {}; @@ -4541,218 +7182,212 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); - return this.innerApiCalls.listProperties(request, options, callback); + return this.innerApiCalls.listIosAppDataStreams(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. + * An object stream which emits an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `listIosAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listPropertiesStream( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + listIosAppDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listProperties.createStream( - this.innerApiCalls.listProperties as gax.GaxCall, + return this.descriptors.page.listIosAppDataStreams.createStream( + this.innerApiCalls.listIosAppDataStreams as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listProperties`, but returns an iterable object. + * Equivalent to `listIosAppDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, + * [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listPropertiesAsync(request); + * const iterable = client.listIosAppDataStreamsAsync(request); * for await (const response of iterable) { * // process response * } */ - listPropertiesAsync( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + listIosAppDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listProperties.asyncIterate( - this.innerApiCalls['listProperties'] as GaxCall, + return this.descriptors.page.listIosAppDataStreams.asyncIterate( + this.innerApiCalls['listIosAppDataStreams'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse ] >; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream > ): void; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream > ): void; /** - * Lists all user links on an account or property. + * Returns child android app streams under the specified parent property. + * + * Android app streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant android app streams are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to limit results to app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must - * match the call that provided the page token. + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The first element of the array is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listAndroidAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream > ): Promise< [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse ] > | void { request = request || {}; @@ -4771,7 +7406,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listUserLinks(request, options, callback); + return this.innerApiCalls.listAndroidAppDataStreams( + request, + options, + callback + ); } /** @@ -4779,31 +7418,34 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to limit results to app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must - * match the call that provided the page token. + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. + * An object stream which emits an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listAndroidAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAndroidAppDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4816,51 +7458,54 @@ export class AnalyticsAdminServiceClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listUserLinks.createStream( - this.innerApiCalls.listUserLinks as gax.GaxCall, + return this.descriptors.page.listAndroidAppDataStreams.createStream( + this.innerApiCalls.listAndroidAppDataStreams as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listUserLinks`, but returns an iterable object. + * Equivalent to `listAndroidAppDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to limit results to app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must - * match the call that provided the page token. + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, + * [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listUserLinksAsync(request); + * const iterable = client.listAndroidAppDataStreamsAsync(request); * for await (const response of iterable) { * // process response * } */ - listUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAndroidAppDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4872,104 +7517,98 @@ export class AnalyticsAdminServiceClient { options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listUserLinks.asyncIterate( - this.innerApiCalls['listUserLinks'] as GaxCall, + return this.descriptors.page.listAndroidAppDataStreams.asyncIterate( + this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse ] >; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): void; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): void; /** - * Lists all user links on an account or property, including implicit ones - * that come from effective permissions granted by groups or organization - * admin roles. - * - * If a returned user link does not have direct permissions, they cannot - * be removed from the account or property directly with the DeleteUserLink - * command. They have to be removed from the group/etc that gives them - * permissions, which is currently only usable/discoverable in the GA or GMP - * UIs. + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. + * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse ] > | void { request = request || {}; @@ -4988,7 +7627,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.auditUserLinks(request, options, callback); + return this.innerApiCalls.listFirebaseLinks(request, options, callback); } /** @@ -4996,31 +7635,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. + * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listFirebaseLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5033,51 +7673,52 @@ export class AnalyticsAdminServiceClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.auditUserLinks.createStream( - this.innerApiCalls.auditUserLinks as gax.GaxCall, + return this.descriptors.page.listFirebaseLinks.createStream( + this.innerApiCalls.listFirebaseLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `auditUserLinks`, but returns an iterable object. + * Equivalent to `listFirebaseLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, + * [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.auditUserLinksAsync(request); + * const iterable = client.listFirebaseLinksAsync(request); * for await (const response of iterable) { * // process response * } */ - auditUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listFirebaseLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5089,100 +7730,96 @@ export class AnalyticsAdminServiceClient { options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.auditUserLinks.asyncIterate( - this.innerApiCalls['auditUserLinks'] as GaxCall, + return this.descriptors.page.listFirebaseLinks.asyncIterate( + this.innerApiCalls['listFirebaseLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream[], - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse ] >; - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): void; - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): void; /** - * Returns child web data streams under the specified parent property. - * - * Web data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant web data streams are found. + * Lists GoogleAdsLinks on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "properties/123" + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listWebDataStreamsAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IGoogleAdsLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream[], - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse ] > | void { request = request || {}; @@ -5201,7 +7838,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listWebDataStreams(request, options, callback); + return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); } /** @@ -5209,32 +7846,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "properties/123" + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} on 'data' event. + * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listWebDataStreamsAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listWebDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listGoogleAdsLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5247,52 +7883,51 @@ export class AnalyticsAdminServiceClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listWebDataStreams.createStream( - this.innerApiCalls.listWebDataStreams as gax.GaxCall, + return this.descriptors.page.listGoogleAdsLinks.createStream( + this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listWebDataStreams`, but returns an iterable object. + * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "properties/123" + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. The API will be called under the hood as needed, once per the page, + * [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listWebDataStreamsAsync(request); + * const iterable = client.listGoogleAdsLinksAsync(request); * for await (const response of iterable) { * // process response * } */ - listWebDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listGoogleAdsLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5304,100 +7939,100 @@ export class AnalyticsAdminServiceClient { options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listWebDataStreams.asyncIterate( - this.innerApiCalls['listWebDataStreams'] as GaxCall, + return this.descriptors.page.listGoogleAdsLinks.asyncIterate( + this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream[], - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse ] >; - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): void; - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): void; /** - * Returns child iOS app data streams under the specified parent property. - * - * iOS app data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant iOS app data streams are found. + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. The resource name of the parent stream. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The first element of the array is Array of [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listIosAppDataStreamsAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream[], - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse ] > | void { request = request || {}; @@ -5416,7 +8051,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listIosAppDataStreams(request, options, callback); + return this.innerApiCalls.listMeasurementProtocolSecrets( + request, + options, + callback + ); } /** @@ -5424,32 +8063,34 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. The resource name of the parent stream. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} on 'data' event. + * An object stream which emits an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listIosAppDataStreamsAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listIosAppDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listMeasurementProtocolSecretsStream( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5462,52 +8103,54 @@ export class AnalyticsAdminServiceClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listIosAppDataStreams.createStream( - this.innerApiCalls.listIosAppDataStreams as gax.GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.createStream( + this.innerApiCalls.listMeasurementProtocolSecrets as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listIosAppDataStreams`, but returns an iterable object. + * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. The resource name of the parent stream. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. The API will be called under the hood as needed, once per the page, + * [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listIosAppDataStreamsAsync(request); + * const iterable = client.listMeasurementProtocolSecretsAsync(request); * for await (const response of iterable) { * // process response * } */ - listIosAppDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listMeasurementProtocolSecretsAsync( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5519,102 +8162,112 @@ export class AnalyticsAdminServiceClient { options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listIosAppDataStreams.asyncIterate( - this.innerApiCalls['listIosAppDataStreams'] as GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( + this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse ] >; - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): void; - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): void; /** - * Returns child android app streams under the specified parent property. - * - * Android app streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant android app streams are found. + * Searches through all changes to an account or its children given the + * specified set of filters. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" - * @param {number} request.pageSize - * The maximum number of resources to return. - * - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAndroidAppDataStreamsAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse ] > | void { request = request || {}; @@ -5630,49 +8283,61 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - this.initialize(); - return this.innerApiCalls.listAndroidAppDataStreams( - request, - options, - callback - ); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" - * @param {number} request.pageSize - * The maximum number of resources to return. - * - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + account: request.account || '', + }); + this.initialize(); + return this.innerApiCalls.searchChangeHistoryEvents( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} on 'data' event. + * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAndroidAppDataStreamsAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAndroidAppDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + searchChangeHistoryEventsStream( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5681,161 +8346,173 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + account: request.account || '', }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listAndroidAppDataStreams.createStream( - this.innerApiCalls.listAndroidAppDataStreams as gax.GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.createStream( + this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listAndroidAppDataStreams`, but returns an iterable object. + * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" - * @param {number} request.pageSize - * The maximum number of resources to return. - * - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. The API will be called under the hood as needed, once per the page, + * [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listAndroidAppDataStreamsAsync(request); + * const iterable = client.searchChangeHistoryEventsAsync(request); * for await (const response of iterable) { * // process response * } */ - listAndroidAppDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + searchChangeHistoryEventsAsync( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + account: request.account || '', }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listAndroidAppDataStreams.asyncIterate( - this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( + this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse ] >; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IConversionEvent > ): void; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IConversionEvent > ): void; /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. + * A page token, received from a previous `ListConversionEvents` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The first element of the array is Array of [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IConversionEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IConversionEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse ] > | void { request = request || {}; @@ -5854,7 +8531,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listFirebaseLinks(request, options, callback); + return this.innerApiCalls.listConversionEvents(request, options, callback); } /** @@ -5862,32 +8539,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. + * A page token, received from a previous `ListConversionEvents` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink} on 'data' event. + * An object stream which emits an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listConversionEventsStream( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -5900,52 +8576,51 @@ export class AnalyticsAdminServiceClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.createStream( - this.innerApiCalls.listFirebaseLinks as gax.GaxCall, + return this.descriptors.page.listConversionEvents.createStream( + this.innerApiCalls.listConversionEvents as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listFirebaseLinks`, but returns an iterable object. + * Equivalent to `listConversionEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. + * A page token, received from a previous `ListConversionEvents` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. The API will be called under the hood as needed, once per the page, + * [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listFirebaseLinksAsync(request); + * const iterable = client.listConversionEventsAsync(request); * for await (const response of iterable) { * // process response * } */ - listFirebaseLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listConversionEventsAsync( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5957,45 +8632,45 @@ export class AnalyticsAdminServiceClient { options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.asyncIterate( - this.innerApiCalls['listFirebaseLinks'] as GaxCall, + return this.descriptors.page.listConversionEvents.asyncIterate( + this.innerApiCalls['listConversionEvents'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ICustomDimension[], + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse ] >; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): void; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): void; /** - * Lists GoogleAdsLinks on a property. + * Lists CustomDimensions on a property. * * @param {Object} request * The request object that will be sent. @@ -6006,47 +8681,47 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. + * A page token, received from a previous `ListCustomDimensions` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The first element of the array is Array of [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `listCustomDimensionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.ICustomDimension >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ICustomDimension[], + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse ] > | void { request = request || {}; @@ -6065,7 +8740,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); + return this.innerApiCalls.listCustomDimensions(request, options, callback); } /** @@ -6079,25 +8754,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. + * A page token, received from a previous `ListCustomDimensions` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. + * An object stream which emits an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `listCustomDimensionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + listCustomDimensionsStream( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6110,15 +8785,15 @@ export class AnalyticsAdminServiceClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.createStream( - this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, + return this.descriptors.page.listCustomDimensions.createStream( + this.innerApiCalls.listCustomDimensions as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. + * Equivalent to `listCustomDimensions`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -6130,31 +8805,31 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. + * A page token, received from a previous `ListCustomDimensions` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, + * [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.listGoogleAdsLinksAsync(request); + * const iterable = client.listCustomDimensionsAsync(request); * for await (const response of iterable) { * // process response * } */ - listGoogleAdsLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + listCustomDimensionsAsync( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6166,112 +8841,96 @@ export class AnalyticsAdminServiceClient { options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.asyncIterate( - this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, + return this.descriptors.page.listCustomDimensions.asyncIterate( + this.innerApiCalls['listCustomDimensions'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.ICustomMetric[], + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse ] >; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.ICustomMetric > ): void; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.ICustomMetric > ): void; /** - * Searches through all changes to an account or its children given the - * specified set of filters. + * Lists CustomMetrics on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. + * The first element of the array is Array of [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listCustomMetricsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.ICustomMetric >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.ICustomMetric > ): Promise< [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.ICustomMetric[], + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse ] > | void { request = request || {}; @@ -6287,61 +8946,42 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - account: request.account || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.searchChangeHistoryEvents( - request, - options, - callback - ); + return this.innerApiCalls.listCustomMetrics(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent} on 'data' event. + * An object stream which emits an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listCustomMetricsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEventsStream( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listCustomMetricsStream( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6350,86 +8990,71 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - account: request.account || '', + parent: request.parent || '', }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.createStream( - this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, + return this.descriptors.page.listCustomMetrics.createStream( + this.innerApiCalls.listCustomMetrics as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. + * Equivalent to `listCustomMetrics`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, + * [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. * @example - * const iterable = client.searchChangeHistoryEventsAsync(request); + * const iterable = client.listCustomMetricsAsync(request); * for await (const response of iterable) { * // process response * } */ - searchChangeHistoryEventsAsync( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listCustomMetricsAsync( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - account: request.account || '', + parent: request.parent || '', }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( - this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, + return this.descriptors.page.listCustomMetrics.asyncIterate( + this.innerApiCalls['listCustomMetrics'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -6565,6 +9190,95 @@ export class AnalyticsAdminServiceClient { ).android_app_data_stream; } + /** + * Return a fully-qualified conversionEvent resource name string. + * + * @param {string} property + * @param {string} conversion_event + * @returns {string} Resource name string. + */ + conversionEventPath(property: string, conversionEvent: string) { + return this.pathTemplates.conversionEventPathTemplate.render({ + property: property, + conversion_event: conversionEvent, + }); + } + + /** + * Parse the property from ConversionEvent resource. + * + * @param {string} conversionEventName + * A fully-qualified path representing ConversionEvent resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromConversionEventName(conversionEventName: string) { + return this.pathTemplates.conversionEventPathTemplate.match( + conversionEventName + ).property; + } + + /** + * Parse the conversion_event from ConversionEvent resource. + * + * @param {string} conversionEventName + * A fully-qualified path representing ConversionEvent resource. + * @returns {string} A string representing the conversion_event. + */ + matchConversionEventFromConversionEventName(conversionEventName: string) { + return this.pathTemplates.conversionEventPathTemplate.match( + conversionEventName + ).conversion_event; + } + + /** + * Return a fully-qualified customDimension resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + customDimensionPath(property: string) { + return this.pathTemplates.customDimensionPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from CustomDimension resource. + * + * @param {string} customDimensionName + * A fully-qualified path representing CustomDimension resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromCustomDimensionName(customDimensionName: string) { + return this.pathTemplates.customDimensionPathTemplate.match( + customDimensionName + ).property; + } + + /** + * Return a fully-qualified customMetric resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + customMetricPath(property: string) { + return this.pathTemplates.customMetricPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from CustomMetric resource. + * + * @param {string} customMetricName + * A fully-qualified path representing CustomMetric resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromCustomMetricName(customMetricName: string) { + return this.pathTemplates.customMetricPathTemplate.match(customMetricName) + .property; + } + /** * Return a fully-qualified dataSharingSettings resource name string. * @@ -6734,6 +9448,33 @@ export class AnalyticsAdminServiceClient { .google_ads_link; } + /** + * Return a fully-qualified googleSignalsSettings resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + googleSignalsSettingsPath(property: string) { + return this.pathTemplates.googleSignalsSettingsPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from GoogleSignalsSettings resource. + * + * @param {string} googleSignalsSettingsName + * A fully-qualified path representing GoogleSignalsSettings resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromGoogleSignalsSettingsName( + googleSignalsSettingsName: string + ) { + return this.pathTemplates.googleSignalsSettingsPathTemplate.match( + googleSignalsSettingsName + ).property; + } + /** * Return a fully-qualified iosAppDataStream resource name string. * @@ -6774,6 +9515,71 @@ export class AnalyticsAdminServiceClient { ).ios_app_data_stream; } + /** + * Return a fully-qualified measurementProtocolSecret resource name string. + * + * @param {string} property + * @param {string} web_data_stream + * @param {string} measurement_protocol_secret + * @returns {string} Resource name string. + */ + measurementProtocolSecretPath( + property: string, + webDataStream: string, + measurementProtocolSecret: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.render({ + property: property, + web_data_stream: webDataStream, + measurement_protocol_secret: measurementProtocolSecret, + }); + } + + /** + * Parse the property from MeasurementProtocolSecret resource. + * + * @param {string} measurementProtocolSecretName + * A fully-qualified path representing MeasurementProtocolSecret resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromMeasurementProtocolSecretName( + measurementProtocolSecretName: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.match( + measurementProtocolSecretName + ).property; + } + + /** + * Parse the web_data_stream from MeasurementProtocolSecret resource. + * + * @param {string} measurementProtocolSecretName + * A fully-qualified path representing MeasurementProtocolSecret resource. + * @returns {string} A string representing the web_data_stream. + */ + matchWebDataStreamFromMeasurementProtocolSecretName( + measurementProtocolSecretName: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.match( + measurementProtocolSecretName + ).web_data_stream; + } + + /** + * Parse the measurement_protocol_secret from MeasurementProtocolSecret resource. + * + * @param {string} measurementProtocolSecretName + * A fully-qualified path representing MeasurementProtocolSecret resource. + * @returns {string} A string representing the measurement_protocol_secret. + */ + matchMeasurementProtocolSecretFromMeasurementProtocolSecretName( + measurementProtocolSecretName: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.match( + measurementProtocolSecretName + ).measurement_protocol_secret; + } + /** * Return a fully-qualified property resource name string. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index 3e7f5bbf1ed..bcd29e2e683 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -263,10 +263,115 @@ "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, + "GetMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListMeasurementProtocolSecrets": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, "SearchChangeHistoryEvents": { "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetGoogleSignalsSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateGoogleSignalsSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListConversionEvents": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListCustomDimensions": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ArchiveCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListCustomMetrics": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ArchiveCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" } } } diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index da575524487..a1cdcdae4a7 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -190,6 +190,91 @@ "getDataSharingSettings" ] }, + "GetMeasurementProtocolSecret": { + "methods": [ + "getMeasurementProtocolSecret" + ] + }, + "CreateMeasurementProtocolSecret": { + "methods": [ + "createMeasurementProtocolSecret" + ] + }, + "DeleteMeasurementProtocolSecret": { + "methods": [ + "deleteMeasurementProtocolSecret" + ] + }, + "UpdateMeasurementProtocolSecret": { + "methods": [ + "updateMeasurementProtocolSecret" + ] + }, + "GetGoogleSignalsSettings": { + "methods": [ + "getGoogleSignalsSettings" + ] + }, + "UpdateGoogleSignalsSettings": { + "methods": [ + "updateGoogleSignalsSettings" + ] + }, + "CreateConversionEvent": { + "methods": [ + "createConversionEvent" + ] + }, + "GetConversionEvent": { + "methods": [ + "getConversionEvent" + ] + }, + "DeleteConversionEvent": { + "methods": [ + "deleteConversionEvent" + ] + }, + "CreateCustomDimension": { + "methods": [ + "createCustomDimension" + ] + }, + "UpdateCustomDimension": { + "methods": [ + "updateCustomDimension" + ] + }, + "ArchiveCustomDimension": { + "methods": [ + "archiveCustomDimension" + ] + }, + "GetCustomDimension": { + "methods": [ + "getCustomDimension" + ] + }, + "CreateCustomMetric": { + "methods": [ + "createCustomMetric" + ] + }, + "UpdateCustomMetric": { + "methods": [ + "updateCustomMetric" + ] + }, + "ArchiveCustomMetric": { + "methods": [ + "archiveCustomMetric" + ] + }, + "GetCustomMetric": { + "methods": [ + "getCustomMetric" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -260,12 +345,40 @@ "listGoogleAdsLinksAsync" ] }, + "ListMeasurementProtocolSecrets": { + "methods": [ + "listMeasurementProtocolSecrets", + "listMeasurementProtocolSecretsStream", + "listMeasurementProtocolSecretsAsync" + ] + }, "SearchChangeHistoryEvents": { "methods": [ "searchChangeHistoryEvents", "searchChangeHistoryEventsStream", "searchChangeHistoryEventsAsync" ] + }, + "ListConversionEvents": { + "methods": [ + "listConversionEvents", + "listConversionEventsStream", + "listConversionEventsAsync" + ] + }, + "ListCustomDimensions": { + "methods": [ + "listCustomDimensions", + "listCustomDimensionsStream", + "listCustomDimensionsAsync" + ] + }, + "ListCustomMetrics": { + "methods": [ + "listCustomMetrics", + "listCustomMetricsStream", + "listCustomMetricsAsync" + ] } } }, @@ -452,6 +565,91 @@ "getDataSharingSettings" ] }, + "GetMeasurementProtocolSecret": { + "methods": [ + "getMeasurementProtocolSecret" + ] + }, + "CreateMeasurementProtocolSecret": { + "methods": [ + "createMeasurementProtocolSecret" + ] + }, + "DeleteMeasurementProtocolSecret": { + "methods": [ + "deleteMeasurementProtocolSecret" + ] + }, + "UpdateMeasurementProtocolSecret": { + "methods": [ + "updateMeasurementProtocolSecret" + ] + }, + "GetGoogleSignalsSettings": { + "methods": [ + "getGoogleSignalsSettings" + ] + }, + "UpdateGoogleSignalsSettings": { + "methods": [ + "updateGoogleSignalsSettings" + ] + }, + "CreateConversionEvent": { + "methods": [ + "createConversionEvent" + ] + }, + "GetConversionEvent": { + "methods": [ + "getConversionEvent" + ] + }, + "DeleteConversionEvent": { + "methods": [ + "deleteConversionEvent" + ] + }, + "CreateCustomDimension": { + "methods": [ + "createCustomDimension" + ] + }, + "UpdateCustomDimension": { + "methods": [ + "updateCustomDimension" + ] + }, + "ArchiveCustomDimension": { + "methods": [ + "archiveCustomDimension" + ] + }, + "GetCustomDimension": { + "methods": [ + "getCustomDimension" + ] + }, + "CreateCustomMetric": { + "methods": [ + "createCustomMetric" + ] + }, + "UpdateCustomMetric": { + "methods": [ + "updateCustomMetric" + ] + }, + "ArchiveCustomMetric": { + "methods": [ + "archiveCustomMetric" + ] + }, + "GetCustomMetric": { + "methods": [ + "getCustomMetric" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -522,12 +720,40 @@ "listGoogleAdsLinksAsync" ] }, + "ListMeasurementProtocolSecrets": { + "methods": [ + "listMeasurementProtocolSecrets", + "listMeasurementProtocolSecretsStream", + "listMeasurementProtocolSecretsAsync" + ] + }, "SearchChangeHistoryEvents": { "methods": [ "searchChangeHistoryEvents", "searchChangeHistoryEventsStream", "searchChangeHistoryEventsAsync" ] + }, + "ListConversionEvents": { + "methods": [ + "listConversionEvents", + "listConversionEventsStream", + "listConversionEventsAsync" + ] + }, + "ListCustomDimensions": { + "methods": [ + "listCustomDimensions", + "listCustomDimensionsStream", + "listCustomDimensionsAsync" + ] + }, + "ListCustomMetrics": { + "methods": [ + "listCustomMetrics", + "listCustomMetricsStream", + "listCustomMetricsAsync" + ] } } } diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index a64f2ef8338..a7ca19cec57 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -4338,6 +4338,2005 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('getMeasurementProtocolSecret', () => { + it('invokes getMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + ); + client.innerApiCalls.getMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.getMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + ); + client.innerApiCalls.getMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createMeasurementProtocolSecret', () => { + it('invokes createMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + ); + client.innerApiCalls.createMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.createMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + ); + client.innerApiCalls.createMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteMeasurementProtocolSecret', () => { + it('invokes deleteMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateMeasurementProtocolSecret', () => { + it('invokes updateMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + ); + client.innerApiCalls.updateMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.updateMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + ); + client.innerApiCalls.updateMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getGoogleSignalsSettings', () => { + it('invokes getGoogleSignalsSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + ); + client.innerApiCalls.getGoogleSignalsSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getGoogleSignalsSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getGoogleSignalsSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + ); + client.innerApiCalls.getGoogleSignalsSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getGoogleSignalsSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getGoogleSignalsSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getGoogleSignalsSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateGoogleSignalsSettings', () => { + it('invokes updateGoogleSignalsSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + ); + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + ); + client.innerApiCalls.updateGoogleSignalsSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.updateGoogleSignalsSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateGoogleSignalsSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + ); + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + ); + client.innerApiCalls.updateGoogleSignalsSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateGoogleSignalsSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateGoogleSignalsSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + ); + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateGoogleSignalsSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateGoogleSignalsSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createConversionEvent', () => { + it('invokes createConversionEvent without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ConversionEvent() + ); + client.innerApiCalls.createConversionEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.createConversionEvent(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createConversionEvent without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ConversionEvent() + ); + client.innerApiCalls.createConversionEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createConversionEvent( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IConversionEvent | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createConversionEvent with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createConversionEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createConversionEvent(request), + expectedError + ); + assert( + (client.innerApiCalls.createConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getConversionEvent', () => { + it('invokes getConversionEvent without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ConversionEvent() + ); + client.innerApiCalls.getConversionEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.getConversionEvent(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getConversionEvent without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ConversionEvent() + ); + client.innerApiCalls.getConversionEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getConversionEvent( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IConversionEvent | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getConversionEvent with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getConversionEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getConversionEvent(request), expectedError); + assert( + (client.innerApiCalls.getConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteConversionEvent', () => { + it('invokes deleteConversionEvent without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteConversionEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteConversionEvent(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteConversionEvent without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteConversionEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteConversionEvent( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteConversionEvent with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteConversionEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteConversionEvent(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createCustomDimension', () => { + it('invokes createCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.createCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.createCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.createCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateCustomDimension', () => { + it('invokes updateCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.updateCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.updateCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.updateCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('archiveCustomDimension', () => { + it('invokes archiveCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.archiveCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.archiveCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes archiveCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.archiveCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.archiveCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getCustomDimension', () => { + it('invokes getCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.getCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.getCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.getCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getCustomDimension(request), expectedError); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createCustomMetric', () => { + it('invokes createCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.createCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.createCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.createCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateCustomMetric', () => { + it('invokes updateCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.updateCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.updateCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.updateCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('archiveCustomMetric', () => { + it('invokes archiveCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.archiveCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.archiveCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes archiveCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.archiveCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.archiveCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getCustomMetric', () => { + it('invokes getCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); + const [response] = await client.getCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.getCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listAccounts', () => { it('invokes listAccounts without error', async () => { const client = @@ -4347,31 +6346,1128 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('uses async iteration with listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + const iterable = client.listAccountSummariesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountSummariesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listProperties', () => { + it('invokes listProperties without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listProperties without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listProperties( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listProperties with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {}; + const expectedError = new Error('expected'); + client.innerApiCalls.listProperties = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listProperties(request), expectedError); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listPropertiesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('invokes listPropertiesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('uses async iteration with listProperties without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.descriptors.page.listProperties.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listProperties.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listProperties with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listPropertiesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listProperties.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + ]; + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listUserLinks without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + ]; + client.innerApiCalls.listUserLinks = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listUserLinks( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listUserLinks with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listUserLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listUserLinks(request), expectedError); + assert( + (client.innerApiCalls.listUserLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listUserLinksStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); - const [response] = await client.listAccounts(request); + client.descriptors.page.listUserLinks.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listUserLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.UserLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listUserLinksStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listUserLinks.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listUserLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.UserLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listUserLinks without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UserLink() + ), + ]; + client.descriptors.page.listUserLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listUserLinks with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listUserLinks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listUserLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AuditUserLink() + ), + ]; + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccounts without error using callback', async () => { + it('invokes auditUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4379,28 +7475,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listAccounts = + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccounts( + client.auditUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | null ) => { if (err) { reject(err); @@ -4413,13 +7519,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccounts with error', async () => { + it('invokes auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4427,23 +7533,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listAccounts = stubSimpleCall( + client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccounts(request), expectedError); + await assert.rejects(client.auditUserLinks(request), expectedError); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountsStream without error', async () => { + it('invokes auditUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4451,27 +7565,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listAccounts.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountsStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -4485,13 +7602,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('invokes listAccountsStream with error', async () => { + it('invokes auditUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4499,19 +7622,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listAccountsStream(request); + client.descriptors.page.auditUserLinks.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -4524,13 +7648,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('uses async iteration with listAccounts without error', async () => { + it('uses async iteration with auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4538,36 +7668,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - const iterable = client.listAccountsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; + const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); - it('uses async iteration with listAccounts with error', async () => { + it('uses async iteration with auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4575,29 +7714,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountsAsync(request); + const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); }); - describe('listAccountSummaries', () => { - it('invokes listAccountSummaries without error', async () => { + describe('listWebDataStreams', () => { + it('invokes listWebDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4605,32 +7753,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.listAccountSummaries = + client.innerApiCalls.listWebDataStreams = stubSimpleCall(expectedResponse); - const [response] = await client.listAccountSummaries(request); + const [response] = await client.listWebDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummaries without error using callback', async () => { + it('invokes listWebDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4638,29 +7794,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.listAccountSummaries = + client.innerApiCalls.listWebDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccountSummaries( + client.listWebDataStreams( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | protos.google.analytics.admin.v1alpha.IWebDataStream[] | null ) => { if (err) { @@ -4674,13 +7838,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccountSummaries with error', async () => { + it('invokes listWebDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4688,23 +7852,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listAccountSummaries = stubSimpleCall( + client.innerApiCalls.listWebDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccountSummaries(request), expectedError); + await assert.rejects(client.listWebDataStreams(request), expectedError); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummariesStream without error', async () => { + it('invokes listWebDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4712,28 +7884,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountSummariesStream(request); + const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { responses.push(response); } ); @@ -4747,13 +7921,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listWebDataStreams, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listWebDataStreams.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('invokes listAccountSummariesStream with error', async () => { + it('invokes listWebDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4761,18 +7941,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccountSummariesStream(request); + const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { responses.push(response); } ); @@ -4785,13 +7967,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listWebDataStreams, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listWebDataStreams.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('uses async iteration with listAccountSummaries without error', async () => { + it('uses async iteration with listWebDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4799,37 +7987,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; - const iterable = client.listAccountSummariesAsync(request); + const iterable = client.listWebDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); - it('uses async iteration with listAccountSummaries with error', async () => { + it('uses async iteration with listWebDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4837,14 +8033,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountSummariesAsync(request); + const iterable = client.listWebDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -4852,15 +8050,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); }); - describe('listProperties', () => { - it('invokes listProperties without error', async () => { + describe('listIosAppDataStreams', () => { + it('invokes listIosAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4868,31 +8072,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); - const [response] = await client.listProperties(request); + client.innerApiCalls.listIosAppDataStreams = + stubSimpleCall(expectedResponse); + const [response] = await client.listIosAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listProperties without error using callback', async () => { + it('invokes listIosAppDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4900,28 +8113,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.listProperties = + client.innerApiCalls.listIosAppDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listProperties( + client.listIosAppDataStreams( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + result?: + | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] + | null ) => { if (err) { reject(err); @@ -4934,13 +8157,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listProperties with error', async () => { + it('invokes listIosAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4948,23 +8171,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listProperties = stubSimpleCall( + client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listProperties(request), expectedError); + await assert.rejects( + client.listIosAppDataStreams(request), + expectedError + ); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listPropertiesStream without error', async () => { + it('invokes listIosAppDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4972,27 +8206,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.listProperties.createStream = + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listPropertiesStream(request); + const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { responses.push(response); } ); @@ -5006,13 +8245,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('invokes listPropertiesStream with error', async () => { + it('invokes listIosAppDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5020,17 +8269,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listPropertiesStream(request); + const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { responses.push(response); } ); @@ -5043,13 +8297,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('uses async iteration with listProperties without error', async () => { + it('uses async iteration with listIosAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5057,36 +8321,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - const iterable = client.listPropertiesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + []; + const iterable = client.listIosAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); - it('uses async iteration with listProperties with error', async () => { + it('uses async iteration with listIosAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5094,29 +8369,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPropertiesAsync(request); + const iterable = client.listIosAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); }); - describe('listUserLinks', () => { - it('invokes listUserLinks without error', async () => { + describe('listAndroidAppDataStreams', () => { + it('invokes listAndroidAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5124,7 +8410,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5137,26 +8423,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listUserLinks(request); + client.innerApiCalls.listAndroidAppDataStreams = + stubSimpleCall(expectedResponse); + const [response] = await client.listAndroidAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinks without error using callback', async () => { + it('invokes listAndroidAppDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5164,7 +8451,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5177,23 +8464,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listUserLinks = + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listUserLinks( + client.listAndroidAppDataStreams( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] + | null ) => { if (err) { reject(err); @@ -5206,13 +8495,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listUserLinks with error', async () => { + it('invokes listAndroidAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5220,7 +8509,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5232,19 +8521,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listUserLinks = stubSimpleCall( + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listUserLinks(request), expectedError); + await assert.rejects( + client.listAndroidAppDataStreams(request), + expectedError + ); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinksStream without error', async () => { + it('invokes listAndroidAppDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5252,29 +8544,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listUserLinksStream(request); + const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + ( + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + ) => { responses.push(response); } ); @@ -5288,19 +8583,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listUserLinksStream with error', async () => { + it('invokes listAndroidAppDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5308,19 +8607,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listUserLinksStream(request); + const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + ( + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + ) => { responses.push(response); } ); @@ -5333,19 +8635,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks without error', async () => { + it('uses async iteration with listAndroidAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5353,44 +8659,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; - const iterable = client.listUserLinksAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + []; + const iterable = client.listAndroidAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks with error', async () => { + it('uses async iteration with listAndroidAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5398,37 +8707,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listUserLinksAsync(request); + const iterable = client.listAndroidAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('auditUserLinks', () => { - it('invokes auditUserLinks without error', async () => { + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5436,7 +8748,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5449,26 +8761,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.auditUserLinks(request); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinks without error using callback', async () => { + it('invokes listFirebaseLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5476,7 +8788,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5489,24 +8801,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.auditUserLinks = + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.auditUserLinks( + client.listFirebaseLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | protos.google.analytics.admin.v1alpha.IFirebaseLink[] | null ) => { if (err) { @@ -5520,13 +8832,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes auditUserLinks with error', async () => { + it('invokes listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5534,7 +8846,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5546,19 +8858,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.auditUserLinks = stubSimpleCall( + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.auditUserLinks(request), expectedError); + await assert.rejects(client.listFirebaseLinks(request), expectedError); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinksStream without error', async () => { + it('invokes listFirebaseLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5566,30 +8878,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.auditUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -5603,19 +8915,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes auditUserLinksStream with error', async () => { + it('invokes listFirebaseLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5623,20 +8935,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.auditUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -5649,19 +8961,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks without error', async () => { + it('uses async iteration with listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5669,45 +8981,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listFirebaseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks with error', async () => { + it('uses async iteration with listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5715,16 +9027,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listFirebaseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -5732,21 +9044,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listWebDataStreams', () => { - it('invokes listWebDataStreams without error', async () => { + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5754,7 +9066,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5767,27 +9079,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listWebDataStreams = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listWebDataStreams(request); + const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreams without error using callback', async () => { + it('invokes listGoogleAdsLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5795,7 +9107,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5808,24 +9120,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listWebDataStreams = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listWebDataStreams( + client.listGoogleAdsLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IWebDataStream[] + | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] | null ) => { if (err) { @@ -5839,13 +9151,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listWebDataStreams with error', async () => { + it('invokes listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5853,7 +9165,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -5865,19 +9177,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listWebDataStreams = stubSimpleCall( + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listWebDataStreams(request), expectedError); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreamsStream without error', async () => { + it('invokes listGoogleAdsLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5885,30 +9197,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -5922,19 +9234,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listWebDataStreamsStream with error', async () => { + it('invokes listGoogleAdsLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5942,20 +9254,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -5968,19 +9280,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listWebDataStreams without error', async () => { + it('uses async iteration with listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5988,45 +9300,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; - const iterable = client.listWebDataStreamsAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listWebDataStreams with error', async () => { + it('uses async iteration with listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6034,16 +9346,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listWebDataStreamsAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -6051,21 +9363,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listIosAppDataStreams', () => { - it('invokes listIosAppDataStreams without error', async () => { + describe('listMeasurementProtocolSecrets', () => { + it('invokes listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6073,7 +9385,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -6086,27 +9398,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listIosAppDataStreams = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall(expectedResponse); - const [response] = await client.listIosAppDataStreams(request); + const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreams without error using callback', async () => { + it('invokes listMeasurementProtocolSecrets without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6114,7 +9426,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -6127,24 +9439,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listIosAppDataStreams = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listIosAppDataStreams( + client.listMeasurementProtocolSecrets( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] + | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] | null ) => { if (err) { @@ -6158,13 +9470,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listIosAppDataStreams with error', async () => { + it('invokes listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6172,7 +9484,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -6184,22 +9496,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.listIosAppDataStreams(request), + client.listMeasurementProtocolSecrets(request), expectedError ); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreamsStream without error', async () => { + it('invokes listMeasurementProtocolSecretsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6207,31 +9519,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret ) => { responses.push(response); } @@ -6247,22 +9559,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listIosAppDataStreamsStream with error', async () => { + it('invokes listMeasurementProtocolSecretsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6270,21 +9585,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret ) => { responses.push(response); } @@ -6299,22 +9614,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams without error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6322,47 +9640,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; - const iterable = client.listIosAppDataStreamsAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams with error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6370,16 +9688,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listIosAppDataStreamsAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -6387,14 +9705,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -6402,8 +9720,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listAndroidAppDataStreams', () => { - it('invokes listAndroidAppDataStreams without error', async () => { + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6411,10 +9729,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -6424,27 +9742,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listAndroidAppDataStreams(request); + const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreams without error using callback', async () => { + it('invokes searchChangeHistoryEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6452,10 +9770,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -6465,24 +9783,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAndroidAppDataStreams( + client.searchChangeHistoryEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] + | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] | null ) => { if (err) { @@ -6496,13 +9814,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAndroidAppDataStreams with error', async () => { + it('invokes searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6510,10 +9828,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -6522,22 +9840,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.listAndroidAppDataStreams(request), + client.searchChangeHistoryEvents(request), expectedError ); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreamsStream without error', async () => { + it('invokes searchChangeHistoryEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6545,31 +9863,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent ) => { responses.push(response); } @@ -6585,22 +9903,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listAndroidAppDataStreamsStream with error', async () => { + it('invokes searchChangeHistoryEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6608,21 +9926,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent ) => { responses.push(response); } @@ -6637,22 +9955,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams without error', async () => { + it('uses async iteration with searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6660,47 +9978,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams with error', async () => { + it('uses async iteration with searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6708,16 +10026,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -6725,14 +10043,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -6740,8 +10058,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listFirebaseLinks', () => { - it('invokes listFirebaseLinks without error', async () => { + describe('listConversionEvents', () => { + it('invokes listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6749,7 +10067,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -6762,26 +10080,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listFirebaseLinks(request); + client.innerApiCalls.listConversionEvents = + stubSimpleCall(expectedResponse); + const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinks without error using callback', async () => { + it('invokes listConversionEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6789,7 +10108,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -6802,24 +10121,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listFirebaseLinks = + client.innerApiCalls.listConversionEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFirebaseLinks( + client.listConversionEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | protos.google.analytics.admin.v1alpha.IConversionEvent[] | null ) => { if (err) { @@ -6833,13 +10152,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listFirebaseLinks with error', async () => { + it('invokes listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6847,7 +10166,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -6859,19 +10178,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFirebaseLinks(request), expectedError); + await assert.rejects(client.listConversionEvents(request), expectedError); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinksStream without error', async () => { + it('invokes listConversionEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6879,30 +10198,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -6916,19 +10235,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listFirebaseLinksStream with error', async () => { + it('invokes listConversionEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6936,20 +10255,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -6962,19 +10281,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks without error', async () => { + it('uses async iteration with listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6982,45 +10301,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listConversionEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks with error', async () => { + it('uses async iteration with listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7028,16 +10347,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listConversionEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -7045,21 +10364,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listGoogleAdsLinks', () => { - it('invokes listGoogleAdsLinks without error', async () => { + describe('listCustomDimensions', () => { + it('invokes listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7067,7 +10386,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7080,27 +10399,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.listCustomDimensions = stubSimpleCall(expectedResponse); - const [response] = await client.listGoogleAdsLinks(request); + const [response] = await client.listCustomDimensions(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinks without error using callback', async () => { + it('invokes listCustomDimensions without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7108,7 +10427,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7121,24 +10440,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.listCustomDimensions = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listGoogleAdsLinks( + client.listCustomDimensions( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] + | protos.google.analytics.admin.v1alpha.ICustomDimension[] | null ) => { if (err) { @@ -7152,13 +10471,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listGoogleAdsLinks with error', async () => { + it('invokes listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7166,7 +10485,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7178,19 +10497,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + client.innerApiCalls.listCustomDimensions = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + await assert.rejects(client.listCustomDimensions(request), expectedError); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinksStream without error', async () => { + it('invokes listCustomDimensionsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7198,30 +10517,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -7235,19 +10554,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.listCustomDimensions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listGoogleAdsLinksStream with error', async () => { + it('invokes listCustomDimensionsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7255,20 +10574,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -7281,19 +10600,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.listCustomDimensions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks without error', async () => { + it('uses async iteration with listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7301,45 +10620,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.listCustomDimensionsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks with error', async () => { + it('uses async iteration with listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7347,16 +10666,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.listCustomDimensionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -7364,21 +10683,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('searchChangeHistoryEvents', () => { - it('invokes searchChangeHistoryEvents without error', async () => { + describe('listCustomMetrics', () => { + it('invokes listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7386,10 +10705,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -7399,27 +10718,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = - stubSimpleCall(expectedResponse); - const [response] = await client.searchChangeHistoryEvents(request); + client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomMetrics(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEvents without error using callback', async () => { + it('invokes listCustomMetrics without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7427,10 +10745,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -7440,24 +10758,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listCustomMetrics = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.searchChangeHistoryEvents( + client.listCustomMetrics( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] + | protos.google.analytics.admin.v1alpha.ICustomMetric[] | null ) => { if (err) { @@ -7471,13 +10789,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes searchChangeHistoryEvents with error', async () => { + it('invokes listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7485,10 +10803,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -7497,22 +10815,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + client.innerApiCalls.listCustomMetrics = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.searchChangeHistoryEvents(request), - expectedError - ); + await assert.rejects(client.listCustomMetrics(request), expectedError); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEventsStream without error', async () => { + it('invokes listCustomMetricsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7520,32 +10835,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -7559,23 +10872,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub + client.descriptors.page.listCustomMetrics.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes searchChangeHistoryEventsStream with error', async () => { + it('invokes listCustomMetricsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7583,22 +10892,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -7611,23 +10918,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub + client.descriptors.page.listCustomMetrics.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents without error', async () => { + it('uses async iteration with listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7635,47 +10938,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listCustomMetricsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents with error', async () => { + it('uses async iteration with listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7683,16 +10984,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listCustomMetricsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -7700,15 +11001,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); @@ -7914,6 +11213,138 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('conversionEvent', () => { + const fakePath = '/rendered/path/conversionEvent'; + const expectedParameters = { + property: 'propertyValue', + conversion_event: 'conversionEventValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.conversionEventPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.conversionEventPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('conversionEventPath', () => { + const result = client.conversionEventPath( + 'propertyValue', + 'conversionEventValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.conversionEventPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromConversionEventName', () => { + const result = client.matchPropertyFromConversionEventName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.conversionEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversionEventFromConversionEventName', () => { + const result = + client.matchConversionEventFromConversionEventName(fakePath); + assert.strictEqual(result, 'conversionEventValue'); + assert( + (client.pathTemplates.conversionEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customDimension', () => { + const fakePath = '/rendered/path/customDimension'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customDimensionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customDimensionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customDimensionPath', () => { + const result = client.customDimensionPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customDimensionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromCustomDimensionName', () => { + const result = client.matchPropertyFromCustomDimensionName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.customDimensionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customMetric', () => { + const fakePath = '/rendered/path/customMetric'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customMetricPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customMetricPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customMetricPath', () => { + const result = client.customMetricPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customMetricPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromCustomMetricName', () => { + const result = client.matchPropertyFromCustomMetricName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.customMetricPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('dataSharingSettings', () => { const fakePath = '/rendered/path/dataSharingSettings'; const expectedParameters = { @@ -8169,6 +11600,52 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('googleSignalsSettings', () => { + const fakePath = '/rendered/path/googleSignalsSettings'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.googleSignalsSettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.googleSignalsSettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('googleSignalsSettingsPath', () => { + const result = client.googleSignalsSettingsPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.googleSignalsSettingsPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromGoogleSignalsSettingsName', () => { + const result = + client.matchPropertyFromGoogleSignalsSettingsName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates.googleSignalsSettingsPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('iosAppDataStream', () => { const fakePath = '/rendered/path/iosAppDataStream'; const expectedParameters = { @@ -8226,6 +11703,88 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('measurementProtocolSecret', () => { + const fakePath = '/rendered/path/measurementProtocolSecret'; + const expectedParameters = { + property: 'propertyValue', + web_data_stream: 'webDataStreamValue', + measurement_protocol_secret: 'measurementProtocolSecretValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.measurementProtocolSecretPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.measurementProtocolSecretPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('measurementProtocolSecretPath', () => { + const result = client.measurementProtocolSecretPath( + 'propertyValue', + 'webDataStreamValue', + 'measurementProtocolSecretValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromMeasurementProtocolSecretName', () => { + const result = + client.matchPropertyFromMeasurementProtocolSecretName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchWebDataStreamFromMeasurementProtocolSecretName', () => { + const result = + client.matchWebDataStreamFromMeasurementProtocolSecretName(fakePath); + assert.strictEqual(result, 'webDataStreamValue'); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMeasurementProtocolSecretFromMeasurementProtocolSecretName', () => { + const result = + client.matchMeasurementProtocolSecretFromMeasurementProtocolSecretName( + fakePath + ); + assert.strictEqual(result, 'measurementProtocolSecretValue'); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('property', () => { const fakePath = '/rendered/path/property'; const expectedParameters = { From 4d0b836831a0f6cbf8e596cafea31a344f6f275b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:39:36 -0500 Subject: [PATCH 076/142] chore: release 3.0.0 (#109) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 19 +++++++++++++++++++ packages/google-analytics-admin/package.json | 2 +- .../samples/package.json | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index b2d87ee4a88..c3ad95e80e9 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [3.0.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.3...v3.0.0) (2021-05-27) + + +### ⚠ BREAKING CHANGES + +* remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API (#105) + +### Features + +* add several new functions and types ([#119](https://www.github.com/googleapis/nodejs-analytics-admin/issues/119)) ([d7c4e29](https://www.github.com/googleapis/nodejs-analytics-admin/commit/d7c4e290bf88b6db9f6c67379c811390cc3b4783)) + + +### Bug Fixes + +* **deps:** require google-gax v2.12.0 ([#110](https://www.github.com/googleapis/nodejs-analytics-admin/issues/110)) ([cec8b6a](https://www.github.com/googleapis/nodejs-analytics-admin/commit/cec8b6ae04200a57d90586cd58f2fe6d3c94f684)) +* GoogleAdsError missing using generator version after 1.3.0 ([#118](https://www.github.com/googleapis/nodejs-analytics-admin/issues/118)) ([f69d3e9](https://www.github.com/googleapis/nodejs-analytics-admin/commit/f69d3e9bea2a10ecfd6bf3d9edfdf17c6fda168a)) +* remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API ([#105](https://www.github.com/googleapis/nodejs-analytics-admin/issues/105)) ([c6c1883](https://www.github.com/googleapis/nodejs-analytics-admin/commit/c6c1883cdcdbeacce0112c7142758806078cd431)) +* use require() to load JSON protos ([#112](https://www.github.com/googleapis/nodejs-analytics-admin/issues/112)) ([904aaf6](https://www.github.com/googleapis/nodejs-analytics-admin/commit/904aaf6bd48de4f404203aeaeadda1ba8cc62ac9)) + ### [2.0.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.2...v2.0.3) (2021-03-08) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 24dc24d17f5..2423a1cb317 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "2.0.3", + "version": "3.0.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 1b22dc52970..5d4662efcae 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^2.0.3", + "@google-analytics/admin": "^3.0.0", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 5388893068b2df69a1c6e9639d1899ea054f97e4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:20:29 +0000 Subject: [PATCH 077/142] fix: make request optional in all cases (#126) ... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0 Committer: @miraleung PiperOrigin-RevId: 380641501 Source-Link: https://github.com/googleapis/googleapis/commit/076f7e9f0b258bdb54338895d7251b202e8f0de3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892 --- .../v1alpha/analytics_admin_service_client.ts | 272 +++++++++--------- 1 file changed, 136 insertions(+), 136 deletions(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index e1399f1d896..9a284191951 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -494,7 +494,7 @@ export class AnalyticsAdminServiceClient { // -- Service calls -- // ------------------- getAccount( - request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, + request?: protos.google.analytics.admin.v1alpha.IGetAccountRequest, options?: CallOptions ): Promise< [ @@ -544,7 +544,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getAccount(request); */ getAccount( - request: protos.google.analytics.admin.v1alpha.IGetAccountRequest, + request?: protos.google.analytics.admin.v1alpha.IGetAccountRequest, optionsOrCallback?: | CallOptions | Callback< @@ -587,7 +587,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getAccount(request, options, callback); } deleteAccount( - request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, options?: CallOptions ): Promise< [ @@ -647,7 +647,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteAccount(request); */ deleteAccount( - request: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, optionsOrCallback?: | CallOptions | Callback< @@ -690,7 +690,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.deleteAccount(request, options, callback); } updateAccount( - request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, options?: CallOptions ): Promise< [ @@ -743,7 +743,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateAccount(request); */ updateAccount( - request: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, optionsOrCallback?: | CallOptions | Callback< @@ -786,7 +786,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateAccount(request, options, callback); } provisionAccountTicket( - request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, + request?: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, options?: CallOptions ): Promise< [ @@ -840,7 +840,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.provisionAccountTicket(request); */ provisionAccountTicket( - request: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, + request?: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, optionsOrCallback?: | CallOptions | Callback< @@ -884,7 +884,7 @@ export class AnalyticsAdminServiceClient { ); } getProperty( - request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, + request?: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, options?: CallOptions ): Promise< [ @@ -934,7 +934,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getProperty(request); */ getProperty( - request: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, + request?: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -977,7 +977,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getProperty(request, options, callback); } createProperty( - request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, + request?: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, options?: CallOptions ): Promise< [ @@ -1026,7 +1026,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createProperty(request); */ createProperty( - request: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, + request?: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1063,7 +1063,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createProperty(request, options, callback); } deleteProperty( - request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + request?: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, options?: CallOptions ): Promise< [ @@ -1123,7 +1123,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteProperty(request); */ deleteProperty( - request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + request?: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1166,7 +1166,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.deleteProperty(request, options, callback); } updateProperty( - request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, options?: CallOptions ): Promise< [ @@ -1220,7 +1220,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateProperty(request); */ updateProperty( - request: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1263,7 +1263,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateProperty(request, options, callback); } getUserLink( - request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, options?: CallOptions ): Promise< [ @@ -1311,7 +1311,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getUserLink(request); */ getUserLink( - request: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1354,7 +1354,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getUserLink(request, options, callback); } batchGetUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, options?: CallOptions ): Promise< [ @@ -1412,7 +1412,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.batchGetUserLinks(request); */ batchGetUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1458,7 +1458,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.batchGetUserLinks(request, options, callback); } createUserLink( - request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, options?: CallOptions ): Promise< [ @@ -1515,7 +1515,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createUserLink(request); */ createUserLink( - request: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1558,7 +1558,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createUserLink(request, options, callback); } batchCreateUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, options?: CallOptions ): Promise< [ @@ -1622,7 +1622,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.batchCreateUserLinks(request); */ batchCreateUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1668,7 +1668,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.batchCreateUserLinks(request, options, callback); } updateUserLink( - request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, options?: CallOptions ): Promise< [ @@ -1716,7 +1716,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateUserLink(request); */ updateUserLink( - request: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1759,7 +1759,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateUserLink(request, options, callback); } batchUpdateUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, options?: CallOptions ): Promise< [ @@ -1816,7 +1816,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.batchUpdateUserLinks(request); */ batchUpdateUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1862,7 +1862,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.batchUpdateUserLinks(request, options, callback); } deleteUserLink( - request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, options?: CallOptions ): Promise< [ @@ -1910,7 +1910,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteUserLink(request); */ deleteUserLink( - request: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1953,7 +1953,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.deleteUserLink(request, options, callback); } batchDeleteUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, options?: CallOptions ): Promise< [ @@ -2010,7 +2010,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.batchDeleteUserLinks(request); */ batchDeleteUserLinks( - request: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2056,7 +2056,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.batchDeleteUserLinks(request, options, callback); } getWebDataStream( - request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2109,7 +2109,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getWebDataStream(request); */ getWebDataStream( - request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2155,7 +2155,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getWebDataStream(request, options, callback); } deleteWebDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2208,7 +2208,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteWebDataStream(request); */ deleteWebDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2254,7 +2254,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.deleteWebDataStream(request, options, callback); } updateWebDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2310,7 +2310,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateWebDataStream(request); */ updateWebDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2356,7 +2356,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateWebDataStream(request, options, callback); } createWebDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2410,7 +2410,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createWebDataStream(request); */ createWebDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2456,7 +2456,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createWebDataStream(request, options, callback); } getIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2509,7 +2509,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getIosAppDataStream(request); */ getIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2555,7 +2555,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getIosAppDataStream(request, options, callback); } deleteIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2608,7 +2608,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteIosAppDataStream(request); */ deleteIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2658,7 +2658,7 @@ export class AnalyticsAdminServiceClient { ); } updateIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2714,7 +2714,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateIosAppDataStream(request); */ updateIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2764,7 +2764,7 @@ export class AnalyticsAdminServiceClient { ); } getAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2817,7 +2817,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getAndroidAppDataStream(request); */ getAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2867,7 +2867,7 @@ export class AnalyticsAdminServiceClient { ); } deleteAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, options?: CallOptions ): Promise< [ @@ -2920,7 +2920,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteAndroidAppDataStream(request); */ deleteAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2970,7 +2970,7 @@ export class AnalyticsAdminServiceClient { ); } updateAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, options?: CallOptions ): Promise< [ @@ -3026,7 +3026,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateAndroidAppDataStream(request); */ updateAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3077,7 +3077,7 @@ export class AnalyticsAdminServiceClient { ); } getEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, options?: CallOptions ): Promise< [ @@ -3133,7 +3133,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getEnhancedMeasurementSettings(request); */ getEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3183,7 +3183,7 @@ export class AnalyticsAdminServiceClient { ); } updateEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, options?: CallOptions ): Promise< [ @@ -3241,7 +3241,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateEnhancedMeasurementSettings(request); */ updateEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3292,7 +3292,7 @@ export class AnalyticsAdminServiceClient { ); } createFirebaseLink( - request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, options?: CallOptions ): Promise< [ @@ -3348,7 +3348,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createFirebaseLink(request); */ createFirebaseLink( - request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3394,7 +3394,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createFirebaseLink(request, options, callback); } updateFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, options?: CallOptions ): Promise< [ @@ -3449,7 +3449,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateFirebaseLink(request); */ updateFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3495,7 +3495,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateFirebaseLink(request, options, callback); } deleteFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, options?: CallOptions ): Promise< [ @@ -3547,7 +3547,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteFirebaseLink(request); */ deleteFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3593,7 +3593,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.deleteFirebaseLink(request, options, callback); } getGlobalSiteTag( - request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, options?: CallOptions ): Promise< [ @@ -3648,7 +3648,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getGlobalSiteTag(request); */ getGlobalSiteTag( - request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3694,7 +3694,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getGlobalSiteTag(request, options, callback); } createGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, options?: CallOptions ): Promise< [ @@ -3747,7 +3747,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createGoogleAdsLink(request); */ createGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3793,7 +3793,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createGoogleAdsLink(request, options, callback); } updateGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, options?: CallOptions ): Promise< [ @@ -3848,7 +3848,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateGoogleAdsLink(request); */ updateGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3894,7 +3894,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); } deleteGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, options?: CallOptions ): Promise< [ @@ -3945,7 +3945,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteGoogleAdsLink(request); */ deleteGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3991,7 +3991,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); } getDataSharingSettings( - request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, options?: CallOptions ): Promise< [ @@ -4045,7 +4045,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getDataSharingSettings(request); */ getDataSharingSettings( - request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4095,7 +4095,7 @@ export class AnalyticsAdminServiceClient { ); } getMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ @@ -4150,7 +4150,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getMeasurementProtocolSecret(request); */ getMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4200,7 +4200,7 @@ export class AnalyticsAdminServiceClient { ); } createMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ @@ -4256,7 +4256,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createMeasurementProtocolSecret(request); */ createMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4306,7 +4306,7 @@ export class AnalyticsAdminServiceClient { ); } deleteMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ @@ -4361,7 +4361,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteMeasurementProtocolSecret(request); */ deleteMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4411,7 +4411,7 @@ export class AnalyticsAdminServiceClient { ); } updateMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ @@ -4464,7 +4464,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateMeasurementProtocolSecret(request); */ updateMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4515,7 +4515,7 @@ export class AnalyticsAdminServiceClient { ); } getGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, options?: CallOptions ): Promise< [ @@ -4567,7 +4567,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getGoogleSignalsSettings(request); */ getGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4617,7 +4617,7 @@ export class AnalyticsAdminServiceClient { ); } updateGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, options?: CallOptions ): Promise< [ @@ -4673,7 +4673,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateGoogleSignalsSettings(request); */ updateGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4724,7 +4724,7 @@ export class AnalyticsAdminServiceClient { ); } createConversionEvent( - request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, options?: CallOptions ): Promise< [ @@ -4778,7 +4778,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createConversionEvent(request); */ createConversionEvent( - request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4824,7 +4824,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createConversionEvent(request, options, callback); } getConversionEvent( - request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, options?: CallOptions ): Promise< [ @@ -4877,7 +4877,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getConversionEvent(request); */ getConversionEvent( - request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4923,7 +4923,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getConversionEvent(request, options, callback); } deleteConversionEvent( - request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, options?: CallOptions ): Promise< [ @@ -4976,7 +4976,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.deleteConversionEvent(request); */ deleteConversionEvent( - request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5022,7 +5022,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.deleteConversionEvent(request, options, callback); } createCustomDimension( - request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, options?: CallOptions ): Promise< [ @@ -5075,7 +5075,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createCustomDimension(request); */ createCustomDimension( - request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5121,7 +5121,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createCustomDimension(request, options, callback); } updateCustomDimension( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, options?: CallOptions ): Promise< [ @@ -5176,7 +5176,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateCustomDimension(request); */ updateCustomDimension( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5222,7 +5222,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateCustomDimension(request, options, callback); } archiveCustomDimension( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, options?: CallOptions ): Promise< [ @@ -5274,7 +5274,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.archiveCustomDimension(request); */ archiveCustomDimension( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5324,7 +5324,7 @@ export class AnalyticsAdminServiceClient { ); } getCustomDimension( - request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, options?: CallOptions ): Promise< [ @@ -5376,7 +5376,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getCustomDimension(request); */ getCustomDimension( - request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5422,7 +5422,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.getCustomDimension(request, options, callback); } createCustomMetric( - request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, options?: CallOptions ): Promise< [ @@ -5475,7 +5475,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.createCustomMetric(request); */ createCustomMetric( - request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5521,7 +5521,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.createCustomMetric(request, options, callback); } updateCustomMetric( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, options?: CallOptions ): Promise< [ @@ -5576,7 +5576,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.updateCustomMetric(request); */ updateCustomMetric( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5622,7 +5622,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.updateCustomMetric(request, options, callback); } archiveCustomMetric( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, options?: CallOptions ): Promise< [ @@ -5674,7 +5674,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.archiveCustomMetric(request); */ archiveCustomMetric( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5720,7 +5720,7 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.archiveCustomMetric(request, options, callback); } getCustomMetric( - request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, options?: CallOptions ): Promise< [ @@ -5769,7 +5769,7 @@ export class AnalyticsAdminServiceClient { * const [response] = await client.getCustomMetric(request); */ getCustomMetric( - request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< @@ -5813,7 +5813,7 @@ export class AnalyticsAdminServiceClient { } listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, options?: CallOptions ): Promise< [ @@ -5880,7 +5880,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -6014,7 +6014,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, options?: CallOptions ): Promise< [ @@ -6073,7 +6073,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -6199,7 +6199,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions ): Promise< [ @@ -6281,7 +6281,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -6443,7 +6443,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions ): Promise< [ @@ -6504,7 +6504,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -6652,7 +6652,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Promise< [ @@ -6721,7 +6721,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -6869,7 +6869,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, options?: CallOptions ): Promise< [ @@ -6934,7 +6934,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -7084,7 +7084,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, options?: CallOptions ): Promise< [ @@ -7149,7 +7149,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -7299,7 +7299,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options?: CallOptions ): Promise< [ @@ -7366,7 +7366,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -7524,7 +7524,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Promise< [ @@ -7587,7 +7587,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -7737,7 +7737,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Promise< [ @@ -7798,7 +7798,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -7946,7 +7946,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Promise< [ @@ -8011,7 +8011,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -8169,7 +8169,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Promise< [ @@ -8246,7 +8246,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -8428,7 +8428,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Promise< [ @@ -8491,7 +8491,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -8639,7 +8639,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listCustomDimensions( - request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions ): Promise< [ @@ -8700,7 +8700,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listCustomDimensions( - request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -8848,7 +8848,7 @@ export class AnalyticsAdminServiceClient { ) as AsyncIterable; } listCustomMetrics( - request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions ): Promise< [ @@ -8909,7 +8909,7 @@ export class AnalyticsAdminServiceClient { * for more details and examples. */ listCustomMetrics( - request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< From b545e4948cb466cdad85b0524e942210e18bea43 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Jun 2021 18:12:41 +0000 Subject: [PATCH 078/142] chore: release 3.0.1 (#127) :robot: I have created a release \*beep\* \*boop\* --- ### [3.0.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.0...v3.0.1) (2021-06-24) ### Bug Fixes * make request optional in all cases ([#126](https://www.github.com/googleapis/nodejs-analytics-admin/issues/126)) ([a66c927](https://www.github.com/googleapis/nodejs-analytics-admin/commit/a66c927492a3186df97c52823e4a6db67c60e65b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index c3ad95e80e9..819187e1dbc 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.0...v3.0.1) (2021-06-24) + + +### Bug Fixes + +* make request optional in all cases ([#126](https://www.github.com/googleapis/nodejs-analytics-admin/issues/126)) ([a66c927](https://www.github.com/googleapis/nodejs-analytics-admin/commit/a66c927492a3186df97c52823e4a6db67c60e65b)) + ## [3.0.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v2.0.3...v3.0.0) (2021-05-27) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 2423a1cb317..735c390b613 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.0.0", + "version": "3.0.1", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 5d4662efcae..d71c8c28543 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.0.0", + "@google-analytics/admin": "^3.0.1", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 3b7fab529ec6126477d852c51e4eab494acdfc30 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Tue, 29 Jun 2021 11:24:45 -0400 Subject: [PATCH 079/142] fix(deps): google-gax v2.17.0 with mTLS (#130) --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 735c390b613..063d462a906 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "google-auth-library": "^7.0.0", - "google-gax": "^2.12.0", + "google-gax": "^2.17.0", "server-destroy": "^1.0.1" }, "devDependencies": { From 9b7dfd355e43fc8e21024bfdec54b4370818d5df Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Jun 2021 16:54:22 +0000 Subject: [PATCH 080/142] chore: release 3.0.2 (#131) :robot: I have created a release \*beep\* \*boop\* --- ### [3.0.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.1...v3.0.2) (2021-06-29) ### Bug Fixes * **deps:** google-gax v2.17.0 with mTLS ([#130](https://www.github.com/googleapis/nodejs-analytics-admin/issues/130)) ([81533f3](https://www.github.com/googleapis/nodejs-analytics-admin/commit/81533f3e69471170414406cfe1dca00a36d7a6b8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 819187e1dbc..0dc01c9640d 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.1...v3.0.2) (2021-06-29) + + +### Bug Fixes + +* **deps:** google-gax v2.17.0 with mTLS ([#130](https://www.github.com/googleapis/nodejs-analytics-admin/issues/130)) ([81533f3](https://www.github.com/googleapis/nodejs-analytics-admin/commit/81533f3e69471170414406cfe1dca00a36d7a6b8)) + ### [3.0.1](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.0...v3.0.1) (2021-06-24) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 063d462a906..af145dccdc3 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.0.1", + "version": "3.0.2", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index d71c8c28543..a6a9bbd61f3 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.0.1", + "@google-analytics/admin": "^3.0.2", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 90000c1dbb4aeed588332e324979421a3490ad0d Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 12 Jul 2021 17:46:18 -0400 Subject: [PATCH 081/142] fix(deps): google-gax v2.17.1 (#133) --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index af145dccdc3..7e1ecb96378 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "google-auth-library": "^7.0.0", - "google-gax": "^2.17.0", + "google-gax": "^2.17.1", "server-destroy": "^1.0.1" }, "devDependencies": { From 29f3dd207fbed7ec044df6ff0f9868d2fdb6efe3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Jul 2021 22:20:29 +0000 Subject: [PATCH 082/142] chore: release 3.0.3 (#134) :robot: I have created a release \*beep\* \*boop\* --- ### [3.0.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.2...v3.0.3) (2021-07-12) ### Bug Fixes * **deps:** google-gax v2.17.1 ([#133](https://www.github.com/googleapis/nodejs-analytics-admin/issues/133)) ([ad5ad4d](https://www.github.com/googleapis/nodejs-analytics-admin/commit/ad5ad4da8348f36364cb1f67751bee70161d6c61)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 0dc01c9640d..24e8053fec5 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.2...v3.0.3) (2021-07-12) + + +### Bug Fixes + +* **deps:** google-gax v2.17.1 ([#133](https://www.github.com/googleapis/nodejs-analytics-admin/issues/133)) ([ad5ad4d](https://www.github.com/googleapis/nodejs-analytics-admin/commit/ad5ad4da8348f36364cb1f67751bee70161d6c61)) + ### [3.0.2](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.1...v3.0.2) (2021-06-29) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 7e1ecb96378..5044857e0de 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.0.2", + "version": "3.0.3", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index a6a9bbd61f3..a4505742aaa 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.0.2", + "@google-analytics/admin": "^3.0.3", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 87a2e46395bf77d98d5c204f604f58a9673d4c5f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 16 Jul 2021 19:08:42 +0000 Subject: [PATCH 083/142] fix: Updating WORKSPACE files to use the newest version of the Typescript generator. (#136) Also removing the explicit generator tag for the IAMPolicy mixin for the kms and pubsub APIS as the generator will now read it from the .yaml file. PiperOrigin-RevId: 385101839 Source-Link: https://github.com/googleapis/googleapis/commit/80f404215a9346259db760d80d0671f28c433453 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d3509d2520fb8db862129633f1cf8406d17454e1 --- .../src/v1alpha/analytics_admin_service_client.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 9a284191951..f7b82d0955d 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -48,6 +48,7 @@ const version = require('../../../package.json').version; export class AnalyticsAdminServiceClient { private _terminated = false; private _opts: ClientOptions; + private _providedCustomServicePath: boolean; private _gaxModule: typeof gax | typeof gax.fallback; private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; @@ -59,6 +60,7 @@ export class AnalyticsAdminServiceClient { longrunning: {}, batching: {}, }; + warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; pathTemplates: {[name: string]: gax.PathTemplate}; analyticsAdminServiceStub?: Promise<{[name: string]: Function}>; @@ -103,6 +105,9 @@ export class AnalyticsAdminServiceClient { .constructor as typeof AnalyticsAdminServiceClient; const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; const fallback = @@ -303,6 +308,9 @@ export class AnalyticsAdminServiceClient { // of calling the API is handled in `google-gax`, with this code // merely providing the destination and request information. this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = gax.warn; } /** @@ -332,7 +340,8 @@ export class AnalyticsAdminServiceClient { : // eslint-disable-next-line @typescript-eslint/no-explicit-any (this._protos as any).google.analytics.admin.v1alpha .AnalyticsAdminService, - this._opts + this._opts, + this._providedCustomServicePath ) as Promise<{[method: string]: Function}>; // Iterate over each of the methods that the service provides From e461d37b92787261b4870d83d691a4fe12e52a8b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Jul 2021 12:54:49 -0700 Subject: [PATCH 084/142] chore: release 3.0.4 (#137) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 24e8053fec5..a72cd2f8eb0 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.4](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.3...v3.0.4) (2021-07-16) + + +### Bug Fixes + +* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#136](https://www.github.com/googleapis/nodejs-analytics-admin/issues/136)) ([2518d10](https://www.github.com/googleapis/nodejs-analytics-admin/commit/2518d10d640a60e2577f3af0cd517e4f52ed185a)) + ### [3.0.3](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.2...v3.0.3) (2021-07-12) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 5044857e0de..13b30440b6b 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.0.3", + "version": "3.0.4", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index a4505742aaa..199471dc103 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.0.3", + "@google-analytics/admin": "^3.0.4", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From b0c8bc54cf4350a4be053b9915296def7e1c80f5 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 9 Aug 2021 16:32:16 -0700 Subject: [PATCH 085/142] fix(build): migrate to using main branch (#144) --- packages/google-analytics-admin/README.md | 18 +++++++++--------- .../google-analytics-admin/samples/README.md | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 4b43e85318a..95f23fb9797 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -6,7 +6,7 @@ [![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-analytics/admin.svg)](https://www.npmjs.org/package/@google-analytics/admin) -[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-analytics-admin/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-analytics-admin) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-analytics-admin/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-analytics-admin) @@ -15,7 +15,7 @@ Admin client for Node.js A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/nodejs-analytics-admin/blob/master/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/nodejs-analytics-admin/blob/main/CHANGELOG.md). * [Google Analytics Admin Node.js Client API Reference][client-docs] * [Google Analytics Admin Documentation][product-docs] @@ -96,12 +96,12 @@ process.on('unhandledRejection', err => { ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | -| Quickstart_installed_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_installed_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | +| Quickstart_installed_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart_installed_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) | @@ -148,19 +148,19 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-analytics-admin/blob/master/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-analytics-admin/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 template in this -[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). +to its templates in +[directory](https://github.com/googleapis/synthtool). ## License Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/nodejs-analytics-admin/blob/master/LICENSE) +See [LICENSE](https://github.com/googleapis/nodejs-analytics-admin/blob/main/LICENSE) [client-docs]: https://googleapis.dev/nodejs/analytics-admin/latest/index.html [product-docs]: https://developers.google.com/analytics diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 0ef448a107a..869c490d182 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -32,7 +32,7 @@ Before running the samples, make sure you've followed the steps outlined in ### Quickstart -View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart.js). +View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) @@ -49,7 +49,7 @@ __Usage:__ ### Quickstart_installed_oauth2 -View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/master/samples/quickstart_installed_oauth2.js). +View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart_installed_oauth2.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) From 120b460a09542896fbcea2f6b5ad84c4bc3bc235 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 23:38:30 +0000 Subject: [PATCH 086/142] chore: release 3.0.5 (#145) :robot: I have created a release \*beep\* \*boop\* --- ### [3.0.5](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.4...v3.0.5) (2021-08-09) ### Bug Fixes * **build:** migrate to using main branch ([#144](https://www.github.com/googleapis/nodejs-analytics-admin/issues/144)) ([537d20a](https://www.github.com/googleapis/nodejs-analytics-admin/commit/537d20a623b026f68e08160af95cac31a7cd52db)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index a72cd2f8eb0..cb71bdff6ac 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.5](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.4...v3.0.5) (2021-08-09) + + +### Bug Fixes + +* **build:** migrate to using main branch ([#144](https://www.github.com/googleapis/nodejs-analytics-admin/issues/144)) ([537d20a](https://www.github.com/googleapis/nodejs-analytics-admin/commit/537d20a623b026f68e08160af95cac31a7cd52db)) + ### [3.0.4](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.3...v3.0.4) (2021-07-16) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 13b30440b6b..83f5ba8ebec 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.0.4", + "version": "3.0.5", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 199471dc103..3151adcb83d 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.0.4", + "@google-analytics/admin": "^3.0.5", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 6c323e058a338b9728a3073e953c352a2f47fbe4 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 16 Aug 2021 22:46:19 -0400 Subject: [PATCH 087/142] fix(deps): google-gax v2.24.1 (#146) --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 83f5ba8ebec..66238d3632f 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "google-auth-library": "^7.0.0", - "google-gax": "^2.17.1", + "google-gax": "^2.24.1", "server-destroy": "^1.0.1" }, "devDependencies": { From 5f767323d9515f6b6bcf781639d384431bcec789 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 Aug 2021 17:14:24 +0000 Subject: [PATCH 088/142] chore: release 3.0.6 (#147) :robot: I have created a release \*beep\* \*boop\* --- ### [3.0.6](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.5...v3.0.6) (2021-08-17) ### Bug Fixes * **deps:** google-gax v2.24.1 ([#146](https://www.github.com/googleapis/nodejs-analytics-admin/issues/146)) ([604e333](https://www.github.com/googleapis/nodejs-analytics-admin/commit/604e3335ed05b198e6e9f3eafd6eaf405126bd2f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index cb71bdff6ac..47001b04724 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.6](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.5...v3.0.6) (2021-08-17) + + +### Bug Fixes + +* **deps:** google-gax v2.24.1 ([#146](https://www.github.com/googleapis/nodejs-analytics-admin/issues/146)) ([604e333](https://www.github.com/googleapis/nodejs-analytics-admin/commit/604e3335ed05b198e6e9f3eafd6eaf405126bd2f)) + ### [3.0.5](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.4...v3.0.5) (2021-08-09) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 66238d3632f..2fc037db177 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.0.5", + "version": "3.0.6", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 3151adcb83d..97cb4efb8a1 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.0.5", + "@google-analytics/admin": "^3.0.6", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 672f850fa4e5188fd0dce17a855d2526899c286d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:28:13 +0000 Subject: [PATCH 089/142] feat: turns on self-signed JWT feature flag (#148) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 392067151 Source-Link: https://github.com/googleapis/googleapis/commit/06345f7b95c4b4a3ffe4303f1f2984ccc304b2e0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/95882b37970e41e4cd51b22fa507cfd46dc7c4b6 --- .../src/v1alpha/analytics_admin_service_client.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index f7b82d0955d..8b691bdf22c 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -132,6 +132,12 @@ export class AnalyticsAdminServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; From 44be6a5d3629de0c7c26855856c445176103b529 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:36:15 +0000 Subject: [PATCH 090/142] chore: release 3.1.0 (#149) :robot: I have created a release \*beep\* \*boop\* --- ## [3.1.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.6...v3.1.0) (2021-08-23) ### Features * turns on self-signed JWT feature flag ([#148](https://www.github.com/googleapis/nodejs-analytics-admin/issues/148)) ([d0382e4](https://www.github.com/googleapis/nodejs-analytics-admin/commit/d0382e4cc29fb304f2d90be0f4b354a2e65ace3c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 47001b04724..f938e1aac2e 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.1.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.6...v3.1.0) (2021-08-23) + + +### Features + +* turns on self-signed JWT feature flag ([#148](https://www.github.com/googleapis/nodejs-analytics-admin/issues/148)) ([d0382e4](https://www.github.com/googleapis/nodejs-analytics-admin/commit/d0382e4cc29fb304f2d90be0f4b354a2e65ace3c)) + ### [3.0.6](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.5...v3.0.6) (2021-08-17) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 2fc037db177..f88587083b4 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.0.6", + "version": "3.1.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 97cb4efb8a1..cfedff1c94d 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.0.6", + "@google-analytics/admin": "^3.1.0", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From b755906e145a897e9d0037d661ec6f4f059b76af Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 14 Oct 2021 00:48:28 +0000 Subject: [PATCH 091/142] build(node): update deps used during postprocessing (#1243) (#159) --- .../google-analytics-admin/protos/protos.d.ts | 3 ++- packages/google-analytics-admin/protos/protos.js | 7 +++++++ .../google-analytics-admin/protos/protos.json | 15 ++++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 4c4d4bd754a..847065e39a8 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -12503,7 +12503,8 @@ export namespace google { OUTPUT_ONLY = 3, INPUT_ONLY = 4, IMMUTABLE = 5, - UNORDERED_LIST = 6 + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 } /** Properties of a ResourceDescriptor. */ diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 39afb53da15..9deb15bc6ed 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -28513,6 +28513,7 @@ * @property {number} INPUT_ONLY=4 INPUT_ONLY value * @property {number} IMMUTABLE=5 IMMUTABLE value * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value */ api.FieldBehavior = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -28523,6 +28524,7 @@ values[valuesById[4] = "INPUT_ONLY"] = 4; values[valuesById[5] = "IMMUTABLE"] = 5; values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; return values; })(); @@ -35595,6 +35597,7 @@ case 4: case 5: case 6: + case 7: break; } } @@ -35699,6 +35702,10 @@ case 6: message[".google.api.fieldBehavior"][i] = 6; break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; } } if (object[".google.api.resourceReference"] != null) { diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 5df82d2dad8..7fa9e540e6c 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -3774,7 +3774,8 @@ "OUTPUT_ONLY": 3, "INPUT_ONLY": 4, "IMMUTABLE": 5, - "UNORDERED_LIST": 6 + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 } }, "resourceReference": { @@ -4520,6 +4521,18 @@ ] ], "reserved": [ + [ + 4, + 4 + ], + [ + 5, + 5 + ], + [ + 6, + 6 + ], [ 8, 8 From 6fd2f8f9ee1127e55666cf37aed6944b6ea45572 Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Thu, 21 Oct 2021 11:30:26 -0400 Subject: [PATCH 092/142] chore(cloud-rad): delete api-extractor config (#160) --- .../google-analytics-admin/api-extractor.json | 369 ------------------ 1 file changed, 369 deletions(-) delete mode 100644 packages/google-analytics-admin/api-extractor.json diff --git a/packages/google-analytics-admin/api-extractor.json b/packages/google-analytics-admin/api-extractor.json deleted file mode 100644 index de228294b23..00000000000 --- a/packages/google-analytics-admin/api-extractor.json +++ /dev/null @@ -1,369 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - - /** - * Optionally specifies another JSON config file that this file extends from. This provides a way for - * standard settings to be shared across multiple projects. - * - * If the path starts with "./" or "../", the path is resolved relative to the folder of the file that contains - * the "extends" field. Otherwise, the first path segment is interpreted as an NPM package name, and will be - * resolved using NodeJS require(). - * - * SUPPORTED TOKENS: none - * DEFAULT VALUE: "" - */ - // "extends": "./shared/api-extractor-base.json" - // "extends": "my-package/include/api-extractor-base.json" - - /** - * Determines the "" token that can be used with other config file settings. The project folder - * typically contains the tsconfig.json and package.json config files, but the path is user-defined. - * - * The path is resolved relative to the folder of the config file that contains the setting. - * - * The default value for "projectFolder" is the token "", which means the folder is determined by traversing - * parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder - * that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error - * will be reported. - * - * SUPPORTED TOKENS: - * DEFAULT VALUE: "" - */ - // "projectFolder": "..", - - /** - * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor - * analyzes the symbols exported by this module. - * - * The file extension must be ".d.ts" and not ".ts". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - */ - "mainEntryPointFilePath": "/protos/protos.d.ts", - - /** - * A list of NPM package names whose exports should be treated as part of this package. - * - * For example, suppose that Webpack is used to generate a distributed bundle for the project "library1", - * and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part - * of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly - * imports library2. To avoid this, we can specify: - * - * "bundledPackages": [ "library2" ], - * - * This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been - * local files for library1. - */ - "bundledPackages": [ ], - - /** - * Determines how the TypeScript compiler engine will be invoked by API Extractor. - */ - "compiler": { - /** - * Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * Note: This setting will be ignored if "overrideTsconfig" is used. - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/tsconfig.json" - */ - // "tsconfigFilePath": "/tsconfig.json", - - /** - * Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. - * The object must conform to the TypeScript tsconfig schema: - * - * http://json.schemastore.org/tsconfig - * - * If omitted, then the tsconfig.json file will be read from the "projectFolder". - * - * DEFAULT VALUE: no overrideTsconfig section - */ - // "overrideTsconfig": { - // . . . - // } - - /** - * This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended - * and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when - * dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses - * for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck. - * - * DEFAULT VALUE: false - */ - // "skipLibCheck": true, - }, - - /** - * Configures how the API report file (*.api.md) will be generated. - */ - "apiReport": { - /** - * (REQUIRED) Whether to generate an API report. - */ - "enabled": true, - - /** - * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce - * a full file path. - * - * The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/". - * - * SUPPORTED TOKENS: , - * DEFAULT VALUE: ".api.md" - */ - // "reportFileName": ".api.md", - - /** - * Specifies the folder where the API report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, - * e.g. for an API review. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/etc/" - */ - // "reportFolder": "/etc/", - - /** - * Specifies the folder where the temporary report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * After the temporary file is written to disk, it is compared with the file in the "reportFolder". - * If they are different, a production build will fail. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/" - */ - // "reportTempFolder": "/temp/" - }, - - /** - * Configures how the doc model file (*.api.json) will be generated. - */ - "docModel": { - /** - * (REQUIRED) Whether to generate a doc model file. - */ - "enabled": true, - - /** - * The output path for the doc model file. The file extension should be ".api.json". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/.api.json" - */ - // "apiJsonFilePath": "/temp/.api.json" - }, - - /** - * Configures how the .d.ts rollup file will be generated. - */ - "dtsRollup": { - /** - * (REQUIRED) Whether to generate the .d.ts rollup file. - */ - "enabled": true, - - /** - * Specifies the output path for a .d.ts rollup file to be generated without any trimming. - * This file will include all declarations that are exported by the main entry point. - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/dist/.d.ts" - */ - // "untrimmedFilePath": "/dist/.d.ts", - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release. - * This file will include only declarations that are marked as "@public" or "@beta". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "betaTrimmedFilePath": "/dist/-beta.d.ts", - - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release. - * This file will include only declarations that are marked as "@public". - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "publicTrimmedFilePath": "/dist/-public.d.ts", - - /** - * When a declaration is trimmed, by default it will be replaced by a code comment such as - * "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the - * declaration completely. - * - * DEFAULT VALUE: false - */ - // "omitTrimmingComments": true - }, - - /** - * Configures how the tsdoc-metadata.json file will be generated. - */ - "tsdocMetadata": { - /** - * Whether to generate the tsdoc-metadata.json file. - * - * DEFAULT VALUE: true - */ - // "enabled": true, - - /** - * Specifies where the TSDoc metadata file should be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * The default value is "", which causes the path to be automatically inferred from the "tsdocMetadata", - * "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup - * falls back to "tsdoc-metadata.json" in the package folder. - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "tsdocMetadataFilePath": "/dist/tsdoc-metadata.json" - }, - - /** - * Specifies what type of newlines API Extractor should use when writing output files. By default, the output files - * will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead. - * To use the OS's default newline kind, specify "os". - * - * DEFAULT VALUE: "crlf" - */ - // "newlineKind": "crlf", - - /** - * Configures how API Extractor reports error and warning messages produced during analysis. - * - * There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages. - */ - "messages": { - /** - * Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing - * the input .d.ts files. - * - * TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "compilerMessageReporting": { - /** - * Configures the default routing for messages that don't match an explicit rule in this table. - */ - "default": { - /** - * Specifies whether the message should be written to the the tool's output log. Note that - * the "addToApiReportFile" property may supersede this option. - * - * Possible values: "error", "warning", "none" - * - * Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail - * and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes - * the "--local" option), the warning is displayed but the build will not fail. - * - * DEFAULT VALUE: "warning" - */ - "logLevel": "warning", - - /** - * When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md), - * then the message will be written inside that file; otherwise, the message is instead logged according to - * the "logLevel" option. - * - * DEFAULT VALUE: false - */ - // "addToApiReportFile": false - }, - - // "TS2551": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by API Extractor during its analysis. - * - * API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag" - * - * DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings - */ - "extractorMessageReporting": { - "default": { - "logLevel": "warning", - // "addToApiReportFile": false - }, - - // "ae-extra-release-tag": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by the TSDoc parser when analyzing code comments. - * - * TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "tsdocMessageReporting": { - "default": { - "logLevel": "warning", - // "addToApiReportFile": false - } - - // "tsdoc-link-tag-unescaped-text": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - } - } - -} From 5bc4380b53b94a33a6143ce8fae51d1255f89e18 Mon Sep 17 00:00:00 2001 From: Takashi Matsuo Date: Wed, 27 Oct 2021 06:32:13 -0700 Subject: [PATCH 093/142] chore: fix the wrong post processor image (#162) --- packages/google-analytics-admin/.github/.OwlBot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/.github/.OwlBot.yaml b/packages/google-analytics-admin/.github/.OwlBot.yaml index 8628fb65baf..68a6c689459 100644 --- a/packages/google-analytics-admin/.github/.OwlBot.yaml +++ b/packages/google-analytics-admin/.github/.OwlBot.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. docker: - image: gcr.io/repo-automation-bots/owlbot-nodejs:latest + image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest deep-remove-regex: - /owl-bot-staging From 9cdba54acc1cc6a9efebcc1699645ee7c65d8eca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 17:32:19 +0200 Subject: [PATCH 094/142] chore(deps): update dependency @types/node to v16 (#161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^14.0.22` -> `^16.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/14.17.32/16.11.6) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/compatibility-slim/14.17.32)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/confidence-slim/14.17.32)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index f88587083b4..b6e194176ba 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -45,7 +45,7 @@ }, "devDependencies": { "@types/mocha": "^8.0.0", - "@types/node": "^14.0.22", + "@types/node": "^16.0.0", "@types/sinon": "^10.0.0", "c8": "^7.2.0", "gts": "^3.0.0", From 9baaf172c1820bca929f1dd9fd6f68e7349a6643 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Nov 2021 20:40:21 +0100 Subject: [PATCH 095/142] chore(deps): update dependency sinon to v12 (#163) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^11.0.0` -> `^12.0.0`](https://renovatebot.com/diffs/npm/sinon/11.1.2/12.0.1) | [![age](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/compatibility-slim/11.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/confidence-slim/11.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v12.0.1`](https://togithub.com/sinonjs/sinon/blob/master/CHANGES.md#​1201) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v12.0.0...v12.0.1) - [`3f598221`](https://togithub.com/sinonjs/sinon/commit/3f598221045904681f2b3b3ba1df617ed5e230e3) Fix issue with npm unlink for npm version > 6 (Carl-Erik Kopseng) > 'npm unlink' would implicitly unlink the current dir > until version 7, which requires an argument - [`51417a38`](https://togithub.com/sinonjs/sinon/commit/51417a38111eeeb7cd14338bfb762cc2df487e1b) Fix bundling of cjs module ([#​2412](https://togithub.com/sinonjs/sinon/issues/2412)) (Julian Grinblat) > - Fix bundling of cjs module > > - Run prettier *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2021-11-04.* #### 12.0.0 ### [`v12.0.0`](https://togithub.com/sinonjs/sinon/compare/v11.1.2...v12.0.0) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v11.1.2...v12.0.0)
--- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index b6e194176ba..724016a0209 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -56,7 +56,7 @@ "mocha": "^8.0.1", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^11.0.0", + "sinon": "^12.0.0", "ts-loader": "^9.0.0", "typescript": "^3.9.6" }, From ee348a26ee60a7b43e3be22406772e03b3cfc261 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 Nov 2021 21:36:32 +0000 Subject: [PATCH 096/142] docs(samples): add example tags to generated samples (#164) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 408439482 Source-Link: https://github.com/googleapis/googleapis/commit/b9f61843dc80c7c285fc34fd3a40aae55082c2b9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/eb888bc214efc7bf43bf4634b470254565a659a5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9 --- .../linkinator.config.json | 2 +- .../admin/v1alpha/analytics_admin.proto | 352 +- .../analytics/admin/v1alpha/resources.proto | 267 +- .../google-analytics-admin/protos/protos.d.ts | 5798 ++++-- .../google-analytics-admin/protos/protos.js | 14820 ++++++++++------ .../google-analytics-admin/protos/protos.json | 880 +- ...splay_video360_advertiser_link_proposal.js | 55 + ..._admin_service.archive_custom_dimension.js | 54 + ...ics_admin_service.archive_custom_metric.js | 54 + ...nalytics_admin_service.audit_user_links.js | 69 + ...s_admin_service.batch_create_user_links.js | 68 + ...s_admin_service.batch_delete_user_links.js | 62 + ...tics_admin_service.batch_get_user_links.js | 63 + ...s_admin_service.batch_update_user_links.js | 62 + ...splay_video360_advertiser_link_proposal.js | 55 + ...s_admin_service.create_conversion_event.js | 59 + ...s_admin_service.create_custom_dimension.js | 58 + ...tics_admin_service.create_custom_metric.js | 58 + ...create_display_video360_advertiser_link.js | 60 + ...splay_video360_advertiser_link_proposal.js | 59 + ...tics_admin_service.create_firebase_link.js | 59 + ...cs_admin_service.create_google_ads_link.js | 58 + ...vice.create_measurement_protocol_secret.js | 61 + ...analytics_admin_service.create_property.js | 54 + ...nalytics_admin_service.create_user_link.js | 63 + ...cs_admin_service.create_web_data_stream.js | 59 + .../analytics_admin_service.delete_account.js | 55 + ..._service.delete_android_app_data_stream.js | 55 + ...s_admin_service.delete_conversion_event.js | 55 + ...delete_display_video360_advertiser_link.js | 56 + ...splay_video360_advertiser_link_proposal.js | 55 + ...tics_admin_service.delete_firebase_link.js | 54 + ...cs_admin_service.delete_google_ads_link.js | 53 + ...dmin_service.delete_ios_app_data_stream.js | 55 + ...vice.delete_measurement_protocol_secret.js | 57 + ...analytics_admin_service.delete_property.js | 55 + ...nalytics_admin_service.delete_user_link.js | 53 + ...cs_admin_service.delete_web_data_stream.js | 55 + .../analytics_admin_service.get_account.js | 55 + ...min_service.get_android_app_data_stream.js | 55 + ...tics_admin_service.get_conversion_event.js | 55 + ...tics_admin_service.get_custom_dimension.js | 54 + ...alytics_admin_service.get_custom_metric.js | 54 + ...min_service.get_data_retention_settings.js | 56 + ...admin_service.get_data_sharing_settings.js | 55 + ...ce.get_display_video360_advertiser_link.js | 56 + ...splay_video360_advertiser_link_proposal.js | 56 + ...rvice.get_enhanced_measurement_settings.js | 56 + ...ytics_admin_service.get_global_site_tag.js | 56 + ...min_service.get_google_signals_settings.js | 54 + ...s_admin_service.get_ios_app_data_stream.js | 55 + ...service.get_measurement_protocol_secret.js | 57 + .../analytics_admin_service.get_property.js | 55 + .../analytics_admin_service.get_user_link.js | 53 + ...ytics_admin_service.get_web_data_stream.js | 55 + ...cs_admin_service.list_account_summaries.js | 63 + .../analytics_admin_service.list_accounts.js | 69 + ...n_service.list_android_app_data_streams.js | 71 + ...cs_admin_service.list_conversion_events.js | 69 + ...cs_admin_service.list_custom_dimensions.js | 68 + ...ytics_admin_service.list_custom_metrics.js | 68 + ...play_video360_advertiser_link_proposals.js | 73 + ....list_display_video360_advertiser_links.js | 71 + ...ytics_admin_service.list_firebase_links.js | 70 + ...ics_admin_service.list_google_ads_links.js | 68 + ...admin_service.list_ios_app_data_streams.js | 70 + ...rvice.list_measurement_protocol_secrets.js | 74 + ...analytics_admin_service.list_properties.js | 86 + ...analytics_admin_service.list_user_links.js | 69 + ...ics_admin_service.list_web_data_streams.js | 70 + ..._admin_service.provision_account_ticket.js | 56 + ...in_service.search_change_history_events.js | 96 + .../analytics_admin_service.update_account.js | 61 + ..._service.update_android_app_data_stream.js | 61 + ...s_admin_service.update_custom_dimension.js | 59 + ...tics_admin_service.update_custom_metric.js | 59 + ..._service.update_data_retention_settings.js | 61 + ...update_display_video360_advertiser_link.js | 61 + ...ce.update_enhanced_measurement_settings.js | 63 + ...cs_admin_service.update_google_ads_link.js | 59 + ..._service.update_google_signals_settings.js | 61 + ...dmin_service.update_ios_app_data_stream.js | 61 + ...vice.update_measurement_protocol_secret.js | 57 + ...analytics_admin_service.update_property.js | 62 + ...nalytics_admin_service.update_user_link.js | 53 + ...cs_admin_service.update_web_data_stream.js | 61 + .../v1alpha/analytics_admin_service_client.ts | 7190 +++++--- ...analytics_admin_service_client_config.json | 70 +- .../src/v1alpha/gapic_metadata.json | 148 +- .../gapic_analytics_admin_service_v1alpha.ts | 4582 +++-- 90 files changed, 27918 insertions(+), 11026 deletions(-) create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js diff --git a/packages/google-analytics-admin/linkinator.config.json b/packages/google-analytics-admin/linkinator.config.json index 29a223b6db6..0121dfa684f 100644 --- a/packages/google-analytics-admin/linkinator.config.json +++ b/packages/google-analytics-admin/linkinator.config.json @@ -6,5 +6,5 @@ "img.shields.io" ], "silent": true, - "concurrency": 10 + "concurrency": 5 } diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 14ba713d911..4f2beb4b872 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -437,15 +437,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "parent,firebase_link"; } - // Updates a FirebaseLink on a property - rpc UpdateFirebaseLink(UpdateFirebaseLinkRequest) returns (FirebaseLink) { - option (google.api.http) = { - patch: "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}" - body: "firebase_link" - }; - option (google.api.method_signature) = "firebase_link,update_mask"; - } - // Deletes a FirebaseLink on a property rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -653,6 +644,108 @@ service AnalyticsAdminService { option (google.api.method_signature) = "parent"; } + // Look up a single DisplayVideo360AdvertiserLink + rpc GetDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all DisplayVideo360AdvertiserLinks on a property. + rpc ListDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest) returns (ListDisplayVideo360AdvertiserLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a DisplayVideo360AdvertiserLink. + // This can only be utilized by users who have proper authorization both on + // the Google Analytics property and on the Display & Video 360 advertiser. + // Users who do not have access to the Display & Video 360 advertiser should + // instead seek to create a DisplayVideo360LinkProposal. + rpc CreateDisplayVideo360AdvertiserLink(CreateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" + body: "display_video_360_advertiser_link" + }; + option (google.api.method_signature) = "parent,display_video_360_advertiser_link"; + } + + // Deletes a DisplayVideo360AdvertiserLink on a property. + rpc DeleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a DisplayVideo360AdvertiserLink on a property. + rpc UpdateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + option (google.api.http) = { + patch: "/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}" + body: "display_video_360_advertiser_link" + }; + option (google.api.method_signature) = "display_video_360_advertiser_link,update_mask"; + } + + // Lookup for a single DisplayVideo360AdvertiserLinkProposal. + rpc GetDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists DisplayVideo360AdvertiserLinkProposals on a property. + rpc ListDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest) returns (ListDisplayVideo360AdvertiserLinkProposalsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a DisplayVideo360AdvertiserLinkProposal. + rpc CreateDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" + body: "display_video_360_advertiser_link_proposal" + }; + option (google.api.method_signature) = "parent,display_video_360_advertiser_link_proposal"; + } + + // Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + // This can only be used on cancelled proposals. + rpc DeleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Approves a DisplayVideo360AdvertiserLinkProposal. + // The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + // DisplayVideo360AdvertiserLink will be created. + rpc ApproveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest) returns (ApproveDisplayVideo360AdvertiserLinkProposalResponse) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve" + body: "*" + }; + } + + // Cancels a DisplayVideo360AdvertiserLinkProposal. + // Cancelling can mean either: + // - Declining a proposal initiated from Display & Video 360 + // - Withdrawing a proposal initiated from Google Analytics + // After being cancelled, a proposal will eventually be deleted automatically. + rpc CancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel" + body: "*" + }; + } + // Creates a CustomDimension. rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { option (google.api.http) = { @@ -738,6 +831,23 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Returns the singleton data retention settings for this property. + rpc GetDataRetentionSettings(GetDataRetentionSettingsRequest) returns (DataRetentionSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/dataRetentionSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the singleton data retention settings for this property. + rpc UpdateDataRetentionSettings(UpdateDataRetentionSettingsRequest) returns (DataRetentionSettings) { + option (google.api.http) = { + patch: "/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}" + body: "data_retention_settings" + }; + option (google.api.method_signature) = "data_retention_settings,update_mask"; + } } // Request message for GetAccount RPC. @@ -1410,17 +1520,6 @@ message CreateFirebaseLinkRequest { FirebaseLink firebase_link = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for UpdateFirebaseLink RPC -message UpdateFirebaseLinkRequest { - // Required. The Firebase link to update. - FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - // Request message for DeleteFirebaseLink RPC message DeleteFirebaseLinkRequest { // Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} @@ -1839,6 +1938,193 @@ message ListConversionEventsResponse { string next_page_token = 2; } +// Request message for GetDisplayVideo360AdvertiserLink RPC. +message GetDisplayVideo360AdvertiserLinkRequest { + // Required. The name of the DisplayVideo360AdvertiserLink to get. + // Example format: properties/1234/displayVideo360AdvertiserLink/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; +} + +// Request message for ListDisplayVideo360AdvertiserLinks RPC. +message ListDisplayVideo360AdvertiserLinksRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + // page token. + string page_token = 3; +} + +// Response message for ListDisplayVideo360AdvertiserLinks RPC. +message ListDisplayVideo360AdvertiserLinksResponse { + // List of DisplayVideo360AdvertiserLinks. + repeated DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 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 CreateDisplayVideo360AdvertiserLink RPC. +message CreateDisplayVideo360AdvertiserLinkRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; + + // Required. The DisplayVideo360AdvertiserLink to create. + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteDisplayVideo360AdvertiserLink RPC. +message DeleteDisplayVideo360AdvertiserLinkRequest { + // Required. The name of the DisplayVideo360AdvertiserLink to delete. + // Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; +} + +// Request message for UpdateDisplayVideo360AdvertiserLink RPC. +message UpdateDisplayVideo360AdvertiserLinkRequest { + // The DisplayVideo360AdvertiserLink to update + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for GetDisplayVideo360AdvertiserLinkProposal RPC. +message GetDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + +// Request message for ListDisplayVideo360AdvertiserLinkProposals RPC. +message ListDisplayVideo360AdvertiserLinkProposalsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous + // `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + // the subsequent page. + // + // When paginating, all other parameters provided to + // `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + // provided the page token. + string page_token = 3; +} + +// Response message for ListDisplayVideo360AdvertiserLinkProposals RPC. +message ListDisplayVideo360AdvertiserLinkProposalsResponse { + // List of DisplayVideo360AdvertiserLinkProposals. + repeated DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 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 CreateDisplayVideo360AdvertiserLinkProposal RPC. +message CreateDisplayVideo360AdvertiserLinkProposalRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; + + // Required. The DisplayVideo360AdvertiserLinkProposal to create. + DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC. +message DeleteDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + +// Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. +message ApproveDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + +// Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. +message ApproveDisplayVideo360AdvertiserLinkProposalResponse { + // The DisplayVideo360AdvertiserLink created as a result of approving the + // proposal. + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; +} + +// Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC. +message CancelDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + // Request message for CreateCustomDimension RPC. message CreateCustomDimensionRequest { // Required. Example format: properties/1234 @@ -2002,3 +2288,29 @@ message GetCustomMetricRequest { } ]; } + +// Request message for GetDataRetentionSettings RPC. +message GetDataRetentionSettingsRequest { + // Required. The name of the settings to lookup. + // Format: + // properties/{property}/dataRetentionSettings + // Example: "properties/1000/dataRetentionSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataRetentionSettings" + } + ]; +} + +// Request message for UpdateDataRetentionSettings RPC. +message UpdateDataRetentionSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + DataRetentionSettings data_retention_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 7b6af230249..ec9d4c99136 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -26,27 +26,6 @@ option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.analytics.admin.v1alpha"; -// Maximum access settings that Firebase user receive on the linked Analytics -// property. -enum MaximumUserAccess { - // Unspecified maximum user access. - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; - - // Firebase users have no access to the Analytics property. - NO_ACCESS = 1; - - // Firebase users have Read & Analyze access to the Analytics property. - READ_AND_ANALYZE = 2; - - // Firebase users have edit access to the Analytics property, but may not - // manage the Firebase link. - EDITOR_WITHOUT_LINK_MANAGEMENT = 3; - - // Firebase users have edit access to the Analytics property and may manage - // the Firebase link. - EDITOR_INCLUDING_LINK_MANAGEMENT = 4; -} - // The category selected for this property, used for industry benchmarking. enum IndustryCategory { // Industry category unspecified @@ -131,6 +110,18 @@ enum IndustryCategory { SHOPPING = 26; } +// Various levels of service for Google Analytics. +enum ServiceLevel { + // Service level not specified or invalid. + SERVICE_LEVEL_UNSPECIFIED = 0; + + // The standard version of Google Analytics. + GOOGLE_ANALYTICS_STANDARD = 1; + + // The paid, premium version of Google Analytics. + GOOGLE_ANALYTICS_360 = 2; +} + // Different kinds of actors that can make changes to Google Analytics // resources. enum ActorType { @@ -202,6 +193,9 @@ enum ChangeHistoryResourceType { // CustomMetric resource CUSTOM_METRIC = 12; + + // DataRetentionSettings resource + DATA_RETENTION_SETTINGS = 13; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -233,6 +227,51 @@ enum GoogleSignalsConsent { GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; } +// An indication of which product the user initiated a link proposal from. +enum LinkProposalInitiatingProduct { + // Unspecified product. + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; + + // This proposal was created by a user from Google Analytics. + GOOGLE_ANALYTICS = 1; + + // This proposal was created by a user from a linked product (not Google + // Analytics). + LINKED_PRODUCT = 2; +} + +// The state of a link proposal resource. +enum LinkProposalState { + // Unspecified state + LINK_PROPOSAL_STATE_UNSPECIFIED = 0; + + // This proposal is awaiting review from a Google Analytics user. This + // proposal will automatically expire after some time. + AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; + + // This proposal is awaiting review from a user of a linked product. This + // proposal will automatically expire after some time. + AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; + + // This proposal has been withdrawn by an admin on the initiating product. + // This proposal will be automatically deleted after some time. + WITHDRAWN = 3; + + // This proposal has been declined by an admin on the receiving product. This + // proposal will be automatically deleted after some time. + DECLINED = 4; + + // This proposal expired due to lack of response from an admin on the + // receiving product. This proposal will be automatically deleted after some + // time. + EXPIRED = 5; + + // This proposal has become obsolete because a link was directly created to + // the same external product resource that this proposal specifies. This + // proposal will be automatically deleted after some time. + OBSOLETE = 6; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -314,6 +353,9 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; + // Output only. The Google Analytics service level that applies to this property. + ServiceLevel service_level = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If set, the time at which this property was trashed. If not set, then this // property is not currently in the trash can. google.protobuf.Timestamp delete_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -563,10 +605,6 @@ message FirebaseLink { // Output only. Time when this FirebaseLink was originally created. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Maximum user access to the GA4 property allowed to admins of - // the linked Firebase project. - MaximumUserAccess maximum_user_access = 4; } // Read-only resource with the tag for sending data from a website to a @@ -610,15 +648,15 @@ message GoogleAdsLink { // If this field is not set on create/update, it will be defaulted to true. google.protobuf.BoolValue ads_personalization_enabled = 5; - // Output only. Email address of the user that created the link. - // An empty string will be returned if the email address can't be retrieved. - string email_address = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Time when this link was originally created. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this link was last updated. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the user that created the link. + // An empty string will be returned if the email address can't be retrieved. + string creator_email_address = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing data sharing settings of a Google Analytics @@ -774,6 +812,14 @@ message ChangeHistoryChange { // A snapshot of a GoogleSignalsSettings resource in change history. GoogleSignalsSettings google_signals_settings = 8; + // A snapshot of a DisplayVideo360AdvertiserLink resource in change + // history. + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + + // A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in + // change history. + DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + // A snapshot of a ConversionEvent resource in change history. ConversionEvent conversion_event = 11; @@ -785,6 +831,9 @@ message ChangeHistoryChange { // A snapshot of a CustomMetric resource in change history. CustomMetric custom_metric = 14; + + // A snapshot of a data retention settings resource in change history. + DataRetentionSettings data_retention_settings = 15; } } @@ -803,6 +852,106 @@ message ChangeHistoryChange { ChangeHistoryResource resource_after_change = 4; } +// A link between a GA4 property and a Display & Video 360 advertiser. +message DisplayVideo360AdvertiserLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + pattern: "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}" + }; + + // Output only. The resource name for this DisplayVideo360AdvertiserLink resource. + // Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} + // + // Note: linkId is not the Display & Video 360 Advertiser ID + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The Display & Video 360 Advertiser's advertiser ID. + string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The display name of the Display & Video 360 Advertiser. + string advertiser_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Enables personalized advertising features with this integration. + // If this field is not set on create/update, it will be defaulted to true. + google.protobuf.BoolValue ads_personalization_enabled = 4; + + // Immutable. Enables the import of campaign data from Display & Video 360 into the GA4 + // property. After link creation, this can only be updated from the Display & + // Video 360 product. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of cost data from Display & Video 360 into the GA4 + // property. This can only be enabled if campaign_data_import_enabled is + // enabled. After link creation, this can only be updated from the Display & + // Video 360 product. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A proposal for a link between an GA4 property and a Display & Video 360 +// advertiser. +// +// A proposal is converted to a DisplayVideo360AdvertiserLink once approved. +// Google Analytics admins approve inbound proposals while Display & Video 360 +// admins approve outbound proposals. +message DisplayVideo360AdvertiserLinkProposal { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + pattern: "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}" + }; + + // Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource. + // Format: + // properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} + // + // Note: proposalId is not the Display & Video 360 Advertiser ID + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The Display & Video 360 Advertiser's advertiser ID. + string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The status information for this link proposal. + LinkProposalStatusDetails link_proposal_status_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the Display & Video Advertiser. + // Only populated for proposals that originated from Display & Video 360. + string advertiser_display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Input only. On a proposal being sent to Display & Video 360, this field must be set to + // the email address of an admin on the target advertiser. This is used to + // verify that the Google Analytics admin is aware of at least one admin on + // the Display & Video 360 Advertiser. This does not restrict approval of the + // proposal to a single user. Any admin on the Display & Video 360 Advertiser + // may approve the proposal. + string validation_email = 5 [(google.api.field_behavior) = INPUT_ONLY]; + + // Immutable. Enables personalized advertising features with this integration. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue ads_personalization_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of campaign data from Display & Video 360. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of cost data from Display & Video 360. + // This can only be enabled if campaign_data_import_enabled is enabled. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Status information for a link proposal. +message LinkProposalStatusDetails { + // Output only. The source of this proposal. + LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The email address of the user that proposed this linkage. + string requestor_email = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of this proposal. + LinkProposalState link_proposal_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A conversion event in a Google Analytics property. message ConversionEvent { option (google.api.resource) = { @@ -822,7 +971,15 @@ message ConversionEvent { google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If set, this event can currently be deleted via DeleteConversionEvent. - bool is_deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set to true, this conversion event refers to a custom event. If set to + // false, this conversion event refers to a default event in GA. Default + // events typically have special meaning in GA. Default events are usually + // created for you by the GA system, but in some cases can be created by + // property admins. Custom events count towards the maximum number of + // custom conversion events that may be created per property. + bool custom = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Settings values for Google Signals. This is a singleton resource. @@ -986,11 +1143,8 @@ message CustomMetric { // Max length of 150 characters. string description = 4 [(google.api.field_behavior) = OPTIONAL]; - // Required. Immutable. The type for the custom metric's value. - MeasurementUnit measurement_unit = 5 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; + // Required. The type for the custom metric's value. + MeasurementUnit measurement_unit = 5 [(google.api.field_behavior) = REQUIRED]; // Required. Immutable. The scope of this custom metric. MetricScope scope = 6 [ @@ -998,3 +1152,46 @@ message CustomMetric { (google.api.field_behavior) = IMMUTABLE ]; } + +// Settings values for data retention. This is a singleton resource. +message DataRetentionSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataRetentionSettings" + pattern: "properties/{property}/dataRetentionSettings" + }; + + // Valid values for the data retention duration. + enum RetentionDuration { + // Data retention time duration is not specified. + RETENTION_DURATION_UNSPECIFIED = 0; + + // The data retention time duration is 2 months. + TWO_MONTHS = 1; + + // The data retention time duration is 14 months. + FOURTEEN_MONTHS = 3; + + // The data retention time duration is 26 months. + // Available to 360 properties only. + TWENTY_SIX_MONTHS = 4; + + // The data retention time duration is 38 months. + // Available to 360 properties only. + THIRTY_EIGHT_MONTHS = 5; + + // The data retention time duration is 50 months. + // Available to 360 properties only. + FIFTY_MONTHS = 6; + } + + // Output only. Resource name for this DataRetentionSetting resource. + // Format: properties/{property}/dataRetentionSettings + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The length of time that event-level data is retained. + RetentionDuration event_data_retention = 2; + + // If true, reset the retention period for the user identifier with every + // event from that user. + bool reset_user_data_on_new_activity = 3; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 847065e39a8..f1ee3786718 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -564,20 +564,6 @@ export namespace google { */ public createFirebaseLink(request: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest): Promise; - /** - * Calls UpdateFirebaseLink. - * @param request UpdateFirebaseLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FirebaseLink - */ - public updateFirebaseLink(request: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateFirebaseLinkCallback): void; - - /** - * Calls UpdateFirebaseLink. - * @param request UpdateFirebaseLinkRequest message or plain object - * @returns Promise - */ - public updateFirebaseLink(request: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest): Promise; - /** * Calls DeleteFirebaseLink. * @param request DeleteFirebaseLinkRequest message or plain object @@ -858,6 +844,160 @@ export namespace google { */ public listConversionEvents(request: google.analytics.admin.v1alpha.IListConversionEventsRequest): Promise; + /** + * Calls GetDisplayVideo360AdvertiserLink. + * @param request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + */ + public getDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls GetDisplayVideo360AdvertiserLink. + * @param request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public getDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls ListDisplayVideo360AdvertiserLinks. + * @param request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinksResponse + */ + public listDisplayVideo360AdvertiserLinks(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinksCallback): void; + + /** + * Calls ListDisplayVideo360AdvertiserLinks. + * @param request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @returns Promise + */ + public listDisplayVideo360AdvertiserLinks(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest): Promise; + + /** + * Calls CreateDisplayVideo360AdvertiserLink. + * @param request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + */ + public createDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls CreateDisplayVideo360AdvertiserLink. + * @param request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public createDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls DeleteDisplayVideo360AdvertiserLink. + * @param request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls DeleteDisplayVideo360AdvertiserLink. + * @param request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public deleteDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls UpdateDisplayVideo360AdvertiserLink. + * @param request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + */ + public updateDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls UpdateDisplayVideo360AdvertiserLink. + * @param request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public updateDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @param request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + */ + public getDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @param request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public getDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @param request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinkProposalsResponse + */ + public listDisplayVideo360AdvertiserLinkProposals(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposalsCallback): void; + + /** + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @param request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @returns Promise + */ + public listDisplayVideo360AdvertiserLinkProposals(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest): Promise; + + /** + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @param request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + */ + public createDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @param request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public createDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @param request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @param request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public deleteDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @param request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ApproveDisplayVideo360AdvertiserLinkProposalResponse + */ + public approveDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @param request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public approveDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * @param request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + */ + public cancelDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * @param request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public cancelDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest): Promise; + /** * Calls CreateCustomDimension. * @param request CreateCustomDimensionRequest message or plain object @@ -997,6 +1137,34 @@ export namespace google { * @returns Promise */ public getCustomMetric(request: google.analytics.admin.v1alpha.IGetCustomMetricRequest): Promise; + + /** + * Calls GetDataRetentionSettings. + * @param request GetDataRetentionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + */ + public getDataRetentionSettings(request: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettingsCallback): void; + + /** + * Calls GetDataRetentionSettings. + * @param request GetDataRetentionSettingsRequest message or plain object + * @returns Promise + */ + public getDataRetentionSettings(request: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): Promise; + + /** + * Calls UpdateDataRetentionSettings. + * @param request UpdateDataRetentionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + */ + public updateDataRetentionSettings(request: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettingsCallback): void; + + /** + * Calls UpdateDataRetentionSettings. + * @param request UpdateDataRetentionSettingsRequest message or plain object + * @returns Promise + */ + public updateDataRetentionSettings(request: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): Promise; } namespace AnalyticsAdminService { @@ -1260,13 +1428,6 @@ export namespace google { */ type CreateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FirebaseLink) => void; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateFirebaseLink}. - * @param error Error, if any - * @param [response] FirebaseLink - */ - type UpdateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FirebaseLink) => void; - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. * @param error Error, if any @@ -1407,6 +1568,83 @@ export namespace google { */ type ListConversionEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListConversionEventsResponse) => void; + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLink + */ + type GetDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. + * @param error Error, if any + * @param [response] ListDisplayVideo360AdvertiserLinksResponse + */ + type ListDisplayVideo360AdvertiserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLink + */ + type CreateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLink + */ + type UpdateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLinkProposal + */ + type GetDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. + * @param error Error, if any + * @param [response] ListDisplayVideo360AdvertiserLinkProposalsResponse + */ + type ListDisplayVideo360AdvertiserLinkProposalsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLinkProposal + */ + type CreateDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] ApproveDisplayVideo360AdvertiserLinkProposalResponse + */ + type ApproveDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLinkProposal + */ + type CancelDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. * @param error Error, if any @@ -1476,6 +1714,20 @@ export namespace google { * @param [response] CustomMetric */ type GetCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. + * @param error Error, if any + * @param [response] DataRetentionSettings + */ + type GetDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. + * @param error Error, if any + * @param [response] DataRetentionSettings + */ + type UpdateDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; } /** Properties of a GetAccountRequest. */ @@ -5936,102 +6188,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateFirebaseLinkRequest. */ - interface IUpdateFirebaseLinkRequest { - - /** UpdateFirebaseLinkRequest firebaseLink */ - firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** UpdateFirebaseLinkRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateFirebaseLinkRequest. */ - class UpdateFirebaseLinkRequest implements IUpdateFirebaseLinkRequest { - - /** - * Constructs a new UpdateFirebaseLinkRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest); - - /** UpdateFirebaseLinkRequest firebaseLink. */ - public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** UpdateFirebaseLinkRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdateFirebaseLinkRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateFirebaseLinkRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; - - /** - * Encodes the specified UpdateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. - * @param message UpdateFirebaseLinkRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. - * @param message UpdateFirebaseLinkRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateFirebaseLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; - - /** - * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateFirebaseLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; - - /** - * Verifies an UpdateFirebaseLinkRequest message. - * @param message Plain 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 UpdateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateFirebaseLinkRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; - - /** - * Creates a plain object from an UpdateFirebaseLinkRequest message. Also converts values to other types if specified. - * @param message UpdateFirebaseLinkRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateFirebaseLinkRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a DeleteFirebaseLinkRequest. */ interface IDeleteFirebaseLinkRequest { @@ -8636,3375 +8792,5264 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a CreateCustomDimensionRequest. */ - interface ICreateCustomDimensionRequest { - - /** CreateCustomDimensionRequest parent */ - parent?: (string|null); + /** Properties of a GetDisplayVideo360AdvertiserLinkRequest. */ + interface IGetDisplayVideo360AdvertiserLinkRequest { - /** CreateCustomDimensionRequest customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** GetDisplayVideo360AdvertiserLinkRequest name */ + name?: (string|null); } - /** Represents a CreateCustomDimensionRequest. */ - class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { + /** Represents a GetDisplayVideo360AdvertiserLinkRequest. */ + class GetDisplayVideo360AdvertiserLinkRequest implements IGetDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new CreateCustomDimensionRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest); - - /** CreateCustomDimensionRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest); - /** CreateCustomDimensionRequest customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** GetDisplayVideo360AdvertiserLinkRequest name. */ + public name: string; /** - * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomDimensionRequest instance + * @returns GetDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. - * @param message CreateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. - * @param message CreateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomDimensionRequest + * @returns GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomDimensionRequest + * @returns GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Verifies a CreateCustomDimensionRequest message. + * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomDimensionRequest + * @returns GetDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. - * @param message CreateCustomDimensionRequest + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message GetDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomDimensionRequest to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateCustomDimensionRequest. */ - interface IUpdateCustomDimensionRequest { + /** Properties of a ListDisplayVideo360AdvertiserLinksRequest. */ + interface IListDisplayVideo360AdvertiserLinksRequest { - /** UpdateCustomDimensionRequest customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** ListDisplayVideo360AdvertiserLinksRequest parent */ + parent?: (string|null); - /** UpdateCustomDimensionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListDisplayVideo360AdvertiserLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListDisplayVideo360AdvertiserLinksRequest pageToken */ + pageToken?: (string|null); } - /** Represents an UpdateCustomDimensionRequest. */ - class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { + /** Represents a ListDisplayVideo360AdvertiserLinksRequest. */ + class ListDisplayVideo360AdvertiserLinksRequest implements IListDisplayVideo360AdvertiserLinksRequest { /** - * Constructs a new UpdateCustomDimensionRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest); - /** UpdateCustomDimensionRequest customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** ListDisplayVideo360AdvertiserLinksRequest parent. */ + public parent: string; - /** UpdateCustomDimensionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListDisplayVideo360AdvertiserLinksRequest pageSize. */ + public pageSize: number; + + /** ListDisplayVideo360AdvertiserLinksRequest pageToken. */ + public pageToken: string; /** - * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCustomDimensionRequest instance + * @returns ListDisplayVideo360AdvertiserLinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. - * @param message UpdateCustomDimensionRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. - * @param message UpdateCustomDimensionRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateCustomDimensionRequest + * @returns ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCustomDimensionRequest + * @returns ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Verifies an UpdateCustomDimensionRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. * @param message Plain 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 UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCustomDimensionRequest + * @returns ListDisplayVideo360AdvertiserLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. - * @param message UpdateCustomDimensionRequest + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCustomDimensionRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomDimensionsRequest. */ - interface IListCustomDimensionsRequest { - - /** ListCustomDimensionsRequest parent */ - parent?: (string|null); + /** Properties of a ListDisplayVideo360AdvertiserLinksResponse. */ + interface IListDisplayVideo360AdvertiserLinksResponse { - /** ListCustomDimensionsRequest pageSize */ - pageSize?: (number|null); + /** ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks */ + displayVideo_360AdvertiserLinks?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[]|null); - /** ListCustomDimensionsRequest pageToken */ - pageToken?: (string|null); + /** ListDisplayVideo360AdvertiserLinksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListCustomDimensionsRequest. */ - class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { + /** Represents a ListDisplayVideo360AdvertiserLinksResponse. */ + class ListDisplayVideo360AdvertiserLinksResponse implements IListDisplayVideo360AdvertiserLinksResponse { /** - * Constructs a new ListCustomDimensionsRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest); - - /** ListCustomDimensionsRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse); - /** ListCustomDimensionsRequest pageSize. */ - public pageSize: number; + /** ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. */ + public displayVideo_360AdvertiserLinks: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[]; - /** ListCustomDimensionsRequest pageToken. */ - public pageToken: string; + /** ListDisplayVideo360AdvertiserLinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomDimensionsRequest instance + * @returns ListDisplayVideo360AdvertiserLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @param message ListCustomDimensionsRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @param message ListCustomDimensionsRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomDimensionsRequest + * @returns ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomDimensionsRequest + * @returns ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Verifies a ListCustomDimensionsRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomDimensionsRequest + * @returns ListDisplayVideo360AdvertiserLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. - * @param message ListCustomDimensionsRequest + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomDimensionsRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomDimensionsResponse. */ - interface IListCustomDimensionsResponse { + /** Properties of a CreateDisplayVideo360AdvertiserLinkRequest. */ + interface ICreateDisplayVideo360AdvertiserLinkRequest { - /** ListCustomDimensionsResponse customDimensions */ - customDimensions?: (google.analytics.admin.v1alpha.ICustomDimension[]|null); + /** CreateDisplayVideo360AdvertiserLinkRequest parent */ + parent?: (string|null); - /** ListCustomDimensionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); } - /** Represents a ListCustomDimensionsResponse. */ - class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { + /** Represents a CreateDisplayVideo360AdvertiserLinkRequest. */ + class CreateDisplayVideo360AdvertiserLinkRequest implements ICreateDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new ListCustomDimensionsResponse. + * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse); + constructor(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest); - /** ListCustomDimensionsResponse customDimensions. */ - public customDimensions: google.analytics.admin.v1alpha.ICustomDimension[]; + /** CreateDisplayVideo360AdvertiserLinkRequest parent. */ + public parent: string; - /** ListCustomDimensionsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); /** - * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomDimensionsResponse instance + * @returns CreateDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static create(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @param message ListCustomDimensionsResponse message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @param message ListCustomDimensionsResponse message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomDimensionsResponse + * @returns CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomDimensionsResponse + * @returns CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Verifies a ListCustomDimensionsResponse message. + * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomDimensionsResponse + * @returns CreateDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. - * @param message ListCustomDimensionsResponse + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message CreateDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomDimensionsResponse to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ArchiveCustomDimensionRequest. */ - interface IArchiveCustomDimensionRequest { + /** Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. */ + interface IDeleteDisplayVideo360AdvertiserLinkRequest { - /** ArchiveCustomDimensionRequest name */ + /** DeleteDisplayVideo360AdvertiserLinkRequest name */ name?: (string|null); } - /** Represents an ArchiveCustomDimensionRequest. */ - class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { + /** Represents a DeleteDisplayVideo360AdvertiserLinkRequest. */ + class DeleteDisplayVideo360AdvertiserLinkRequest implements IDeleteDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new ArchiveCustomDimensionRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest); - /** ArchiveCustomDimensionRequest name. */ + /** DeleteDisplayVideo360AdvertiserLinkRequest name. */ public name: string; /** - * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ArchiveCustomDimensionRequest instance + * @returns DeleteDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @param message ArchiveCustomDimensionRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @param message ArchiveCustomDimensionRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArchiveCustomDimensionRequest + * @returns DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ArchiveCustomDimensionRequest + * @returns DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Verifies an ArchiveCustomDimensionRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. * @param message Plain 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 ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ArchiveCustomDimensionRequest + * @returns DeleteDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. - * @param message ArchiveCustomDimensionRequest + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message DeleteDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ArchiveCustomDimensionRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCustomDimensionRequest. */ - interface IGetCustomDimensionRequest { + /** Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. */ + interface IUpdateDisplayVideo360AdvertiserLinkRequest { - /** GetCustomDimensionRequest name */ - name?: (string|null); + /** UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + + /** UpdateDisplayVideo360AdvertiserLinkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetCustomDimensionRequest. */ - class GetCustomDimensionRequest implements IGetCustomDimensionRequest { + /** Represents an UpdateDisplayVideo360AdvertiserLinkRequest. */ + class UpdateDisplayVideo360AdvertiserLinkRequest implements IUpdateDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new GetCustomDimensionRequest. + * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest); - /** GetCustomDimensionRequest name. */ - public name: string; + /** UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + + /** UpdateDisplayVideo360AdvertiserLinkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetCustomDimensionRequest instance using the specified properties. + * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomDimensionRequest instance + * @returns UpdateDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @param message GetCustomDimensionRequest message or plain object to encode + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @param message GetCustomDimensionRequest message or plain object to encode + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomDimensionRequest + * @returns UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomDimensionRequest + * @returns UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Verifies a GetCustomDimensionRequest message. + * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomDimensionRequest + * @returns UpdateDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. - * @param message GetCustomDimensionRequest + * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message UpdateDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomDimensionRequest to JSON. + * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateCustomMetricRequest. */ - interface ICreateCustomMetricRequest { - - /** CreateCustomMetricRequest parent */ - parent?: (string|null); + /** Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. */ + interface IGetDisplayVideo360AdvertiserLinkProposalRequest { - /** CreateCustomMetricRequest customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** GetDisplayVideo360AdvertiserLinkProposalRequest name */ + name?: (string|null); } - /** Represents a CreateCustomMetricRequest. */ - class CreateCustomMetricRequest implements ICreateCustomMetricRequest { + /** Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. */ + class GetDisplayVideo360AdvertiserLinkProposalRequest implements IGetDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new CreateCustomMetricRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest); - - /** CreateCustomMetricRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest); - /** CreateCustomMetricRequest customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** GetDisplayVideo360AdvertiserLinkProposalRequest name. */ + public name: string; /** - * Creates a new CreateCustomMetricRequest instance using the specified properties. + * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomMetricRequest instance + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @param message CreateCustomMetricRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @param message CreateCustomMetricRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomMetricRequest + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomMetricRequest + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies a CreateCustomMetricRequest message. + * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomMetricRequest + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. - * @param message CreateCustomMetricRequest + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message GetDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomMetricRequest to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateCustomMetricRequest. */ - interface IUpdateCustomMetricRequest { + /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. */ + interface IListDisplayVideo360AdvertiserLinkProposalsRequest { - /** UpdateCustomMetricRequest customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** ListDisplayVideo360AdvertiserLinkProposalsRequest parent */ + parent?: (string|null); - /** UpdateCustomMetricRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize */ + pageSize?: (number|null); + + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an UpdateCustomMetricRequest. */ - class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { + /** Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. */ + class ListDisplayVideo360AdvertiserLinkProposalsRequest implements IListDisplayVideo360AdvertiserLinkProposalsRequest { /** - * Constructs a new UpdateCustomMetricRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest); - /** UpdateCustomMetricRequest customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** ListDisplayVideo360AdvertiserLinkProposalsRequest parent. */ + public parent: string; - /** UpdateCustomMetricRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. */ + public pageSize: number; + + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. */ + public pageToken: string; /** - * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCustomMetricRequest instance + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @param message UpdateCustomMetricRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @param message UpdateCustomMetricRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateCustomMetricRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCustomMetricRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Verifies an UpdateCustomMetricRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. * @param message Plain 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCustomMetricRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. - * @param message UpdateCustomMetricRequest + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCustomMetricRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomMetricsRequest. */ - interface IListCustomMetricsRequest { - - /** ListCustomMetricsRequest parent */ - parent?: (string|null); + /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. */ + interface IListDisplayVideo360AdvertiserLinkProposalsResponse { - /** ListCustomMetricsRequest pageSize */ - pageSize?: (number|null); + /** ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals */ + displayVideo_360AdvertiserLinkProposals?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[]|null); - /** ListCustomMetricsRequest pageToken */ - pageToken?: (string|null); + /** ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListCustomMetricsRequest. */ - class ListCustomMetricsRequest implements IListCustomMetricsRequest { + /** Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. */ + class ListDisplayVideo360AdvertiserLinkProposalsResponse implements IListDisplayVideo360AdvertiserLinkProposalsResponse { /** - * Constructs a new ListCustomMetricsRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest); - - /** ListCustomMetricsRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse); - /** ListCustomMetricsRequest pageSize. */ - public pageSize: number; + /** ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. */ + public displayVideo_360AdvertiserLinkProposals: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[]; - /** ListCustomMetricsRequest pageToken. */ - public pageToken: string; + /** ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListCustomMetricsRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomMetricsRequest instance + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @param message ListCustomMetricsRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @param message ListCustomMetricsRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomMetricsRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomMetricsRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Verifies a ListCustomMetricsRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomMetricsRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. - * @param message ListCustomMetricsRequest + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomMetricsRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomMetricsResponse. */ - interface IListCustomMetricsResponse { + /** Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. */ + interface ICreateDisplayVideo360AdvertiserLinkProposalRequest { - /** ListCustomMetricsResponse customMetrics */ - customMetrics?: (google.analytics.admin.v1alpha.ICustomMetric[]|null); + /** CreateDisplayVideo360AdvertiserLinkProposalRequest parent */ + parent?: (string|null); - /** ListCustomMetricsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal */ + displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); } - /** Represents a ListCustomMetricsResponse. */ - class ListCustomMetricsResponse implements IListCustomMetricsResponse { + /** Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. */ + class CreateDisplayVideo360AdvertiserLinkProposalRequest implements ICreateDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new ListCustomMetricsResponse. + * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse); + constructor(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest); - /** ListCustomMetricsResponse customMetrics. */ - public customMetrics: google.analytics.admin.v1alpha.ICustomMetric[]; + /** CreateDisplayVideo360AdvertiserLinkProposalRequest parent. */ + public parent: string; - /** ListCustomMetricsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. */ + public displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); /** - * Creates a new ListCustomMetricsResponse instance using the specified properties. + * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomMetricsResponse instance + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static create(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @param message ListCustomMetricsResponse message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @param message ListCustomMetricsResponse message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomMetricsResponse + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomMetricsResponse + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies a ListCustomMetricsResponse message. + * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomMetricsResponse + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. - * @param message ListCustomMetricsResponse + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomMetricsResponse to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ArchiveCustomMetricRequest. */ - interface IArchiveCustomMetricRequest { + /** Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. */ + interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest { - /** ArchiveCustomMetricRequest name */ + /** DeleteDisplayVideo360AdvertiserLinkProposalRequest name */ name?: (string|null); } - /** Represents an ArchiveCustomMetricRequest. */ - class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { + /** Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. */ + class DeleteDisplayVideo360AdvertiserLinkProposalRequest implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new ArchiveCustomMetricRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest); - /** ArchiveCustomMetricRequest name. */ + /** DeleteDisplayVideo360AdvertiserLinkProposalRequest name. */ public name: string; /** - * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ArchiveCustomMetricRequest instance + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @param message ArchiveCustomMetricRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @param message ArchiveCustomMetricRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArchiveCustomMetricRequest + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ArchiveCustomMetricRequest + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies an ArchiveCustomMetricRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain 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 ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ArchiveCustomMetricRequest + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. - * @param message ArchiveCustomMetricRequest + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ArchiveCustomMetricRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCustomMetricRequest. */ - interface IGetCustomMetricRequest { + /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. */ + interface IApproveDisplayVideo360AdvertiserLinkProposalRequest { - /** GetCustomMetricRequest name */ + /** ApproveDisplayVideo360AdvertiserLinkProposalRequest name */ name?: (string|null); } - /** Represents a GetCustomMetricRequest. */ - class GetCustomMetricRequest implements IGetCustomMetricRequest { + /** Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. */ + class ApproveDisplayVideo360AdvertiserLinkProposalRequest implements IApproveDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new GetCustomMetricRequest. + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest); + constructor(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest); - /** GetCustomMetricRequest name. */ + /** ApproveDisplayVideo360AdvertiserLinkProposalRequest name. */ public name: string; /** - * Creates a new GetCustomMetricRequest instance using the specified properties. + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomMetricRequest instance + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest): google.analytics.admin.v1alpha.GetCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @param message GetCustomMetricRequest message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @param message GetCustomMetricRequest message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomMetricRequest + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomMetricRequest + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies a GetCustomMetricRequest message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomMetricRequest + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. - * @param message GetCustomMetricRequest + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomMetricRequest to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** MaximumUserAccess enum. */ - enum MaximumUserAccess { - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0, - NO_ACCESS = 1, - READ_AND_ANALYZE = 2, - EDITOR_WITHOUT_LINK_MANAGEMENT = 3, - EDITOR_INCLUDING_LINK_MANAGEMENT = 4 - } + /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. */ + interface IApproveDisplayVideo360AdvertiserLinkProposalResponse { - /** IndustryCategory enum. */ - enum IndustryCategory { - INDUSTRY_CATEGORY_UNSPECIFIED = 0, - AUTOMOTIVE = 1, - BUSINESS_AND_INDUSTRIAL_MARKETS = 2, - FINANCE = 3, - HEALTHCARE = 4, - TECHNOLOGY = 5, - TRAVEL = 6, - OTHER = 7, - ARTS_AND_ENTERTAINMENT = 8, - BEAUTY_AND_FITNESS = 9, - BOOKS_AND_LITERATURE = 10, - FOOD_AND_DRINK = 11, - GAMES = 12, - HOBBIES_AND_LEISURE = 13, - HOME_AND_GARDEN = 14, - INTERNET_AND_TELECOM = 15, - LAW_AND_GOVERNMENT = 16, - NEWS = 17, - ONLINE_COMMUNITIES = 18, - PEOPLE_AND_SOCIETY = 19, - PETS_AND_ANIMALS = 20, - REAL_ESTATE = 21, - REFERENCE = 22, - SCIENCE = 23, - SPORTS = 24, - JOBS_AND_EDUCATION = 25, - SHOPPING = 26 + /** ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); } - /** ActorType enum. */ - enum ActorType { - ACTOR_TYPE_UNSPECIFIED = 0, - USER = 1, - SYSTEM = 2, - SUPPORT = 3 - } + /** Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. */ + class ApproveDisplayVideo360AdvertiserLinkProposalResponse implements IApproveDisplayVideo360AdvertiserLinkProposalResponse { - /** ActionType enum. */ - enum ActionType { - ACTION_TYPE_UNSPECIFIED = 0, - CREATED = 1, - UPDATED = 2, - DELETED = 3 - } + /** + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse); - /** ChangeHistoryResourceType enum. */ - enum ChangeHistoryResourceType { - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, - ACCOUNT = 1, - PROPERTY = 2, - WEB_DATA_STREAM = 3, - ANDROID_APP_DATA_STREAM = 4, - IOS_APP_DATA_STREAM = 5, - FIREBASE_LINK = 6, - GOOGLE_ADS_LINK = 7, - GOOGLE_SIGNALS_SETTINGS = 8, - CONVERSION_EVENT = 9, - MEASUREMENT_PROTOCOL_SECRET = 10, - CUSTOM_DIMENSION = 11, - CUSTOM_METRIC = 12 - } + /** ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); - /** GoogleSignalsState enum. */ - enum GoogleSignalsState { - GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0, - GOOGLE_SIGNALS_ENABLED = 1, - GOOGLE_SIGNALS_DISABLED = 2 - } - - /** GoogleSignalsConsent enum. */ - enum GoogleSignalsConsent { - GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0, - GOOGLE_SIGNALS_CONSENT_CONSENTED = 2, - GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 - } - - /** Properties of an Account. */ - interface IAccount { - - /** Account name */ - name?: (string|null); - - /** Account createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Account updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Account displayName */ - displayName?: (string|null); - - /** Account regionCode */ - regionCode?: (string|null); - - /** Account deleted */ - deleted?: (boolean|null); - } - - /** Represents an Account. */ - class Account implements IAccount { - - /** - * Constructs a new Account. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IAccount); - - /** Account name. */ - public name: string; - - /** Account createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Account updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Account displayName. */ - public displayName: string; - - /** Account regionCode. */ - public regionCode: string; - - /** Account deleted. */ - public deleted: boolean; - - /** - * Creates a new Account instance using the specified properties. - * @param [properties] Properties to set - * @returns Account instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + /** + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Account + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Account; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Account + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Account; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Verifies an Account message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. * @param message Plain 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. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Account + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Account; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. - * @param message Account + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Account to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Property. */ - interface IProperty { + /** Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. */ + interface ICancelDisplayVideo360AdvertiserLinkProposalRequest { - /** Property name */ + /** CancelDisplayVideo360AdvertiserLinkProposalRequest name */ name?: (string|null); - - /** Property createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Property updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Property parent */ - parent?: (string|null); - - /** Property displayName */ - displayName?: (string|null); - - /** Property industryCategory */ - industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); - - /** Property timeZone */ - timeZone?: (string|null); - - /** Property currencyCode */ - currencyCode?: (string|null); - - /** Property deleteTime */ - deleteTime?: (google.protobuf.ITimestamp|null); - - /** Property expireTime */ - expireTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Property. */ - class Property implements IProperty { + /** Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. */ + class CancelDisplayVideo360AdvertiserLinkProposalRequest implements ICancelDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new Property. + * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IProperty); + constructor(properties?: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest); - /** Property name. */ + /** CancelDisplayVideo360AdvertiserLinkProposalRequest name. */ public name: string; - /** Property createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Property updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Property parent. */ - public parent: string; - - /** Property displayName. */ - public displayName: string; - - /** Property industryCategory. */ - public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); - - /** Property timeZone. */ - public timeZone: string; - - /** Property currencyCode. */ - public currencyCode: string; - - /** Property deleteTime. */ - public deleteTime?: (google.protobuf.ITimestamp|null); - - /** Property expireTime. */ - public expireTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new Property instance using the specified properties. + * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Property instance + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + public static create(properties?: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Property + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Property; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Property + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Property; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies a Property message. + * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Property + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. - * @param message Property + * Creates a plain object from a CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Property to JSON. + * Converts this CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AndroidAppDataStream. */ - interface IAndroidAppDataStream { - - /** AndroidAppDataStream name */ - name?: (string|null); - - /** AndroidAppDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** AndroidAppDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateCustomDimensionRequest. */ + interface ICreateCustomDimensionRequest { - /** AndroidAppDataStream packageName */ - packageName?: (string|null); + /** CreateCustomDimensionRequest parent */ + parent?: (string|null); - /** AndroidAppDataStream displayName */ - displayName?: (string|null); + /** CreateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); } - /** Represents an AndroidAppDataStream. */ - class AndroidAppDataStream implements IAndroidAppDataStream { + /** Represents a CreateCustomDimensionRequest. */ + class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { /** - * Constructs a new AndroidAppDataStream. + * Constructs a new CreateCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); - - /** AndroidAppDataStream name. */ - public name: string; - - /** AndroidAppDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** AndroidAppDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest); - /** AndroidAppDataStream packageName. */ - public packageName: string; + /** CreateCustomDimensionRequest parent. */ + public parent: string; - /** AndroidAppDataStream displayName. */ - public displayName: string; + /** CreateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new CreateCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AndroidAppDataStream instance + * @returns CreateCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AndroidAppDataStream + * @returns CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AndroidAppDataStream + * @returns CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Verifies an AndroidAppDataStream message. + * Verifies a CreateCustomDimensionRequest message. * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AndroidAppDataStream + * @returns CreateCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. - * @param message AndroidAppDataStream + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message CreateCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this CreateCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IosAppDataStream. */ - interface IIosAppDataStream { - - /** IosAppDataStream name */ - name?: (string|null); - - /** IosAppDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** IosAppDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an UpdateCustomDimensionRequest. */ + interface IUpdateCustomDimensionRequest { - /** IosAppDataStream bundleId */ - bundleId?: (string|null); + /** UpdateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - /** IosAppDataStream displayName */ - displayName?: (string|null); + /** UpdateCustomDimensionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an IosAppDataStream. */ - class IosAppDataStream implements IIosAppDataStream { + /** Represents an UpdateCustomDimensionRequest. */ + class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { /** - * Constructs a new IosAppDataStream. + * Constructs a new UpdateCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); - - /** IosAppDataStream name. */ - public name: string; - - /** IosAppDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** IosAppDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest); - /** IosAppDataStream bundleId. */ - public bundleId: string; + /** UpdateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - /** IosAppDataStream displayName. */ - public displayName: string; + /** UpdateCustomDimensionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IosAppDataStream instance + * @returns UpdateCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IosAppDataStream + * @returns UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IosAppDataStream + * @returns UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Verifies an IosAppDataStream message. + * Verifies an UpdateCustomDimensionRequest message. * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IosAppDataStream + * @returns UpdateCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. - * @param message IosAppDataStream + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message UpdateCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IosAppDataStream to JSON. + * Converts this UpdateCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WebDataStream. */ - interface IWebDataStream { - - /** WebDataStream name */ - name?: (string|null); - - /** WebDataStream measurementId */ - measurementId?: (string|null); - - /** WebDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** WebDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListCustomDimensionsRequest. */ + interface IListCustomDimensionsRequest { - /** WebDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListCustomDimensionsRequest parent */ + parent?: (string|null); - /** WebDataStream defaultUri */ - defaultUri?: (string|null); + /** ListCustomDimensionsRequest pageSize */ + pageSize?: (number|null); - /** WebDataStream displayName */ - displayName?: (string|null); + /** ListCustomDimensionsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a WebDataStream. */ - class WebDataStream implements IWebDataStream { + /** Represents a ListCustomDimensionsRequest. */ + class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { /** - * Constructs a new WebDataStream. + * Constructs a new ListCustomDimensionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); - - /** WebDataStream name. */ - public name: string; - - /** WebDataStream measurementId. */ - public measurementId: string; - - /** WebDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** WebDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest); - /** WebDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListCustomDimensionsRequest parent. */ + public parent: string; - /** WebDataStream defaultUri. */ - public defaultUri: string; + /** ListCustomDimensionsRequest pageSize. */ + public pageSize: number; - /** WebDataStream displayName. */ - public displayName: string; + /** ListCustomDimensionsRequest pageToken. */ + public pageToken: string; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new ListCustomDimensionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WebDataStream instance + * @returns ListCustomDimensionsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebDataStream + * @returns ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebDataStream + * @returns ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Verifies a WebDataStream message. + * Verifies a ListCustomDimensionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebDataStream + * @returns ListCustomDimensionsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. - * @param message WebDataStream + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @param message ListCustomDimensionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebDataStream to JSON. + * Converts this ListCustomDimensionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a UserLink. */ - interface IUserLink { - - /** UserLink name */ - name?: (string|null); + /** Properties of a ListCustomDimensionsResponse. */ + interface IListCustomDimensionsResponse { - /** UserLink emailAddress */ - emailAddress?: (string|null); + /** ListCustomDimensionsResponse customDimensions */ + customDimensions?: (google.analytics.admin.v1alpha.ICustomDimension[]|null); - /** UserLink directRoles */ - directRoles?: (string[]|null); + /** ListCustomDimensionsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a UserLink. */ - class UserLink implements IUserLink { + /** Represents a ListCustomDimensionsResponse. */ + class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { /** - * Constructs a new UserLink. + * Constructs a new ListCustomDimensionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUserLink); - - /** UserLink name. */ - public name: string; + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse); - /** UserLink emailAddress. */ - public emailAddress: string; + /** ListCustomDimensionsResponse customDimensions. */ + public customDimensions: google.analytics.admin.v1alpha.ICustomDimension[]; - /** UserLink directRoles. */ - public directRoles: string[]; + /** ListCustomDimensionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UserLink instance using the specified properties. + * Creates a new ListCustomDimensionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UserLink instance + * @returns ListCustomDimensionsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUserLink): google.analytics.admin.v1alpha.UserLink; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @param message UserLink message or plain object to encode + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @param message UserLink message or plain object to encode + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserLink + * @returns ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UserLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserLink + * @returns ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UserLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Verifies a UserLink message. + * Verifies a ListCustomDimensionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserLink + * @returns ListCustomDimensionsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UserLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. - * @param message UserLink + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @param message ListCustomDimensionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserLink to JSON. + * Converts this ListCustomDimensionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AuditUserLink. */ - interface IAuditUserLink { + /** Properties of an ArchiveCustomDimensionRequest. */ + interface IArchiveCustomDimensionRequest { - /** AuditUserLink name */ + /** ArchiveCustomDimensionRequest name */ name?: (string|null); - - /** AuditUserLink emailAddress */ - emailAddress?: (string|null); - - /** AuditUserLink directRoles */ - directRoles?: (string[]|null); - - /** AuditUserLink effectiveRoles */ - effectiveRoles?: (string[]|null); } - /** Represents an AuditUserLink. */ - class AuditUserLink implements IAuditUserLink { + /** Represents an ArchiveCustomDimensionRequest. */ + class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { /** - * Constructs a new AuditUserLink. + * Constructs a new ArchiveCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLink); + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest); - /** AuditUserLink name. */ + /** ArchiveCustomDimensionRequest name. */ public name: string; - /** AuditUserLink emailAddress. */ - public emailAddress: string; - - /** AuditUserLink directRoles. */ - public directRoles: string[]; - - /** AuditUserLink effectiveRoles. */ - public effectiveRoles: string[]; - /** - * Creates a new AuditUserLink instance using the specified properties. + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AuditUserLink instance + * @returns ArchiveCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLink): google.analytics.admin.v1alpha.AuditUserLink; + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. - * @param message AuditUserLink message or plain object to encode + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. - * @param message AuditUserLink message or plain object to encode + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuditUserLink + * @returns ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuditUserLink + * @returns ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Verifies an AuditUserLink message. + * Verifies an ArchiveCustomDimensionRequest message. * @param message Plain 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 AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuditUserLink + * @returns ArchiveCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. - * @param message AuditUserLink + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AuditUserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuditUserLink to JSON. + * Converts this ArchiveCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnhancedMeasurementSettings. */ - interface IEnhancedMeasurementSettings { + /** Properties of a GetCustomDimensionRequest. */ + interface IGetCustomDimensionRequest { - /** EnhancedMeasurementSettings name */ + /** GetCustomDimensionRequest name */ name?: (string|null); - - /** EnhancedMeasurementSettings streamEnabled */ - streamEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageViewsEnabled */ - pageViewsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings scrollsEnabled */ - scrollsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings outboundClicksEnabled */ - outboundClicksEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings siteSearchEnabled */ - siteSearchEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings videoEngagementEnabled */ - videoEngagementEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings fileDownloadsEnabled */ - fileDownloadsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageLoadsEnabled */ - pageLoadsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageChangesEnabled */ - pageChangesEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings searchQueryParameter */ - searchQueryParameter?: (string|null); - - /** EnhancedMeasurementSettings uriQueryParameter */ - uriQueryParameter?: (string|null); } - /** Represents an EnhancedMeasurementSettings. */ - class EnhancedMeasurementSettings implements IEnhancedMeasurementSettings { + /** Represents a GetCustomDimensionRequest. */ + class GetCustomDimensionRequest implements IGetCustomDimensionRequest { /** - * Constructs a new EnhancedMeasurementSettings. + * Constructs a new GetCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings); + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest); - /** EnhancedMeasurementSettings name. */ + /** GetCustomDimensionRequest name. */ public name: string; - /** EnhancedMeasurementSettings streamEnabled. */ - public streamEnabled: boolean; - - /** EnhancedMeasurementSettings pageViewsEnabled. */ - public pageViewsEnabled: boolean; - - /** EnhancedMeasurementSettings scrollsEnabled. */ - public scrollsEnabled: boolean; - - /** EnhancedMeasurementSettings outboundClicksEnabled. */ - public outboundClicksEnabled: boolean; - - /** EnhancedMeasurementSettings siteSearchEnabled. */ - public siteSearchEnabled: boolean; - - /** EnhancedMeasurementSettings videoEngagementEnabled. */ - public videoEngagementEnabled: boolean; - - /** EnhancedMeasurementSettings fileDownloadsEnabled. */ - public fileDownloadsEnabled: boolean; - - /** EnhancedMeasurementSettings pageLoadsEnabled. */ - public pageLoadsEnabled: boolean; - - /** EnhancedMeasurementSettings pageChangesEnabled. */ - public pageChangesEnabled: boolean; - - /** EnhancedMeasurementSettings searchQueryParameter. */ - public searchQueryParameter: string; - - /** EnhancedMeasurementSettings uriQueryParameter. */ - public uriQueryParameter: string; - /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * Creates a new GetCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EnhancedMeasurementSettings instance + * @returns GetCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @param message EnhancedMeasurementSettings message or plain object to encode + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @param message EnhancedMeasurementSettings message or plain object to encode + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnhancedMeasurementSettings + * @returns GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnhancedMeasurementSettings + * @returns GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Verifies an EnhancedMeasurementSettings message. + * Verifies a GetCustomDimensionRequest message. * @param message Plain 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 EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnhancedMeasurementSettings + * @returns GetCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. - * @param message EnhancedMeasurementSettings + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @param message GetCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.EnhancedMeasurementSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnhancedMeasurementSettings to JSON. + * Converts this GetCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FirebaseLink. */ - interface IFirebaseLink { + /** Properties of a CreateCustomMetricRequest. */ + interface ICreateCustomMetricRequest { - /** FirebaseLink name */ - name?: (string|null); + /** CreateCustomMetricRequest parent */ + parent?: (string|null); - /** FirebaseLink project */ - project?: (string|null); + /** CreateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + } - /** FirebaseLink createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** FirebaseLink maximumUserAccess */ - maximumUserAccess?: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess|null); - } - - /** Represents a FirebaseLink. */ - class FirebaseLink implements IFirebaseLink { + /** Represents a CreateCustomMetricRequest. */ + class CreateCustomMetricRequest implements ICreateCustomMetricRequest { /** - * Constructs a new FirebaseLink. + * Constructs a new CreateCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IFirebaseLink); - - /** FirebaseLink name. */ - public name: string; - - /** FirebaseLink project. */ - public project: string; + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest); - /** FirebaseLink createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** CreateCustomMetricRequest parent. */ + public parent: string; - /** FirebaseLink maximumUserAccess. */ - public maximumUserAccess: (google.analytics.admin.v1alpha.MaximumUserAccess|keyof typeof google.analytics.admin.v1alpha.MaximumUserAccess); + /** CreateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new CreateCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FirebaseLink instance + * @returns CreateCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IFirebaseLink): google.analytics.admin.v1alpha.FirebaseLink; + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. - * @param message FirebaseLink message or plain object to encode + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. - * @param message FirebaseLink message or plain object to encode + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FirebaseLink + * @returns CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FirebaseLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FirebaseLink + * @returns CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FirebaseLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Verifies a FirebaseLink message. + * Verifies a CreateCustomMetricRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FirebaseLink + * @returns CreateCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FirebaseLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. - * @param message FirebaseLink + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @param message CreateCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FirebaseLink to JSON. + * Converts this CreateCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GlobalSiteTag. */ - interface IGlobalSiteTag { + /** Properties of an UpdateCustomMetricRequest. */ + interface IUpdateCustomMetricRequest { - /** GlobalSiteTag name */ - name?: (string|null); + /** UpdateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - /** GlobalSiteTag snippet */ - snippet?: (string|null); + /** UpdateCustomMetricRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GlobalSiteTag. */ - class GlobalSiteTag implements IGlobalSiteTag { + /** Represents an UpdateCustomMetricRequest. */ + class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { /** - * Constructs a new GlobalSiteTag. + * Constructs a new UpdateCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest); - /** GlobalSiteTag name. */ - public name: string; + /** UpdateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - /** GlobalSiteTag snippet. */ - public snippet: string; + /** UpdateCustomMetricRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GlobalSiteTag instance using the specified properties. + * Creates a new UpdateCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GlobalSiteTag instance + * @returns UpdateCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag): google.analytics.admin.v1alpha.GlobalSiteTag; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. - * @param message GlobalSiteTag message or plain object to encode + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. - * @param message GlobalSiteTag message or plain object to encode + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GlobalSiteTag + * @returns UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GlobalSiteTag; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GlobalSiteTag + * @returns UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GlobalSiteTag; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Verifies a GlobalSiteTag message. + * Verifies an UpdateCustomMetricRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GlobalSiteTag + * @returns UpdateCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GlobalSiteTag; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. - * @param message GlobalSiteTag + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @param message UpdateCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GlobalSiteTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GlobalSiteTag to JSON. + * Converts this UpdateCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GoogleAdsLink. */ - interface IGoogleAdsLink { - - /** GoogleAdsLink name */ - name?: (string|null); - - /** GoogleAdsLink customerId */ - customerId?: (string|null); - - /** GoogleAdsLink canManageClients */ - canManageClients?: (boolean|null); - - /** GoogleAdsLink adsPersonalizationEnabled */ - adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + /** Properties of a ListCustomMetricsRequest. */ + interface IListCustomMetricsRequest { - /** GoogleAdsLink emailAddress */ - emailAddress?: (string|null); + /** ListCustomMetricsRequest parent */ + parent?: (string|null); - /** GoogleAdsLink createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListCustomMetricsRequest pageSize */ + pageSize?: (number|null); - /** GoogleAdsLink updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListCustomMetricsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a GoogleAdsLink. */ - class GoogleAdsLink implements IGoogleAdsLink { + /** Represents a ListCustomMetricsRequest. */ + class ListCustomMetricsRequest implements IListCustomMetricsRequest { /** - * Constructs a new GoogleAdsLink. + * Constructs a new ListCustomMetricsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink); - - /** GoogleAdsLink name. */ - public name: string; - - /** GoogleAdsLink customerId. */ - public customerId: string; - - /** GoogleAdsLink canManageClients. */ - public canManageClients: boolean; - - /** GoogleAdsLink adsPersonalizationEnabled. */ - public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest); - /** GoogleAdsLink emailAddress. */ - public emailAddress: string; + /** ListCustomMetricsRequest parent. */ + public parent: string; - /** GoogleAdsLink createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListCustomMetricsRequest pageSize. */ + public pageSize: number; - /** GoogleAdsLink updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListCustomMetricsRequest pageToken. */ + public pageToken: string; /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new ListCustomMetricsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GoogleAdsLink instance + * @returns ListCustomMetricsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink): google.analytics.admin.v1alpha.GoogleAdsLink; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. - * @param message GoogleAdsLink message or plain object to encode + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. - * @param message GoogleAdsLink message or plain object to encode + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GoogleAdsLink + * @returns ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GoogleAdsLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GoogleAdsLink + * @returns ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GoogleAdsLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Verifies a GoogleAdsLink message. + * Verifies a ListCustomMetricsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GoogleAdsLink + * @returns ListCustomMetricsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleAdsLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. - * @param message GoogleAdsLink + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * @param message ListCustomMetricsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GoogleAdsLink to JSON. + * Converts this ListCustomMetricsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DataSharingSettings. */ - interface IDataSharingSettings { + /** Properties of a ListCustomMetricsResponse. */ + interface IListCustomMetricsResponse { - /** DataSharingSettings name */ - name?: (string|null); + /** ListCustomMetricsResponse customMetrics */ + customMetrics?: (google.analytics.admin.v1alpha.ICustomMetric[]|null); - /** DataSharingSettings sharingWithGoogleSupportEnabled */ - sharingWithGoogleSupportEnabled?: (boolean|null); - - /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ - sharingWithGoogleAssignedSalesEnabled?: (boolean|null); - - /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ - sharingWithGoogleAnySalesEnabled?: (boolean|null); - - /** DataSharingSettings sharingWithGoogleProductsEnabled */ - sharingWithGoogleProductsEnabled?: (boolean|null); - - /** DataSharingSettings sharingWithOthersEnabled */ - sharingWithOthersEnabled?: (boolean|null); + /** ListCustomMetricsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DataSharingSettings. */ - class DataSharingSettings implements IDataSharingSettings { + /** Represents a ListCustomMetricsResponse. */ + class ListCustomMetricsResponse implements IListCustomMetricsResponse { /** - * Constructs a new DataSharingSettings. + * Constructs a new ListCustomMetricsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDataSharingSettings); - - /** DataSharingSettings name. */ - public name: string; - - /** DataSharingSettings sharingWithGoogleSupportEnabled. */ - public sharingWithGoogleSupportEnabled: boolean; - - /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ - public sharingWithGoogleAssignedSalesEnabled: boolean; - - /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ - public sharingWithGoogleAnySalesEnabled: boolean; + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse); - /** DataSharingSettings sharingWithGoogleProductsEnabled. */ - public sharingWithGoogleProductsEnabled: boolean; + /** ListCustomMetricsResponse customMetrics. */ + public customMetrics: google.analytics.admin.v1alpha.ICustomMetric[]; - /** DataSharingSettings sharingWithOthersEnabled. */ - public sharingWithOthersEnabled: boolean; + /** ListCustomMetricsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a new ListCustomMetricsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DataSharingSettings instance + * @returns ListCustomMetricsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDataSharingSettings): google.analytics.admin.v1alpha.DataSharingSettings; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. - * @param message DataSharingSettings message or plain object to encode + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. - * @param message DataSharingSettings message or plain object to encode + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataSharingSettings + * @returns ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataSharingSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataSharingSettings + * @returns ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataSharingSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Verifies a DataSharingSettings message. + * Verifies a ListCustomMetricsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataSharingSettings + * @returns ListCustomMetricsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataSharingSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. - * @param message DataSharingSettings + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @param message ListCustomMetricsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataSharingSettings to JSON. + * Converts this ListCustomMetricsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AccountSummary. */ - interface IAccountSummary { + /** Properties of an ArchiveCustomMetricRequest. */ + interface IArchiveCustomMetricRequest { - /** AccountSummary name */ + /** ArchiveCustomMetricRequest name */ name?: (string|null); - - /** AccountSummary account */ - account?: (string|null); - - /** AccountSummary displayName */ - displayName?: (string|null); - - /** AccountSummary propertySummaries */ - propertySummaries?: (google.analytics.admin.v1alpha.IPropertySummary[]|null); } - /** Represents an AccountSummary. */ - class AccountSummary implements IAccountSummary { + /** Represents an ArchiveCustomMetricRequest. */ + class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { /** - * Constructs a new AccountSummary. + * Constructs a new ArchiveCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAccountSummary); + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest); - /** AccountSummary name. */ + /** ArchiveCustomMetricRequest name. */ public name: string; - /** AccountSummary account. */ - public account: string; - - /** AccountSummary displayName. */ - public displayName: string; - - /** AccountSummary propertySummaries. */ - public propertySummaries: google.analytics.admin.v1alpha.IPropertySummary[]; - /** - * Creates a new AccountSummary instance using the specified properties. + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AccountSummary instance + * @returns ArchiveCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAccountSummary): google.analytics.admin.v1alpha.AccountSummary; + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. - * @param message AccountSummary message or plain object to encode + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. - * @param message AccountSummary message or plain object to encode + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AccountSummary message from the specified reader or buffer. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AccountSummary + * @returns ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccountSummary; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AccountSummary + * @returns ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccountSummary; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Verifies an AccountSummary message. + * Verifies an ArchiveCustomMetricRequest message. * @param message Plain 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 AccountSummary message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AccountSummary + * @returns ArchiveCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccountSummary; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. - * @param message AccountSummary + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AccountSummary to JSON. + * Converts this ArchiveCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PropertySummary. */ - interface IPropertySummary { - - /** PropertySummary property */ - property?: (string|null); + /** Properties of a GetCustomMetricRequest. */ + interface IGetCustomMetricRequest { - /** PropertySummary displayName */ - displayName?: (string|null); + /** GetCustomMetricRequest name */ + name?: (string|null); } - /** Represents a PropertySummary. */ - class PropertySummary implements IPropertySummary { + /** Represents a GetCustomMetricRequest. */ + class GetCustomMetricRequest implements IGetCustomMetricRequest { /** - * Constructs a new PropertySummary. + * Constructs a new GetCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IPropertySummary); + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest); - /** PropertySummary property. */ - public property: string; + /** GetCustomMetricRequest name. */ + public name: string; - /** PropertySummary displayName. */ - public displayName: string; + /** + * Creates a new GetCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Verifies a GetCustomMetricRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomMetricRequest; + + /** + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @param message GetCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetDataRetentionSettingsRequest. */ + interface IGetDataRetentionSettingsRequest { + + /** GetDataRetentionSettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetDataRetentionSettingsRequest. */ + class GetDataRetentionSettingsRequest implements IGetDataRetentionSettingsRequest { + + /** + * Constructs a new GetDataRetentionSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest); + + /** GetDataRetentionSettingsRequest name. */ + public name: string; + + /** + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataRetentionSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + + /** + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + + /** + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + + /** + * Verifies a GetDataRetentionSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDataRetentionSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + + /** + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message GetDataRetentionSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDataRetentionSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateDataRetentionSettingsRequest. */ + interface IUpdateDataRetentionSettingsRequest { + + /** UpdateDataRetentionSettingsRequest dataRetentionSettings */ + dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + + /** UpdateDataRetentionSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateDataRetentionSettingsRequest. */ + class UpdateDataRetentionSettingsRequest implements IUpdateDataRetentionSettingsRequest { + + /** + * Constructs a new UpdateDataRetentionSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest); + + /** UpdateDataRetentionSettingsRequest dataRetentionSettings. */ + public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + + /** UpdateDataRetentionSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateDataRetentionSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + + /** + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + + /** + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + + /** + * Verifies an UpdateDataRetentionSettingsRequest message. + * @param message Plain 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 UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateDataRetentionSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + + /** + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateDataRetentionSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateDataRetentionSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** IndustryCategory enum. */ + enum IndustryCategory { + INDUSTRY_CATEGORY_UNSPECIFIED = 0, + AUTOMOTIVE = 1, + BUSINESS_AND_INDUSTRIAL_MARKETS = 2, + FINANCE = 3, + HEALTHCARE = 4, + TECHNOLOGY = 5, + TRAVEL = 6, + OTHER = 7, + ARTS_AND_ENTERTAINMENT = 8, + BEAUTY_AND_FITNESS = 9, + BOOKS_AND_LITERATURE = 10, + FOOD_AND_DRINK = 11, + GAMES = 12, + HOBBIES_AND_LEISURE = 13, + HOME_AND_GARDEN = 14, + INTERNET_AND_TELECOM = 15, + LAW_AND_GOVERNMENT = 16, + NEWS = 17, + ONLINE_COMMUNITIES = 18, + PEOPLE_AND_SOCIETY = 19, + PETS_AND_ANIMALS = 20, + REAL_ESTATE = 21, + REFERENCE = 22, + SCIENCE = 23, + SPORTS = 24, + JOBS_AND_EDUCATION = 25, + SHOPPING = 26 + } + + /** ServiceLevel enum. */ + enum ServiceLevel { + SERVICE_LEVEL_UNSPECIFIED = 0, + GOOGLE_ANALYTICS_STANDARD = 1, + GOOGLE_ANALYTICS_360 = 2 + } + + /** ActorType enum. */ + enum ActorType { + ACTOR_TYPE_UNSPECIFIED = 0, + USER = 1, + SYSTEM = 2, + SUPPORT = 3 + } + + /** ActionType enum. */ + enum ActionType { + ACTION_TYPE_UNSPECIFIED = 0, + CREATED = 1, + UPDATED = 2, + DELETED = 3 + } + + /** ChangeHistoryResourceType enum. */ + enum ChangeHistoryResourceType { + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, + ACCOUNT = 1, + PROPERTY = 2, + WEB_DATA_STREAM = 3, + ANDROID_APP_DATA_STREAM = 4, + IOS_APP_DATA_STREAM = 5, + FIREBASE_LINK = 6, + GOOGLE_ADS_LINK = 7, + GOOGLE_SIGNALS_SETTINGS = 8, + CONVERSION_EVENT = 9, + MEASUREMENT_PROTOCOL_SECRET = 10, + CUSTOM_DIMENSION = 11, + CUSTOM_METRIC = 12, + DATA_RETENTION_SETTINGS = 13 + } + + /** GoogleSignalsState enum. */ + enum GoogleSignalsState { + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0, + GOOGLE_SIGNALS_ENABLED = 1, + GOOGLE_SIGNALS_DISABLED = 2 + } + + /** GoogleSignalsConsent enum. */ + enum GoogleSignalsConsent { + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0, + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2, + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 + } + + /** LinkProposalInitiatingProduct enum. */ + enum LinkProposalInitiatingProduct { + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0, + GOOGLE_ANALYTICS = 1, + LINKED_PRODUCT = 2 + } + + /** LinkProposalState enum. */ + enum LinkProposalState { + LINK_PROPOSAL_STATE_UNSPECIFIED = 0, + AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1, + AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2, + WITHDRAWN = 3, + DECLINED = 4, + EXPIRED = 5, + OBSOLETE = 6 + } + + /** Properties of an Account. */ + interface IAccount { + + /** Account name */ + name?: (string|null); + + /** Account createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName */ + displayName?: (string|null); + + /** Account regionCode */ + regionCode?: (string|null); + + /** Account deleted */ + deleted?: (boolean|null); + } + + /** Represents an Account. */ + class Account implements IAccount { + + /** + * Constructs a new Account. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccount); + + /** Account name. */ + public name: string; + + /** Account createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName. */ + public displayName: string; + + /** Account regionCode. */ + public regionCode: string; + + /** Account deleted. */ + public deleted: boolean; + + /** + * Creates a new Account instance using the specified properties. + * @param [properties] Properties to set + * @returns Account instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Account to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Property. */ + interface IProperty { + + /** Property name */ + name?: (string|null); + + /** Property createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent */ + parent?: (string|null); + + /** Property displayName */ + displayName?: (string|null); + + /** Property industryCategory */ + industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); + + /** Property timeZone */ + timeZone?: (string|null); + + /** Property currencyCode */ + currencyCode?: (string|null); + + /** Property serviceLevel */ + serviceLevel?: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel|null); + + /** Property deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Property. */ + class Property implements IProperty { + + /** + * Constructs a new Property. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProperty); + + /** Property name. */ + public name: string; + + /** Property createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent. */ + public parent: string; + + /** Property displayName. */ + public displayName: string; + + /** Property industryCategory. */ + public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); + + /** Property timeZone. */ + public timeZone: string; + + /** Property currencyCode. */ + public currencyCode: string; + + /** Property serviceLevel. */ + public serviceLevel: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel); + + /** Property deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Property instance using the specified properties. + * @param [properties] Properties to set + * @returns Property instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Property message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Property; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Property; + + /** + * Verifies a Property message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Property + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @param message Property + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Property to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AndroidAppDataStream. */ + interface IAndroidAppDataStream { + + /** AndroidAppDataStream name */ + name?: (string|null); + + /** AndroidAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** AndroidAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName */ + packageName?: (string|null); + + /** AndroidAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an AndroidAppDataStream. */ + class AndroidAppDataStream implements IAndroidAppDataStream { + + /** + * Constructs a new AndroidAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); + + /** AndroidAppDataStream name. */ + public name: string; + + /** AndroidAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** AndroidAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName. */ + public packageName: string; + + /** AndroidAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns AndroidAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Verifies an AndroidAppDataStream message. + * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AndroidAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @param message AndroidAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IosAppDataStream. */ + interface IIosAppDataStream { + + /** IosAppDataStream name */ + name?: (string|null); + + /** IosAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** IosAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId */ + bundleId?: (string|null); + + /** IosAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an IosAppDataStream. */ + class IosAppDataStream implements IIosAppDataStream { + + /** + * Constructs a new IosAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); + + /** IosAppDataStream name. */ + public name: string; + + /** IosAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** IosAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId. */ + public bundleId: string; + + /** IosAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns IosAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Verifies an IosAppDataStream message. + * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IosAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @param message IosAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IosAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a WebDataStream. */ + interface IWebDataStream { + + /** WebDataStream name */ + name?: (string|null); + + /** WebDataStream measurementId */ + measurementId?: (string|null); + + /** WebDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** WebDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream defaultUri */ + defaultUri?: (string|null); + + /** WebDataStream displayName */ + displayName?: (string|null); + } + + /** Represents a WebDataStream. */ + class WebDataStream implements IWebDataStream { + + /** + * Constructs a new WebDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); + + /** WebDataStream name. */ + public name: string; + + /** WebDataStream measurementId. */ + public measurementId: string; + + /** WebDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** WebDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** WebDataStream defaultUri. */ + public defaultUri: string; + + /** WebDataStream displayName. */ + public displayName: string; + + /** + * Creates a new WebDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns WebDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WebDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Verifies a WebDataStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; + + /** + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @param message WebDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WebDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a UserLink. */ + interface IUserLink { + + /** UserLink name */ + name?: (string|null); + + /** UserLink emailAddress */ + emailAddress?: (string|null); + + /** UserLink directRoles */ + directRoles?: (string[]|null); + } + + /** Represents a UserLink. */ + class UserLink implements IUserLink { + + /** + * Constructs a new UserLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUserLink); + + /** UserLink name. */ + public name: string; + + /** UserLink emailAddress. */ + public emailAddress: string; + + /** UserLink directRoles. */ + public directRoles: string[]; + + /** + * Creates a new UserLink instance using the specified properties. + * @param [properties] Properties to set + * @returns UserLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUserLink): google.analytics.admin.v1alpha.UserLink; + + /** + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UserLink; + + /** + * Decodes a UserLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UserLink; + + /** + * Verifies a UserLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UserLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UserLink; + + /** + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @param message UserLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UserLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuditUserLink. */ + interface IAuditUserLink { + + /** AuditUserLink name */ + name?: (string|null); + + /** AuditUserLink emailAddress */ + emailAddress?: (string|null); + + /** AuditUserLink directRoles */ + directRoles?: (string[]|null); + + /** AuditUserLink effectiveRoles */ + effectiveRoles?: (string[]|null); + } + + /** Represents an AuditUserLink. */ + class AuditUserLink implements IAuditUserLink { + + /** + * Constructs a new AuditUserLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLink); + + /** AuditUserLink name. */ + public name: string; + + /** AuditUserLink emailAddress. */ + public emailAddress: string; + + /** AuditUserLink directRoles. */ + public directRoles: string[]; + + /** AuditUserLink effectiveRoles. */ + public effectiveRoles: string[]; + + /** + * Creates a new AuditUserLink instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditUserLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLink): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Verifies an AuditUserLink message. + * @param message Plain 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 AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditUserLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLink; + + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @param message AuditUserLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditUserLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnhancedMeasurementSettings. */ + interface IEnhancedMeasurementSettings { + + /** EnhancedMeasurementSettings name */ + name?: (string|null); + + /** EnhancedMeasurementSettings streamEnabled */ + streamEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageViewsEnabled */ + pageViewsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings scrollsEnabled */ + scrollsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings outboundClicksEnabled */ + outboundClicksEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings siteSearchEnabled */ + siteSearchEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings videoEngagementEnabled */ + videoEngagementEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings fileDownloadsEnabled */ + fileDownloadsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageLoadsEnabled */ + pageLoadsEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings pageChangesEnabled */ + pageChangesEnabled?: (boolean|null); + + /** EnhancedMeasurementSettings searchQueryParameter */ + searchQueryParameter?: (string|null); + + /** EnhancedMeasurementSettings uriQueryParameter */ + uriQueryParameter?: (string|null); + } + + /** Represents an EnhancedMeasurementSettings. */ + class EnhancedMeasurementSettings implements IEnhancedMeasurementSettings { + + /** + * Constructs a new EnhancedMeasurementSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings); + + /** EnhancedMeasurementSettings name. */ + public name: string; + + /** EnhancedMeasurementSettings streamEnabled. */ + public streamEnabled: boolean; + + /** EnhancedMeasurementSettings pageViewsEnabled. */ + public pageViewsEnabled: boolean; + + /** EnhancedMeasurementSettings scrollsEnabled. */ + public scrollsEnabled: boolean; + + /** EnhancedMeasurementSettings outboundClicksEnabled. */ + public outboundClicksEnabled: boolean; + + /** EnhancedMeasurementSettings siteSearchEnabled. */ + public siteSearchEnabled: boolean; + + /** EnhancedMeasurementSettings videoEngagementEnabled. */ + public videoEngagementEnabled: boolean; + + /** EnhancedMeasurementSettings fileDownloadsEnabled. */ + public fileDownloadsEnabled: boolean; + + /** EnhancedMeasurementSettings pageLoadsEnabled. */ + public pageLoadsEnabled: boolean; + + /** EnhancedMeasurementSettings pageChangesEnabled. */ + public pageChangesEnabled: boolean; + + /** EnhancedMeasurementSettings searchQueryParameter. */ + public searchQueryParameter: string; + + /** EnhancedMeasurementSettings uriQueryParameter. */ + public uriQueryParameter: string; + + /** + * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns EnhancedMeasurementSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @param message EnhancedMeasurementSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @param message EnhancedMeasurementSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Verifies an EnhancedMeasurementSettings message. + * @param message Plain 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 EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnhancedMeasurementSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; + + /** + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * @param message EnhancedMeasurementSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.EnhancedMeasurementSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnhancedMeasurementSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FirebaseLink. */ + interface IFirebaseLink { + + /** FirebaseLink name */ + name?: (string|null); + + /** FirebaseLink project */ + project?: (string|null); + + /** FirebaseLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a FirebaseLink. */ + class FirebaseLink implements IFirebaseLink { + + /** + * Constructs a new FirebaseLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IFirebaseLink); + + /** FirebaseLink name. */ + public name: string; + + /** FirebaseLink project. */ + public project: string; + + /** FirebaseLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @param [properties] Properties to set + * @returns FirebaseLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IFirebaseLink): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Verifies a FirebaseLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FirebaseLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FirebaseLink; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @param message FirebaseLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FirebaseLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GlobalSiteTag. */ + interface IGlobalSiteTag { + + /** GlobalSiteTag name */ + name?: (string|null); + + /** GlobalSiteTag snippet */ + snippet?: (string|null); + } + + /** Represents a GlobalSiteTag. */ + class GlobalSiteTag implements IGlobalSiteTag { + + /** + * Constructs a new GlobalSiteTag. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); + + /** GlobalSiteTag name. */ + public name: string; + + /** GlobalSiteTag snippet. */ + public snippet: string; + + /** + * Creates a new GlobalSiteTag instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalSiteTag instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Verifies a GlobalSiteTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalSiteTag + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GlobalSiteTag; + + /** + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @param message GlobalSiteTag + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GlobalSiteTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalSiteTag to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GoogleAdsLink. */ + interface IGoogleAdsLink { + + /** GoogleAdsLink name */ + name?: (string|null); + + /** GoogleAdsLink customerId */ + customerId?: (string|null); + + /** GoogleAdsLink canManageClients */ + canManageClients?: (boolean|null); + + /** GoogleAdsLink adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink creatorEmailAddress */ + creatorEmailAddress?: (string|null); + } + + /** Represents a GoogleAdsLink. */ + class GoogleAdsLink implements IGoogleAdsLink { + + /** + * Constructs a new GoogleAdsLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink); + + /** GoogleAdsLink name. */ + public name: string; + + /** GoogleAdsLink customerId. */ + public customerId: string; + + /** GoogleAdsLink canManageClients. */ + public canManageClients: boolean; + + /** GoogleAdsLink adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink creatorEmailAddress. */ + public creatorEmailAddress: string; + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @param [properties] Properties to set + * @returns GoogleAdsLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Verifies a GoogleAdsLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GoogleAdsLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleAdsLink; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @param message GoogleAdsLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GoogleAdsLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataSharingSettings. */ + interface IDataSharingSettings { + + /** DataSharingSettings name */ + name?: (string|null); + + /** DataSharingSettings sharingWithGoogleSupportEnabled */ + sharingWithGoogleSupportEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ + sharingWithGoogleAssignedSalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ + sharingWithGoogleAnySalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleProductsEnabled */ + sharingWithGoogleProductsEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithOthersEnabled */ + sharingWithOthersEnabled?: (boolean|null); + } + + /** Represents a DataSharingSettings. */ + class DataSharingSettings implements IDataSharingSettings { + + /** + * Constructs a new DataSharingSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDataSharingSettings); + + /** DataSharingSettings name. */ + public name: string; + + /** DataSharingSettings sharingWithGoogleSupportEnabled. */ + public sharingWithGoogleSupportEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ + public sharingWithGoogleAssignedSalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ + public sharingWithGoogleAnySalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleProductsEnabled. */ + public sharingWithGoogleProductsEnabled: boolean; + + /** DataSharingSettings sharingWithOthersEnabled. */ + public sharingWithOthersEnabled: boolean; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DataSharingSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDataSharingSettings): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Verifies a DataSharingSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataSharingSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataSharingSettings; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @param message DataSharingSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataSharingSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccountSummary. */ + interface IAccountSummary { + + /** AccountSummary name */ + name?: (string|null); + + /** AccountSummary account */ + account?: (string|null); + + /** AccountSummary displayName */ + displayName?: (string|null); + + /** AccountSummary propertySummaries */ + propertySummaries?: (google.analytics.admin.v1alpha.IPropertySummary[]|null); + } + + /** Represents an AccountSummary. */ + class AccountSummary implements IAccountSummary { + + /** + * Constructs a new AccountSummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccountSummary); + + /** AccountSummary name. */ + public name: string; + + /** AccountSummary account. */ + public account: string; + + /** AccountSummary displayName. */ + public displayName: string; + + /** AccountSummary propertySummaries. */ + public propertySummaries: google.analytics.admin.v1alpha.IPropertySummary[]; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @param [properties] Properties to set + * @returns AccountSummary instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccountSummary): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Verifies an AccountSummary message. + * @param message Plain 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 AccountSummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccountSummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccountSummary; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @param message AccountSummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccountSummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PropertySummary. */ + interface IPropertySummary { + + /** PropertySummary property */ + property?: (string|null); + + /** PropertySummary displayName */ + displayName?: (string|null); + } + + /** Represents a PropertySummary. */ + class PropertySummary implements IPropertySummary { + + /** + * Constructs a new PropertySummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IPropertySummary); + + /** PropertySummary property. */ + public property: string; + + /** PropertySummary displayName. */ + public displayName: string; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @param [properties] Properties to set + * @returns PropertySummary instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IPropertySummary): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Verifies a PropertySummary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PropertySummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.PropertySummary; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @param message PropertySummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PropertySummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MeasurementProtocolSecret. */ + interface IMeasurementProtocolSecret { + + /** MeasurementProtocolSecret name */ + name?: (string|null); + + /** MeasurementProtocolSecret displayName */ + displayName?: (string|null); + + /** MeasurementProtocolSecret secretValue */ + secretValue?: (string|null); + } + + /** Represents a MeasurementProtocolSecret. */ + class MeasurementProtocolSecret implements IMeasurementProtocolSecret { + + /** + * Constructs a new MeasurementProtocolSecret. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret); + + /** MeasurementProtocolSecret name. */ + public name: string; + + /** MeasurementProtocolSecret displayName. */ + public displayName: string; + + /** MeasurementProtocolSecret secretValue. */ + public secretValue: string; + + /** + * Creates a new MeasurementProtocolSecret instance using the specified properties. + * @param [properties] Properties to set + * @returns MeasurementProtocolSecret instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Verifies a MeasurementProtocolSecret message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MeasurementProtocolSecret + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + + /** + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @param message MeasurementProtocolSecret + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.MeasurementProtocolSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MeasurementProtocolSecret to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeHistoryEvent. */ + interface IChangeHistoryEvent { + + /** ChangeHistoryEvent id */ + id?: (string|null); + + /** ChangeHistoryEvent changeTime */ + changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType */ + actorType?: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType|null); + + /** ChangeHistoryEvent userActorEmail */ + userActorEmail?: (string|null); + + /** ChangeHistoryEvent changesFiltered */ + changesFiltered?: (boolean|null); + + /** ChangeHistoryEvent changes */ + changes?: (google.analytics.admin.v1alpha.IChangeHistoryChange[]|null); + } + + /** Represents a ChangeHistoryEvent. */ + class ChangeHistoryEvent implements IChangeHistoryEvent { + + /** + * Constructs a new ChangeHistoryEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent); + + /** ChangeHistoryEvent id. */ + public id: string; + + /** ChangeHistoryEvent changeTime. */ + public changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType. */ + public actorType: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType); + + /** ChangeHistoryEvent userActorEmail. */ + public userActorEmail: string; + + /** ChangeHistoryEvent changesFiltered. */ + public changesFiltered: boolean; + + /** ChangeHistoryEvent changes. */ + public changes: google.analytics.admin.v1alpha.IChangeHistoryChange[]; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryEvent instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Verifies a ChangeHistoryEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryEvent + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryEvent; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @param message ChangeHistoryEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeHistoryChange. */ + interface IChangeHistoryChange { + + /** ChangeHistoryChange resource */ + resource?: (string|null); + + /** ChangeHistoryChange action */ + action?: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType|null); + + /** ChangeHistoryChange resourceBeforeChange */ + resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange */ + resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + } + + /** Represents a ChangeHistoryChange. */ + class ChangeHistoryChange implements IChangeHistoryChange { + + /** + * Constructs a new ChangeHistoryChange. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange); + + /** ChangeHistoryChange resource. */ + public resource: string; + + /** ChangeHistoryChange action. */ + public action: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType); + + /** ChangeHistoryChange resourceBeforeChange. */ + public resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange. */ + public resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryChange instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Verifies a ChangeHistoryChange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryChange + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @param message ChangeHistoryChange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ChangeHistoryChange { + + /** Properties of a ChangeHistoryResource. */ + interface IChangeHistoryResource { + + /** ChangeHistoryResource account */ + account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource webDataStream */ + webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** ChangeHistoryResource androidAppDataStream */ + androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** ChangeHistoryResource iosAppDataStream */ + iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** ChangeHistoryResource firebaseLink */ + firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** ChangeHistoryResource googleSignalsSettings */ + googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLinkProposal */ + displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); + + /** ChangeHistoryResource conversionEvent */ + conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** ChangeHistoryResource customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** ChangeHistoryResource dataRetentionSettings */ + dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + } + + /** Represents a ChangeHistoryResource. */ + class ChangeHistoryResource implements IChangeHistoryResource { + + /** + * Constructs a new ChangeHistoryResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource); + + /** ChangeHistoryResource account. */ + public account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource webDataStream. */ + public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); + + /** ChangeHistoryResource androidAppDataStream. */ + public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); + + /** ChangeHistoryResource iosAppDataStream. */ + public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); + + /** ChangeHistoryResource firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** ChangeHistoryResource googleSignalsSettings. */ + public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLinkProposal. */ + public displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); + + /** ChangeHistoryResource conversionEvent. */ + public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** ChangeHistoryResource customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** ChangeHistoryResource dataRetentionSettings. */ + public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); - /** - * Creates a new PropertySummary instance using the specified properties. - * @param [properties] Properties to set - * @returns PropertySummary instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IPropertySummary): google.analytics.admin.v1alpha.PropertySummary; + /** ChangeHistoryResource resource. */ + public resource?: ("account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"); - /** - * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. - * @param message PropertySummary message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryResource instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - /** - * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. - * @param message PropertySummary message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PropertySummary message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PropertySummary - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.PropertySummary; + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PropertySummary message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PropertySummary - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.PropertySummary; + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - /** - * Verifies a PropertySummary message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - /** - * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PropertySummary - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.PropertySummary; + /** + * Verifies a ChangeHistoryResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. - * @param message PropertySummary - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryResource + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - /** - * Converts this PropertySummary to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @param message ChangeHistoryResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a MeasurementProtocolSecret. */ - interface IMeasurementProtocolSecret { + /** Properties of a DisplayVideo360AdvertiserLink. */ + interface IDisplayVideo360AdvertiserLink { - /** MeasurementProtocolSecret name */ + /** DisplayVideo360AdvertiserLink name */ name?: (string|null); - /** MeasurementProtocolSecret displayName */ - displayName?: (string|null); + /** DisplayVideo360AdvertiserLink advertiserId */ + advertiserId?: (string|null); - /** MeasurementProtocolSecret secretValue */ - secretValue?: (string|null); + /** DisplayVideo360AdvertiserLink advertiserDisplayName */ + advertiserDisplayName?: (string|null); + + /** DisplayVideo360AdvertiserLink adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLink campaignDataSharingEnabled */ + campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLink costDataSharingEnabled */ + costDataSharingEnabled?: (google.protobuf.IBoolValue|null); } - /** Represents a MeasurementProtocolSecret. */ - class MeasurementProtocolSecret implements IMeasurementProtocolSecret { + /** Represents a DisplayVideo360AdvertiserLink. */ + class DisplayVideo360AdvertiserLink implements IDisplayVideo360AdvertiserLink { /** - * Constructs a new MeasurementProtocolSecret. + * Constructs a new DisplayVideo360AdvertiserLink. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret); + constructor(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink); - /** MeasurementProtocolSecret name. */ + /** DisplayVideo360AdvertiserLink name. */ public name: string; - /** MeasurementProtocolSecret displayName. */ - public displayName: string; + /** DisplayVideo360AdvertiserLink advertiserId. */ + public advertiserId: string; - /** MeasurementProtocolSecret secretValue. */ - public secretValue: string; + /** DisplayVideo360AdvertiserLink advertiserDisplayName. */ + public advertiserDisplayName: string; + + /** DisplayVideo360AdvertiserLink adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLink campaignDataSharingEnabled. */ + public campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLink costDataSharingEnabled. */ + public costDataSharingEnabled?: (google.protobuf.IBoolValue|null); /** - * Creates a new MeasurementProtocolSecret instance using the specified properties. + * Creates a new DisplayVideo360AdvertiserLink instance using the specified properties. * @param [properties] Properties to set - * @returns MeasurementProtocolSecret instance + * @returns DisplayVideo360AdvertiserLink instance */ - public static create(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static create(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. - * @param message MeasurementProtocolSecret message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. - * @param message MeasurementProtocolSecret message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MeasurementProtocolSecret + * @returns DisplayVideo360AdvertiserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MeasurementProtocolSecret + * @returns DisplayVideo360AdvertiserLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Verifies a MeasurementProtocolSecret message. + * Verifies a DisplayVideo360AdvertiserLink message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * Creates a DisplayVideo360AdvertiserLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MeasurementProtocolSecret + * @returns DisplayVideo360AdvertiserLink */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. - * @param message MeasurementProtocolSecret + * Creates a plain object from a DisplayVideo360AdvertiserLink message. Also converts values to other types if specified. + * @param message DisplayVideo360AdvertiserLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.MeasurementProtocolSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MeasurementProtocolSecret to JSON. + * Converts this DisplayVideo360AdvertiserLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeHistoryEvent. */ - interface IChangeHistoryEvent { + /** Properties of a DisplayVideo360AdvertiserLinkProposal. */ + interface IDisplayVideo360AdvertiserLinkProposal { - /** ChangeHistoryEvent id */ - id?: (string|null); + /** DisplayVideo360AdvertiserLinkProposal name */ + name?: (string|null); - /** ChangeHistoryEvent changeTime */ - changeTime?: (google.protobuf.ITimestamp|null); + /** DisplayVideo360AdvertiserLinkProposal advertiserId */ + advertiserId?: (string|null); - /** ChangeHistoryEvent actorType */ - actorType?: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType|null); + /** DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails */ + linkProposalStatusDetails?: (google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null); - /** ChangeHistoryEvent userActorEmail */ - userActorEmail?: (string|null); + /** DisplayVideo360AdvertiserLinkProposal advertiserDisplayName */ + advertiserDisplayName?: (string|null); - /** ChangeHistoryEvent changesFiltered */ - changesFiltered?: (boolean|null); + /** DisplayVideo360AdvertiserLinkProposal validationEmail */ + validationEmail?: (string|null); - /** ChangeHistoryEvent changes */ - changes?: (google.analytics.admin.v1alpha.IChangeHistoryChange[]|null); + /** DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled */ + campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled */ + costDataSharingEnabled?: (google.protobuf.IBoolValue|null); } - /** Represents a ChangeHistoryEvent. */ - class ChangeHistoryEvent implements IChangeHistoryEvent { + /** Represents a DisplayVideo360AdvertiserLinkProposal. */ + class DisplayVideo360AdvertiserLinkProposal implements IDisplayVideo360AdvertiserLinkProposal { /** - * Constructs a new ChangeHistoryEvent. + * Constructs a new DisplayVideo360AdvertiserLinkProposal. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent); + constructor(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal); - /** ChangeHistoryEvent id. */ - public id: string; + /** DisplayVideo360AdvertiserLinkProposal name. */ + public name: string; - /** ChangeHistoryEvent changeTime. */ - public changeTime?: (google.protobuf.ITimestamp|null); + /** DisplayVideo360AdvertiserLinkProposal advertiserId. */ + public advertiserId: string; - /** ChangeHistoryEvent actorType. */ - public actorType: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType); + /** DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails. */ + public linkProposalStatusDetails?: (google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null); - /** ChangeHistoryEvent userActorEmail. */ - public userActorEmail: string; + /** DisplayVideo360AdvertiserLinkProposal advertiserDisplayName. */ + public advertiserDisplayName: string; - /** ChangeHistoryEvent changesFiltered. */ - public changesFiltered: boolean; + /** DisplayVideo360AdvertiserLinkProposal validationEmail. */ + public validationEmail: string; - /** ChangeHistoryEvent changes. */ - public changes: google.analytics.admin.v1alpha.IChangeHistoryChange[]; + /** DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled. */ + public campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled. */ + public costDataSharingEnabled?: (google.protobuf.IBoolValue|null); /** - * Creates a new ChangeHistoryEvent instance using the specified properties. + * Creates a new DisplayVideo360AdvertiserLinkProposal instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeHistoryEvent instance + * @returns DisplayVideo360AdvertiserLinkProposal instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static create(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. - * @param message ChangeHistoryEvent message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLinkProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. - * @param message ChangeHistoryEvent message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLinkProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeHistoryEvent + * @returns DisplayVideo360AdvertiserLinkProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeHistoryEvent + * @returns DisplayVideo360AdvertiserLinkProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Verifies a ChangeHistoryEvent message. + * Verifies a DisplayVideo360AdvertiserLinkProposal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * Creates a DisplayVideo360AdvertiserLinkProposal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeHistoryEvent + * @returns DisplayVideo360AdvertiserLinkProposal */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. - * @param message ChangeHistoryEvent + * Creates a plain object from a DisplayVideo360AdvertiserLinkProposal message. Also converts values to other types if specified. + * @param message DisplayVideo360AdvertiserLinkProposal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeHistoryEvent to JSON. + * Converts this DisplayVideo360AdvertiserLinkProposal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeHistoryChange. */ - interface IChangeHistoryChange { - - /** ChangeHistoryChange resource */ - resource?: (string|null); + /** Properties of a LinkProposalStatusDetails. */ + interface ILinkProposalStatusDetails { - /** ChangeHistoryChange action */ - action?: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType|null); + /** LinkProposalStatusDetails linkProposalInitiatingProduct */ + linkProposalInitiatingProduct?: (google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|keyof typeof google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|null); - /** ChangeHistoryChange resourceBeforeChange */ - resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** LinkProposalStatusDetails requestorEmail */ + requestorEmail?: (string|null); - /** ChangeHistoryChange resourceAfterChange */ - resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** LinkProposalStatusDetails linkProposalState */ + linkProposalState?: (google.analytics.admin.v1alpha.LinkProposalState|keyof typeof google.analytics.admin.v1alpha.LinkProposalState|null); } - /** Represents a ChangeHistoryChange. */ - class ChangeHistoryChange implements IChangeHistoryChange { + /** Represents a LinkProposalStatusDetails. */ + class LinkProposalStatusDetails implements ILinkProposalStatusDetails { /** - * Constructs a new ChangeHistoryChange. + * Constructs a new LinkProposalStatusDetails. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange); + constructor(properties?: google.analytics.admin.v1alpha.ILinkProposalStatusDetails); - /** ChangeHistoryChange resource. */ - public resource: string; - - /** ChangeHistoryChange action. */ - public action: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType); - - /** ChangeHistoryChange resourceBeforeChange. */ - public resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** LinkProposalStatusDetails linkProposalInitiatingProduct. */ + public linkProposalInitiatingProduct: (google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|keyof typeof google.analytics.admin.v1alpha.LinkProposalInitiatingProduct); - /** ChangeHistoryChange resourceAfterChange. */ - public resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** LinkProposalStatusDetails requestorEmail. */ + public requestorEmail: string; + + /** LinkProposalStatusDetails linkProposalState. */ + public linkProposalState: (google.analytics.admin.v1alpha.LinkProposalState|keyof typeof google.analytics.admin.v1alpha.LinkProposalState); /** - * Creates a new ChangeHistoryChange instance using the specified properties. + * Creates a new LinkProposalStatusDetails instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeHistoryChange instance + * @returns LinkProposalStatusDetails instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static create(properties?: google.analytics.admin.v1alpha.ILinkProposalStatusDetails): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. - * @param message ChangeHistoryChange message or plain object to encode + * Encodes the specified LinkProposalStatusDetails message. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @param message LinkProposalStatusDetails message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ILinkProposalStatusDetails, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. - * @param message ChangeHistoryChange message or plain object to encode + * Encodes the specified LinkProposalStatusDetails message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @param message LinkProposalStatusDetails message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ILinkProposalStatusDetails, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeHistoryChange + * @returns LinkProposalStatusDetails * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeHistoryChange + * @returns LinkProposalStatusDetails * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Verifies a ChangeHistoryChange message. + * Verifies a LinkProposalStatusDetails message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * Creates a LinkProposalStatusDetails message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeHistoryChange + * @returns LinkProposalStatusDetails */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. - * @param message ChangeHistoryChange + * Creates a plain object from a LinkProposalStatusDetails message. Also converts values to other types if specified. + * @param message LinkProposalStatusDetails * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.LinkProposalStatusDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeHistoryChange to JSON. + * Converts this LinkProposalStatusDetails to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ChangeHistoryChange { - - /** Properties of a ChangeHistoryResource. */ - interface IChangeHistoryResource { - - /** ChangeHistoryResource account */ - account?: (google.analytics.admin.v1alpha.IAccount|null); - - /** ChangeHistoryResource property */ - property?: (google.analytics.admin.v1alpha.IProperty|null); - - /** ChangeHistoryResource webDataStream */ - webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** ChangeHistoryResource androidAppDataStream */ - androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** ChangeHistoryResource iosAppDataStream */ - iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** ChangeHistoryResource firebaseLink */ - firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** ChangeHistoryResource googleAdsLink */ - googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); - - /** ChangeHistoryResource googleSignalsSettings */ - googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - - /** ChangeHistoryResource conversionEvent */ - conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - - /** ChangeHistoryResource measurementProtocolSecret */ - measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); - - /** ChangeHistoryResource customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - - /** ChangeHistoryResource customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - } - - /** Represents a ChangeHistoryResource. */ - class ChangeHistoryResource implements IChangeHistoryResource { - - /** - * Constructs a new ChangeHistoryResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource); - - /** ChangeHistoryResource account. */ - public account?: (google.analytics.admin.v1alpha.IAccount|null); - - /** ChangeHistoryResource property. */ - public property?: (google.analytics.admin.v1alpha.IProperty|null); - - /** ChangeHistoryResource webDataStream. */ - public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** ChangeHistoryResource androidAppDataStream. */ - public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** ChangeHistoryResource iosAppDataStream. */ - public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** ChangeHistoryResource firebaseLink. */ - public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** ChangeHistoryResource googleAdsLink. */ - public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); - - /** ChangeHistoryResource googleSignalsSettings. */ - public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - - /** ChangeHistoryResource conversionEvent. */ - public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - - /** ChangeHistoryResource measurementProtocolSecret. */ - public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); - - /** ChangeHistoryResource customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - - /** ChangeHistoryResource customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - - /** ChangeHistoryResource resource. */ - public resource?: ("account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"); - - /** - * Creates a new ChangeHistoryResource instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeHistoryResource instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @param message ChangeHistoryResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @param message ChangeHistoryResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Verifies a ChangeHistoryResource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeHistoryResource - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. - * @param message ChangeHistoryResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeHistoryResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - /** Properties of a ConversionEvent. */ interface IConversionEvent { @@ -12017,8 +14062,11 @@ export namespace google { /** ConversionEvent createTime */ createTime?: (google.protobuf.ITimestamp|null); - /** ConversionEvent isDeletable */ - isDeletable?: (boolean|null); + /** ConversionEvent deletable */ + deletable?: (boolean|null); + + /** ConversionEvent custom */ + custom?: (boolean|null); } /** Represents a ConversionEvent. */ @@ -12039,8 +14087,11 @@ export namespace google { /** ConversionEvent createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** ConversionEvent isDeletable. */ - public isDeletable: boolean; + /** ConversionEvent deletable. */ + public deletable: boolean; + + /** ConversionEvent custom. */ + public custom: boolean; /** * Creates a new ConversionEvent instance using the specified properties. @@ -12488,6 +14539,121 @@ export namespace google { EVENT = 1 } } + + /** Properties of a DataRetentionSettings. */ + interface IDataRetentionSettings { + + /** DataRetentionSettings name */ + name?: (string|null); + + /** DataRetentionSettings eventDataRetention */ + eventDataRetention?: (google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|null); + + /** DataRetentionSettings resetUserDataOnNewActivity */ + resetUserDataOnNewActivity?: (boolean|null); + } + + /** Represents a DataRetentionSettings. */ + class DataRetentionSettings implements IDataRetentionSettings { + + /** + * Constructs a new DataRetentionSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDataRetentionSettings); + + /** DataRetentionSettings name. */ + public name: string; + + /** DataRetentionSettings eventDataRetention. */ + public eventDataRetention: (google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration); + + /** DataRetentionSettings resetUserDataOnNewActivity. */ + public resetUserDataOnNewActivity: boolean; + + /** + * Creates a new DataRetentionSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DataRetentionSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDataRetentionSettings): google.analytics.admin.v1alpha.DataRetentionSettings; + + /** + * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * @param message DataRetentionSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * @param message DataRetentionSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataRetentionSettings; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataRetentionSettings; + + /** + * Verifies a DataRetentionSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataRetentionSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataRetentionSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataRetentionSettings; + + /** + * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. + * @param message DataRetentionSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataRetentionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataRetentionSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DataRetentionSettings { + + /** RetentionDuration enum. */ + enum RetentionDuration { + RETENTION_DURATION_UNSPECIFIED = 0, + TWO_MONTHS = 1, + FOURTEEN_MONTHS = 3, + TWENTY_SIX_MONTHS = 4, + THIRTY_EIGHT_MONTHS = 5, + FIFTY_MONTHS = 6 + } + } } } } diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 9deb15bc6ed..c0f4e5e584a 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -1319,39 +1319,6 @@ * @variation 2 */ - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateFirebaseLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateFirebaseLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.FirebaseLink} [response] FirebaseLink - */ - - /** - * Calls UpdateFirebaseLink. - * @function updateFirebaseLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} request UpdateFirebaseLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateFirebaseLinkCallback} callback Node-style callback called with the error, if any, and FirebaseLink - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.updateFirebaseLink = function updateFirebaseLink(request, callback) { - return this.rpcCall(updateFirebaseLink, $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, $root.google.analytics.admin.v1alpha.FirebaseLink, request, callback); - }, "name", { value: "UpdateFirebaseLink" }); - - /** - * Calls UpdateFirebaseLink. - * @function updateFirebaseLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} request UpdateFirebaseLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -2012,6 +1979,369 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink + */ + + /** + * Calls GetDisplayVideo360AdvertiserLink. + * @function getDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDisplayVideo360AdvertiserLink = function getDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(getDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); + }, "name", { value: "GetDisplayVideo360AdvertiserLink" }); + + /** + * Calls GetDisplayVideo360AdvertiserLink. + * @function getDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListDisplayVideo360AdvertiserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} [response] ListDisplayVideo360AdvertiserLinksResponse + */ + + /** + * Calls ListDisplayVideo360AdvertiserLinks. + * @function listDisplayVideo360AdvertiserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinksCallback} callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listDisplayVideo360AdvertiserLinks = function listDisplayVideo360AdvertiserLinks(request, callback) { + return this.rpcCall(listDisplayVideo360AdvertiserLinks, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse, request, callback); + }, "name", { value: "ListDisplayVideo360AdvertiserLinks" }); + + /** + * Calls ListDisplayVideo360AdvertiserLinks. + * @function listDisplayVideo360AdvertiserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink + */ + + /** + * Calls CreateDisplayVideo360AdvertiserLink. + * @function createDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createDisplayVideo360AdvertiserLink = function createDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(createDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); + }, "name", { value: "CreateDisplayVideo360AdvertiserLink" }); + + /** + * Calls CreateDisplayVideo360AdvertiserLink. + * @function createDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteDisplayVideo360AdvertiserLink. + * @function deleteDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteDisplayVideo360AdvertiserLink = function deleteDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(deleteDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDisplayVideo360AdvertiserLink" }); + + /** + * Calls DeleteDisplayVideo360AdvertiserLink. + * @function deleteDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink + */ + + /** + * Calls UpdateDisplayVideo360AdvertiserLink. + * @function updateDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateDisplayVideo360AdvertiserLink = function updateDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(updateDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); + }, "name", { value: "UpdateDisplayVideo360AdvertiserLink" }); + + /** + * Calls UpdateDisplayVideo360AdvertiserLink. + * @function updateDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal + */ + + /** + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @function getDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDisplayVideo360AdvertiserLinkProposal = function getDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(getDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); + }, "name", { value: "GetDisplayVideo360AdvertiserLinkProposal" }); + + /** + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @function getDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListDisplayVideo360AdvertiserLinkProposalsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} [response] ListDisplayVideo360AdvertiserLinkProposalsResponse + */ + + /** + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @function listDisplayVideo360AdvertiserLinkProposals + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposalsCallback} callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listDisplayVideo360AdvertiserLinkProposals = function listDisplayVideo360AdvertiserLinkProposals(request, callback) { + return this.rpcCall(listDisplayVideo360AdvertiserLinkProposals, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse, request, callback); + }, "name", { value: "ListDisplayVideo360AdvertiserLinkProposals" }); + + /** + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @function listDisplayVideo360AdvertiserLinkProposals + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal + */ + + /** + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @function createDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createDisplayVideo360AdvertiserLinkProposal = function createDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(createDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); + }, "name", { value: "CreateDisplayVideo360AdvertiserLinkProposal" }); + + /** + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @function createDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @function deleteDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteDisplayVideo360AdvertiserLinkProposal = function deleteDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(deleteDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDisplayVideo360AdvertiserLinkProposal" }); + + /** + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @function deleteDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ApproveDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} [response] ApproveDisplayVideo360AdvertiserLinkProposalResponse + */ + + /** + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @function approveDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.approveDisplayVideo360AdvertiserLinkProposal = function approveDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(approveDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse, request, callback); + }, "name", { value: "ApproveDisplayVideo360AdvertiserLinkProposal" }); + + /** + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @function approveDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CancelDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal + */ + + /** + * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * @function cancelDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.cancelDisplayVideo360AdvertiserLinkProposal = function cancelDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(cancelDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); + }, "name", { value: "CancelDisplayVideo360AdvertiserLinkProposal" }); + + /** + * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * @function cancelDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -2342,20 +2672,86 @@ * @variation 2 */ - return AnalyticsAdminService; - })(); + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDataRetentionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} [response] DataRetentionSettings + */ - v1alpha.GetAccountRequest = (function() { + /** + * Calls GetDataRetentionSettings. + * @function getDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDataRetentionSettings = function getDataRetentionSettings(request, callback) { + return this.rpcCall(getDataRetentionSettings, $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, $root.google.analytics.admin.v1alpha.DataRetentionSettings, request, callback); + }, "name", { value: "GetDataRetentionSettings" }); /** - * Properties of a GetAccountRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetAccountRequest - * @property {string|null} [name] GetAccountRequest name + * Calls GetDataRetentionSettings. + * @function getDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GetAccountRequest. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateDataRetentionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} [response] DataRetentionSettings + */ + + /** + * Calls UpdateDataRetentionSettings. + * @function updateDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateDataRetentionSettings = function updateDataRetentionSettings(request, callback) { + return this.rpcCall(updateDataRetentionSettings, $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, $root.google.analytics.admin.v1alpha.DataRetentionSettings, request, callback); + }, "name", { value: "UpdateDataRetentionSettings" }); + + /** + * Calls UpdateDataRetentionSettings. + * @function updateDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AnalyticsAdminService; + })(); + + v1alpha.GetAccountRequest = (function() { + + /** + * Properties of a GetAccountRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetAccountRequest + * @property {string|null} [name] GetAccountRequest name + */ + + /** + * Constructs a new GetAccountRequest. * @memberof google.analytics.admin.v1alpha * @classdesc Represents a GetAccountRequest. * @implements IGetAccountRequest @@ -12378,226 +12774,6 @@ return CreateFirebaseLinkRequest; })(); - v1alpha.UpdateFirebaseLinkRequest = (function() { - - /** - * Properties of an UpdateFirebaseLinkRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IUpdateFirebaseLinkRequest - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] UpdateFirebaseLinkRequest firebaseLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFirebaseLinkRequest updateMask - */ - - /** - * Constructs a new UpdateFirebaseLinkRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateFirebaseLinkRequest. - * @implements IUpdateFirebaseLinkRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set - */ - function UpdateFirebaseLinkRequest(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]]; - } - - /** - * UpdateFirebaseLinkRequest firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @instance - */ - UpdateFirebaseLinkRequest.prototype.firebaseLink = null; - - /** - * UpdateFirebaseLinkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @instance - */ - UpdateFirebaseLinkRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateFirebaseLinkRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest instance - */ - UpdateFirebaseLinkRequest.create = function create(properties) { - return new UpdateFirebaseLinkRequest(properties); - }; - - /** - * Encodes the specified UpdateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateFirebaseLinkRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, 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 UpdateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateFirebaseLinkRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateFirebaseLinkRequest.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.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.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 UpdateFirebaseLinkRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateFirebaseLinkRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateFirebaseLinkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + 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 UpdateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} UpdateFirebaseLinkRequest - */ - UpdateFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; - - /** - * Creates a plain object from an UpdateFirebaseLinkRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} message UpdateFirebaseLinkRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateFirebaseLinkRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.firebaseLink = null; - object.updateMask = null; - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; - - /** - * Converts this UpdateFirebaseLinkRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateFirebaseLinkRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateFirebaseLinkRequest; - })(); - v1alpha.DeleteFirebaseLinkRequest = (function() { /** @@ -15444,6 +15620,7 @@ case 10: case 11: case 12: + case 13: break; } } @@ -15562,6 +15739,10 @@ case 12: message.resourceType[i] = 12; break; + case "DATA_RETENTION_SETTINGS": + case 13: + message.resourceType[i] = 13; + break; } } if (object.action) { @@ -18645,25 +18826,24 @@ return ListConversionEventsResponse; })(); - v1alpha.CreateCustomDimensionRequest = (function() { + v1alpha.GetDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of a CreateCustomDimensionRequest. + * Properties of a GetDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomDimensionRequest - * @property {string|null} [parent] CreateCustomDimensionRequest parent - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension + * @interface IGetDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkRequest name */ /** - * Constructs a new CreateCustomDimensionRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomDimensionRequest. - * @implements ICreateCustomDimensionRequest + * @classdesc Represents a GetDisplayVideo360AdvertiserLinkRequest. + * @implements IGetDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function CreateCustomDimensionRequest(properties) { + function GetDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18671,88 +18851,75 @@ } /** - * CreateCustomDimensionRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest - * @instance - */ - CreateCustomDimensionRequest.prototype.parent = ""; - - /** - * CreateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * GetDisplayVideo360AdvertiserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @instance */ - CreateCustomDimensionRequest.prototype.customDimension = null; + GetDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; /** - * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest instance */ - CreateCustomDimensionRequest.create = function create(properties) { - return new CreateCustomDimensionRequest(properties); + GetDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new GetDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encode = function encode(message, writer) { + GetDisplayVideo360AdvertiserLinkRequest.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.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decode = function decode(reader, length) { + GetDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -18763,122 +18930,109 @@ }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + GetDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomDimensionRequest message. + * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomDimensionRequest.verify = function verify(message) { + GetDisplayVideo360AdvertiserLinkRequest.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.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest */ - CreateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + GetDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } + var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomDimensionRequest.toObject = function toObject(message, options) { + GetDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.customDimension = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateCustomDimensionRequest to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { + GetDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateCustomDimensionRequest; + return GetDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.UpdateCustomDimensionRequest = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinksRequest = (function() { /** - * Properties of an UpdateCustomDimensionRequest. + * Properties of a ListDisplayVideo360AdvertiserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomDimensionRequest - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask + * @interface IListDisplayVideo360AdvertiserLinksRequest + * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinksRequest parent + * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinksRequest pageSize + * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinksRequest pageToken */ /** - * Constructs a new UpdateCustomDimensionRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomDimensionRequest. - * @implements IUpdateCustomDimensionRequest + * @classdesc Represents a ListDisplayVideo360AdvertiserLinksRequest. + * @implements IListDisplayVideo360AdvertiserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set */ - function UpdateCustomDimensionRequest(properties) { + function ListDisplayVideo360AdvertiserLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18886,88 +19040,101 @@ } /** - * UpdateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * ListDisplayVideo360AdvertiserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance */ - UpdateCustomDimensionRequest.prototype.customDimension = null; + ListDisplayVideo360AdvertiserLinksRequest.prototype.parent = ""; /** - * UpdateCustomDimensionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * ListDisplayVideo360AdvertiserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance */ - UpdateCustomDimensionRequest.prototype.updateMask = null; + ListDisplayVideo360AdvertiserLinksRequest.prototype.pageSize = 0; /** - * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * ListDisplayVideo360AdvertiserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest instance */ - UpdateCustomDimensionRequest.create = function create(properties) { - return new UpdateCustomDimensionRequest(properties); + ListDisplayVideo360AdvertiserLinksRequest.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinksRequest(properties); }; /** - * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinksRequest.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.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -18978,128 +19145,126 @@ }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCustomDimensionRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCustomDimensionRequest.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest */ - UpdateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + ListDisplayVideo360AdvertiserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); + 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 an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCustomDimensionRequest.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.customDimension = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateCustomDimensionRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance * @returns {Object.} JSON object */ - UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateCustomDimensionRequest; + return ListDisplayVideo360AdvertiserLinksRequest; })(); - v1alpha.ListCustomDimensionsRequest = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinksResponse = (function() { /** - * Properties of a ListCustomDimensionsRequest. + * Properties of a ListDisplayVideo360AdvertiserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsRequest - * @property {string|null} [parent] ListCustomDimensionsRequest parent - * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize - * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken + * @interface IListDisplayVideo360AdvertiserLinksResponse + * @property {Array.|null} [displayVideo_360AdvertiserLinks] ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks + * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinksResponse nextPageToken */ /** - * Constructs a new ListCustomDimensionsRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsRequest. - * @implements IListCustomDimensionsRequest + * @classdesc Represents a ListDisplayVideo360AdvertiserLinksResponse. + * @implements IListDisplayVideo360AdvertiserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set */ - function ListCustomDimensionsRequest(properties) { + function ListDisplayVideo360AdvertiserLinksResponse(properties) { + this.displayVideo_360AdvertiserLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19107,101 +19272,91 @@ } /** - * ListCustomDimensionsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @instance - */ - ListCustomDimensionsRequest.prototype.parent = ""; - - /** - * ListCustomDimensionsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. + * @member {Array.} displayVideo_360AdvertiserLinks + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance */ - ListCustomDimensionsRequest.prototype.pageSize = 0; + ListDisplayVideo360AdvertiserLinksResponse.prototype.displayVideo_360AdvertiserLinks = $util.emptyArray; /** - * ListCustomDimensionsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * ListDisplayVideo360AdvertiserLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance */ - ListCustomDimensionsRequest.prototype.pageToken = ""; + ListDisplayVideo360AdvertiserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse instance */ - ListCustomDimensionsRequest.create = function create(properties) { - return new ListCustomDimensionsRequest(properties); + ListDisplayVideo360AdvertiserLinksResponse.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinksResponse(properties); }; /** - * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsRequest.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinksResponse.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.displayVideo_360AdvertiserLinks != null && message.displayVideo_360AdvertiserLinks.length) + for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLinks[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 ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsRequest.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinksResponse.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.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length)) + message.displayVideo_360AdvertiserLinks = []; + message.displayVideo_360AdvertiserLinks.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19212,126 +19367,134 @@ }; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomDimensionsRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomDimensionsRequest.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinksResponse.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; + if (message.displayVideo_360AdvertiserLinks != null && message.hasOwnProperty("displayVideo_360AdvertiserLinks")) { + if (!Array.isArray(message.displayVideo_360AdvertiserLinks)) + return "displayVideo_360AdvertiserLinks: array expected"; + for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLinks[i]); + if (error) + return "displayVideo_360AdvertiserLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; }; /** - * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse */ - ListCustomDimensionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + ListDisplayVideo360AdvertiserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); + if (object.displayVideo_360AdvertiserLinks) { + if (!Array.isArray(object.displayVideo_360AdvertiserLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: array expected"); + message.displayVideo_360AdvertiserLinks = []; + for (var i = 0; i < object.displayVideo_360AdvertiserLinks.length; ++i) { + if (typeof object.displayVideo_360AdvertiserLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: object expected"); + message.displayVideo_360AdvertiserLinks[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomDimensionsRequest.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.displayVideo_360AdvertiserLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length) { + object.displayVideo_360AdvertiserLinks = []; + for (var j = 0; j < message.displayVideo_360AdvertiserLinks.length; ++j) + object.displayVideo_360AdvertiserLinks[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLinks[j], options); } - 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListCustomDimensionsRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance * @returns {Object.} JSON object */ - ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomDimensionsRequest; + return ListDisplayVideo360AdvertiserLinksResponse; })(); - v1alpha.ListCustomDimensionsResponse = (function() { + v1alpha.CreateDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of a ListCustomDimensionsResponse. + * Properties of a CreateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsResponse - * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions - * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken + * @interface ICreateDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkRequest parent + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ /** - * Constructs a new ListCustomDimensionsResponse. + * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsResponse. - * @implements IListCustomDimensionsResponse + * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkRequest. + * @implements ICreateDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function ListCustomDimensionsResponse(properties) { - this.customDimensions = []; + function CreateDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19339,91 +19502,88 @@ } /** - * ListCustomDimensionsResponse customDimensions. - * @member {Array.} customDimensions - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * CreateDisplayVideo360AdvertiserLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @instance */ - ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; + CreateDisplayVideo360AdvertiserLinkRequest.prototype.parent = ""; /** - * ListCustomDimensionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @instance */ - ListCustomDimensionsResponse.prototype.nextPageToken = ""; + CreateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; /** - * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest instance */ - ListCustomDimensionsResponse.create = function create(properties) { - return new ListCustomDimensionsResponse(properties); + CreateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new CreateDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsResponse.encode = function encode(message, writer) { + CreateDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customDimensions != null && message.customDimensions.length) - for (var i = 0; i < message.customDimensions.length; ++i) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsResponse.decode = function decode(reader, length) { + CreateDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.customDimensions && message.customDimensions.length)) - message.customDimensions = []; - message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -19434,133 +19594,121 @@ }; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomDimensionsResponse message. + * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomDimensionsResponse.verify = function verify(message) { + CreateDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { - if (!Array.isArray(message.customDimensions)) - return "customDimensions: array expected"; - for (var i = 0; i < message.customDimensions.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); - if (error) - return "customDimensions." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest */ - ListCustomDimensionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + CreateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); - if (object.customDimensions) { - if (!Array.isArray(object.customDimensions)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); - message.customDimensions = []; - for (var i = 0; i < object.customDimensions.length; ++i) { - if (typeof object.customDimensions[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); - message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse + * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomDimensionsResponse.toObject = function toObject(message, options) { + CreateDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.customDimensions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customDimensions && message.customDimensions.length) { - object.customDimensions = []; - for (var j = 0; j < message.customDimensions.length; ++j) - object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); + if (options.defaults) { + object.parent = ""; + object.displayVideo_360AdvertiserLink = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); return object; }; /** - * Converts this ListCustomDimensionsResponse to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { + CreateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomDimensionsResponse; + return CreateDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.ArchiveCustomDimensionRequest = (function() { + v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of an ArchiveCustomDimensionRequest. + * Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomDimensionRequest - * @property {string|null} [name] ArchiveCustomDimensionRequest name + * @interface IDeleteDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkRequest name */ /** - * Constructs a new ArchiveCustomDimensionRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomDimensionRequest. - * @implements IArchiveCustomDimensionRequest + * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkRequest. + * @implements IDeleteDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function ArchiveCustomDimensionRequest(properties) { + function DeleteDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19568,35 +19716,35 @@ } /** - * ArchiveCustomDimensionRequest name. + * DeleteDisplayVideo360AdvertiserLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @instance */ - ArchiveCustomDimensionRequest.prototype.name = ""; + DeleteDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; /** - * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest instance */ - ArchiveCustomDimensionRequest.create = function create(properties) { - return new ArchiveCustomDimensionRequest(properties); + DeleteDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new DeleteDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomDimensionRequest.encode = function encode(message, writer) { + DeleteDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -19605,33 +19753,33 @@ }; /** - * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomDimensionRequest.decode = function decode(reader, length) { + DeleteDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19647,30 +19795,30 @@ }; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ArchiveCustomDimensionRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArchiveCustomDimensionRequest.verify = function verify(message) { + DeleteDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -19680,32 +19828,32 @@ }; /** - * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest */ - ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + DeleteDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ArchiveCustomDimensionRequest.toObject = function toObject(message, options) { + DeleteDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19717,37 +19865,38 @@ }; /** - * Converts this ArchiveCustomDimensionRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { + DeleteDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ArchiveCustomDimensionRequest; + return DeleteDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.GetCustomDimensionRequest = (function() { + v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of a GetCustomDimensionRequest. + * Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomDimensionRequest - * @property {string|null} [name] GetCustomDimensionRequest name + * @interface IUpdateDisplayVideo360AdvertiserLinkRequest + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDisplayVideo360AdvertiserLinkRequest updateMask */ /** - * Constructs a new GetCustomDimensionRequest. + * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomDimensionRequest. - * @implements IGetCustomDimensionRequest + * @classdesc Represents an UpdateDisplayVideo360AdvertiserLinkRequest. + * @implements IUpdateDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function GetCustomDimensionRequest(properties) { + function UpdateDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19755,78 +19904,91 @@ } /** - * GetCustomDimensionRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @instance */ - GetCustomDimensionRequest.prototype.name = ""; + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; /** - * Creates a new GetCustomDimensionRequest instance using the specified properties. + * UpdateDisplayVideo360AdvertiserLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @instance + */ + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest instance */ - GetCustomDimensionRequest.create = function create(properties) { - return new GetCustomDimensionRequest(properties); + UpdateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new UpdateDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomDimensionRequest.encode = function encode(message, writer) { + UpdateDisplayVideo360AdvertiserLinkRequest.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.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, 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 GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomDimensionRequest.decode = function decode(reader, length) { + UpdateDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.GetCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); break; - default: - reader.skipType(tag & 7); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); break; } } @@ -19834,108 +19996,126 @@ }; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomDimensionRequest message. + * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomDimensionRequest.verify = function verify(message) { + UpdateDisplayVideo360AdvertiserLinkRequest.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.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + 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 a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest */ - GetCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) + UpdateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomDimensionRequest.toObject = function toObject(message, options) { + UpdateDisplayVideo360AdvertiserLinkRequest.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 (options.defaults) { + object.displayVideo_360AdvertiserLink = null; + object.updateMask = null; + } + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetCustomDimensionRequest to JSON. + * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - GetCustomDimensionRequest.prototype.toJSON = function toJSON() { + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCustomDimensionRequest; + return UpdateDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.CreateCustomMetricRequest = (function() { + v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of a CreateCustomMetricRequest. + * Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomMetricRequest - * @property {string|null} [parent] CreateCustomMetricRequest parent - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric + * @interface IGetDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new CreateCustomMetricRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomMetricRequest. - * @implements ICreateCustomMetricRequest + * @classdesc Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IGetDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function CreateCustomMetricRequest(properties) { + function GetDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19943,88 +20123,75 @@ } /** - * CreateCustomMetricRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @instance - */ - CreateCustomMetricRequest.prototype.parent = ""; - - /** - * CreateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * GetDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - CreateCustomMetricRequest.prototype.customMetric = null; + GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new CreateCustomMetricRequest instance using the specified properties. + * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest instance */ - CreateCustomMetricRequest.create = function create(properties) { - return new CreateCustomMetricRequest(properties); + GetDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new GetDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomMetricRequest.encode = function encode(message, writer) { + GetDisplayVideo360AdvertiserLinkProposalRequest.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.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomMetricRequest.decode = function decode(reader, length) { + GetDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.CreateCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -20035,122 +20202,109 @@ }; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + GetDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomMetricRequest message. + * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomMetricRequest.verify = function verify(message) { + GetDisplayVideo360AdvertiserLinkProposalRequest.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.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest */ - CreateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) + GetDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } + var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest + * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomMetricRequest.toObject = function toObject(message, options) { + GetDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.customMetric = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateCustomMetricRequest to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - CreateCustomMetricRequest.prototype.toJSON = function toJSON() { + GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateCustomMetricRequest; + return GetDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.UpdateCustomMetricRequest = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest = (function() { /** - * Properties of an UpdateCustomMetricRequest. + * Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomMetricRequest - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask + * @interface IListDisplayVideo360AdvertiserLinkProposalsRequest + * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinkProposalsRequest parent + * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize + * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken */ /** - * Constructs a new UpdateCustomMetricRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomMetricRequest. - * @implements IUpdateCustomMetricRequest + * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. + * @implements IListDisplayVideo360AdvertiserLinkProposalsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set */ - function UpdateCustomMetricRequest(properties) { + function ListDisplayVideo360AdvertiserLinkProposalsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20158,88 +20312,101 @@ } /** - * UpdateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * ListDisplayVideo360AdvertiserLinkProposalsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @instance */ - UpdateCustomMetricRequest.prototype.customMetric = null; + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.parent = ""; /** - * UpdateCustomMetricRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @instance */ - UpdateCustomMetricRequest.prototype.updateMask = null; + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageSize = 0; /** - * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest instance */ - UpdateCustomMetricRequest.create = function create(properties) { - return new UpdateCustomMetricRequest(properties); + ListDisplayVideo360AdvertiserLinkProposalsRequest.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinkProposalsRequest(properties); }; /** - * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomMetricRequest.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomMetricRequest.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.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.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20250,128 +20417,126 @@ }; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCustomMetricRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCustomMetricRequest.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest */ - UpdateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + ListDisplayVideo360AdvertiserLinkProposalsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); + 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 an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCustomMetricRequest.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.customMetric = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateCustomMetricRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @instance * @returns {Object.} JSON object */ - UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateCustomMetricRequest; + return ListDisplayVideo360AdvertiserLinkProposalsRequest; })(); - v1alpha.ListCustomMetricsRequest = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse = (function() { /** - * Properties of a ListCustomMetricsRequest. + * Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsRequest - * @property {string|null} [parent] ListCustomMetricsRequest parent - * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize - * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken + * @interface IListDisplayVideo360AdvertiserLinkProposalsResponse + * @property {Array.|null} [displayVideo_360AdvertiserLinkProposals] ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals + * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken */ /** - * Constructs a new ListCustomMetricsRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsRequest. - * @implements IListCustomMetricsRequest + * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. + * @implements IListDisplayVideo360AdvertiserLinkProposalsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set */ - function ListCustomMetricsRequest(properties) { + function ListDisplayVideo360AdvertiserLinkProposalsResponse(properties) { + this.displayVideo_360AdvertiserLinkProposals = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20379,101 +20544,91 @@ } /** - * ListCustomMetricsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @instance - */ - ListCustomMetricsRequest.prototype.parent = ""; - - /** - * ListCustomMetricsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. + * @member {Array.} displayVideo_360AdvertiserLinkProposals + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @instance */ - ListCustomMetricsRequest.prototype.pageSize = 0; + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.displayVideo_360AdvertiserLinkProposals = $util.emptyArray; /** - * ListCustomMetricsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @instance */ - ListCustomMetricsRequest.prototype.pageToken = ""; + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomMetricsRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse instance */ - ListCustomMetricsRequest.create = function create(properties) { - return new ListCustomMetricsRequest(properties); + ListDisplayVideo360AdvertiserLinkProposalsResponse.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinkProposalsResponse(properties); }; /** - * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsRequest.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.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.displayVideo_360AdvertiserLinkProposals != null && message.displayVideo_360AdvertiserLinkProposals.length) + for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposals[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 ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsRequest.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.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.analytics.admin.v1alpha.ListCustomMetricsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length)) + message.displayVideo_360AdvertiserLinkProposals = []; + message.displayVideo_360AdvertiserLinkProposals.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20484,126 +20639,134 @@ }; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomMetricsRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomMetricsRequest.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.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.displayVideo_360AdvertiserLinkProposals != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposals")) { + if (!Array.isArray(message.displayVideo_360AdvertiserLinkProposals)) + return "displayVideo_360AdvertiserLinkProposals: array expected"; + for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposals[i]); + if (error) + return "displayVideo_360AdvertiserLinkProposals." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse */ - ListCustomMetricsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) + ListDisplayVideo360AdvertiserLinkProposalsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + if (object.displayVideo_360AdvertiserLinkProposals) { + if (!Array.isArray(object.displayVideo_360AdvertiserLinkProposals)) + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: array expected"); + message.displayVideo_360AdvertiserLinkProposals = []; + for (var i = 0; i < object.displayVideo_360AdvertiserLinkProposals.length; ++i) { + if (typeof object.displayVideo_360AdvertiserLinkProposals[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: object expected"); + message.displayVideo_360AdvertiserLinkProposals[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposals[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomMetricsRequest.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.displayVideo_360AdvertiserLinkProposals = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length) { + object.displayVideo_360AdvertiserLinkProposals = []; + for (var j = 0; j < message.displayVideo_360AdvertiserLinkProposals.length; ++j) + object.displayVideo_360AdvertiserLinkProposals[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposals[j], options); } - 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListCustomMetricsRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @instance * @returns {Object.} JSON object */ - ListCustomMetricsRequest.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomMetricsRequest; + return ListDisplayVideo360AdvertiserLinkProposalsResponse; })(); - v1alpha.ListCustomMetricsResponse = (function() { + v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of a ListCustomMetricsResponse. + * Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsResponse - * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics - * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken + * @interface ICreateDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkProposalRequest parent + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal */ /** - * Constructs a new ListCustomMetricsResponse. + * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsResponse. - * @implements IListCustomMetricsResponse + * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. + * @implements ICreateDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function ListCustomMetricsResponse(properties) { - this.customMetrics = []; + function CreateDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20611,91 +20774,88 @@ } /** - * ListCustomMetricsResponse customMetrics. - * @member {Array.} customMetrics - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * CreateDisplayVideo360AdvertiserLinkProposalRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.parent = ""; /** - * ListCustomMetricsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - ListCustomMetricsResponse.prototype.nextPageToken = ""; + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.displayVideo_360AdvertiserLinkProposal = null; /** - * Creates a new ListCustomMetricsResponse instance using the specified properties. + * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest instance */ - ListCustomMetricsResponse.create = function create(properties) { - return new ListCustomMetricsResponse(properties); + CreateDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new CreateDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsResponse.encode = function encode(message, writer) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customMetrics != null && message.customMetrics.length) - for (var i = 0; i < message.customMetrics.length; ++i) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsResponse.decode = function decode(reader, length) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.ListCustomMetricsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.customMetrics && message.customMetrics.length)) - message.customMetrics = []; - message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20706,133 +20866,121 @@ }; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomMetricsResponse message. + * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomMetricsResponse.verify = function verify(message) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { - if (!Array.isArray(message.customMetrics)) - return "customMetrics: array expected"; - for (var i = 0; i < message.customMetrics.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); - if (error) - return "customMetrics." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); + if (error) + return "displayVideo_360AdvertiserLinkProposal." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest */ - ListCustomMetricsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) + CreateDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); - if (object.customMetrics) { - if (!Array.isArray(object.customMetrics)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); - message.customMetrics = []; - for (var i = 0; i < object.customMetrics.length; ++i) { - if (typeof object.customMetrics[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); - message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayVideo_360AdvertiserLinkProposal != null) { + if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.displayVideo_360AdvertiserLinkProposal: object expected"); + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse + * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomMetricsResponse.toObject = function toObject(message, options) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.customMetrics = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customMetrics && message.customMetrics.length) { - object.customMetrics = []; - for (var j = 0; j < message.customMetrics.length; ++j) - object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); + if (options.defaults) { + object.parent = ""; + object.displayVideo_360AdvertiserLinkProposal = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) + object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); return object; }; /** - * Converts this ListCustomMetricsResponse to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - ListCustomMetricsResponse.prototype.toJSON = function toJSON() { + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomMetricsResponse; + return CreateDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.ArchiveCustomMetricRequest = (function() { + v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of an ArchiveCustomMetricRequest. + * Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomMetricRequest - * @property {string|null} [name] ArchiveCustomMetricRequest name + * @interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new ArchiveCustomMetricRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomMetricRequest. - * @implements IArchiveCustomMetricRequest + * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function ArchiveCustomMetricRequest(properties) { + function DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20840,35 +20988,35 @@ } /** - * ArchiveCustomMetricRequest name. + * DeleteDisplayVideo360AdvertiserLinkProposalRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - ArchiveCustomMetricRequest.prototype.name = ""; + DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest instance */ - ArchiveCustomMetricRequest.create = function create(properties) { - return new ArchiveCustomMetricRequest(properties); + DeleteDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomMetricRequest.encode = function encode(message, writer) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -20877,33 +21025,33 @@ }; /** - * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomMetricRequest.decode = function decode(reader, length) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20919,30 +21067,30 @@ }; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ArchiveCustomMetricRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArchiveCustomMetricRequest.verify = function verify(message) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -20952,32 +21100,32 @@ }; /** - * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest */ - ArchiveCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + DeleteDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest + * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ArchiveCustomMetricRequest.toObject = function toObject(message, options) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20989,37 +21137,37 @@ }; /** - * Converts this ArchiveCustomMetricRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ArchiveCustomMetricRequest; + return DeleteDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.GetCustomMetricRequest = (function() { + v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of a GetCustomMetricRequest. + * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomMetricRequest - * @property {string|null} [name] GetCustomMetricRequest name + * @interface IApproveDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] ApproveDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new GetCustomMetricRequest. + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomMetricRequest. - * @implements IGetCustomMetricRequest + * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IApproveDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function GetCustomMetricRequest(properties) { + function ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21027,35 +21175,35 @@ } /** - * GetCustomMetricRequest name. + * ApproveDisplayVideo360AdvertiserLinkProposalRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - GetCustomMetricRequest.prototype.name = ""; + ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new GetCustomMetricRequest instance using the specified properties. + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest instance */ - GetCustomMetricRequest.create = function create(properties) { - return new GetCustomMetricRequest(properties); + ApproveDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomMetricRequest.encode = function encode(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -21064,33 +21212,33 @@ }; /** - * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomMetricRequest.decode = function decode(reader, length) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.GetCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21106,30 +21254,30 @@ }; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomMetricRequest message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomMetricRequest.verify = function verify(message) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -21139,32 +21287,32 @@ }; /** - * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest */ - GetCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) + ApproveDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomMetricRequest.toObject = function toObject(message, options) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21176,371 +21324,113 @@ }; /** - * Converts this GetCustomMetricRequest to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - GetCustomMetricRequest.prototype.toJSON = function toJSON() { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCustomMetricRequest; + return ApproveDisplayVideo360AdvertiserLinkProposalRequest; })(); - /** - * MaximumUserAccess enum. - * @name google.analytics.admin.v1alpha.MaximumUserAccess - * @enum {number} - * @property {number} MAXIMUM_USER_ACCESS_UNSPECIFIED=0 MAXIMUM_USER_ACCESS_UNSPECIFIED value - * @property {number} NO_ACCESS=1 NO_ACCESS value - * @property {number} READ_AND_ANALYZE=2 READ_AND_ANALYZE value - * @property {number} EDITOR_WITHOUT_LINK_MANAGEMENT=3 EDITOR_WITHOUT_LINK_MANAGEMENT value - * @property {number} EDITOR_INCLUDING_LINK_MANAGEMENT=4 EDITOR_INCLUDING_LINK_MANAGEMENT value - */ - v1alpha.MaximumUserAccess = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MAXIMUM_USER_ACCESS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NO_ACCESS"] = 1; - values[valuesById[2] = "READ_AND_ANALYZE"] = 2; - values[valuesById[3] = "EDITOR_WITHOUT_LINK_MANAGEMENT"] = 3; - values[valuesById[4] = "EDITOR_INCLUDING_LINK_MANAGEMENT"] = 4; - return values; - })(); + v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse = (function() { - /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory - * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); + /** + * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IApproveDisplayVideo360AdvertiserLinkProposalResponse + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink + */ - /** - * ActorType enum. - * @name google.analytics.admin.v1alpha.ActorType - * @enum {number} - * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value - * @property {number} SUPPORT=3 SUPPORT value - */ - v1alpha.ActorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - values[valuesById[3] = "SUPPORT"] = 3; - return values; - })(); + /** + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @implements IApproveDisplayVideo360AdvertiserLinkProposalResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set + */ + function ApproveDisplayVideo360AdvertiserLinkProposalResponse(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]]; + } - /** - * ActionType enum. - * @name google.analytics.admin.v1alpha.ActionType - * @enum {number} - * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value - * @property {number} CREATED=1 CREATED value - * @property {number} UPDATED=2 UPDATED value - * @property {number} DELETED=3 DELETED value - */ - v1alpha.ActionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATED"] = 1; - values[valuesById[2] = "UPDATED"] = 2; - values[valuesById[3] = "DELETED"] = 3; - return values; - })(); - - /** - * ChangeHistoryResourceType enum. - * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType - * @enum {number} - * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value - * @property {number} ACCOUNT=1 ACCOUNT value - * @property {number} PROPERTY=2 PROPERTY value - * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value - * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value - * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value - * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value - * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value - * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value - * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value - * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value - * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value - * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value - */ - v1alpha.ChangeHistoryResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACCOUNT"] = 1; - values[valuesById[2] = "PROPERTY"] = 2; - values[valuesById[3] = "WEB_DATA_STREAM"] = 3; - values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; - values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; - values[valuesById[6] = "FIREBASE_LINK"] = 6; - values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; - values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; - values[valuesById[9] = "CONVERSION_EVENT"] = 9; - values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; - values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; - values[valuesById[12] = "CUSTOM_METRIC"] = 12; - return values; - })(); - - /** - * GoogleSignalsState enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsState - * @enum {number} - * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value - * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value - */ - v1alpha.GoogleSignalsState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; - values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; - return values; - })(); - - /** - * GoogleSignalsConsent enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsConsent - * @enum {number} - * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value - * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value - */ - v1alpha.GoogleSignalsConsent = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; - values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; - values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; - return values; - })(); - - v1alpha.Account = (function() { - - /** - * Properties of an Account. - * @memberof google.analytics.admin.v1alpha - * @interface IAccount - * @property {string|null} [name] Account name - * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime - * @property {string|null} [displayName] Account displayName - * @property {string|null} [regionCode] Account regionCode - * @property {boolean|null} [deleted] Account deleted - */ - - /** - * Constructs a new Account. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Account. - * @implements IAccount - * @constructor - * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.name = ""; - - /** - * Account createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.createTime = null; - - /** - * Account updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.updateTime = null; - - /** - * Account displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.displayName = ""; - - /** - * Account regionCode. - * @member {string} regionCode - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.regionCode = ""; - - /** - * Account deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.deleted = false; + /** + * ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @instance + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.displayVideo_360AdvertiserLink = null; /** - * Creates a new Account instance using the specified properties. + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Account} Account instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse instance */ - Account.create = function create(properties) { - return new Account(properties); + ApproveDisplayVideo360AdvertiserLinkProposalResponse.create = function create(properties) { + return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties); }; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encode = function encode(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encodeDelimited = function encodeDelimited(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse * @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) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.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.analytics.admin.v1alpha.Account(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.displayName = reader.string(); - break; - case 5: - message.regionCode = reader.string(); - break; - case 6: - message.deleted = reader.bool(); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21551,167 +21441,112 @@ }; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse * @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) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Account message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @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) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + return "displayVideo_360AdvertiserLink." + error; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - if (!$util.isString(message.regionCode)) - return "regionCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; return null; }; /** - * Creates an Account message from a plain object. Also converts values to their respective internal types. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse */ - Account.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Account) + ApproveDisplayVideo360AdvertiserLinkProposalResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.Account(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.regionCode != null) - message.regionCode = String(object.regionCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); return message; }; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.Account} message Account + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Account.toObject = function toObject(message, options) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.regionCode = ""; - object.deleted = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - object.regionCode = message.regionCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; + if (options.defaults) + object.displayVideo_360AdvertiserLink = null; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); return object; }; /** - * Converts this Account to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @instance * @returns {Object.} JSON object */ - Account.prototype.toJSON = function toJSON() { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Account; + return ApproveDisplayVideo360AdvertiserLinkProposalResponse; })(); - v1alpha.Property = (function() { + v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of a Property. + * Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IProperty - * @property {string|null} [name] Property name - * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime - * @property {string|null} [parent] Property parent - * @property {string|null} [displayName] Property displayName - * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory - * @property {string|null} [timeZone] Property timeZone - * @property {string|null} [currencyCode] Property currencyCode - * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime - * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + * @interface ICancelDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] CancelDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new Property. + * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a Property. - * @implements IProperty + * @classdesc Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. + * @implements ICancelDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function Property(properties) { + function CancelDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21719,193 +21554,76 @@ } /** - * Property name. + * CancelDisplayVideo360AdvertiserLinkProposalRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.name = ""; - - /** - * Property createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.createTime = null; - - /** - * Property updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.updateTime = null; - - /** - * Property parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.parent = ""; - - /** - * Property displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.displayName = ""; - - /** - * Property industryCategory. - * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.industryCategory = 0; - - /** - * Property timeZone. - * @member {string} timeZone - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.timeZone = ""; - - /** - * Property currencyCode. - * @member {string} currencyCode - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.currencyCode = ""; - - /** - * Property deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.deleteTime = null; - - /** - * Property expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - Property.prototype.expireTime = null; + CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new Property instance using the specified properties. + * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Property} Property instance + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest instance */ - Property.create = function create(properties) { - return new Property(properties); + CancelDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new CancelDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encode = function encode(message, writer) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); - if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); - if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encodeDelimited = function encodeDelimited(message, writer) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decode = function decode(reader, length) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.Property(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; - case 5: - message.displayName = reader.string(); - break; - case 6: - message.industryCategory = reader.int32(); - break; - case 7: - message.timeZone = reader.string(); - break; - case 8: - message.currencyCode = reader.string(); - break; - case 11: - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -21915,343 +21633,108 @@ }; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decodeDelimited = function decodeDelimited(reader) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Property message. + * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Property.verify = function verify(message) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - switch (message.industryCategory) { - default: - return "industryCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - break; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - if (!$util.isString(message.currencyCode)) - return "currencyCode: string expected"; - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); - if (error) - return "deleteTime." + error; - } - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } return null; }; /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest */ - Property.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Property) + CancelDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.Property(); + var message = new $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); if (object.name != null) message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.industryCategory) { - case "INDUSTRY_CATEGORY_UNSPECIFIED": - case 0: - message.industryCategory = 0; - break; - case "AUTOMOTIVE": - case 1: - message.industryCategory = 1; - break; - case "BUSINESS_AND_INDUSTRIAL_MARKETS": - case 2: - message.industryCategory = 2; - break; - case "FINANCE": - case 3: - message.industryCategory = 3; - break; - case "HEALTHCARE": - case 4: - message.industryCategory = 4; - break; - case "TECHNOLOGY": - case 5: - message.industryCategory = 5; - break; - case "TRAVEL": - case 6: - message.industryCategory = 6; - break; - case "OTHER": - case 7: - message.industryCategory = 7; - break; - case "ARTS_AND_ENTERTAINMENT": - case 8: - message.industryCategory = 8; - break; - case "BEAUTY_AND_FITNESS": - case 9: - message.industryCategory = 9; - break; - case "BOOKS_AND_LITERATURE": - case 10: - message.industryCategory = 10; - break; - case "FOOD_AND_DRINK": - case 11: - message.industryCategory = 11; - break; - case "GAMES": - case 12: - message.industryCategory = 12; - break; - case "HOBBIES_AND_LEISURE": - case 13: - message.industryCategory = 13; - break; - case "HOME_AND_GARDEN": - case 14: - message.industryCategory = 14; - break; - case "INTERNET_AND_TELECOM": - case 15: - message.industryCategory = 15; - break; - case "LAW_AND_GOVERNMENT": - case 16: - message.industryCategory = 16; - break; - case "NEWS": - case 17: - message.industryCategory = 17; - break; - case "ONLINE_COMMUNITIES": - case 18: - message.industryCategory = 18; - break; - case "PEOPLE_AND_SOCIETY": - case 19: - message.industryCategory = 19; - break; - case "PETS_AND_ANIMALS": - case 20: - message.industryCategory = 20; - break; - case "REAL_ESTATE": - case 21: - message.industryCategory = 21; - break; - case "REFERENCE": - case 22: - message.industryCategory = 22; - break; - case "SCIENCE": - case 23: - message.industryCategory = 23; - break; - case "SPORTS": - case 24: - message.industryCategory = 24; - break; - case "JOBS_AND_EDUCATION": - case 25: - message.industryCategory = 25; - break; - case "SHOPPING": - case 26: - message.industryCategory = 26; - break; - } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.currencyCode != null) - message.currencyCode = String(object.currencyCode); - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); - } - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); - } return message; }; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. + * Creates a plain object from a CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Property.toObject = function toObject(message, options) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.parent = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; - object.timeZone = ""; - object.currencyCode = ""; - object.deleteTime = null; - object.expireTime = null; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - object.currencyCode = message.currencyCode; - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); return object; }; /** - * Converts this Property to JSON. + * Converts this CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - Property.prototype.toJSON = function toJSON() { + CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Property; + return CancelDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.AndroidAppDataStream = (function() { + v1alpha.CreateCustomDimensionRequest = (function() { /** - * Properties of an AndroidAppDataStream. + * Properties of a CreateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAndroidAppDataStream - * @property {string|null} [name] AndroidAppDataStream name - * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime - * @property {string|null} [packageName] AndroidAppDataStream packageName - * @property {string|null} [displayName] AndroidAppDataStream displayName + * @interface ICreateCustomDimensionRequest + * @property {string|null} [parent] CreateCustomDimensionRequest parent + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension */ /** - * Constructs a new AndroidAppDataStream. + * Constructs a new CreateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AndroidAppDataStream. - * @implements IAndroidAppDataStream + * @classdesc Represents a CreateCustomDimensionRequest. + * @implements ICreateCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set */ - function AndroidAppDataStream(properties) { + function CreateCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22259,140 +21742,88 @@ } /** - * AndroidAppDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.name = ""; - - /** - * AndroidAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.firebaseAppId = ""; - - /** - * AndroidAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.createTime = null; - - /** - * AndroidAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.updateTime = null; - - /** - * AndroidAppDataStream packageName. - * @member {string} packageName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * CreateCustomDimensionRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance */ - AndroidAppDataStream.prototype.packageName = ""; + CreateCustomDimensionRequest.prototype.parent = ""; /** - * AndroidAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * CreateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance */ - AndroidAppDataStream.prototype.displayName = ""; + CreateCustomDimensionRequest.prototype.customDimension = null; /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new CreateCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance */ - AndroidAppDataStream.create = function create(properties) { - return new AndroidAppDataStream(properties); + CreateCustomDimensionRequest.create = function create(properties) { + return new CreateCustomDimensionRequest(properties); }; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encode = function encode(message, writer) { + CreateCustomDimensionRequest.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); - return writer; - }; + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decode = function decode(reader, length) { + CreateCustomDimensionRequest.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.analytics.admin.v1alpha.AndroidAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.packageName = reader.string(); - break; - case 6: - message.displayName = reader.string(); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22403,163 +21834,122 @@ }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AndroidAppDataStream message. + * Verifies a CreateCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AndroidAppDataStream.verify = function verify(message) { + CreateCustomDimensionRequest.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); if (error) - return "updateTime." + error; + return "customDimension." + error; } - if (message.packageName != null && message.hasOwnProperty("packageName")) - if (!$util.isString(message.packageName)) - return "packageName: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest */ - AndroidAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + CreateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); } - if (object.packageName != null) - message.packageName = String(object.packageName); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AndroidAppDataStream.toObject = function toObject(message, options) { + CreateCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.packageName = ""; - object.displayName = ""; + object.parent = ""; + object.customDimension = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.packageName != null && message.hasOwnProperty("packageName")) - object.packageName = message.packageName; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); return object; }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this CreateCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - AndroidAppDataStream.prototype.toJSON = function toJSON() { + CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AndroidAppDataStream; + return CreateCustomDimensionRequest; })(); - v1alpha.IosAppDataStream = (function() { + v1alpha.UpdateCustomDimensionRequest = (function() { /** - * Properties of an IosAppDataStream. + * Properties of an UpdateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IIosAppDataStream - * @property {string|null} [name] IosAppDataStream name - * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime - * @property {string|null} [bundleId] IosAppDataStream bundleId - * @property {string|null} [displayName] IosAppDataStream displayName + * @interface IUpdateCustomDimensionRequest + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask */ /** - * Constructs a new IosAppDataStream. + * Constructs a new UpdateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an IosAppDataStream. - * @implements IIosAppDataStream + * @classdesc Represents an UpdateCustomDimensionRequest. + * @implements IUpdateCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set */ - function IosAppDataStream(properties) { + function UpdateCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22567,140 +21957,88 @@ } /** - * IosAppDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.name = ""; - - /** - * IosAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.firebaseAppId = ""; - - /** - * IosAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.createTime = null; - - /** - * IosAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.updateTime = null; - - /** - * IosAppDataStream bundleId. - * @member {string} bundleId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * UpdateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance */ - IosAppDataStream.prototype.bundleId = ""; + UpdateCustomDimensionRequest.prototype.customDimension = null; /** - * IosAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * UpdateCustomDimensionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance */ - IosAppDataStream.prototype.displayName = ""; + UpdateCustomDimensionRequest.prototype.updateMask = null; /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance */ - IosAppDataStream.create = function create(properties) { - return new IosAppDataStream(properties); + UpdateCustomDimensionRequest.create = function create(properties) { + return new UpdateCustomDimensionRequest(properties); }; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encode = function encode(message, writer) { + UpdateCustomDimensionRequest.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, 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 IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decode = function decode(reader, length) { + UpdateCustomDimensionRequest.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.analytics.admin.v1alpha.IosAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); break; case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.bundleId = reader.string(); - break; - case 6: - message.displayName = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22711,164 +22049,128 @@ }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IosAppDataStream message. + * Verifies an UpdateCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IosAppDataStream.verify = function verify(message) { + UpdateCustomDimensionRequest.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); if (error) - return "createTime." + error; + return "customDimension." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "updateTime." + error; + return "updateMask." + error; } - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - if (!$util.isString(message.bundleId)) - return "bundleId: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest */ - IosAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + UpdateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.bundleId != null) - message.bundleId = String(object.bundleId); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IosAppDataStream.toObject = function toObject(message, options) { + UpdateCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.bundleId = ""; - object.displayName = ""; + object.customDimension = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - object.bundleId = message.bundleId; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this IosAppDataStream to JSON. + * Converts this UpdateCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - IosAppDataStream.prototype.toJSON = function toJSON() { + UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IosAppDataStream; + return UpdateCustomDimensionRequest; })(); - v1alpha.WebDataStream = (function() { + v1alpha.ListCustomDimensionsRequest = (function() { /** - * Properties of a WebDataStream. + * Properties of a ListCustomDimensionsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IWebDataStream - * @property {string|null} [name] WebDataStream name - * @property {string|null} [measurementId] WebDataStream measurementId - * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime - * @property {string|null} [defaultUri] WebDataStream defaultUri - * @property {string|null} [displayName] WebDataStream displayName + * @interface IListCustomDimensionsRequest + * @property {string|null} [parent] ListCustomDimensionsRequest parent + * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize + * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken */ /** - * Constructs a new WebDataStream. + * Constructs a new ListCustomDimensionsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a WebDataStream. - * @implements IWebDataStream + * @classdesc Represents a ListCustomDimensionsRequest. + * @implements IListCustomDimensionsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set */ - function WebDataStream(properties) { + function ListCustomDimensionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22876,153 +22178,101 @@ } /** - * WebDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.name = ""; - - /** - * WebDataStream measurementId. - * @member {string} measurementId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.measurementId = ""; - - /** - * WebDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.firebaseAppId = ""; - - /** - * WebDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.createTime = null; - - /** - * WebDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.WebDataStream + * ListCustomDimensionsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance */ - WebDataStream.prototype.updateTime = null; + ListCustomDimensionsRequest.prototype.parent = ""; /** - * WebDataStream defaultUri. - * @member {string} defaultUri - * @memberof google.analytics.admin.v1alpha.WebDataStream + * ListCustomDimensionsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance */ - WebDataStream.prototype.defaultUri = ""; + ListCustomDimensionsRequest.prototype.pageSize = 0; /** - * WebDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.WebDataStream + * ListCustomDimensionsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance */ - WebDataStream.prototype.displayName = ""; + ListCustomDimensionsRequest.prototype.pageToken = ""; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new ListCustomDimensionsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance */ - WebDataStream.create = function create(properties) { - return new WebDataStream(properties); + ListCustomDimensionsRequest.create = function create(properties) { + return new ListCustomDimensionsRequest(properties); }; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encode = function encode(message, writer) { + ListCustomDimensionsRequest.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + 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 WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decode = function decode(reader, length) { + ListCustomDimensionsRequest.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.analytics.admin.v1alpha.WebDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.measurementId = reader.string(); + message.pageSize = reader.int32(); break; case 3: - message.firebaseAppId = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.defaultUri = reader.string(); - break; - case 7: - message.displayName = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -23033,169 +22283,126 @@ }; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decodeDelimited = function decodeDelimited(reader) { + ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebDataStream message. + * Verifies a ListCustomDimensionsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebDataStream.verify = function verify(message) { + ListCustomDimensionsRequest.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.measurementId != null && message.hasOwnProperty("measurementId")) - if (!$util.isString(message.measurementId)) - return "measurementId: string expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - if (!$util.isString(message.defaultUri)) - return "defaultUri: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string 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 WebDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest */ - WebDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + ListCustomDimensionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.measurementId != null) - message.measurementId = String(object.measurementId); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.defaultUri != null) - message.defaultUri = String(object.defaultUri); - if (object.displayName != null) - message.displayName = String(object.displayName); + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + 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 WebDataStream message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebDataStream.toObject = function toObject(message, options) { + ListCustomDimensionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.measurementId = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.defaultUri = ""; - object.displayName = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - object.measurementId = message.measurementId; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - object.defaultUri = message.defaultUri; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + 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 WebDataStream to JSON. + * Converts this ListCustomDimensionsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance * @returns {Object.} JSON object */ - WebDataStream.prototype.toJSON = function toJSON() { + ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WebDataStream; + return ListCustomDimensionsRequest; })(); - v1alpha.UserLink = (function() { + v1alpha.ListCustomDimensionsResponse = (function() { /** - * Properties of a UserLink. + * Properties of a ListCustomDimensionsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IUserLink - * @property {string|null} [name] UserLink name - * @property {string|null} [emailAddress] UserLink emailAddress - * @property {Array.|null} [directRoles] UserLink directRoles + * @interface IListCustomDimensionsResponse + * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions + * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken */ /** - * Constructs a new UserLink. + * Constructs a new ListCustomDimensionsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a UserLink. - * @implements IUserLink + * @classdesc Represents a ListCustomDimensionsResponse. + * @implements IListCustomDimensionsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set */ - function UserLink(properties) { - this.directRoles = []; + function ListCustomDimensionsResponse(properties) { + this.customDimensions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23203,104 +22410,91 @@ } /** - * UserLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.UserLink - * @instance - */ - UserLink.prototype.name = ""; - - /** - * UserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.UserLink + * ListCustomDimensionsResponse customDimensions. + * @member {Array.} customDimensions + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance */ - UserLink.prototype.emailAddress = ""; + ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; /** - * UserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.UserLink + * ListCustomDimensionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance */ - UserLink.prototype.directRoles = $util.emptyArray; + ListCustomDimensionsResponse.prototype.nextPageToken = ""; /** - * Creates a new UserLink instance using the specified properties. + * Creates a new ListCustomDimensionsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance */ - UserLink.create = function create(properties) { - return new UserLink(properties); + ListCustomDimensionsResponse.create = function create(properties) { + return new ListCustomDimensionsResponse(properties); }; /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encode = function encode(message, writer) { + ListCustomDimensionsResponse.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.customDimensions != null && message.customDimensions.length) + for (var i = 0; i < message.customDimensions.length; ++i) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[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 UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decode = function decode(reader, length) { + ListCustomDimensionsResponse.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.analytics.admin.v1alpha.UserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); break; case 2: - message.emailAddress = reader.string(); - break; - case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -23311,142 +22505,133 @@ }; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decodeDelimited = function decodeDelimited(reader) { + ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserLink message. + * Verifies a ListCustomDimensionsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserLink.verify = function verify(message) { + ListCustomDimensionsResponse.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.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; + if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { + if (!Array.isArray(message.customDimensions)) + return "customDimensions: array expected"; + for (var i = 0; i < message.customDimensions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); + if (error) + return "customDimensions." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse */ - UserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + ListCustomDimensionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.UserLink(); - if (object.name != null) - message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + if (object.customDimensions) { + if (!Array.isArray(object.customDimensions)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); + message.customDimensions = []; + for (var i = 0; i < object.customDimensions.length; ++i) { + if (typeof object.customDimensions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); + message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserLink.toObject = function toObject(message, options) { + ListCustomDimensionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.directRoles = []; - if (options.defaults) { - object.name = ""; - object.emailAddress = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; + object.customDimensions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customDimensions && message.customDimensions.length) { + object.customDimensions = []; + for (var j = 0; j < message.customDimensions.length; ++j) + object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UserLink to JSON. + * Converts this ListCustomDimensionsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance * @returns {Object.} JSON object */ - UserLink.prototype.toJSON = function toJSON() { + ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UserLink; + return ListCustomDimensionsResponse; })(); - v1alpha.AuditUserLink = (function() { + v1alpha.ArchiveCustomDimensionRequest = (function() { /** - * Properties of an AuditUserLink. + * Properties of an ArchiveCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLink - * @property {string|null} [name] AuditUserLink name - * @property {string|null} [emailAddress] AuditUserLink emailAddress - * @property {Array.|null} [directRoles] AuditUserLink directRoles - * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + * @interface IArchiveCustomDimensionRequest + * @property {string|null} [name] ArchiveCustomDimensionRequest name */ /** - * Constructs a new AuditUserLink. + * Constructs a new ArchiveCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLink. - * @implements IAuditUserLink + * @classdesc Represents an ArchiveCustomDimensionRequest. + * @implements IArchiveCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set */ - function AuditUserLink(properties) { - this.directRoles = []; - this.effectiveRoles = []; + function ArchiveCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23454,123 +22639,78 @@ } /** - * AuditUserLink name. + * ArchiveCustomDimensionRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AuditUserLink - * @instance - */ - AuditUserLink.prototype.name = ""; - - /** - * AuditUserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.AuditUserLink - * @instance - */ - AuditUserLink.prototype.emailAddress = ""; - - /** - * AuditUserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink - * @instance - */ - AuditUserLink.prototype.directRoles = $util.emptyArray; - - /** - * AuditUserLink effectiveRoles. - * @member {Array.} effectiveRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @instance */ - AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + ArchiveCustomDimensionRequest.prototype.name = ""; /** - * Creates a new AuditUserLink instance using the specified properties. + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance */ - AuditUserLink.create = function create(properties) { - return new AuditUserLink(properties); + ArchiveCustomDimensionRequest.create = function create(properties) { + return new ArchiveCustomDimensionRequest(properties); }; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encode = function encode(message, writer) { + ArchiveCustomDimensionRequest.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); - if (message.effectiveRoles != null && message.effectiveRoles.length) - for (var i = 0; i < message.effectiveRoles.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); return writer; }; /** - * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decode = function decode(reader, length) { + ArchiveCustomDimensionRequest.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.analytics.admin.v1alpha.AuditUserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.emailAddress = reader.string(); - break; - case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); - break; - case 4: - if (!(message.effectiveRoles && message.effectiveRoles.length)) - message.effectiveRoles = []; - message.effectiveRoles.push(reader.string()); - break; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -23578,169 +22718,107 @@ }; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuditUserLink message. + * Verifies an ArchiveCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserLink.verify = function verify(message) { + ArchiveCustomDimensionRequest.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.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; - } - if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { - if (!Array.isArray(message.effectiveRoles)) - return "effectiveRoles: array expected"; - for (var i = 0; i < message.effectiveRoles.length; ++i) - if (!$util.isString(message.effectiveRoles[i])) - return "effectiveRoles: string[] expected"; - } return null; }; /** - * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest */ - AuditUserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); if (object.name != null) message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); - } - if (object.effectiveRoles) { - if (!Array.isArray(object.effectiveRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); - message.effectiveRoles = []; - for (var i = 0; i < object.effectiveRoles.length; ++i) - message.effectiveRoles[i] = String(object.effectiveRoles[i]); - } return message; }; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserLink.toObject = function toObject(message, options) { + ArchiveCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.directRoles = []; - object.effectiveRoles = []; - } - if (options.defaults) { + if (options.defaults) object.name = ""; - object.emailAddress = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; - } - if (message.effectiveRoles && message.effectiveRoles.length) { - object.effectiveRoles = []; - for (var j = 0; j < message.effectiveRoles.length; ++j) - object.effectiveRoles[j] = message.effectiveRoles[j]; - } return object; }; /** - * Converts this AuditUserLink to JSON. + * Converts this ArchiveCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - AuditUserLink.prototype.toJSON = function toJSON() { + ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuditUserLink; + return ArchiveCustomDimensionRequest; })(); - v1alpha.EnhancedMeasurementSettings = (function() { + v1alpha.GetCustomDimensionRequest = (function() { /** - * Properties of an EnhancedMeasurementSettings. + * Properties of a GetCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IEnhancedMeasurementSettings - * @property {string|null} [name] EnhancedMeasurementSettings name - * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled - * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled - * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled - * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled - * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled - * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled - * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled - * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled - * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled - * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter - * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter + * @interface IGetCustomDimensionRequest + * @property {string|null} [name] GetCustomDimensionRequest name */ /** - * Constructs a new EnhancedMeasurementSettings. + * Constructs a new GetCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an EnhancedMeasurementSettings. - * @implements IEnhancedMeasurementSettings + * @classdesc Represents a GetCustomDimensionRequest. + * @implements IGetCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set */ - function EnhancedMeasurementSettings(properties) { + function GetCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23748,218 +22826,276 @@ } /** - * EnhancedMeasurementSettings name. + * GetCustomDimensionRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @instance */ - EnhancedMeasurementSettings.prototype.name = ""; + GetCustomDimensionRequest.prototype.name = ""; /** - * EnhancedMeasurementSettings streamEnabled. - * @member {boolean} streamEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Creates a new GetCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance */ - EnhancedMeasurementSettings.prototype.streamEnabled = false; + GetCustomDimensionRequest.create = function create(properties) { + return new GetCustomDimensionRequest(properties); + }; /** - * EnhancedMeasurementSettings pageViewsEnabled. - * @member {boolean} pageViewsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; + GetCustomDimensionRequest.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; + }; /** - * EnhancedMeasurementSettings scrollsEnabled. - * @member {boolean} scrollsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.prototype.scrollsEnabled = false; + GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * EnhancedMeasurementSettings outboundClicksEnabled. - * @member {boolean} outboundClicksEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; + GetCustomDimensionRequest.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.analytics.admin.v1alpha.GetCustomDimensionRequest(); + 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; + }; /** - * EnhancedMeasurementSettings siteSearchEnabled. - * @member {boolean} siteSearchEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; + GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * EnhancedMeasurementSettings videoEngagementEnabled. - * @member {boolean} videoEngagementEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Verifies a GetCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; + GetCustomDimensionRequest.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; + }; /** - * EnhancedMeasurementSettings fileDownloadsEnabled. - * @member {boolean} fileDownloadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest */ - EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; + GetCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * EnhancedMeasurementSettings pageLoadsEnabled. - * @member {boolean} pageLoadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; + GetCustomDimensionRequest.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; + }; /** - * EnhancedMeasurementSettings pageChangesEnabled. - * @member {boolean} pageChangesEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * Converts this GetCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @instance + * @returns {Object.} JSON object */ - EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; + GetCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCustomDimensionRequest; + })(); + + v1alpha.CreateCustomMetricRequest = (function() { /** - * EnhancedMeasurementSettings searchQueryParameter. - * @member {string} searchQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * Properties of a CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateCustomMetricRequest + * @property {string|null} [parent] CreateCustomMetricRequest parent + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric + */ + + /** + * Constructs a new CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateCustomMetricRequest. + * @implements ICreateCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + */ + function CreateCustomMetricRequest(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]]; + } + + /** + * CreateCustomMetricRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @instance */ - EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; + CreateCustomMetricRequest.prototype.parent = ""; /** - * EnhancedMeasurementSettings uriQueryParameter. - * @member {string} uriQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * CreateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @instance */ - EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; + CreateCustomMetricRequest.prototype.customMetric = null; /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * Creates a new CreateCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance */ - EnhancedMeasurementSettings.create = function create(properties) { - return new EnhancedMeasurementSettings(properties); + CreateCustomMetricRequest.create = function create(properties) { + return new CreateCustomMetricRequest(properties); }; /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encode = function encode(message, writer) { + CreateCustomMetricRequest.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); - if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); - if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); - if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); - if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); - if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); - if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); - if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); - if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); - if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); - if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.decode = function decode(reader, length) { + CreateCustomMetricRequest.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.streamEnabled = reader.bool(); - break; - case 3: - message.pageViewsEnabled = reader.bool(); - break; - case 4: - message.scrollsEnabled = reader.bool(); - break; - case 5: - message.outboundClicksEnabled = reader.bool(); - break; - case 7: - message.siteSearchEnabled = reader.bool(); - break; - case 9: - message.videoEngagementEnabled = reader.bool(); - break; - case 10: - message.fileDownloadsEnabled = reader.bool(); - break; - case 12: - message.pageLoadsEnabled = reader.bool(); - break; - case 13: - message.pageChangesEnabled = reader.bool(); - break; - case 16: - message.searchQueryParameter = reader.string(); - break; - case 17: - message.uriQueryParameter = reader.string(); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23970,199 +23106,122 @@ }; /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnhancedMeasurementSettings message. + * Verifies a CreateCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnhancedMeasurementSettings.verify = function verify(message) { + CreateCustomMetricRequest.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - if (typeof message.streamEnabled !== "boolean") - return "streamEnabled: boolean expected"; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - if (typeof message.pageViewsEnabled !== "boolean") - return "pageViewsEnabled: boolean expected"; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - if (typeof message.scrollsEnabled !== "boolean") - return "scrollsEnabled: boolean expected"; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - if (typeof message.outboundClicksEnabled !== "boolean") - return "outboundClicksEnabled: boolean expected"; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - if (typeof message.siteSearchEnabled !== "boolean") - return "siteSearchEnabled: boolean expected"; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - if (typeof message.videoEngagementEnabled !== "boolean") - return "videoEngagementEnabled: boolean expected"; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - if (typeof message.fileDownloadsEnabled !== "boolean") - return "fileDownloadsEnabled: boolean expected"; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - if (typeof message.pageLoadsEnabled !== "boolean") - return "pageLoadsEnabled: boolean expected"; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - if (typeof message.pageChangesEnabled !== "boolean") - return "pageChangesEnabled: boolean expected"; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - if (!$util.isString(message.searchQueryParameter)) - return "searchQueryParameter: string expected"; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - if (!$util.isString(message.uriQueryParameter)) - return "uriQueryParameter: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } return null; }; /** - * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest */ - EnhancedMeasurementSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + CreateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.streamEnabled != null) - message.streamEnabled = Boolean(object.streamEnabled); - if (object.pageViewsEnabled != null) - message.pageViewsEnabled = Boolean(object.pageViewsEnabled); - if (object.scrollsEnabled != null) - message.scrollsEnabled = Boolean(object.scrollsEnabled); - if (object.outboundClicksEnabled != null) - message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); - if (object.siteSearchEnabled != null) - message.siteSearchEnabled = Boolean(object.siteSearchEnabled); - if (object.videoEngagementEnabled != null) - message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); - if (object.fileDownloadsEnabled != null) - message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); - if (object.pageLoadsEnabled != null) - message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); - if (object.pageChangesEnabled != null) - message.pageChangesEnabled = Boolean(object.pageChangesEnabled); - if (object.searchQueryParameter != null) - message.searchQueryParameter = String(object.searchQueryParameter); - if (object.uriQueryParameter != null) - message.uriQueryParameter = String(object.uriQueryParameter); + var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } return message; }; /** - * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnhancedMeasurementSettings.toObject = function toObject(message, options) { + CreateCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.streamEnabled = false; - object.pageViewsEnabled = false; - object.scrollsEnabled = false; - object.outboundClicksEnabled = false; - object.siteSearchEnabled = false; - object.videoEngagementEnabled = false; - object.fileDownloadsEnabled = false; - object.pageLoadsEnabled = false; - object.pageChangesEnabled = false; - object.searchQueryParameter = ""; - object.uriQueryParameter = ""; + object.parent = ""; + object.customMetric = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - object.streamEnabled = message.streamEnabled; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - object.pageViewsEnabled = message.pageViewsEnabled; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - object.scrollsEnabled = message.scrollsEnabled; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - object.outboundClicksEnabled = message.outboundClicksEnabled; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - object.siteSearchEnabled = message.siteSearchEnabled; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - object.videoEngagementEnabled = message.videoEngagementEnabled; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - object.fileDownloadsEnabled = message.fileDownloadsEnabled; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - object.pageLoadsEnabled = message.pageLoadsEnabled; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - object.pageChangesEnabled = message.pageChangesEnabled; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - object.searchQueryParameter = message.searchQueryParameter; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - object.uriQueryParameter = message.uriQueryParameter; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); return object; }; /** - * Converts this EnhancedMeasurementSettings to JSON. + * Converts this CreateCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @instance * @returns {Object.} JSON object */ - EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + CreateCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnhancedMeasurementSettings; + return CreateCustomMetricRequest; })(); - v1alpha.FirebaseLink = (function() { + v1alpha.UpdateCustomMetricRequest = (function() { /** - * Properties of a FirebaseLink. + * Properties of an UpdateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IFirebaseLink - * @property {string|null} [name] FirebaseLink name - * @property {string|null} [project] FirebaseLink project - * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime - * @property {google.analytics.admin.v1alpha.MaximumUserAccess|null} [maximumUserAccess] FirebaseLink maximumUserAccess + * @interface IUpdateCustomMetricRequest + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask */ /** - * Constructs a new FirebaseLink. + * Constructs a new UpdateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a FirebaseLink. - * @implements IFirebaseLink + * @classdesc Represents an UpdateCustomMetricRequest. + * @implements IUpdateCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set */ - function FirebaseLink(properties) { + function UpdateCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24170,114 +23229,88 @@ } /** - * FirebaseLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.FirebaseLink - * @instance - */ - FirebaseLink.prototype.name = ""; - - /** - * FirebaseLink project. - * @member {string} project - * @memberof google.analytics.admin.v1alpha.FirebaseLink - * @instance - */ - FirebaseLink.prototype.project = ""; - - /** - * FirebaseLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * UpdateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance */ - FirebaseLink.prototype.createTime = null; + UpdateCustomMetricRequest.prototype.customMetric = null; /** - * FirebaseLink maximumUserAccess. - * @member {google.analytics.admin.v1alpha.MaximumUserAccess} maximumUserAccess - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * UpdateCustomMetricRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance */ - FirebaseLink.prototype.maximumUserAccess = 0; + UpdateCustomMetricRequest.prototype.updateMask = null; /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new UpdateCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance */ - FirebaseLink.create = function create(properties) { - return new FirebaseLink(properties); + UpdateCustomMetricRequest.create = function create(properties) { + return new UpdateCustomMetricRequest(properties); }; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encode = function encode(message, writer) { + UpdateCustomMetricRequest.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.project != null && Object.hasOwnProperty.call(message, "project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maximumUserAccess != null && Object.hasOwnProperty.call(message, "maximumUserAccess")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumUserAccess); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, 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 FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decode = function decode(reader, length) { + UpdateCustomMetricRequest.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.analytics.admin.v1alpha.FirebaseLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); break; case 2: - message.project = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.maximumUserAccess = reader.int32(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24288,166 +23321,128 @@ }; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FirebaseLink message. + * Verifies an UpdateCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FirebaseLink.verify = function verify(message) { + UpdateCustomMetricRequest.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.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); if (error) - return "createTime." + error; + return "customMetric." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - switch (message.maximumUserAccess) { - default: - return "maximumUserAccess: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } return null; }; /** - * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest */ - FirebaseLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + UpdateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); - if (object.name != null) - message.name = String(object.name); - if (object.project != null) - message.project = String(object.project); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); } - switch (object.maximumUserAccess) { - case "MAXIMUM_USER_ACCESS_UNSPECIFIED": - case 0: - message.maximumUserAccess = 0; - break; - case "NO_ACCESS": - case 1: - message.maximumUserAccess = 1; - break; - case "READ_AND_ANALYZE": - case 2: - message.maximumUserAccess = 2; - break; - case "EDITOR_WITHOUT_LINK_MANAGEMENT": - case 3: - message.maximumUserAccess = 3; - break; - case "EDITOR_INCLUDING_LINK_MANAGEMENT": - case 4: - message.maximumUserAccess = 4; - break; + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FirebaseLink.toObject = function toObject(message, options) { + UpdateCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.project = ""; - object.createTime = null; - object.maximumUserAccess = options.enums === String ? "MAXIMUM_USER_ACCESS_UNSPECIFIED" : 0; + object.customMetric = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.project != null && message.hasOwnProperty("project")) - object.project = message.project; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.maximumUserAccess != null && message.hasOwnProperty("maximumUserAccess")) - object.maximumUserAccess = options.enums === String ? $root.google.analytics.admin.v1alpha.MaximumUserAccess[message.maximumUserAccess] : message.maximumUserAccess; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this FirebaseLink to JSON. + * Converts this UpdateCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance * @returns {Object.} JSON object */ - FirebaseLink.prototype.toJSON = function toJSON() { + UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FirebaseLink; + return UpdateCustomMetricRequest; })(); - v1alpha.GlobalSiteTag = (function() { + v1alpha.ListCustomMetricsRequest = (function() { /** - * Properties of a GlobalSiteTag. + * Properties of a ListCustomMetricsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGlobalSiteTag - * @property {string|null} [name] GlobalSiteTag name - * @property {string|null} [snippet] GlobalSiteTag snippet + * @interface IListCustomMetricsRequest + * @property {string|null} [parent] ListCustomMetricsRequest parent + * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize + * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken */ /** - * Constructs a new GlobalSiteTag. + * Constructs a new ListCustomMetricsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GlobalSiteTag. - * @implements IGlobalSiteTag + * @classdesc Represents a ListCustomMetricsRequest. + * @implements IListCustomMetricsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set */ - function GlobalSiteTag(properties) { + function ListCustomMetricsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24455,88 +23450,101 @@ } /** - * GlobalSiteTag name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * ListCustomMetricsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance */ - GlobalSiteTag.prototype.name = ""; + ListCustomMetricsRequest.prototype.parent = ""; /** - * GlobalSiteTag snippet. - * @member {string} snippet - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * ListCustomMetricsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance */ - GlobalSiteTag.prototype.snippet = ""; + ListCustomMetricsRequest.prototype.pageSize = 0; /** - * Creates a new GlobalSiteTag instance using the specified properties. + * ListCustomMetricsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance */ - GlobalSiteTag.create = function create(properties) { - return new GlobalSiteTag(properties); + ListCustomMetricsRequest.create = function create(properties) { + return new ListCustomMetricsRequest(properties); }; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encode = function encode(message, writer) { + ListCustomMetricsRequest.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.snippet != null && Object.hasOwnProperty.call(message, "snippet")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); + 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 GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decode = function decode(reader, length) { + ListCustomMetricsRequest.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.analytics.admin.v1alpha.GlobalSiteTag(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.snippet = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -24547,122 +23555,126 @@ }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GlobalSiteTag message. + * Verifies a ListCustomMetricsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalSiteTag.verify = function verify(message) { + ListCustomMetricsRequest.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.snippet != null && message.hasOwnProperty("snippet")) - if (!$util.isString(message.snippet)) - return "snippet: string 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 GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest */ - GlobalSiteTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + ListCustomMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); - if (object.name != null) - message.name = String(object.name); - if (object.snippet != null) - message.snippet = String(object.snippet); + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + 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 GlobalSiteTag message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalSiteTag.toObject = function toObject(message, options) { + ListCustomMetricsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.snippet = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.snippet != null && message.hasOwnProperty("snippet")) - object.snippet = message.snippet; + 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 GlobalSiteTag to JSON. + * Converts this ListCustomMetricsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance * @returns {Object.} JSON object */ - GlobalSiteTag.prototype.toJSON = function toJSON() { + ListCustomMetricsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GlobalSiteTag; + return ListCustomMetricsRequest; })(); - v1alpha.GoogleAdsLink = (function() { + v1alpha.ListCustomMetricsResponse = (function() { /** - * Properties of a GoogleAdsLink. + * Properties of a ListCustomMetricsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IGoogleAdsLink - * @property {string|null} [name] GoogleAdsLink name - * @property {string|null} [customerId] GoogleAdsLink customerId - * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients - * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled - * @property {string|null} [emailAddress] GoogleAdsLink emailAddress - * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + * @interface IListCustomMetricsResponse + * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics + * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken */ /** - * Constructs a new GoogleAdsLink. + * Constructs a new ListCustomMetricsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GoogleAdsLink. - * @implements IGoogleAdsLink + * @classdesc Represents a ListCustomMetricsResponse. + * @implements IListCustomMetricsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set */ - function GoogleAdsLink(properties) { + function ListCustomMetricsResponse(properties) { + this.customMetrics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24670,153 +23682,91 @@ } /** - * GoogleAdsLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.name = ""; - - /** - * GoogleAdsLink customerId. - * @member {string} customerId - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.customerId = ""; - - /** - * GoogleAdsLink canManageClients. - * @member {boolean} canManageClients - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.canManageClients = false; - - /** - * GoogleAdsLink adsPersonalizationEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.adsPersonalizationEnabled = null; - - /** - * GoogleAdsLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.emailAddress = ""; - - /** - * GoogleAdsLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * ListCustomMetricsResponse customMetrics. + * @member {Array.} customMetrics + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance */ - GoogleAdsLink.prototype.createTime = null; + ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; /** - * GoogleAdsLink updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * ListCustomMetricsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance */ - GoogleAdsLink.prototype.updateTime = null; + ListCustomMetricsResponse.prototype.nextPageToken = ""; /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new ListCustomMetricsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance */ - GoogleAdsLink.create = function create(properties) { - return new GoogleAdsLink(properties); + ListCustomMetricsResponse.create = function create(properties) { + return new ListCustomMetricsResponse(properties); }; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encode = function encode(message, writer) { + ListCustomMetricsResponse.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.customerId != null && Object.hasOwnProperty.call(message, "customerId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); - if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.emailAddress); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.customMetrics != null && message.customMetrics.length) + for (var i = 0; i < message.customMetrics.length; ++i) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[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 GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decode = function decode(reader, length) { + ListCustomMetricsResponse.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.analytics.admin.v1alpha.GoogleAdsLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 3: - message.customerId = reader.string(); - break; - case 4: - message.canManageClients = reader.bool(); - break; - case 5: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 6: - message.emailAddress = reader.string(); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -24827,176 +23777,133 @@ }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GoogleAdsLink message. + * Verifies a ListCustomMetricsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GoogleAdsLink.verify = function verify(message) { + ListCustomMetricsResponse.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.customerId != null && message.hasOwnProperty("customerId")) - if (!$util.isString(message.customerId)) - return "customerId: string expected"; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - if (typeof message.canManageClients !== "boolean") - return "canManageClients: boolean expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); - if (error) - return "adsPersonalizationEnabled." + error; - } - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { + if (!Array.isArray(message.customMetrics)) + return "customMetrics: array expected"; + for (var i = 0; i < message.customMetrics.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); + if (error) + return "customMetrics." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse */ - GoogleAdsLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + ListCustomMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); - if (object.name != null) - message.name = String(object.name); - if (object.customerId != null) - message.customerId = String(object.customerId); - if (object.canManageClients != null) - message.canManageClients = Boolean(object.canManageClients); - if (object.adsPersonalizationEnabled != null) { - if (typeof object.adsPersonalizationEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); - } - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + if (object.customMetrics) { + if (!Array.isArray(object.customMetrics)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); + message.customMetrics = []; + for (var i = 0; i < object.customMetrics.length; ++i) { + if (typeof object.customMetrics[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); + message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoogleAdsLink.toObject = function toObject(message, options) { + ListCustomMetricsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.customerId = ""; - object.canManageClients = false; - object.adsPersonalizationEnabled = null; - object.emailAddress = ""; - object.createTime = null; - object.updateTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.customerId != null && message.hasOwnProperty("customerId")) - object.customerId = message.customerId; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - object.canManageClients = message.canManageClients; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (options.arrays || options.defaults) + object.customMetrics = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customMetrics && message.customMetrics.length) { + object.customMetrics = []; + for (var j = 0; j < message.customMetrics.length; ++j) + object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GoogleAdsLink to JSON. + * Converts this ListCustomMetricsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance * @returns {Object.} JSON object */ - GoogleAdsLink.prototype.toJSON = function toJSON() { + ListCustomMetricsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GoogleAdsLink; + return ListCustomMetricsResponse; })(); - v1alpha.DataSharingSettings = (function() { + v1alpha.ArchiveCustomMetricRequest = (function() { /** - * Properties of a DataSharingSettings. + * Properties of an ArchiveCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDataSharingSettings - * @property {string|null} [name] DataSharingSettings name - * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled - * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled - * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled - * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled - * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled + * @interface IArchiveCustomMetricRequest + * @property {string|null} [name] ArchiveCustomMetricRequest name */ /** - * Constructs a new DataSharingSettings. + * Constructs a new ArchiveCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DataSharingSettings. - * @implements IDataSharingSettings + * @classdesc Represents an ArchiveCustomMetricRequest. + * @implements IArchiveCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set */ - function DataSharingSettings(properties) { + function ArchiveCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25004,141 +23911,76 @@ } /** - * DataSharingSettings name. + * ArchiveCustomMetricRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.name = ""; - - /** - * DataSharingSettings sharingWithGoogleSupportEnabled. - * @member {boolean} sharingWithGoogleSupportEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; - - /** - * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. - * @member {boolean} sharingWithGoogleAssignedSalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; - - /** - * DataSharingSettings sharingWithGoogleAnySalesEnabled. - * @member {boolean} sharingWithGoogleAnySalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; - - /** - * DataSharingSettings sharingWithGoogleProductsEnabled. - * @member {boolean} sharingWithGoogleProductsEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance - */ - DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; - - /** - * DataSharingSettings sharingWithOthersEnabled. - * @member {boolean} sharingWithOthersEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @instance */ - DataSharingSettings.prototype.sharingWithOthersEnabled = false; + ArchiveCustomMetricRequest.prototype.name = ""; /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance */ - DataSharingSettings.create = function create(properties) { - return new DataSharingSettings(properties); + ArchiveCustomMetricRequest.create = function create(properties) { + return new ArchiveCustomMetricRequest(properties); }; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encode = function encode(message, writer) { + ArchiveCustomMetricRequest.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); - if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); - if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); - if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); - if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); return writer; }; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decode = function decode(reader, length) { + ArchiveCustomMetricRequest.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.analytics.admin.v1alpha.DataSharingSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.sharingWithGoogleSupportEnabled = reader.bool(); - break; - case 3: - message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); - break; - case 4: - message.sharingWithGoogleAnySalesEnabled = reader.bool(); - break; - case 5: - message.sharingWithGoogleProductsEnabled = reader.bool(); - break; - case 6: - message.sharingWithOthersEnabled = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -25148,152 +23990,107 @@ }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataSharingSettings message. + * Verifies an ArchiveCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataSharingSettings.verify = function verify(message) { + ArchiveCustomMetricRequest.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") - return "sharingWithGoogleSupportEnabled: boolean expected"; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") - return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") - return "sharingWithGoogleAnySalesEnabled: boolean expected"; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") - return "sharingWithGoogleProductsEnabled: boolean expected"; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - if (typeof message.sharingWithOthersEnabled !== "boolean") - return "sharingWithOthersEnabled: boolean expected"; return null; }; /** - * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest */ - DataSharingSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + ArchiveCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); if (object.name != null) message.name = String(object.name); - if (object.sharingWithGoogleSupportEnabled != null) - message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); - if (object.sharingWithGoogleAssignedSalesEnabled != null) - message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); - if (object.sharingWithGoogleAnySalesEnabled != null) - message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); - if (object.sharingWithGoogleProductsEnabled != null) - message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); - if (object.sharingWithOthersEnabled != null) - message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); return message; }; /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataSharingSettings.toObject = function toObject(message, options) { + ArchiveCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.sharingWithGoogleSupportEnabled = false; - object.sharingWithGoogleAssignedSalesEnabled = false; - object.sharingWithGoogleAnySalesEnabled = false; - object.sharingWithGoogleProductsEnabled = false; - object.sharingWithOthersEnabled = false; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; return object; }; /** - * Converts this DataSharingSettings to JSON. + * Converts this ArchiveCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @instance * @returns {Object.} JSON object */ - DataSharingSettings.prototype.toJSON = function toJSON() { + ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataSharingSettings; + return ArchiveCustomMetricRequest; })(); - v1alpha.AccountSummary = (function() { + v1alpha.GetCustomMetricRequest = (function() { /** - * Properties of an AccountSummary. + * Properties of a GetCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAccountSummary - * @property {string|null} [name] AccountSummary name - * @property {string|null} [account] AccountSummary account - * @property {string|null} [displayName] AccountSummary displayName - * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + * @interface IGetCustomMetricRequest + * @property {string|null} [name] GetCustomMetricRequest name */ /** - * Constructs a new AccountSummary. + * Constructs a new GetCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AccountSummary. - * @implements IAccountSummary + * @classdesc Represents a GetCustomMetricRequest. + * @implements IGetCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set */ - function AccountSummary(properties) { - this.propertySummaries = []; + function GetCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25301,118 +24098,76 @@ } /** - * AccountSummary name. + * GetCustomMetricRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance - */ - AccountSummary.prototype.name = ""; - - /** - * AccountSummary account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance - */ - AccountSummary.prototype.account = ""; - - /** - * AccountSummary displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance - */ - AccountSummary.prototype.displayName = ""; - - /** - * AccountSummary propertySummaries. - * @member {Array.} propertySummaries - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @instance */ - AccountSummary.prototype.propertySummaries = $util.emptyArray; + GetCustomMetricRequest.prototype.name = ""; /** - * Creates a new AccountSummary instance using the specified properties. + * Creates a new GetCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance */ - AccountSummary.create = function create(properties) { - return new AccountSummary(properties); + GetCustomMetricRequest.create = function create(properties) { + return new GetCustomMetricRequest(properties); }; /** - * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummary.encode = function encode(message, writer) { + GetCustomMetricRequest.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 2 =*/18).string(message.account); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.propertySummaries != null && message.propertySummaries.length) - for (var i = 0; i < message.propertySummaries.length; ++i) - $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AccountSummary message from the specified reader or buffer. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decode = function decode(reader, length) { + GetCustomMetricRequest.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.analytics.admin.v1alpha.AccountSummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.account = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - if (!(message.propertySummaries && message.propertySummaries.length)) - message.propertySummaries = []; - message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -25422,151 +24177,107 @@ }; /** - * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decodeDelimited = function decodeDelimited(reader) { + GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AccountSummary message. + * Verifies a GetCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountSummary.verify = function verify(message) { + GetCustomMetricRequest.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.isString(message.account)) - return "account: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { - if (!Array.isArray(message.propertySummaries)) - return "propertySummaries: array expected"; - for (var i = 0; i < message.propertySummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); - if (error) - return "propertySummaries." + error; - } - } return null; }; /** - * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest */ - AccountSummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) + GetCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); + var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); if (object.name != null) message.name = String(object.name); - if (object.account != null) - message.account = String(object.account); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.propertySummaries) { - if (!Array.isArray(object.propertySummaries)) - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); - message.propertySummaries = []; - for (var i = 0; i < object.propertySummaries.length; ++i) { - if (typeof object.propertySummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); - message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); - } - } return message; }; /** - * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary + * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountSummary.toObject = function toObject(message, options) { + GetCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.propertySummaries = []; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.account = ""; - object.displayName = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.propertySummaries && message.propertySummaries.length) { - object.propertySummaries = []; - for (var j = 0; j < message.propertySummaries.length; ++j) - object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); - } return object; }; /** - * Converts this AccountSummary to JSON. + * Converts this GetCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @instance * @returns {Object.} JSON object */ - AccountSummary.prototype.toJSON = function toJSON() { + GetCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AccountSummary; + return GetCustomMetricRequest; })(); - v1alpha.PropertySummary = (function() { + v1alpha.GetDataRetentionSettingsRequest = (function() { /** - * Properties of a PropertySummary. + * Properties of a GetDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IPropertySummary - * @property {string|null} [property] PropertySummary property - * @property {string|null} [displayName] PropertySummary displayName + * @interface IGetDataRetentionSettingsRequest + * @property {string|null} [name] GetDataRetentionSettingsRequest name */ /** - * Constructs a new PropertySummary. + * Constructs a new GetDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a PropertySummary. - * @implements IPropertySummary + * @classdesc Represents a GetDataRetentionSettingsRequest. + * @implements IGetDataRetentionSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set */ - function PropertySummary(properties) { + function GetDataRetentionSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25574,88 +24285,75 @@ } /** - * PropertySummary property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.PropertySummary - * @instance - */ - PropertySummary.prototype.property = ""; - - /** - * PropertySummary displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.PropertySummary + * GetDataRetentionSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @instance */ - PropertySummary.prototype.displayName = ""; + GetDataRetentionSettingsRequest.prototype.name = ""; /** - * Creates a new PropertySummary instance using the specified properties. + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance */ - PropertySummary.create = function create(properties) { - return new PropertySummary(properties); + GetDataRetentionSettingsRequest.create = function create(properties) { + return new GetDataRetentionSettingsRequest(properties); }; /** - * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encode = function encode(message, writer) { + GetDataRetentionSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PropertySummary message from the specified reader or buffer. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decode = function decode(reader, length) { + GetDataRetentionSettingsRequest.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.analytics.admin.v1alpha.PropertySummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.property = reader.string(); - break; - case 2: - message.displayName = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -25666,118 +24364,108 @@ }; /** - * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decodeDelimited = function decodeDelimited(reader) { + GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PropertySummary message. + * Verifies a GetDataRetentionSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PropertySummary.verify = function verify(message) { + GetDataRetentionSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest */ - PropertySummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) + GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); - if (object.property != null) - message.property = String(object.property); - if (object.displayName != null) - message.displayName = String(object.displayName); + var message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary + * @param {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PropertySummary.toObject = function toObject(message, options) { + GetDataRetentionSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.property = ""; - object.displayName = ""; - } - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PropertySummary to JSON. + * Converts this GetDataRetentionSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @instance * @returns {Object.} JSON object */ - PropertySummary.prototype.toJSON = function toJSON() { + GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PropertySummary; + return GetDataRetentionSettingsRequest; })(); - v1alpha.MeasurementProtocolSecret = (function() { + v1alpha.UpdateDataRetentionSettingsRequest = (function() { /** - * Properties of a MeasurementProtocolSecret. + * Properties of an UpdateDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IMeasurementProtocolSecret - * @property {string|null} [name] MeasurementProtocolSecret name - * @property {string|null} [displayName] MeasurementProtocolSecret displayName - * @property {string|null} [secretValue] MeasurementProtocolSecret secretValue + * @interface IUpdateDataRetentionSettingsRequest + * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask */ /** - * Constructs a new MeasurementProtocolSecret. + * Constructs a new UpdateDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a MeasurementProtocolSecret. - * @implements IMeasurementProtocolSecret + * @classdesc Represents an UpdateDataRetentionSettingsRequest. + * @implements IUpdateDataRetentionSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set */ - function MeasurementProtocolSecret(properties) { + function UpdateDataRetentionSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25785,101 +24473,88 @@ } /** - * MeasurementProtocolSecret name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret - * @instance - */ - MeasurementProtocolSecret.prototype.name = ""; - - /** - * MeasurementProtocolSecret displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * UpdateDataRetentionSettingsRequest dataRetentionSettings. + * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @instance */ - MeasurementProtocolSecret.prototype.displayName = ""; + UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; /** - * MeasurementProtocolSecret secretValue. - * @member {string} secretValue - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * UpdateDataRetentionSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @instance */ - MeasurementProtocolSecret.prototype.secretValue = ""; + UpdateDataRetentionSettingsRequest.prototype.updateMask = null; /** - * Creates a new MeasurementProtocolSecret instance using the specified properties. + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret instance + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance */ - MeasurementProtocolSecret.create = function create(properties) { - return new MeasurementProtocolSecret(properties); + UpdateDataRetentionSettingsRequest.create = function create(properties) { + return new UpdateDataRetentionSettingsRequest(properties); }; /** - * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MeasurementProtocolSecret.encode = function encode(message, writer) { + UpdateDataRetentionSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.secretValue != null && Object.hasOwnProperty.call(message, "secretValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.secretValue); + if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, 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 MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MeasurementProtocolSecret.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MeasurementProtocolSecret.decode = function decode(reader, length) { + UpdateDataRetentionSettingsRequest.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.analytics.admin.v1alpha.MeasurementProtocolSecret(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.secretValue = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25890,274 +24565,498 @@ }; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MeasurementProtocolSecret.decodeDelimited = function decodeDelimited(reader) { + UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MeasurementProtocolSecret message. + * Verifies an UpdateDataRetentionSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MeasurementProtocolSecret.verify = function verify(message) { + UpdateDataRetentionSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.secretValue != null && message.hasOwnProperty("secretValue")) - if (!$util.isString(message.secretValue)) - return "secretValue: string expected"; + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + 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 a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest */ - MeasurementProtocolSecret.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret) + UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.secretValue != null) - message.secretValue = String(object.secretValue); + var message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} message MeasurementProtocolSecret + * @param {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MeasurementProtocolSecret.toObject = function toObject(message, options) { + UpdateDataRetentionSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.secretValue = ""; + object.dataRetentionSettings = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.secretValue != null && message.hasOwnProperty("secretValue")) - object.secretValue = message.secretValue; + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) + object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this MeasurementProtocolSecret to JSON. + * Converts this UpdateDataRetentionSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @instance * @returns {Object.} JSON object */ - MeasurementProtocolSecret.prototype.toJSON = function toJSON() { + UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MeasurementProtocolSecret; + return UpdateDataRetentionSettingsRequest; })(); - v1alpha.ChangeHistoryEvent = (function() { - - /** - * Properties of a ChangeHistoryEvent. - * @memberof google.analytics.admin.v1alpha - * @interface IChangeHistoryEvent - * @property {string|null} [id] ChangeHistoryEvent id - * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime - * @property {google.analytics.admin.v1alpha.ActorType|null} [actorType] ChangeHistoryEvent actorType - * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail - * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered - * @property {Array.|null} [changes] ChangeHistoryEvent changes - */ + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); - /** - * Constructs a new ChangeHistoryEvent. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChangeHistoryEvent. - * @implements IChangeHistoryEvent - * @constructor - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set - */ - function ChangeHistoryEvent(properties) { - this.changes = []; - 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]]; - } + /** + * ServiceLevel enum. + * @name google.analytics.admin.v1alpha.ServiceLevel + * @enum {number} + * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value + * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value + */ + v1alpha.ServiceLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; + values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; + return values; + })(); - /** - * ChangeHistoryEvent id. - * @member {string} id - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent - * @instance - */ - ChangeHistoryEvent.prototype.id = ""; + /** + * ActorType enum. + * @name google.analytics.admin.v1alpha.ActorType + * @enum {number} + * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} SUPPORT=3 SUPPORT value + */ + v1alpha.ActorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "SUPPORT"] = 3; + return values; + })(); + + /** + * ActionType enum. + * @name google.analytics.admin.v1alpha.ActionType + * @enum {number} + * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value + * @property {number} CREATED=1 CREATED value + * @property {number} UPDATED=2 UPDATED value + * @property {number} DELETED=3 DELETED value + */ + v1alpha.ActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "UPDATED"] = 2; + values[valuesById[3] = "DELETED"] = 3; + return values; + })(); + + /** + * ChangeHistoryResourceType enum. + * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType + * @enum {number} + * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} ACCOUNT=1 ACCOUNT value + * @property {number} PROPERTY=2 PROPERTY value + * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value + * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value + * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value + * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value + * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value + * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value + * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value + * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value + * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value + * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value + * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value + */ + v1alpha.ChangeHistoryResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACCOUNT"] = 1; + values[valuesById[2] = "PROPERTY"] = 2; + values[valuesById[3] = "WEB_DATA_STREAM"] = 3; + values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; + values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; + values[valuesById[6] = "FIREBASE_LINK"] = 6; + values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; + values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; + values[valuesById[9] = "CONVERSION_EVENT"] = 9; + values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; + values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; + values[valuesById[12] = "CUSTOM_METRIC"] = 12; + values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; + return values; + })(); + + /** + * GoogleSignalsState enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsState + * @enum {number} + * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value + * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value + */ + v1alpha.GoogleSignalsState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; + values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; + return values; + })(); + + /** + * GoogleSignalsConsent enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsConsent + * @enum {number} + * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value + * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value + */ + v1alpha.GoogleSignalsConsent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; + values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; + values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; + return values; + })(); + + /** + * LinkProposalInitiatingProduct enum. + * @name google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + * @enum {number} + * @property {number} LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED=0 LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS=1 GOOGLE_ANALYTICS value + * @property {number} LINKED_PRODUCT=2 LINKED_PRODUCT value + */ + v1alpha.LinkProposalInitiatingProduct = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "LINKED_PRODUCT"] = 2; + return values; + })(); + + /** + * LinkProposalState enum. + * @name google.analytics.admin.v1alpha.LinkProposalState + * @enum {number} + * @property {number} LINK_PROPOSAL_STATE_UNSPECIFIED=0 LINK_PROPOSAL_STATE_UNSPECIFIED value + * @property {number} AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS=1 AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS value + * @property {number} AWAITING_REVIEW_FROM_LINKED_PRODUCT=2 AWAITING_REVIEW_FROM_LINKED_PRODUCT value + * @property {number} WITHDRAWN=3 WITHDRAWN value + * @property {number} DECLINED=4 DECLINED value + * @property {number} EXPIRED=5 EXPIRED value + * @property {number} OBSOLETE=6 OBSOLETE value + */ + v1alpha.LinkProposalState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "AWAITING_REVIEW_FROM_LINKED_PRODUCT"] = 2; + values[valuesById[3] = "WITHDRAWN"] = 3; + values[valuesById[4] = "DECLINED"] = 4; + values[valuesById[5] = "EXPIRED"] = 5; + values[valuesById[6] = "OBSOLETE"] = 6; + return values; + })(); + + v1alpha.Account = (function() { /** - * ChangeHistoryEvent changeTime. - * @member {google.protobuf.ITimestamp|null|undefined} changeTime - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Properties of an Account. + * @memberof google.analytics.admin.v1alpha + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [regionCode] Account regionCode + * @property {boolean|null} [deleted] Account deleted + */ + + /** + * Constructs a new Account. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an Account. + * @implements IAccount + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account * @instance */ - ChangeHistoryEvent.prototype.changeTime = null; + Account.prototype.name = ""; /** - * ChangeHistoryEvent actorType. - * @member {google.analytics.admin.v1alpha.ActorType} actorType - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - ChangeHistoryEvent.prototype.actorType = 0; + Account.prototype.createTime = null; /** - * ChangeHistoryEvent userActorEmail. - * @member {string} userActorEmail - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - ChangeHistoryEvent.prototype.userActorEmail = ""; + Account.prototype.updateTime = null; /** - * ChangeHistoryEvent changesFiltered. - * @member {boolean} changesFiltered - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - ChangeHistoryEvent.prototype.changesFiltered = false; + Account.prototype.displayName = ""; /** - * ChangeHistoryEvent changes. - * @member {Array.} changes - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Account regionCode. + * @member {string} regionCode + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - ChangeHistoryEvent.prototype.changes = $util.emptyArray; + Account.prototype.regionCode = ""; /** - * Creates a new ChangeHistoryEvent instance using the specified properties. + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.deleted = false; + + /** + * Creates a new Account instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent instance + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance */ - ChangeHistoryEvent.create = function create(properties) { - return new ChangeHistoryEvent(properties); + Account.create = function create(properties) { + return new Account(properties); }; /** - * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryEvent.encode = function encode(message, writer) { + Account.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) - $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); - if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); - if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); - if (message.changes != null && message.changes.length) - for (var i = 0; i < message.changes.length; ++i) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); return writer; }; /** - * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { + Account.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * Decodes an Account message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryEvent.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.ChangeHistoryEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Account(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.name = reader.string(); break; case 2: - message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 3: - message.actorType = reader.int32(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - message.userActorEmail = reader.string(); + message.displayName = reader.string(); break; case 5: - message.changesFiltered = reader.bool(); + message.regionCode = reader.string(); break; case 6: - if (!(message.changes && message.changes.length)) - message.changes = []; - message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); + message.deleted = reader.bool(); break; default: reader.skipType(tag & 7); @@ -26168,197 +25067,168 @@ }; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * Decodes an Account message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { + Account.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeHistoryEvent message. + * Verifies an Account message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeHistoryEvent.verify = function verify(message) { + Account.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.changeTime != null && message.hasOwnProperty("changeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.changeTime); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "changeTime." + error; + return "createTime." + error; } - if (message.actorType != null && message.hasOwnProperty("actorType")) - switch (message.actorType) { - default: - return "actorType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) - if (!$util.isString(message.userActorEmail)) - return "userActorEmail: string expected"; - if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) - if (typeof message.changesFiltered !== "boolean") - return "changesFiltered: boolean expected"; - if (message.changes != null && message.hasOwnProperty("changes")) { - if (!Array.isArray(message.changes)) - return "changes: array expected"; - for (var i = 0; i < message.changes.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.verify(message.changes[i]); - if (error) - return "changes." + error; - } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; return null; }; /** - * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * Creates an Account message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.Account} Account */ - ChangeHistoryEvent.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryEvent) + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); - if (object.id != null) - message.id = String(object.id); - if (object.changeTime != null) { - if (typeof object.changeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changeTime: object expected"); - message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); - } - switch (object.actorType) { - case "ACTOR_TYPE_UNSPECIFIED": - case 0: - message.actorType = 0; - break; - case "USER": - case 1: - message.actorType = 1; - break; - case "SYSTEM": - case 2: - message.actorType = 2; - break; - case "SUPPORT": - case 3: - message.actorType = 3; - break; + var message = new $root.google.analytics.admin.v1alpha.Account(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.userActorEmail != null) - message.userActorEmail = String(object.userActorEmail); - if (object.changesFiltered != null) - message.changesFiltered = Boolean(object.changesFiltered); - if (object.changes) { - if (!Array.isArray(object.changes)) - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: array expected"); - message.changes = []; - for (var i = 0; i < object.changes.length; ++i) { - if (typeof object.changes[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: object expected"); - message.changes[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.fromObject(object.changes[i]); - } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); return message; }; /** - * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * Creates a plain object from an Account message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryEvent} message ChangeHistoryEvent + * @param {google.analytics.admin.v1alpha.Account} message Account * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeHistoryEvent.toObject = function toObject(message, options) { + Account.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.changes = []; if (options.defaults) { - object.id = ""; - object.changeTime = null; - object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; - object.userActorEmail = ""; - object.changesFiltered = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.changeTime != null && message.hasOwnProperty("changeTime")) - object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); - if (message.actorType != null && message.hasOwnProperty("actorType")) - object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; - if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) - object.userActorEmail = message.userActorEmail; - if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) - object.changesFiltered = message.changesFiltered; - if (message.changes && message.changes.length) { - object.changes = []; - for (var j = 0; j < message.changes.length; ++j) - object.changes[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.toObject(message.changes[j], options); + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.regionCode = ""; + object.deleted = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; return object; }; /** - * Converts this ChangeHistoryEvent to JSON. + * Converts this Account to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Account * @instance * @returns {Object.} JSON object */ - ChangeHistoryEvent.prototype.toJSON = function toJSON() { + Account.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeHistoryEvent; + return Account; })(); - v1alpha.ChangeHistoryChange = (function() { + v1alpha.Property = (function() { /** - * Properties of a ChangeHistoryChange. + * Properties of a Property. * @memberof google.analytics.admin.v1alpha - * @interface IChangeHistoryChange - * @property {string|null} [resource] ChangeHistoryChange resource - * @property {google.analytics.admin.v1alpha.ActionType|null} [action] ChangeHistoryChange action - * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange - * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {google.analytics.admin.v1alpha.ServiceLevel|null} [serviceLevel] Property serviceLevel + * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime */ /** - * Constructs a new ChangeHistoryChange. + * Constructs a new Property. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChangeHistoryChange. - * @implements IChangeHistoryChange + * @classdesc Represents a Property. + * @implements IProperty * @constructor - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set */ - function ChangeHistoryChange(properties) { + function Property(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26366,114 +25236,205 @@ } /** - * ChangeHistoryChange resource. - * @member {string} resource - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryChange.prototype.resource = ""; + Property.prototype.name = ""; /** - * ChangeHistoryChange action. - * @member {google.analytics.admin.v1alpha.ActionType} action - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryChange.prototype.action = 0; + Property.prototype.createTime = null; /** - * ChangeHistoryChange resourceBeforeChange. - * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryChange.prototype.resourceBeforeChange = null; + Property.prototype.updateTime = null; /** - * ChangeHistoryChange resourceAfterChange. - * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryChange.prototype.resourceAfterChange = null; + Property.prototype.parent = ""; /** - * Creates a new ChangeHistoryChange instance using the specified properties. + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.displayName = ""; + + /** + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.industryCategory = 0; + + /** + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property serviceLevel. + * @member {google.analytics.admin.v1alpha.ServiceLevel} serviceLevel + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.serviceLevel = 0; + + /** + * Property deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.deleteTime = null; + + /** + * Property expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.expireTime = null; + + /** + * Creates a new Property instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange instance + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance */ - ChangeHistoryChange.create = function create(properties) { - return new ChangeHistoryChange(properties); + Property.create = function create(properties) { + return new Property(properties); }; /** - * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryChange.encode = function encode(message, writer) { + Property.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); - if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { + Property.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * Decodes a Property message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryChange.decode = function decode(reader, length) { + Property.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.analytics.admin.v1alpha.ChangeHistoryChange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Property(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.resource = reader.string(); - break; - case 2: - message.action = reader.int32(); + message.name = reader.string(); break; case 3: - message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + case 5: + message.displayName = reader.string(); + break; + case 6: + message.industryCategory = reader.int32(); + break; + case 7: + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 10: + message.serviceLevel = reader.int32(); + break; + case 11: + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26484,730 +25445,6340 @@ }; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * Decodes a Property message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { + Property.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeHistoryChange message. + * Verifies a Property message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeHistoryChange.verify = function verify(message) { + Property.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - switch (message.action) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { default: - return "action: enum value expected"; + return "industryCategory: enum value expected"; case 0: case 1: case 2: case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: break; } - if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + switch (message.serviceLevel) { + default: + return "serviceLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); if (error) - return "resourceBeforeChange." + error; + return "deleteTime." + error; } - if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); if (error) - return "resourceAfterChange." + error; + return "expireTime." + error; } return null; }; /** - * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * Creates a Property message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.Property} Property */ - ChangeHistoryChange.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange) + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); - if (object.resource != null) - message.resource = String(object.resource); - switch (object.action) { - case "ACTION_TYPE_UNSPECIFIED": + var message = new $root.google.analytics.admin.v1alpha.Property(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": case 0: - message.action = 0; + message.industryCategory = 0; break; - case "CREATED": + case "AUTOMOTIVE": case 1: - message.action = 1; + message.industryCategory = 1; break; - case "UPDATED": + case "BUSINESS_AND_INDUSTRIAL_MARKETS": case 2: - message.action = 2; + message.industryCategory = 2; break; - case "DELETED": + case "FINANCE": case 3: - message.action = 3; + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; break; } - if (object.resourceBeforeChange != null) { - if (typeof object.resourceBeforeChange !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceBeforeChange: object expected"); - message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + switch (object.serviceLevel) { + case "SERVICE_LEVEL_UNSPECIFIED": + case 0: + message.serviceLevel = 0; + break; + case "GOOGLE_ANALYTICS_STANDARD": + case 1: + message.serviceLevel = 1; + break; + case "GOOGLE_ANALYTICS_360": + case 2: + message.serviceLevel = 2; + break; } - if (object.resourceAfterChange != null) { - if (typeof object.resourceAfterChange !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceAfterChange: object expected"); - message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); } return message; }; /** - * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * Creates a plain object from a Property message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange} message ChangeHistoryChange + * @param {google.analytics.admin.v1alpha.Property} message Property * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeHistoryChange.toObject = function toObject(message, options) { + Property.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.resource = ""; - object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; - object.resourceBeforeChange = null; - object.resourceAfterChange = null; + object.name = ""; + object.parent = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; + object.deleteTime = null; + object.expireTime = null; } - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; - if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) - object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); - if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) - object.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); return object; }; /** - * Converts this ChangeHistoryChange to JSON. + * Converts this Property to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.Property * @instance * @returns {Object.} JSON object */ - ChangeHistoryChange.prototype.toJSON = function toJSON() { + Property.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ChangeHistoryChange.ChangeHistoryResource = (function() { - - /** - * Properties of a ChangeHistoryResource. - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @interface IChangeHistoryResource - * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account - * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property - * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] ChangeHistoryResource webDataStream - * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] ChangeHistoryResource androidAppDataStream - * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] ChangeHistoryResource iosAppDataStream - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink - * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] ChangeHistoryResource googleSignalsSettings - * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] ChangeHistoryResource conversionEvent - * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] ChangeHistoryResource measurementProtocolSecret - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] ChangeHistoryResource customDimension - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] ChangeHistoryResource customMetric - */ + return Property; + })(); - /** - * Constructs a new ChangeHistoryResource. - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @classdesc Represents a ChangeHistoryResource. - * @implements IChangeHistoryResource - * @constructor - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set - */ - function ChangeHistoryResource(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]]; - } + v1alpha.AndroidAppDataStream = (function() { - /** - * ChangeHistoryResource account. - * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.account = null; + /** + * Properties of an AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IAndroidAppDataStream + * @property {string|null} [name] AndroidAppDataStream name + * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime + * @property {string|null} [packageName] AndroidAppDataStream packageName + * @property {string|null} [displayName] AndroidAppDataStream displayName + */ - /** - * ChangeHistoryResource property. - * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.property = null; + /** + * Constructs a new AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AndroidAppDataStream. + * @implements IAndroidAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + */ + function AndroidAppDataStream(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]]; + } - /** - * ChangeHistoryResource webDataStream. - * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.webDataStream = null; + /** + * AndroidAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.name = ""; - /** - * ChangeHistoryResource androidAppDataStream. - * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.androidAppDataStream = null; + /** + * AndroidAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.firebaseAppId = ""; - /** - * ChangeHistoryResource iosAppDataStream. - * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.iosAppDataStream = null; + /** + * AndroidAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.createTime = null; - /** - * ChangeHistoryResource firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.firebaseLink = null; + /** + * AndroidAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.updateTime = null; - /** - * ChangeHistoryResource googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.googleAdsLink = null; + /** + * AndroidAppDataStream packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.packageName = ""; - /** - * ChangeHistoryResource googleSignalsSettings. - * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.googleSignalsSettings = null; + /** + * AndroidAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.displayName = ""; - /** - * ChangeHistoryResource conversionEvent. - * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.conversionEvent = null; + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + */ + AndroidAppDataStream.create = function create(properties) { + return new AndroidAppDataStream(properties); + }; - /** - * ChangeHistoryResource measurementProtocolSecret. - * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.measurementProtocolSecret = null; + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; - /** - * ChangeHistoryResource customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.customDimension = null; + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ChangeHistoryResource customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.customMetric = null; + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.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.analytics.admin.v1alpha.AndroidAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.packageName = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * ChangeHistoryResource resource. - * @member {"account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|undefined} resource - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - Object.defineProperty(ChangeHistoryResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["account", "property", "webDataStream", "androidAppDataStream", "iosAppDataStream", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Verifies an AndroidAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; - /** - * Creates a new ChangeHistoryResource instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance - */ - ChangeHistoryResource.create = function create(properties) { - return new ChangeHistoryResource(properties); - }; + /** + * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + */ + AndroidAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.packageName != null) + message.packageName = String(object.packageName); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeHistoryResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) - $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) - $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - return writer; - }; + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.packageName = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this AndroidAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + * @returns {Object.} JSON object + */ + AndroidAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeHistoryResource.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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); - break; - case 2: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; - case 3: - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); - break; - case 4: - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); - break; - case 5: - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); - break; - case 6: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); - break; - case 7: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); - break; - case 8: - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); - break; - case 11: - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); - break; - case 12: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - case 13: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); - break; - case 14: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return AndroidAppDataStream; + })(); - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1alpha.IosAppDataStream = (function() { + + /** + * Properties of an IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IIosAppDataStream + * @property {string|null} [name] IosAppDataStream name + * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime + * @property {string|null} [bundleId] IosAppDataStream bundleId + * @property {string|null} [displayName] IosAppDataStream displayName + */ + + /** + * Constructs a new IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an IosAppDataStream. + * @implements IIosAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + */ + function IosAppDataStream(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]]; + } + + /** + * IosAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.name = ""; + + /** + * IosAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.firebaseAppId = ""; + + /** + * IosAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.createTime = null; + + /** + * IosAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.updateTime = null; + + /** + * IosAppDataStream bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.bundleId = ""; + + /** + * IosAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.displayName = ""; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + */ + IosAppDataStream.create = function create(properties) { + return new IosAppDataStream(properties); + }; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.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.analytics.admin.v1alpha.IosAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.bundleId = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + */ + IosAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IosAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.bundleId = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this IosAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + * @returns {Object.} JSON object + */ + IosAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IosAppDataStream; + })(); + + v1alpha.WebDataStream = (function() { + + /** + * Properties of a WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IWebDataStream + * @property {string|null} [name] WebDataStream name + * @property {string|null} [measurementId] WebDataStream measurementId + * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime + * @property {string|null} [defaultUri] WebDataStream defaultUri + * @property {string|null} [displayName] WebDataStream displayName + */ + + /** + * Constructs a new WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a WebDataStream. + * @implements IWebDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + */ + function WebDataStream(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]]; + } + + /** + * WebDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.name = ""; + + /** + * WebDataStream measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.measurementId = ""; + + /** + * WebDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.firebaseAppId = ""; + + /** + * WebDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.createTime = null; + + /** + * WebDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.updateTime = null; + + /** + * WebDataStream defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.defaultUri = ""; + + /** + * WebDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.displayName = ""; + + /** + * Creates a new WebDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + */ + WebDataStream.create = function create(properties) { + return new WebDataStream(properties); + }; + + /** + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.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.analytics.admin.v1alpha.WebDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.measurementId = reader.string(); + break; + case 3: + message.firebaseAppId = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.defaultUri = reader.string(); + break; + case 7: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WebDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebDataStream.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.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + */ + WebDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.measurementId = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.defaultUri = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this WebDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + * @returns {Object.} JSON object + */ + WebDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return WebDataStream; + })(); + + v1alpha.UserLink = (function() { + + /** + * Properties of a UserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IUserLink + * @property {string|null} [name] UserLink name + * @property {string|null} [emailAddress] UserLink emailAddress + * @property {Array.|null} [directRoles] UserLink directRoles + */ + + /** + * Constructs a new UserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a UserLink. + * @implements IUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + */ + function UserLink(properties) { + this.directRoles = []; + 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]]; + } + + /** + * UserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.name = ""; + + /** + * UserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.emailAddress = ""; + + /** + * UserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.directRoles = $util.emptyArray; + + /** + * Creates a new UserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance + */ + UserLink.create = function create(properties) { + return new UserLink(properties); + }; + + /** + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + return writer; + }; + + /** + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.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.analytics.admin.v1alpha.UserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.emailAddress = reader.string(); + break; + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + return null; + }; + + /** + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + */ + UserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.UserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.directRoles = []; + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + return object; + }; + + /** + * Converts this UserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + * @returns {Object.} JSON object + */ + UserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UserLink; + })(); + + v1alpha.AuditUserLink = (function() { + + /** + * Properties of an AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IAuditUserLink + * @property {string|null} [name] AuditUserLink name + * @property {string|null} [emailAddress] AuditUserLink emailAddress + * @property {Array.|null} [directRoles] AuditUserLink directRoles + * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + */ + + /** + * Constructs a new AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AuditUserLink. + * @implements IAuditUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + */ + function AuditUserLink(properties) { + this.directRoles = []; + this.effectiveRoles = []; + 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]]; + } + + /** + * AuditUserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.name = ""; + + /** + * AuditUserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.emailAddress = ""; + + /** + * AuditUserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.directRoles = $util.emptyArray; + + /** + * AuditUserLink effectiveRoles. + * @member {Array.} effectiveRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + + /** + * Creates a new AuditUserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + */ + AuditUserLink.create = function create(properties) { + return new AuditUserLink(properties); + }; + + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.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.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.effectiveRoles != null && message.effectiveRoles.length) + for (var i = 0; i < message.effectiveRoles.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + return writer; + }; + + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.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.analytics.admin.v1alpha.AuditUserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.emailAddress = reader.string(); + break; + case 3: + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + case 4: + if (!(message.effectiveRoles && message.effectiveRoles.length)) + message.effectiveRoles = []; + message.effectiveRoles.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditUserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditUserLink.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.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { + if (!Array.isArray(message.effectiveRoles)) + return "effectiveRoles: array expected"; + for (var i = 0; i < message.effectiveRoles.length; ++i) + if (!$util.isString(message.effectiveRoles[i])) + return "effectiveRoles: string[] expected"; + } + return null; + }; + + /** + * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + */ + AuditUserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + if (object.effectiveRoles) { + if (!Array.isArray(object.effectiveRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); + message.effectiveRoles = []; + for (var i = 0; i < object.effectiveRoles.length; ++i) + message.effectiveRoles[i] = String(object.effectiveRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditUserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.directRoles = []; + object.effectiveRoles = []; + } + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + if (message.effectiveRoles && message.effectiveRoles.length) { + object.effectiveRoles = []; + for (var j = 0; j < message.effectiveRoles.length; ++j) + object.effectiveRoles[j] = message.effectiveRoles[j]; + } + return object; + }; + + /** + * Converts this AuditUserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + * @returns {Object.} JSON object + */ + AuditUserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditUserLink; + })(); + + v1alpha.EnhancedMeasurementSettings = (function() { + + /** + * Properties of an EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IEnhancedMeasurementSettings + * @property {string|null} [name] EnhancedMeasurementSettings name + * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled + * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled + * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled + * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled + * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled + * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled + * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled + * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled + * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled + * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter + * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter + */ + + /** + * Constructs a new EnhancedMeasurementSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an EnhancedMeasurementSettings. + * @implements IEnhancedMeasurementSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + */ + function EnhancedMeasurementSettings(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]]; + } + + /** + * EnhancedMeasurementSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.name = ""; + + /** + * EnhancedMeasurementSettings streamEnabled. + * @member {boolean} streamEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.streamEnabled = false; + + /** + * EnhancedMeasurementSettings pageViewsEnabled. + * @member {boolean} pageViewsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; + + /** + * EnhancedMeasurementSettings scrollsEnabled. + * @member {boolean} scrollsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.scrollsEnabled = false; + + /** + * EnhancedMeasurementSettings outboundClicksEnabled. + * @member {boolean} outboundClicksEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; + + /** + * EnhancedMeasurementSettings siteSearchEnabled. + * @member {boolean} siteSearchEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; + + /** + * EnhancedMeasurementSettings videoEngagementEnabled. + * @member {boolean} videoEngagementEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; + + /** + * EnhancedMeasurementSettings fileDownloadsEnabled. + * @member {boolean} fileDownloadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageLoadsEnabled. + * @member {boolean} pageLoadsEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; + + /** + * EnhancedMeasurementSettings pageChangesEnabled. + * @member {boolean} pageChangesEnabled + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; + + /** + * EnhancedMeasurementSettings searchQueryParameter. + * @member {string} searchQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; + + /** + * EnhancedMeasurementSettings uriQueryParameter. + * @member {string} uriQueryParameter + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + */ + EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; + + /** + * Creates a new EnhancedMeasurementSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance + */ + EnhancedMeasurementSettings.create = function create(properties) { + return new EnhancedMeasurementSettings(properties); + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); + if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); + if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); + if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); + if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); + if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); + if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); + if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); + if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); + if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); + if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); + return writer; + }; + + /** + * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.streamEnabled = reader.bool(); + break; + case 3: + message.pageViewsEnabled = reader.bool(); + break; + case 4: + message.scrollsEnabled = reader.bool(); + break; + case 5: + message.outboundClicksEnabled = reader.bool(); + break; + case 7: + message.siteSearchEnabled = reader.bool(); + break; + case 9: + message.videoEngagementEnabled = reader.bool(); + break; + case 10: + message.fileDownloadsEnabled = reader.bool(); + break; + case 12: + message.pageLoadsEnabled = reader.bool(); + break; + case 13: + message.pageChangesEnabled = reader.bool(); + break; + case 16: + message.searchQueryParameter = reader.string(); + break; + case 17: + message.uriQueryParameter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnhancedMeasurementSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnhancedMeasurementSettings.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + if (typeof message.streamEnabled !== "boolean") + return "streamEnabled: boolean expected"; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + if (typeof message.pageViewsEnabled !== "boolean") + return "pageViewsEnabled: boolean expected"; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + if (typeof message.scrollsEnabled !== "boolean") + return "scrollsEnabled: boolean expected"; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + if (typeof message.outboundClicksEnabled !== "boolean") + return "outboundClicksEnabled: boolean expected"; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + if (typeof message.siteSearchEnabled !== "boolean") + return "siteSearchEnabled: boolean expected"; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + if (typeof message.videoEngagementEnabled !== "boolean") + return "videoEngagementEnabled: boolean expected"; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + if (typeof message.fileDownloadsEnabled !== "boolean") + return "fileDownloadsEnabled: boolean expected"; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + if (typeof message.pageLoadsEnabled !== "boolean") + return "pageLoadsEnabled: boolean expected"; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + if (typeof message.pageChangesEnabled !== "boolean") + return "pageChangesEnabled: boolean expected"; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + if (!$util.isString(message.searchQueryParameter)) + return "searchQueryParameter: string expected"; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + if (!$util.isString(message.uriQueryParameter)) + return "uriQueryParameter: string expected"; + return null; + }; + + /** + * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings + */ + EnhancedMeasurementSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.streamEnabled != null) + message.streamEnabled = Boolean(object.streamEnabled); + if (object.pageViewsEnabled != null) + message.pageViewsEnabled = Boolean(object.pageViewsEnabled); + if (object.scrollsEnabled != null) + message.scrollsEnabled = Boolean(object.scrollsEnabled); + if (object.outboundClicksEnabled != null) + message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); + if (object.siteSearchEnabled != null) + message.siteSearchEnabled = Boolean(object.siteSearchEnabled); + if (object.videoEngagementEnabled != null) + message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); + if (object.fileDownloadsEnabled != null) + message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); + if (object.pageLoadsEnabled != null) + message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); + if (object.pageChangesEnabled != null) + message.pageChangesEnabled = Boolean(object.pageChangesEnabled); + if (object.searchQueryParameter != null) + message.searchQueryParameter = String(object.searchQueryParameter); + if (object.uriQueryParameter != null) + message.uriQueryParameter = String(object.uriQueryParameter); + return message; + }; + + /** + * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @static + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnhancedMeasurementSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.streamEnabled = false; + object.pageViewsEnabled = false; + object.scrollsEnabled = false; + object.outboundClicksEnabled = false; + object.siteSearchEnabled = false; + object.videoEngagementEnabled = false; + object.fileDownloadsEnabled = false; + object.pageLoadsEnabled = false; + object.pageChangesEnabled = false; + object.searchQueryParameter = ""; + object.uriQueryParameter = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) + object.streamEnabled = message.streamEnabled; + if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) + object.pageViewsEnabled = message.pageViewsEnabled; + if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) + object.scrollsEnabled = message.scrollsEnabled; + if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) + object.outboundClicksEnabled = message.outboundClicksEnabled; + if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) + object.siteSearchEnabled = message.siteSearchEnabled; + if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) + object.videoEngagementEnabled = message.videoEngagementEnabled; + if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) + object.fileDownloadsEnabled = message.fileDownloadsEnabled; + if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) + object.pageLoadsEnabled = message.pageLoadsEnabled; + if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) + object.pageChangesEnabled = message.pageChangesEnabled; + if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) + object.searchQueryParameter = message.searchQueryParameter; + if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) + object.uriQueryParameter = message.uriQueryParameter; + return object; + }; + + /** + * Converts this EnhancedMeasurementSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings + * @instance + * @returns {Object.} JSON object + */ + EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnhancedMeasurementSettings; + })(); + + v1alpha.FirebaseLink = (function() { + + /** + * Properties of a FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @interface IFirebaseLink + * @property {string|null} [name] FirebaseLink name + * @property {string|null} [project] FirebaseLink project + * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + */ + + /** + * Constructs a new FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a FirebaseLink. + * @implements IFirebaseLink + * @constructor + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + */ + function FirebaseLink(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]]; + } + + /** + * FirebaseLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.name = ""; + + /** + * FirebaseLink project. + * @member {string} project + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.project = ""; + + /** + * FirebaseLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.createTime = null; + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + */ + FirebaseLink.create = function create(properties) { + return new FirebaseLink(properties); + }; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.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.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.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.analytics.admin.v1alpha.FirebaseLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FirebaseLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FirebaseLink.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.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + return null; + }; + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + */ + FirebaseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + if (object.name != null) + message.name = String(object.name); + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + return message; + }; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FirebaseLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.project = ""; + object.createTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + return object; + }; + + /** + * Converts this FirebaseLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + * @returns {Object.} JSON object + */ + FirebaseLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FirebaseLink; + })(); + + v1alpha.GlobalSiteTag = (function() { + + /** + * Properties of a GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @interface IGlobalSiteTag + * @property {string|null} [name] GlobalSiteTag name + * @property {string|null} [snippet] GlobalSiteTag snippet + */ + + /** + * Constructs a new GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GlobalSiteTag. + * @implements IGlobalSiteTag + * @constructor + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + */ + function GlobalSiteTag(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]]; + } + + /** + * GlobalSiteTag name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.name = ""; + + /** + * GlobalSiteTag snippet. + * @member {string} snippet + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.snippet = ""; + + /** + * Creates a new GlobalSiteTag instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + */ + GlobalSiteTag.create = function create(properties) { + return new GlobalSiteTag(properties); + }; + + /** + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.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.snippet != null && Object.hasOwnProperty.call(message, "snippet")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); + return writer; + }; + + /** + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.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.analytics.admin.v1alpha.GlobalSiteTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.snippet = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalSiteTag message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalSiteTag.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.snippet != null && message.hasOwnProperty("snippet")) + if (!$util.isString(message.snippet)) + return "snippet: string expected"; + return null; + }; + + /** + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + */ + GlobalSiteTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + return object; + var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + if (object.name != null) + message.name = String(object.name); + if (object.snippet != null) + message.snippet = String(object.snippet); + return message; + }; + + /** + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalSiteTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.snippet = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.snippet != null && message.hasOwnProperty("snippet")) + object.snippet = message.snippet; + return object; + }; + + /** + * Converts this GlobalSiteTag to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + * @returns {Object.} JSON object + */ + GlobalSiteTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GlobalSiteTag; + })(); + + v1alpha.GoogleAdsLink = (function() { + + /** + * Properties of a GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @interface IGoogleAdsLink + * @property {string|null} [name] GoogleAdsLink name + * @property {string|null} [customerId] GoogleAdsLink customerId + * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled + * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + * @property {string|null} [creatorEmailAddress] GoogleAdsLink creatorEmailAddress + */ + + /** + * Constructs a new GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GoogleAdsLink. + * @implements IGoogleAdsLink + * @constructor + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + */ + function GoogleAdsLink(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]]; + } + + /** + * GoogleAdsLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.name = ""; + + /** + * GoogleAdsLink customerId. + * @member {string} customerId + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.customerId = ""; + + /** + * GoogleAdsLink canManageClients. + * @member {boolean} canManageClients + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.canManageClients = false; + + /** + * GoogleAdsLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + + /** + * GoogleAdsLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.createTime = null; + + /** + * GoogleAdsLink updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.updateTime = null; + + /** + * GoogleAdsLink creatorEmailAddress. + * @member {string} creatorEmailAddress + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.creatorEmailAddress = ""; + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + */ + GoogleAdsLink.create = function create(properties) { + return new GoogleAdsLink(properties); + }; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.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.customerId != null && Object.hasOwnProperty.call(message, "customerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); + if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.creatorEmailAddress != null && Object.hasOwnProperty.call(message, "creatorEmailAddress")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.creatorEmailAddress); + return writer; + }; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.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.analytics.admin.v1alpha.GoogleAdsLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.customerId = reader.string(); + break; + case 4: + message.canManageClients = reader.bool(); + break; + case 5: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.creatorEmailAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleAdsLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleAdsLink.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.customerId != null && message.hasOwnProperty("customerId")) + if (!$util.isString(message.customerId)) + return "customerId: string expected"; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + if (typeof message.canManageClients !== "boolean") + return "canManageClients: boolean expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) + if (!$util.isString(message.creatorEmailAddress)) + return "creatorEmailAddress: string expected"; + return null; + }; + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + */ + GoogleAdsLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + if (object.name != null) + message.name = String(object.name); + if (object.customerId != null) + message.customerId = String(object.customerId); + if (object.canManageClients != null) + message.canManageClients = Boolean(object.canManageClients); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.creatorEmailAddress != null) + message.creatorEmailAddress = String(object.creatorEmailAddress); + return message; + }; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleAdsLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.customerId = ""; + object.canManageClients = false; + object.adsPersonalizationEnabled = null; + object.createTime = null; + object.updateTime = null; + object.creatorEmailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.customerId != null && message.hasOwnProperty("customerId")) + object.customerId = message.customerId; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + object.canManageClients = message.canManageClients; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) + object.creatorEmailAddress = message.creatorEmailAddress; + return object; + }; + + /** + * Converts this GoogleAdsLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + * @returns {Object.} JSON object + */ + GoogleAdsLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GoogleAdsLink; + })(); + + v1alpha.DataSharingSettings = (function() { + + /** + * Properties of a DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IDataSharingSettings + * @property {string|null} [name] DataSharingSettings name + * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled + * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled + * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled + * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled + * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled + */ + + /** + * Constructs a new DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DataSharingSettings. + * @implements IDataSharingSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + */ + function DataSharingSettings(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]]; + } + + /** + * DataSharingSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.name = ""; + + /** + * DataSharingSettings sharingWithGoogleSupportEnabled. + * @member {boolean} sharingWithGoogleSupportEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. + * @member {boolean} sharingWithGoogleAssignedSalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAnySalesEnabled. + * @member {boolean} sharingWithGoogleAnySalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleProductsEnabled. + * @member {boolean} sharingWithGoogleProductsEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + + /** + * DataSharingSettings sharingWithOthersEnabled. + * @member {boolean} sharingWithOthersEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithOthersEnabled = false; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + */ + DataSharingSettings.create = function create(properties) { + return new DataSharingSettings(properties); + }; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); + if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); + if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); + if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); + if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + return writer; + }; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.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.analytics.admin.v1alpha.DataSharingSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + case 3: + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + case 4: + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + case 5: + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + case 6: + message.sharingWithOthersEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataSharingSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") + return "sharingWithGoogleSupportEnabled: boolean expected"; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") + return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") + return "sharingWithGoogleAnySalesEnabled: boolean expected"; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") + return "sharingWithGoogleProductsEnabled: boolean expected"; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + if (typeof message.sharingWithOthersEnabled !== "boolean") + return "sharingWithOthersEnabled: boolean expected"; + return null; + }; + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + */ + DataSharingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.sharingWithGoogleSupportEnabled != null) + message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); + if (object.sharingWithGoogleAssignedSalesEnabled != null) + message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); + if (object.sharingWithGoogleAnySalesEnabled != null) + message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); + if (object.sharingWithGoogleProductsEnabled != null) + message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); + if (object.sharingWithOthersEnabled != null) + message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + return message; + }; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataSharingSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.sharingWithGoogleSupportEnabled = false; + object.sharingWithGoogleAssignedSalesEnabled = false; + object.sharingWithGoogleAnySalesEnabled = false; + object.sharingWithGoogleProductsEnabled = false; + object.sharingWithOthersEnabled = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + return object; + }; + + /** + * Converts this DataSharingSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + * @returns {Object.} JSON object + */ + DataSharingSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataSharingSettings; + })(); + + v1alpha.AccountSummary = (function() { + + /** + * Properties of an AccountSummary. + * @memberof google.analytics.admin.v1alpha + * @interface IAccountSummary + * @property {string|null} [name] AccountSummary name + * @property {string|null} [account] AccountSummary account + * @property {string|null} [displayName] AccountSummary displayName + * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + */ + + /** + * Constructs a new AccountSummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccountSummary. + * @implements IAccountSummary + * @constructor + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + */ + function AccountSummary(properties) { + this.propertySummaries = []; + 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]]; + } + + /** + * AccountSummary name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.name = ""; + + /** + * AccountSummary account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.account = ""; + + /** + * AccountSummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.displayName = ""; + + /** + * AccountSummary propertySummaries. + * @member {Array.} propertySummaries + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.propertySummaries = $util.emptyArray; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance + */ + AccountSummary.create = function create(properties) { + return new AccountSummary(properties); + }; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.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 2 =*/18).string(message.account); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.propertySummaries != null && message.propertySummaries.length) + for (var i = 0; i < message.propertySummaries.length; ++i) + $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.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.analytics.admin.v1alpha.AccountSummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.account = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AccountSummary message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AccountSummary.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.isString(message.account)) + return "account: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { + if (!Array.isArray(message.propertySummaries)) + return "propertySummaries: array expected"; + for (var i = 0; i < message.propertySummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); + if (error) + return "propertySummaries." + error; + } + } + return null; + }; + + /** + * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + */ + AccountSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); + if (object.name != null) + message.name = String(object.name); + if (object.account != null) + message.account = String(object.account); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.propertySummaries) { + if (!Array.isArray(object.propertySummaries)) + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); + message.propertySummaries = []; + for (var i = 0; i < object.propertySummaries.length; ++i) { + if (typeof object.propertySummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); + message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AccountSummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.propertySummaries = []; + if (options.defaults) { + object.name = ""; + object.account = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertySummaries && message.propertySummaries.length) { + object.propertySummaries = []; + for (var j = 0; j < message.propertySummaries.length; ++j) + object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); + } + return object; + }; + + /** + * Converts this AccountSummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + * @returns {Object.} JSON object + */ + AccountSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccountSummary; + })(); + + v1alpha.PropertySummary = (function() { + + /** + * Properties of a PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @interface IPropertySummary + * @property {string|null} [property] PropertySummary property + * @property {string|null} [displayName] PropertySummary displayName + */ + + /** + * Constructs a new PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a PropertySummary. + * @implements IPropertySummary + * @constructor + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + */ + function PropertySummary(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]]; + } + + /** + * PropertySummary property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.property = ""; + + /** + * PropertySummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.displayName = ""; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance + */ + PropertySummary.create = function create(properties) { + return new PropertySummary(properties); + }; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.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.analytics.admin.v1alpha.PropertySummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PropertySummary message. + * @function verify + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PropertySummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + */ + PropertySummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) + return object; + var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); + if (object.property != null) + message.property = String(object.property); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PropertySummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = ""; + object.displayName = ""; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this PropertySummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + * @returns {Object.} JSON object + */ + PropertySummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PropertySummary; + })(); + + v1alpha.MeasurementProtocolSecret = (function() { + + /** + * Properties of a MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1alpha + * @interface IMeasurementProtocolSecret + * @property {string|null} [name] MeasurementProtocolSecret name + * @property {string|null} [displayName] MeasurementProtocolSecret displayName + * @property {string|null} [secretValue] MeasurementProtocolSecret secretValue + */ + + /** + * Constructs a new MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a MeasurementProtocolSecret. + * @implements IMeasurementProtocolSecret + * @constructor + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + */ + function MeasurementProtocolSecret(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]]; + } + + /** + * MeasurementProtocolSecret name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.name = ""; + + /** + * MeasurementProtocolSecret displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.displayName = ""; + + /** + * MeasurementProtocolSecret secretValue. + * @member {string} secretValue + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.secretValue = ""; + + /** + * Creates a new MeasurementProtocolSecret instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret instance + */ + MeasurementProtocolSecret.create = function create(properties) { + return new MeasurementProtocolSecret(properties); + }; + + /** + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.secretValue != null && Object.hasOwnProperty.call(message, "secretValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.secretValue); + return writer; + }; + + /** + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.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.analytics.admin.v1alpha.MeasurementProtocolSecret(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.secretValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MeasurementProtocolSecret message. + * @function verify + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MeasurementProtocolSecret.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + if (!$util.isString(message.secretValue)) + return "secretValue: string expected"; + return null; + }; + + /** + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + */ + MeasurementProtocolSecret.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret) + return object; + var message = new $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.secretValue != null) + message.secretValue = String(object.secretValue); + return message; + }; + + /** + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} message MeasurementProtocolSecret + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MeasurementProtocolSecret.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.secretValue = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + object.secretValue = message.secretValue; + return object; + }; + + /** + * Converts this MeasurementProtocolSecret to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + * @returns {Object.} JSON object + */ + MeasurementProtocolSecret.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MeasurementProtocolSecret; + })(); + + v1alpha.ChangeHistoryEvent = (function() { + + /** + * Properties of a ChangeHistoryEvent. + * @memberof google.analytics.admin.v1alpha + * @interface IChangeHistoryEvent + * @property {string|null} [id] ChangeHistoryEvent id + * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime + * @property {google.analytics.admin.v1alpha.ActorType|null} [actorType] ChangeHistoryEvent actorType + * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail + * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered + * @property {Array.|null} [changes] ChangeHistoryEvent changes + */ + + /** + * Constructs a new ChangeHistoryEvent. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ChangeHistoryEvent. + * @implements IChangeHistoryEvent + * @constructor + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + */ + function ChangeHistoryEvent(properties) { + this.changes = []; + 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]]; + } + + /** + * ChangeHistoryEvent id. + * @member {string} id + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.id = ""; + + /** + * ChangeHistoryEvent changeTime. + * @member {google.protobuf.ITimestamp|null|undefined} changeTime + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changeTime = null; + + /** + * ChangeHistoryEvent actorType. + * @member {google.analytics.admin.v1alpha.ActorType} actorType + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.actorType = 0; + + /** + * ChangeHistoryEvent userActorEmail. + * @member {string} userActorEmail + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.userActorEmail = ""; + + /** + * ChangeHistoryEvent changesFiltered. + * @member {boolean} changesFiltered + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changesFiltered = false; + + /** + * ChangeHistoryEvent changes. + * @member {Array.} changes + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changes = $util.emptyArray; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent instance + */ + ChangeHistoryEvent.create = function create(properties) { + return new ChangeHistoryEvent(properties); + }; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) + $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); + if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); + if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); + if (message.changes != null && message.changes.length) + for (var i = 0; i < message.changes.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.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.analytics.admin.v1alpha.ChangeHistoryEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.actorType = reader.int32(); + break; + case 4: + message.userActorEmail = reader.string(); + break; + case 5: + message.changesFiltered = reader.bool(); + break; + case 6: + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryEvent message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.changeTime); + if (error) + return "changeTime." + error; + } + if (message.actorType != null && message.hasOwnProperty("actorType")) + switch (message.actorType) { + default: + return "actorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + if (!$util.isString(message.userActorEmail)) + return "userActorEmail: string expected"; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + if (typeof message.changesFiltered !== "boolean") + return "changesFiltered: boolean expected"; + if (message.changes != null && message.hasOwnProperty("changes")) { + if (!Array.isArray(message.changes)) + return "changes: array expected"; + for (var i = 0; i < message.changes.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.verify(message.changes[i]); + if (error) + return "changes." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + */ + ChangeHistoryEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryEvent) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + if (object.id != null) + message.id = String(object.id); + if (object.changeTime != null) { + if (typeof object.changeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changeTime: object expected"); + message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); + } + switch (object.actorType) { + case "ACTOR_TYPE_UNSPECIFIED": + case 0: + message.actorType = 0; + break; + case "USER": + case 1: + message.actorType = 1; + break; + case "SYSTEM": + case 2: + message.actorType = 2; + break; + case "SUPPORT": + case 3: + message.actorType = 3; + break; + } + if (object.userActorEmail != null) + message.userActorEmail = String(object.userActorEmail); + if (object.changesFiltered != null) + message.changesFiltered = Boolean(object.changesFiltered); + if (object.changes) { + if (!Array.isArray(object.changes)) + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: array expected"); + message.changes = []; + for (var i = 0; i < object.changes.length; ++i) { + if (typeof object.changes[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: object expected"); + message.changes[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.fromObject(object.changes[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryEvent} message ChangeHistoryEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changes = []; + if (options.defaults) { + object.id = ""; + object.changeTime = null; + object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; + object.userActorEmail = ""; + object.changesFiltered = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) + object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); + if (message.actorType != null && message.hasOwnProperty("actorType")) + object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + object.userActorEmail = message.userActorEmail; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + object.changesFiltered = message.changesFiltered; + if (message.changes && message.changes.length) { + object.changes = []; + for (var j = 0; j < message.changes.length; ++j) + object.changes[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.toObject(message.changes[j], options); + } + return object; + }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeHistoryEvent; + })(); + + v1alpha.ChangeHistoryChange = (function() { + + /** + * Properties of a ChangeHistoryChange. + * @memberof google.analytics.admin.v1alpha + * @interface IChangeHistoryChange + * @property {string|null} [resource] ChangeHistoryChange resource + * @property {google.analytics.admin.v1alpha.ActionType|null} [action] ChangeHistoryChange action + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange + */ + + /** + * Constructs a new ChangeHistoryChange. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ChangeHistoryChange. + * @implements IChangeHistoryChange + * @constructor + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + */ + function ChangeHistoryChange(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]]; + } + + /** + * ChangeHistoryChange resource. + * @member {string} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resource = ""; + + /** + * ChangeHistoryChange action. + * @member {google.analytics.admin.v1alpha.ActionType} action + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.action = 0; + + /** + * ChangeHistoryChange resourceBeforeChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceBeforeChange = null; + + /** + * ChangeHistoryChange resourceAfterChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceAfterChange = null; + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange instance + */ + ChangeHistoryChange.create = function create(properties) { + return new ChangeHistoryChange(properties); + }; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); + if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.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.analytics.admin.v1alpha.ChangeHistoryChange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resource = reader.string(); + break; + case 2: + message.action = reader.int32(); + break; + case 3: + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + case 4: + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryChange message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryChange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); + if (error) + return "resourceBeforeChange." + error; + } + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); + if (error) + return "resourceAfterChange." + error; + } + return null; + }; + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + */ + ChangeHistoryChange.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); + if (object.resource != null) + message.resource = String(object.resource); + switch (object.action) { + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action = 0; + break; + case "CREATED": + case 1: + message.action = 1; + break; + case "UPDATED": + case 2: + message.action = 2; + break; + case "DELETED": + case 3: + message.action = 3; + break; + } + if (object.resourceBeforeChange != null) { + if (typeof object.resourceBeforeChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceBeforeChange: object expected"); + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); + } + if (object.resourceAfterChange != null) { + if (typeof object.resourceAfterChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceAfterChange: object expected"); + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange} message ChangeHistoryChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; + object.resourceBeforeChange = null; + object.resourceAfterChange = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) + object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) + object.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); + return object; + }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ChangeHistoryChange.ChangeHistoryResource = (function() { + + /** + * Properties of a ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @interface IChangeHistoryResource + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property + * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] ChangeHistoryResource webDataStream + * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] ChangeHistoryResource androidAppDataStream + * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] ChangeHistoryResource iosAppDataStream + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink + * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] ChangeHistoryResource googleSignalsSettings + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ChangeHistoryResource displayVideo_360AdvertiserLink + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] ChangeHistoryResource displayVideo_360AdvertiserLinkProposal + * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] ChangeHistoryResource conversionEvent + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] ChangeHistoryResource measurementProtocolSecret + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] ChangeHistoryResource customDimension + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] ChangeHistoryResource customMetric + * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] ChangeHistoryResource dataRetentionSettings + */ + + /** + * Constructs a new ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @classdesc Represents a ChangeHistoryResource. + * @implements IChangeHistoryResource + * @constructor + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + */ + function ChangeHistoryResource(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]]; + } + + /** + * ChangeHistoryResource account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.account = null; + + /** + * ChangeHistoryResource property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.property = null; + + /** + * ChangeHistoryResource webDataStream. + * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.webDataStream = null; + + /** + * ChangeHistoryResource androidAppDataStream. + * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.androidAppDataStream = null; + + /** + * ChangeHistoryResource iosAppDataStream. + * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.iosAppDataStream = null; + + /** + * ChangeHistoryResource firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.firebaseLink = null; + + /** + * ChangeHistoryResource googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.googleAdsLink = null; + + /** + * ChangeHistoryResource googleSignalsSettings. + * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.googleSignalsSettings = null; + + /** + * ChangeHistoryResource displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.displayVideo_360AdvertiserLink = null; + + /** + * ChangeHistoryResource displayVideo_360AdvertiserLinkProposal. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.displayVideo_360AdvertiserLinkProposal = null; + + /** + * ChangeHistoryResource conversionEvent. + * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.conversionEvent = null; + + /** + * ChangeHistoryResource measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.measurementProtocolSecret = null; + + /** + * ChangeHistoryResource customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.customDimension = null; + + /** + * ChangeHistoryResource customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.customMetric = null; + + /** + * ChangeHistoryResource dataRetentionSettings. + * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.dataRetentionSettings = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ChangeHistoryResource resource. + * @member {"account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|undefined} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + Object.defineProperty(ChangeHistoryResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["account", "property", "webDataStream", "androidAppDataStream", "iosAppDataStream", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance + */ + ChangeHistoryResource.create = function create(properties) { + return new ChangeHistoryResource(properties); + }; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) + $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) + $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) + $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) + $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + case 2: + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + case 3: + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + break; + case 4: + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); + break; + case 5: + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); + break; + case 6: + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + break; + case 7: + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + case 8: + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); + break; + case 9: + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + case 10: + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); + break; + case 11: + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); + break; + case 12: + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + case 13: + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + case 14: + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + case 15: + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryResource message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.account != null && message.hasOwnProperty("account")) { + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); + if (error) + return "account." + error; + } + } + if (message.property != null && message.hasOwnProperty("property")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + error; + } + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); + if (error) + return "webDataStream." + error; + } + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); + if (error) + return "androidAppDataStream." + error; + } + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); + if (error) + return "iosAppDataStream." + error; + } + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + } + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); + if (error) + return "googleSignalsSettings." + error; + } + } + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + error; + } + } + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); + if (error) + return "displayVideo_360AdvertiserLinkProposal." + error; + } + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; + } + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; + } + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + */ + ChangeHistoryResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + if (object.webDataStream != null) { + if (typeof object.webDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.webDataStream: object expected"); + message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + } + if (object.androidAppDataStream != null) { + if (typeof object.androidAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.androidAppDataStream: object expected"); + message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); + } + if (object.iosAppDataStream != null) { + if (typeof object.iosAppDataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.iosAppDataStream: object expected"); + message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); + } + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.googleSignalsSettings != null) { + if (typeof object.googleSignalsSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleSignalsSettings: object expected"); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); + } + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } + if (object.displayVideo_360AdvertiserLinkProposal != null) { + if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.displayVideo_360AdvertiserLinkProposal: object expected"); + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); + } + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); + } + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.account != null && message.hasOwnProperty("account")) { + object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); + if (options.oneofs) + object.resource = "account"; + } + if (message.property != null && message.hasOwnProperty("property")) { + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (options.oneofs) + object.resource = "property"; + } + if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { + object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); + if (options.oneofs) + object.resource = "webDataStream"; + } + if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { + object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); + if (options.oneofs) + object.resource = "androidAppDataStream"; + } + if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { + object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); + if (options.oneofs) + object.resource = "iosAppDataStream"; + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (options.oneofs) + object.resource = "firebaseLink"; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (options.oneofs) + object.resource = "googleAdsLink"; + } + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); + if (options.oneofs) + object.resource = "googleSignalsSettings"; + } + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (options.oneofs) + object.resource = "displayVideo_360AdvertiserLink"; + } + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { + object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); + if (options.oneofs) + object.resource = "displayVideo_360AdvertiserLinkProposal"; + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); + if (options.oneofs) + object.resource = "conversionEvent"; + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (options.oneofs) + object.resource = "measurementProtocolSecret"; + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (options.oneofs) + object.resource = "customDimension"; + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (options.oneofs) + object.resource = "customMetric"; + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (options.oneofs) + object.resource = "dataRetentionSettings"; + } + return object; + }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeHistoryResource; + })(); + + return ChangeHistoryChange; + })(); + + v1alpha.DisplayVideo360AdvertiserLink = (function() { + + /** + * Properties of a DisplayVideo360AdvertiserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IDisplayVideo360AdvertiserLink + * @property {string|null} [name] DisplayVideo360AdvertiserLink name + * @property {string|null} [advertiserId] DisplayVideo360AdvertiserLink advertiserId + * @property {string|null} [advertiserDisplayName] DisplayVideo360AdvertiserLink advertiserDisplayName + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] DisplayVideo360AdvertiserLink adsPersonalizationEnabled + * @property {google.protobuf.IBoolValue|null} [campaignDataSharingEnabled] DisplayVideo360AdvertiserLink campaignDataSharingEnabled + * @property {google.protobuf.IBoolValue|null} [costDataSharingEnabled] DisplayVideo360AdvertiserLink costDataSharingEnabled + */ + + /** + * Constructs a new DisplayVideo360AdvertiserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DisplayVideo360AdvertiserLink. + * @implements IDisplayVideo360AdvertiserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink=} [properties] Properties to set + */ + function DisplayVideo360AdvertiserLink(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]]; + } + + /** + * DisplayVideo360AdvertiserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.name = ""; + + /** + * DisplayVideo360AdvertiserLink advertiserId. + * @member {string} advertiserId + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.advertiserId = ""; + + /** + * DisplayVideo360AdvertiserLink advertiserDisplayName. + * @member {string} advertiserDisplayName + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.advertiserDisplayName = ""; + + /** + * DisplayVideo360AdvertiserLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.adsPersonalizationEnabled = null; + + /** + * DisplayVideo360AdvertiserLink campaignDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} campaignDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.campaignDataSharingEnabled = null; + + /** + * DisplayVideo360AdvertiserLink costDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} costDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.costDataSharingEnabled = null; + + /** + * Creates a new DisplayVideo360AdvertiserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink instance + */ + DisplayVideo360AdvertiserLink.create = function create(properties) { + return new DisplayVideo360AdvertiserLink(properties); + }; + + /** + * Encodes the specified DisplayVideo360AdvertiserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLink.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.advertiserId != null && Object.hasOwnProperty.call(message, "advertiserId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.advertiserId); + if (message.advertiserDisplayName != null && Object.hasOwnProperty.call(message, "advertiserDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.advertiserDisplayName); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.campaignDataSharingEnabled != null && Object.hasOwnProperty.call(message, "campaignDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.campaignDataSharingEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.costDataSharingEnabled != null && Object.hasOwnProperty.call(message, "costDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.costDataSharingEnabled, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DisplayVideo360AdvertiserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLink.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.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.advertiserId = reader.string(); + break; + case 3: + message.advertiserDisplayName = reader.string(); + break; + case 4: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 5: + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 6: + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DisplayVideo360AdvertiserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DisplayVideo360AdvertiserLink.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.advertiserId != null && message.hasOwnProperty("advertiserId")) + if (!$util.isString(message.advertiserId)) + return "advertiserId: string expected"; + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + if (!$util.isString(message.advertiserDisplayName)) + return "advertiserDisplayName: string expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.campaignDataSharingEnabled); + if (error) + return "campaignDataSharingEnabled." + error; + } + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.costDataSharingEnabled); + if (error) + return "costDataSharingEnabled." + error; + } + return null; + }; + + /** + * Creates a DisplayVideo360AdvertiserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + */ + DisplayVideo360AdvertiserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.advertiserId != null) + message.advertiserId = String(object.advertiserId); + if (object.advertiserDisplayName != null) + message.advertiserDisplayName = String(object.advertiserDisplayName); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.campaignDataSharingEnabled != null) { + if (typeof object.campaignDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.campaignDataSharingEnabled: object expected"); + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.campaignDataSharingEnabled); + } + if (object.costDataSharingEnabled != null) { + if (typeof object.costDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.costDataSharingEnabled: object expected"); + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.costDataSharingEnabled); + } + return message; + }; + + /** + * Creates a plain object from a DisplayVideo360AdvertiserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DisplayVideo360AdvertiserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.advertiserId = ""; + object.advertiserDisplayName = ""; + object.adsPersonalizationEnabled = null; + object.campaignDataSharingEnabled = null; + object.costDataSharingEnabled = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + object.advertiserId = message.advertiserId; + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + object.advertiserDisplayName = message.advertiserDisplayName; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) + object.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.campaignDataSharingEnabled, options); + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) + object.costDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.costDataSharingEnabled, options); + return object; + }; + + /** + * Converts this DisplayVideo360AdvertiserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + * @returns {Object.} JSON object + */ + DisplayVideo360AdvertiserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DisplayVideo360AdvertiserLink; + })(); + + v1alpha.DisplayVideo360AdvertiserLinkProposal = (function() { + + /** + * Properties of a DisplayVideo360AdvertiserLinkProposal. + * @memberof google.analytics.admin.v1alpha + * @interface IDisplayVideo360AdvertiserLinkProposal + * @property {string|null} [name] DisplayVideo360AdvertiserLinkProposal name + * @property {string|null} [advertiserId] DisplayVideo360AdvertiserLinkProposal advertiserId + * @property {google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null} [linkProposalStatusDetails] DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails + * @property {string|null} [advertiserDisplayName] DisplayVideo360AdvertiserLinkProposal advertiserDisplayName + * @property {string|null} [validationEmail] DisplayVideo360AdvertiserLinkProposal validationEmail + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled + * @property {google.protobuf.IBoolValue|null} [campaignDataSharingEnabled] DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled + * @property {google.protobuf.IBoolValue|null} [costDataSharingEnabled] DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled + */ + + /** + * Constructs a new DisplayVideo360AdvertiserLinkProposal. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DisplayVideo360AdvertiserLinkProposal. + * @implements IDisplayVideo360AdvertiserLinkProposal + * @constructor + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal=} [properties] Properties to set + */ + function DisplayVideo360AdvertiserLinkProposal(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]]; + } + + /** + * DisplayVideo360AdvertiserLinkProposal name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.name = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal advertiserId. + * @member {string} advertiserId + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.advertiserId = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails. + * @member {google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null|undefined} linkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.linkProposalStatusDetails = null; + + /** + * DisplayVideo360AdvertiserLinkProposal advertiserDisplayName. + * @member {string} advertiserDisplayName + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.advertiserDisplayName = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal validationEmail. + * @member {string} validationEmail + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.validationEmail = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.adsPersonalizationEnabled = null; + + /** + * DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} campaignDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.campaignDataSharingEnabled = null; + + /** + * DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} costDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.costDataSharingEnabled = null; + + /** + * Creates a new DisplayVideo360AdvertiserLinkProposal instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal instance + */ + DisplayVideo360AdvertiserLinkProposal.create = function create(properties) { + return new DisplayVideo360AdvertiserLinkProposal(properties); + }; + + /** + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLinkProposal.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.advertiserId != null && Object.hasOwnProperty.call(message, "advertiserId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.advertiserId); + if (message.linkProposalStatusDetails != null && Object.hasOwnProperty.call(message, "linkProposalStatusDetails")) + $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.encode(message.linkProposalStatusDetails, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.advertiserDisplayName != null && Object.hasOwnProperty.call(message, "advertiserDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.advertiserDisplayName); + if (message.validationEmail != null && Object.hasOwnProperty.call(message, "validationEmail")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.validationEmail); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.campaignDataSharingEnabled != null && Object.hasOwnProperty.call(message, "campaignDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.campaignDataSharingEnabled, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.costDataSharingEnabled != null && Object.hasOwnProperty.call(message, "costDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.costDataSharingEnabled, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; - /** - * Verifies a ChangeHistoryResource message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ChangeHistoryResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.account != null && message.hasOwnProperty("account")) { - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); - if (error) - return "account." + error; - } - } - if (message.property != null && message.hasOwnProperty("property")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); - if (error) - return "property." + error; - } - } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); - if (error) - return "webDataStream." + error; - } - } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); - if (error) - return "androidAppDataStream." + error; - } - } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); - if (error) - return "iosAppDataStream." + error; - } - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; - } - } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } - } - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); - if (error) - return "googleSignalsSettings." + error; - } - } - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); - if (error) - return "conversionEvent." + error; - } - } - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); - if (error) - return "measurementProtocolSecret." + error; - } - } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } - } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + error; - } + /** + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLinkProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLinkProposal.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.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.advertiserId = reader.string(); + break; + case 3: + message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.decode(reader, reader.uint32()); + break; + case 4: + message.advertiserDisplayName = reader.string(); + break; + case 5: + message.validationEmail = reader.string(); + break; + case 6: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 7: + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 8: + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; + + /** + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLinkProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DisplayVideo360AdvertiserLinkProposal message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DisplayVideo360AdvertiserLinkProposal.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.advertiserId != null && message.hasOwnProperty("advertiserId")) + if (!$util.isString(message.advertiserId)) + return "advertiserId: string expected"; + if (message.linkProposalStatusDetails != null && message.hasOwnProperty("linkProposalStatusDetails")) { + var error = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify(message.linkProposalStatusDetails); + if (error) + return "linkProposalStatusDetails." + error; + } + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + if (!$util.isString(message.advertiserDisplayName)) + return "advertiserDisplayName: string expected"; + if (message.validationEmail != null && message.hasOwnProperty("validationEmail")) + if (!$util.isString(message.validationEmail)) + return "validationEmail: string expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.campaignDataSharingEnabled); + if (error) + return "campaignDataSharingEnabled." + error; + } + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.costDataSharingEnabled); + if (error) + return "costDataSharingEnabled." + error; + } + return null; + }; + + /** + * Creates a DisplayVideo360AdvertiserLinkProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + */ + DisplayVideo360AdvertiserLinkProposal.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + return object; + var message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + if (object.name != null) + message.name = String(object.name); + if (object.advertiserId != null) + message.advertiserId = String(object.advertiserId); + if (object.linkProposalStatusDetails != null) { + if (typeof object.linkProposalStatusDetails !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.linkProposalStatusDetails: object expected"); + message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.fromObject(object.linkProposalStatusDetails); + } + if (object.advertiserDisplayName != null) + message.advertiserDisplayName = String(object.advertiserDisplayName); + if (object.validationEmail != null) + message.validationEmail = String(object.validationEmail); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.campaignDataSharingEnabled != null) { + if (typeof object.campaignDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.campaignDataSharingEnabled: object expected"); + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.campaignDataSharingEnabled); + } + if (object.costDataSharingEnabled != null) { + if (typeof object.costDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.costDataSharingEnabled: object expected"); + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.costDataSharingEnabled); + } + return message; + }; + + /** + * Creates a plain object from a DisplayVideo360AdvertiserLinkProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DisplayVideo360AdvertiserLinkProposal.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.advertiserId = ""; + object.linkProposalStatusDetails = null; + object.advertiserDisplayName = ""; + object.validationEmail = ""; + object.adsPersonalizationEnabled = null; + object.campaignDataSharingEnabled = null; + object.costDataSharingEnabled = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + object.advertiserId = message.advertiserId; + if (message.linkProposalStatusDetails != null && message.hasOwnProperty("linkProposalStatusDetails")) + object.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.toObject(message.linkProposalStatusDetails, options); + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + object.advertiserDisplayName = message.advertiserDisplayName; + if (message.validationEmail != null && message.hasOwnProperty("validationEmail")) + object.validationEmail = message.validationEmail; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) + object.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.campaignDataSharingEnabled, options); + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) + object.costDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.costDataSharingEnabled, options); + return object; + }; + + /** + * Converts this DisplayVideo360AdvertiserLinkProposal to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + * @returns {Object.} JSON object + */ + DisplayVideo360AdvertiserLinkProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource - */ - ChangeHistoryResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) - return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); - if (object.account != null) { - if (typeof object.account !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); - message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); - } - if (object.property != null) { - if (typeof object.property !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); - message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); - } - if (object.webDataStream != null) { - if (typeof object.webDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.webDataStream: object expected"); - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); - } - if (object.androidAppDataStream != null) { - if (typeof object.androidAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.androidAppDataStream: object expected"); - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); - } - if (object.iosAppDataStream != null) { - if (typeof object.iosAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.iosAppDataStream: object expected"); - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); - } - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); - } - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } - if (object.googleSignalsSettings != null) { - if (typeof object.googleSignalsSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleSignalsSettings: object expected"); - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); - } - if (object.conversionEvent != null) { - if (typeof object.conversionEvent !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.conversionEvent: object expected"); - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); - } - if (object.measurementProtocolSecret != null) { - if (typeof object.measurementProtocolSecret !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.measurementProtocolSecret: object expected"); - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); - } - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } - return message; - }; + return DisplayVideo360AdvertiserLinkProposal; + })(); - /** - * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ChangeHistoryResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.account != null && message.hasOwnProperty("account")) { - object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); - if (options.oneofs) - object.resource = "account"; - } - if (message.property != null && message.hasOwnProperty("property")) { - object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); - if (options.oneofs) - object.resource = "property"; - } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); - if (options.oneofs) - object.resource = "webDataStream"; - } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); - if (options.oneofs) - object.resource = "androidAppDataStream"; - } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); - if (options.oneofs) - object.resource = "iosAppDataStream"; - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); - if (options.oneofs) - object.resource = "firebaseLink"; - } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); - if (options.oneofs) - object.resource = "googleAdsLink"; - } - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { - object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); - if (options.oneofs) - object.resource = "googleSignalsSettings"; - } - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { - object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); - if (options.oneofs) - object.resource = "conversionEvent"; - } - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); - if (options.oneofs) - object.resource = "measurementProtocolSecret"; + v1alpha.LinkProposalStatusDetails = (function() { + + /** + * Properties of a LinkProposalStatusDetails. + * @memberof google.analytics.admin.v1alpha + * @interface ILinkProposalStatusDetails + * @property {google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|null} [linkProposalInitiatingProduct] LinkProposalStatusDetails linkProposalInitiatingProduct + * @property {string|null} [requestorEmail] LinkProposalStatusDetails requestorEmail + * @property {google.analytics.admin.v1alpha.LinkProposalState|null} [linkProposalState] LinkProposalStatusDetails linkProposalState + */ + + /** + * Constructs a new LinkProposalStatusDetails. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a LinkProposalStatusDetails. + * @implements ILinkProposalStatusDetails + * @constructor + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails=} [properties] Properties to set + */ + function LinkProposalStatusDetails(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]]; + } + + /** + * LinkProposalStatusDetails linkProposalInitiatingProduct. + * @member {google.analytics.admin.v1alpha.LinkProposalInitiatingProduct} linkProposalInitiatingProduct + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + */ + LinkProposalStatusDetails.prototype.linkProposalInitiatingProduct = 0; + + /** + * LinkProposalStatusDetails requestorEmail. + * @member {string} requestorEmail + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + */ + LinkProposalStatusDetails.prototype.requestorEmail = ""; + + /** + * LinkProposalStatusDetails linkProposalState. + * @member {google.analytics.admin.v1alpha.LinkProposalState} linkProposalState + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + */ + LinkProposalStatusDetails.prototype.linkProposalState = 0; + + /** + * Creates a new LinkProposalStatusDetails instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails instance + */ + LinkProposalStatusDetails.create = function create(properties) { + return new LinkProposalStatusDetails(properties); + }; + + /** + * Encodes the specified LinkProposalStatusDetails message. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails} message LinkProposalStatusDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LinkProposalStatusDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.linkProposalInitiatingProduct != null && Object.hasOwnProperty.call(message, "linkProposalInitiatingProduct")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.linkProposalInitiatingProduct); + if (message.requestorEmail != null && Object.hasOwnProperty.call(message, "requestorEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestorEmail); + if (message.linkProposalState != null && Object.hasOwnProperty.call(message, "linkProposalState")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.linkProposalState); + return writer; + }; + + /** + * Encodes the specified LinkProposalStatusDetails message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails} message LinkProposalStatusDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LinkProposalStatusDetails.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LinkProposalStatusDetails.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.analytics.admin.v1alpha.LinkProposalStatusDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.linkProposalInitiatingProduct = reader.int32(); + break; + case 2: + message.requestorEmail = reader.string(); + break; + case 3: + message.linkProposalState = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); - if (options.oneofs) - object.resource = "customDimension"; + } + return message; + }; + + /** + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LinkProposalStatusDetails.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LinkProposalStatusDetails message. + * @function verify + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LinkProposalStatusDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.linkProposalInitiatingProduct != null && message.hasOwnProperty("linkProposalInitiatingProduct")) + switch (message.linkProposalInitiatingProduct) { + default: + return "linkProposalInitiatingProduct: enum value expected"; + case 0: + case 1: + case 2: + break; } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); - if (options.oneofs) - object.resource = "customMetric"; + if (message.requestorEmail != null && message.hasOwnProperty("requestorEmail")) + if (!$util.isString(message.requestorEmail)) + return "requestorEmail: string expected"; + if (message.linkProposalState != null && message.hasOwnProperty("linkProposalState")) + switch (message.linkProposalState) { + default: + return "linkProposalState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } + return null; + }; + + /** + * Creates a LinkProposalStatusDetails message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + */ + LinkProposalStatusDetails.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails) return object; - }; + var message = new $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); + switch (object.linkProposalInitiatingProduct) { + case "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED": + case 0: + message.linkProposalInitiatingProduct = 0; + break; + case "GOOGLE_ANALYTICS": + case 1: + message.linkProposalInitiatingProduct = 1; + break; + case "LINKED_PRODUCT": + case 2: + message.linkProposalInitiatingProduct = 2; + break; + } + if (object.requestorEmail != null) + message.requestorEmail = String(object.requestorEmail); + switch (object.linkProposalState) { + case "LINK_PROPOSAL_STATE_UNSPECIFIED": + case 0: + message.linkProposalState = 0; + break; + case "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS": + case 1: + message.linkProposalState = 1; + break; + case "AWAITING_REVIEW_FROM_LINKED_PRODUCT": + case 2: + message.linkProposalState = 2; + break; + case "WITHDRAWN": + case 3: + message.linkProposalState = 3; + break; + case "DECLINED": + case 4: + message.linkProposalState = 4; + break; + case "EXPIRED": + case 5: + message.linkProposalState = 5; + break; + case "OBSOLETE": + case 6: + message.linkProposalState = 6; + break; + } + return message; + }; - /** - * Converts this ChangeHistoryResource to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - * @returns {Object.} JSON object - */ - ChangeHistoryResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a LinkProposalStatusDetails message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.LinkProposalStatusDetails} message LinkProposalStatusDetails + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LinkProposalStatusDetails.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.linkProposalInitiatingProduct = options.enums === String ? "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED" : 0; + object.requestorEmail = ""; + object.linkProposalState = options.enums === String ? "LINK_PROPOSAL_STATE_UNSPECIFIED" : 0; + } + if (message.linkProposalInitiatingProduct != null && message.hasOwnProperty("linkProposalInitiatingProduct")) + object.linkProposalInitiatingProduct = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] : message.linkProposalInitiatingProduct; + if (message.requestorEmail != null && message.hasOwnProperty("requestorEmail")) + object.requestorEmail = message.requestorEmail; + if (message.linkProposalState != null && message.hasOwnProperty("linkProposalState")) + object.linkProposalState = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] : message.linkProposalState; + return object; + }; - return ChangeHistoryResource; - })(); + /** + * Converts this LinkProposalStatusDetails to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + * @returns {Object.} JSON object + */ + LinkProposalStatusDetails.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ChangeHistoryChange; + return LinkProposalStatusDetails; })(); v1alpha.ConversionEvent = (function() { @@ -27219,7 +31790,8 @@ * @property {string|null} [name] ConversionEvent name * @property {string|null} [eventName] ConversionEvent eventName * @property {google.protobuf.ITimestamp|null} [createTime] ConversionEvent createTime - * @property {boolean|null} [isDeletable] ConversionEvent isDeletable + * @property {boolean|null} [deletable] ConversionEvent deletable + * @property {boolean|null} [custom] ConversionEvent custom */ /** @@ -27262,12 +31834,20 @@ ConversionEvent.prototype.createTime = null; /** - * ConversionEvent isDeletable. - * @member {boolean} isDeletable + * ConversionEvent deletable. + * @member {boolean} deletable + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.deletable = false; + + /** + * ConversionEvent custom. + * @member {boolean} custom * @memberof google.analytics.admin.v1alpha.ConversionEvent * @instance */ - ConversionEvent.prototype.isDeletable = false; + ConversionEvent.prototype.custom = false; /** * Creates a new ConversionEvent instance using the specified properties. @@ -27299,8 +31879,10 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventName); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.isDeletable != null && Object.hasOwnProperty.call(message, "isDeletable")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isDeletable); + if (message.deletable != null && Object.hasOwnProperty.call(message, "deletable")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deletable); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.custom); return writer; }; @@ -27345,7 +31927,10 @@ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - message.isDeletable = reader.bool(); + message.deletable = reader.bool(); + break; + case 5: + message.custom = reader.bool(); break; default: reader.skipType(tag & 7); @@ -27393,9 +31978,12 @@ if (error) return "createTime." + error; } - if (message.isDeletable != null && message.hasOwnProperty("isDeletable")) - if (typeof message.isDeletable !== "boolean") - return "isDeletable: boolean expected"; + if (message.deletable != null && message.hasOwnProperty("deletable")) + if (typeof message.deletable !== "boolean") + return "deletable: boolean expected"; + if (message.custom != null && message.hasOwnProperty("custom")) + if (typeof message.custom !== "boolean") + return "custom: boolean expected"; return null; }; @@ -27420,8 +32008,10 @@ throw TypeError(".google.analytics.admin.v1alpha.ConversionEvent.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.isDeletable != null) - message.isDeletable = Boolean(object.isDeletable); + if (object.deletable != null) + message.deletable = Boolean(object.deletable); + if (object.custom != null) + message.custom = Boolean(object.custom); return message; }; @@ -27442,7 +32032,8 @@ object.name = ""; object.eventName = ""; object.createTime = null; - object.isDeletable = false; + object.deletable = false; + object.custom = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -27450,8 +32041,10 @@ object.eventName = message.eventName; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.isDeletable != null && message.hasOwnProperty("isDeletable")) - object.isDeletable = message.isDeletable; + if (message.deletable != null && message.hasOwnProperty("deletable")) + object.deletable = message.deletable; + if (message.custom != null && message.hasOwnProperty("custom")) + object.custom = message.custom; return object; }; @@ -28484,6 +33077,293 @@ return CustomMetric; })(); + v1alpha.DataRetentionSettings = (function() { + + /** + * Properties of a DataRetentionSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IDataRetentionSettings + * @property {string|null} [name] DataRetentionSettings name + * @property {google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|null} [eventDataRetention] DataRetentionSettings eventDataRetention + * @property {boolean|null} [resetUserDataOnNewActivity] DataRetentionSettings resetUserDataOnNewActivity + */ + + /** + * Constructs a new DataRetentionSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DataRetentionSettings. + * @implements IDataRetentionSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings=} [properties] Properties to set + */ + function DataRetentionSettings(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]]; + } + + /** + * DataRetentionSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @instance + */ + DataRetentionSettings.prototype.name = ""; + + /** + * DataRetentionSettings eventDataRetention. + * @member {google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration} eventDataRetention + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @instance + */ + DataRetentionSettings.prototype.eventDataRetention = 0; + + /** + * DataRetentionSettings resetUserDataOnNewActivity. + * @member {boolean} resetUserDataOnNewActivity + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @instance + */ + DataRetentionSettings.prototype.resetUserDataOnNewActivity = false; + + /** + * Creates a new DataRetentionSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings instance + */ + DataRetentionSettings.create = function create(properties) { + return new DataRetentionSettings(properties); + }; + + /** + * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionSettings.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.eventDataRetention != null && Object.hasOwnProperty.call(message, "eventDataRetention")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.eventDataRetention); + if (message.resetUserDataOnNewActivity != null && Object.hasOwnProperty.call(message, "resetUserDataOnNewActivity")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.resetUserDataOnNewActivity); + return writer; + }; + + /** + * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionSettings.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.analytics.admin.v1alpha.DataRetentionSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.eventDataRetention = reader.int32(); + break; + case 3: + message.resetUserDataOnNewActivity = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataRetentionSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataRetentionSettings.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.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) + switch (message.eventDataRetention) { + default: + return "eventDataRetention: enum value expected"; + case 0: + case 1: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) + if (typeof message.resetUserDataOnNewActivity !== "boolean") + return "resetUserDataOnNewActivity: boolean expected"; + return null; + }; + + /** + * Creates a DataRetentionSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings + */ + DataRetentionSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataRetentionSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataRetentionSettings(); + if (object.name != null) + message.name = String(object.name); + switch (object.eventDataRetention) { + case "RETENTION_DURATION_UNSPECIFIED": + case 0: + message.eventDataRetention = 0; + break; + case "TWO_MONTHS": + case 1: + message.eventDataRetention = 1; + break; + case "FOURTEEN_MONTHS": + case 3: + message.eventDataRetention = 3; + break; + case "TWENTY_SIX_MONTHS": + case 4: + message.eventDataRetention = 4; + break; + case "THIRTY_EIGHT_MONTHS": + case 5: + message.eventDataRetention = 5; + break; + case "FIFTY_MONTHS": + case 6: + message.eventDataRetention = 6; + break; + } + if (object.resetUserDataOnNewActivity != null) + message.resetUserDataOnNewActivity = Boolean(object.resetUserDataOnNewActivity); + return message; + }; + + /** + * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} message DataRetentionSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataRetentionSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.eventDataRetention = options.enums === String ? "RETENTION_DURATION_UNSPECIFIED" : 0; + object.resetUserDataOnNewActivity = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) + object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; + if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) + object.resetUserDataOnNewActivity = message.resetUserDataOnNewActivity; + return object; + }; + + /** + * Converts this DataRetentionSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @instance + * @returns {Object.} JSON object + */ + DataRetentionSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * RetentionDuration enum. + * @name google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + * @enum {number} + * @property {number} RETENTION_DURATION_UNSPECIFIED=0 RETENTION_DURATION_UNSPECIFIED value + * @property {number} TWO_MONTHS=1 TWO_MONTHS value + * @property {number} FOURTEEN_MONTHS=3 FOURTEEN_MONTHS value + * @property {number} TWENTY_SIX_MONTHS=4 TWENTY_SIX_MONTHS value + * @property {number} THIRTY_EIGHT_MONTHS=5 THIRTY_EIGHT_MONTHS value + * @property {number} FIFTY_MONTHS=6 FIFTY_MONTHS value + */ + DataRetentionSettings.RetentionDuration = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETENTION_DURATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "TWO_MONTHS"] = 1; + values[valuesById[3] = "FOURTEEN_MONTHS"] = 3; + values[valuesById[4] = "TWENTY_SIX_MONTHS"] = 4; + values[valuesById[5] = "THIRTY_EIGHT_MONTHS"] = 5; + values[valuesById[6] = "FIFTY_MONTHS"] = 6; + return values; + })(); + + return DataRetentionSettings; + })(); + return v1alpha; })(); diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 7fa9e540e6c..49a5d783e76 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -734,26 +734,6 @@ } ] }, - "UpdateFirebaseLink": { - "requestType": "UpdateFirebaseLinkRequest", - "responseType": "FirebaseLink", - "options": { - "(google.api.http).patch": "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}", - "(google.api.http).body": "firebase_link", - "(google.api.method_signature)": "firebase_link,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}", - "body": "firebase_link" - } - }, - { - "(google.api.method_signature)": "firebase_link,update_mask" - } - ] - }, "DeleteFirebaseLink": { "requestType": "DeleteFirebaseLinkRequest", "responseType": "google.protobuf.Empty", @@ -1175,6 +1155,206 @@ } ] }, + "GetDisplayVideo360AdvertiserLink": { + "requestType": "GetDisplayVideo360AdvertiserLinkRequest", + "responseType": "DisplayVideo360AdvertiserLink", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListDisplayVideo360AdvertiserLinks": { + "requestType": "ListDisplayVideo360AdvertiserLinksRequest", + "responseType": "ListDisplayVideo360AdvertiserLinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateDisplayVideo360AdvertiserLink": { + "requestType": "CreateDisplayVideo360AdvertiserLinkRequest", + "responseType": "DisplayVideo360AdvertiserLink", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", + "(google.api.http).body": "display_video_360_advertiser_link", + "(google.api.method_signature)": "parent,display_video_360_advertiser_link" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", + "body": "display_video_360_advertiser_link" + } + }, + { + "(google.api.method_signature)": "parent,display_video_360_advertiser_link" + } + ] + }, + "DeleteDisplayVideo360AdvertiserLink": { + "requestType": "DeleteDisplayVideo360AdvertiserLinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateDisplayVideo360AdvertiserLink": { + "requestType": "UpdateDisplayVideo360AdvertiserLinkRequest", + "responseType": "DisplayVideo360AdvertiserLink", + "options": { + "(google.api.http).patch": "/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}", + "(google.api.http).body": "display_video_360_advertiser_link", + "(google.api.method_signature)": "display_video_360_advertiser_link,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}", + "body": "display_video_360_advertiser_link" + } + }, + { + "(google.api.method_signature)": "display_video_360_advertiser_link,update_mask" + } + ] + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "requestType": "GetDisplayVideo360AdvertiserLinkProposalRequest", + "responseType": "DisplayVideo360AdvertiserLinkProposal", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "requestType": "ListDisplayVideo360AdvertiserLinkProposalsRequest", + "responseType": "ListDisplayVideo360AdvertiserLinkProposalsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "requestType": "CreateDisplayVideo360AdvertiserLinkProposalRequest", + "responseType": "DisplayVideo360AdvertiserLinkProposal", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", + "(google.api.http).body": "display_video_360_advertiser_link_proposal", + "(google.api.method_signature)": "parent,display_video_360_advertiser_link_proposal" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", + "body": "display_video_360_advertiser_link_proposal" + } + }, + { + "(google.api.method_signature)": "parent,display_video_360_advertiser_link_proposal" + } + ] + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "requestType": "DeleteDisplayVideo360AdvertiserLinkProposalRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "requestType": "ApproveDisplayVideo360AdvertiserLinkProposalRequest", + "responseType": "ApproveDisplayVideo360AdvertiserLinkProposalResponse", + "options": { + "(google.api.http).post": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve", + "body": "*" + } + } + ] + }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "requestType": "CancelDisplayVideo360AdvertiserLinkProposalRequest", + "responseType": "DisplayVideo360AdvertiserLinkProposal", + "options": { + "(google.api.http).post": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel", + "body": "*" + } + } + ] + }, "CreateCustomDimension": { "requestType": "CreateCustomDimensionRequest", "responseType": "CustomDimension", @@ -1366,6 +1546,44 @@ "(google.api.method_signature)": "name" } ] + }, + "GetDataRetentionSettings": { + "requestType": "GetDataRetentionSettingsRequest", + "responseType": "DataRetentionSettings", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/dataRetentionSettings}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/dataRetentionSettings}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateDataRetentionSettings": { + "requestType": "UpdateDataRetentionSettingsRequest", + "responseType": "DataRetentionSettings", + "options": { + "(google.api.http).patch": "/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}", + "(google.api.http).body": "data_retention_settings", + "(google.api.method_signature)": "data_retention_settings,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}", + "body": "data_retention_settings" + } + }, + { + "(google.api.method_signature)": "data_retention_settings,update_mask" + } + ] } } }, @@ -2084,24 +2302,6 @@ } } }, - "UpdateFirebaseLinkRequest": { - "fields": { - "firebaseLink": { - "type": "FirebaseLink", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, "DeleteFirebaseLinkRequest": { "fields": { "name": { @@ -2557,48 +2757,26 @@ } } }, - "CreateCustomDimensionRequest": { + "GetDisplayVideo360AdvertiserLinkRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" - } - }, - "customDimension": { - "type": "CustomDimension", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "UpdateCustomDimensionRequest": { - "fields": { - "customDimension": { - "type": "CustomDimension", - "id": 1 - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" } } } }, - "ListCustomDimensionsRequest": { + "ListDisplayVideo360AdvertiserLinksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" } }, "pageSize": { @@ -2611,11 +2789,11 @@ } } }, - "ListCustomDimensionsResponse": { + "ListDisplayVideo360AdvertiserLinksResponse": { "fields": { - "customDimensions": { + "displayVideo_360AdvertiserLinks": { "rule": "repeated", - "type": "CustomDimension", + "type": "DisplayVideo360AdvertiserLink", "id": 1 }, "nextPageToken": { @@ -2624,53 +2802,41 @@ } } }, - "ArchiveCustomDimensionRequest": { + "CreateDisplayVideo360AdvertiserLinkRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" } - } - } - }, - "GetCustomDimensionRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "displayVideo_360AdvertiserLink": { + "type": "DisplayVideo360AdvertiserLink", + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "CreateCustomMetricRequest": { + "DeleteDisplayVideo360AdvertiserLinkRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" - } - }, - "customMetric": { - "type": "CustomMetric", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" } } } }, - "UpdateCustomMetricRequest": { + "UpdateDisplayVideo360AdvertiserLinkRequest": { "fields": { - "customMetric": { - "type": "CustomMetric", + "displayVideo_360AdvertiserLink": { + "type": "DisplayVideo360AdvertiserLink", "id": 1 }, "updateMask": { @@ -2682,14 +2848,247 @@ } } }, - "ListCustomMetricsRequest": { + "GetDisplayVideo360AdvertiserLinkProposalRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + } + } + }, + "ListDisplayVideo360AdvertiserLinkProposalsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDisplayVideo360AdvertiserLinkProposalsResponse": { + "fields": { + "displayVideo_360AdvertiserLinkProposals": { + "rule": "repeated", + "type": "DisplayVideo360AdvertiserLinkProposal", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateDisplayVideo360AdvertiserLinkProposalRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + }, + "displayVideo_360AdvertiserLinkProposal": { + "type": "DisplayVideo360AdvertiserLinkProposal", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteDisplayVideo360AdvertiserLinkProposalRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + } + } + }, + "ApproveDisplayVideo360AdvertiserLinkProposalRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + } + } + }, + "ApproveDisplayVideo360AdvertiserLinkProposalResponse": { + "fields": { + "displayVideo_360AdvertiserLink": { + "type": "DisplayVideo360AdvertiserLink", + "id": 1 + } + } + }, + "CancelDisplayVideo360AdvertiserLinkProposalRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + } + } + }, + "CreateCustomDimensionRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" + } + }, + "customDimension": { + "type": "CustomDimension", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateCustomDimensionRequest": { + "fields": { + "customDimension": { + "type": "CustomDimension", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListCustomDimensionsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListCustomDimensionsResponse": { + "fields": { + "customDimensions": { + "rule": "repeated", + "type": "CustomDimension", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "ArchiveCustomDimensionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" + } + } + } + }, + "GetCustomDimensionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" + } + } + } + }, + "CreateCustomMetricRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" + } + }, + "customMetric": { + "type": "CustomMetric", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateCustomMetricRequest": { + "fields": { + "customMetric": { + "type": "CustomMetric", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListCustomMetricsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" } }, "pageSize": { @@ -2739,13 +3138,34 @@ } } }, - "MaximumUserAccess": { - "values": { - "MAXIMUM_USER_ACCESS_UNSPECIFIED": 0, - "NO_ACCESS": 1, - "READ_AND_ANALYZE": 2, - "EDITOR_WITHOUT_LINK_MANAGEMENT": 3, - "EDITOR_INCLUDING_LINK_MANAGEMENT": 4 + "GetDataRetentionSettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataRetentionSettings" + } + } + } + }, + "UpdateDataRetentionSettingsRequest": { + "fields": { + "dataRetentionSettings": { + "type": "DataRetentionSettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } } }, "IndustryCategory": { @@ -2779,6 +3199,13 @@ "SHOPPING": 26 } }, + "ServiceLevel": { + "values": { + "SERVICE_LEVEL_UNSPECIFIED": 0, + "GOOGLE_ANALYTICS_STANDARD": 1, + "GOOGLE_ANALYTICS_360": 2 + } + }, "ActorType": { "values": { "ACTOR_TYPE_UNSPECIFIED": 0, @@ -2809,7 +3236,8 @@ "CONVERSION_EVENT": 9, "MEASUREMENT_PROTOCOL_SECRET": 10, "CUSTOM_DIMENSION": 11, - "CUSTOM_METRIC": 12 + "CUSTOM_METRIC": 12, + "DATA_RETENTION_SETTINGS": 13 } }, "GoogleSignalsState": { @@ -2826,6 +3254,24 @@ "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED": 1 } }, + "LinkProposalInitiatingProduct": { + "values": { + "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED": 0, + "GOOGLE_ANALYTICS": 1, + "LINKED_PRODUCT": 2 + } + }, + "LinkProposalState": { + "values": { + "LINK_PROPOSAL_STATE_UNSPECIFIED": 0, + "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS": 1, + "AWAITING_REVIEW_FROM_LINKED_PRODUCT": 2, + "WITHDRAWN": 3, + "DECLINED": 4, + "EXPIRED": 5, + "OBSOLETE": 6 + } + }, "Account": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/Account", @@ -2929,6 +3375,13 @@ "type": "string", "id": 8 }, + "serviceLevel": { + "type": "ServiceLevel", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "deleteTime": { "type": "google.protobuf.Timestamp", "id": 11, @@ -3239,10 +3692,6 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } - }, - "maximumUserAccess": { - "type": "MaximumUserAccess", - "id": 4 } } }, @@ -3299,13 +3748,6 @@ "type": "google.protobuf.BoolValue", "id": 5 }, - "emailAddress": { - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, "createTime": { "type": "google.protobuf.Timestamp", "id": 7, @@ -3319,6 +3761,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "creatorEmailAddress": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -3490,10 +3939,13 @@ "firebaseLink", "googleAdsLink", "googleSignalsSettings", + "displayVideo_360AdvertiserLink", + "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", - "customMetric" + "customMetric", + "dataRetentionSettings" ] } }, @@ -3530,6 +3982,14 @@ "type": "GoogleSignalsSettings", "id": 8 }, + "displayVideo_360AdvertiserLink": { + "type": "DisplayVideo360AdvertiserLink", + "id": 9 + }, + "displayVideo_360AdvertiserLinkProposal": { + "type": "DisplayVideo360AdvertiserLinkProposal", + "id": 10 + }, "conversionEvent": { "type": "ConversionEvent", "id": 11 @@ -3545,11 +4005,151 @@ "customMetric": { "type": "CustomMetric", "id": 14 + }, + "dataRetentionSettings": { + "type": "DataRetentionSettings", + "id": 15 } } } } }, + "DisplayVideo360AdvertiserLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink", + "(google.api.resource).pattern": "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "advertiserId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "advertiserDisplayName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "adsPersonalizationEnabled": { + "type": "google.protobuf.BoolValue", + "id": 4 + }, + "campaignDataSharingEnabled": { + "type": "google.protobuf.BoolValue", + "id": 5, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "costDataSharingEnabled": { + "type": "google.protobuf.BoolValue", + "id": 6, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "DisplayVideo360AdvertiserLinkProposal": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal", + "(google.api.resource).pattern": "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "advertiserId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "linkProposalStatusDetails": { + "type": "LinkProposalStatusDetails", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "advertiserDisplayName": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "validationEmail": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "INPUT_ONLY" + } + }, + "adsPersonalizationEnabled": { + "type": "google.protobuf.BoolValue", + "id": 6, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "campaignDataSharingEnabled": { + "type": "google.protobuf.BoolValue", + "id": 7, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "costDataSharingEnabled": { + "type": "google.protobuf.BoolValue", + "id": 8, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "LinkProposalStatusDetails": { + "fields": { + "linkProposalInitiatingProduct": { + "type": "LinkProposalInitiatingProduct", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "requestorEmail": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "linkProposalState": { + "type": "LinkProposalState", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "ConversionEvent": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/ConversionEvent", @@ -3577,12 +4177,19 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "isDeletable": { + "deletable": { "type": "bool", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "custom": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -3709,7 +4316,7 @@ "type": "MeasurementUnit", "id": 5, "options": { - "(google.api.field_behavior)": "IMMUTABLE" + "(google.api.field_behavior)": "REQUIRED" } }, "scope": { @@ -3743,6 +4350,41 @@ } } } + }, + "DataRetentionSettings": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DataRetentionSettings", + "(google.api.resource).pattern": "properties/{property}/dataRetentionSettings" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "eventDataRetention": { + "type": "RetentionDuration", + "id": 2 + }, + "resetUserDataOnNewActivity": { + "type": "bool", + "id": 3 + } + }, + "nested": { + "RetentionDuration": { + "values": { + "RETENTION_DURATION_UNSPECIFIED": 0, + "TWO_MONTHS": 1, + "FOURTEEN_MONTHS": 3, + "TWENTY_SIX_MONTHS": 4, + "THIRTY_EIGHT_MONTHS": 5, + "FIFTY_MONTHS": 6 + } + } + } } } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js new file mode 100644 index 00000000000..6494128baa8 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callApproveDisplayVideo360AdvertiserLinkProposal() { + // Construct request + const request = { + name, + }; + + // Run request + const response = + await adminClient.approveDisplayVideo360AdvertiserLinkProposal(request); + console.log(response); + } + + callApproveDisplayVideo360AdvertiserLinkProposal(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js new file mode 100644 index 00000000000..00088c99c9f --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callArchiveCustomDimension() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.archiveCustomDimension(request); + console.log(response); + } + + callArchiveCustomDimension(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js new file mode 100644 index 00000000000..47d98b674c6 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callArchiveCustomMetric() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.archiveCustomMetric(request); + console.log(response); + } + + callArchiveCustomMetric(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js new file mode 100644 index 00000000000..097b076144f --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: accounts/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callAuditUserLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.auditUserLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callAuditUserLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js new file mode 100644 index 00000000000..9c73c1a6cd9 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, requests) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account or property that all user links in the request are for. + * This field is required. The parent field in the CreateUserLinkRequest + * messages must either be empty or match this field. + * Example format: accounts/1234 + */ + // const parent = 'abc123' + /** + * Optional. If set, then email the new users notifying them that they've been granted + * permissions to the resource. Regardless of whether this is set or not, + * notify_new_user field inside each individual request is ignored. + */ + // const notifyNewUsers = true + /** + * Required. The requests specifying the user links to create. + * A maximum of 1000 user links can be created in a batch. + */ + // const requests = 1234 + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callBatchCreateUserLinks() { + // Construct request + const request = { + parent, + requests, + }; + + // Run request + const response = await adminClient.batchCreateUserLinks(request); + console.log(response); + } + + callBatchCreateUserLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js new file mode 100644 index 00000000000..4cf576d63a9 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, requests) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account or property that all user links in the request are + * for. The parent of all values for user link names to delete must match this + * field. + * Example format: accounts/1234 + */ + // const parent = 'abc123' + /** + * Required. The requests specifying the user links to update. + * A maximum of 1000 user links can be updated in a batch. + */ + // const requests = 1234 + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callBatchDeleteUserLinks() { + // Construct request + const request = { + parent, + requests, + }; + + // Run request + const response = await adminClient.batchDeleteUserLinks(request); + console.log(response); + } + + callBatchDeleteUserLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js new file mode 100644 index 00000000000..a7e2a509049 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, names) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account or property that all user links in the request are + * for. The parent of all provided values for the 'names' field must match + * this field. + * Example format: accounts/1234 + */ + // const parent = 'abc123' + /** + * Required. The names of the user links to retrieve. + * A maximum of 1000 user links can be retrieved in a batch. + * Format: accounts/{accountId}/userLinks/{userLinkId} + */ + // const names = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callBatchGetUserLinks() { + // Construct request + const request = { + parent, + names, + }; + + // Run request + const response = await adminClient.batchGetUserLinks(request); + console.log(response); + } + + callBatchGetUserLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js new file mode 100644 index 00000000000..d137ee51751 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, requests) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account or property that all user links in the request are + * for. The parent field in the UpdateUserLinkRequest messages must either be + * empty or match this field. + * Example format: accounts/1234 + */ + // const parent = 'abc123' + /** + * Required. The requests specifying the user links to update. + * A maximum of 1000 user links can be updated in a batch. + */ + // const requests = 1234 + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callBatchUpdateUserLinks() { + // Construct request + const request = { + parent, + requests, + }; + + // Run request + const response = await adminClient.batchUpdateUserLinks(request); + console.log(response); + } + + callBatchUpdateUserLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js new file mode 100644 index 00000000000..db8fbe06d98 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCancelDisplayVideo360AdvertiserLinkProposal() { + // Construct request + const request = { + name, + }; + + // Run request + const response = + await adminClient.cancelDisplayVideo360AdvertiserLinkProposal(request); + console.log(response); + } + + callCancelDisplayVideo360AdvertiserLinkProposal(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js new file mode 100644 index 00000000000..bcdfe9e10a1 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(conversionEvent, parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The conversion event to create. + */ + // const conversionEvent = {} + /** + * Required. The resource name of the parent property where this conversion event will + * be created. Format: properties/123 + */ + // const parent = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateConversionEvent() { + // Construct request + const request = { + conversionEvent, + parent, + }; + + // Run request + const response = await adminClient.createConversionEvent(request); + console.log(response); + } + + callCreateConversionEvent(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js new file mode 100644 index 00000000000..51006bbe528 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, customDimension) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The CustomDimension to create. + */ + // const customDimension = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateCustomDimension() { + // Construct request + const request = { + parent, + customDimension, + }; + + // Run request + const response = await adminClient.createCustomDimension(request); + console.log(response); + } + + callCreateCustomDimension(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js new file mode 100644 index 00000000000..263bc9633c4 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, customMetric) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The CustomMetric to create. + */ + // const customMetric = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateCustomMetric() { + // Construct request + const request = { + parent, + customMetric, + }; + + // Run request + const response = await adminClient.createCustomMetric(request); + console.log(response); + } + + callCreateCustomMetric(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js new file mode 100644 index 00000000000..c4575d7c454 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, displayVideo_360AdvertiserLink) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The DisplayVideo360AdvertiserLink to create. + */ + // const displayVideo_360AdvertiserLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateDisplayVideo360AdvertiserLink() { + // Construct request + const request = { + parent, + displayVideo_360AdvertiserLink, + }; + + // Run request + const response = await adminClient.createDisplayVideo360AdvertiserLink( + request + ); + console.log(response); + } + + callCreateDisplayVideo360AdvertiserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js new file mode 100644 index 00000000000..2be0ad80460 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, displayVideo_360AdvertiserLinkProposal) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The DisplayVideo360AdvertiserLinkProposal to create. + */ + // const displayVideo_360AdvertiserLinkProposal = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateDisplayVideo360AdvertiserLinkProposal() { + // Construct request + const request = { + parent, + displayVideo_360AdvertiserLinkProposal, + }; + + // Run request + const response = + await adminClient.createDisplayVideo360AdvertiserLinkProposal(request); + console.log(response); + } + + callCreateDisplayVideo360AdvertiserLinkProposal(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js new file mode 100644 index 00000000000..648fcdce1e6 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, firebaseLink) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The Firebase link to create. + */ + // const firebaseLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateFirebaseLink() { + // Construct request + const request = { + parent, + firebaseLink, + }; + + // Run request + const response = await adminClient.createFirebaseLink(request); + console.log(response); + } + + callCreateFirebaseLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js new file mode 100644 index 00000000000..c5b759b21f2 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, googleAdsLink) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The GoogleAdsLink to create. + */ + // const googleAdsLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateGoogleAdsLink() { + // Construct request + const request = { + parent, + googleAdsLink, + }; + + // Run request + const response = await adminClient.createGoogleAdsLink(request); + console.log(response); + } + + callCreateGoogleAdsLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js new file mode 100644 index 00000000000..87442aa1c86 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, measurementProtocolSecret) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource where this secret will be created. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: properties/{property}/webDataStreams/{webDataStream} + */ + // const parent = 'abc123' + /** + * Required. The measurement protocol secret to create. + */ + // const measurementProtocolSecret = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateMeasurementProtocolSecret() { + // Construct request + const request = { + parent, + measurementProtocolSecret, + }; + + // Run request + const response = await adminClient.createMeasurementProtocolSecret(request); + console.log(response); + } + + callCreateMeasurementProtocolSecret(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js new file mode 100644 index 00000000000..be94a13f11d --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(property) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + */ + // const property = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateProperty() { + // Construct request + const request = { + property, + }; + + // Run request + const response = await adminClient.createProperty(request); + console.log(response); + } + + callCreateProperty(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js new file mode 100644 index 00000000000..54d70e01f7b --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, userLink) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: accounts/1234 + */ + // const parent = 'abc123' + /** + * Optional. If set, then email the new user notifying them that they've been granted + * permissions to the resource. + */ + // const notifyNewUser = true + /** + * Required. The user link to create. + */ + // const userLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateUserLink() { + // Construct request + const request = { + parent, + userLink, + }; + + // Run request + const response = await adminClient.createUserLink(request); + console.log(response); + } + + callCreateUserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js new file mode 100644 index 00000000000..2fce4267ca2 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(webDataStream, parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The web stream to create. + */ + // const webDataStream = {} + /** + * Required. The parent resource where this web data stream will be created. + * Format: properties/123 + */ + // const parent = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateWebDataStream() { + // Construct request + const request = { + webDataStream, + parent, + }; + + // Run request + const response = await adminClient.createWebDataStream(request); + console.log(response); + } + + callCreateWebDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js new file mode 100644 index 00000000000..7c9d5624c96 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteAccount() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteAccount(request); + console.log(response); + } + + callDeleteAccount(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js new file mode 100644 index 00000000000..71e23d4c5ca --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the android app data stream to delete. + * Format: properties/{property_id}/androidAppDataStreams/{stream_id} + * Example: "properties/123/androidAppDataStreams/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteAndroidAppDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteAndroidAppDataStream(request); + console.log(response); + } + + callDeleteAndroidAppDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js new file mode 100644 index 00000000000..5db0f4f69d7 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteConversionEvent() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteConversionEvent(request); + console.log(response); + } + + callDeleteConversionEvent(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js new file mode 100644 index 00000000000..a755daeb51a --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteDisplayVideo360AdvertiserLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteDisplayVideo360AdvertiserLink( + request + ); + console.log(response); + } + + callDeleteDisplayVideo360AdvertiserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js new file mode 100644 index 00000000000..c5812e7d3e8 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteDisplayVideo360AdvertiserLinkProposal() { + // Construct request + const request = { + name, + }; + + // Run request + const response = + await adminClient.deleteDisplayVideo360AdvertiserLinkProposal(request); + console.log(response); + } + + callDeleteDisplayVideo360AdvertiserLinkProposal(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js new file mode 100644 index 00000000000..9a7d4384f5c --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteFirebaseLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteFirebaseLink(request); + console.log(response); + } + + callDeleteFirebaseLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js new file mode 100644 index 00000000000..219d7b51726 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteGoogleAdsLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteGoogleAdsLink(request); + console.log(response); + } + + callDeleteGoogleAdsLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js new file mode 100644 index 00000000000..019c83ba78d --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the iOS app data stream to delete. + * Format: properties/{property_id}/iosAppDataStreams/{stream_id} + * Example: "properties/123/iosAppDataStreams/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteIosAppDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteIosAppDataStream(request); + console.log(response); + } + + callDeleteIosAppDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js new file mode 100644 index 00000000000..0d79b604954 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, + * AndroidAppDataStream) may be a parent. + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteMeasurementProtocolSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteMeasurementProtocolSecret(request); + console.log(response); + } + + callDeleteMeasurementProtocolSecret(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js new file mode 100644 index 00000000000..2dab976cfd7 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteProperty() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteProperty(request); + console.log(response); + } + + callDeleteProperty(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js new file mode 100644 index 00000000000..aca0d56f99b --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: accounts/1234/userLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteUserLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteUserLink(request); + console.log(response); + } + + callDeleteUserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js new file mode 100644 index 00000000000..7dd89ad313c --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the web data stream to delete. + * Format: properties/{property_id}/webDataStreams/{stream_id} + * Example: "properties/123/webDataStreams/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteWebDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteWebDataStream(request); + console.log(response); + } + + callDeleteWebDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js new file mode 100644 index 00000000000..9e63591e0bf --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetAccount() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getAccount(request); + console.log(response); + } + + callGetAccount(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js new file mode 100644 index 00000000000..db6c77016ff --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the android app data stream to lookup. + * Format: properties/{property_id}/androidAppDataStreams/{stream_id} + * Example: "properties/123/androidAppDataStreams/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetAndroidAppDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getAndroidAppDataStream(request); + console.log(response); + } + + callGetAndroidAppDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js new file mode 100644 index 00000000000..4884855a9ff --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetConversionEvent() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getConversionEvent(request); + console.log(response); + } + + callGetConversionEvent(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js new file mode 100644 index 00000000000..adc01bc1638 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetCustomDimension() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getCustomDimension(request); + console.log(response); + } + + callGetCustomDimension(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js new file mode 100644 index 00000000000..d03e8113e44 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetCustomMetric() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getCustomMetric(request); + console.log(response); + } + + callGetCustomMetric(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js new file mode 100644 index 00000000000..6a6d36f78d5 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDataRetentionSettings() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDataRetentionSettings(request); + console.log(response); + } + + callGetDataRetentionSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js new file mode 100644 index 00000000000..1328a811567 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDataSharingSettings() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDataSharingSettings(request); + console.log(response); + } + + callGetDataSharingSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js new file mode 100644 index 00000000000..8acfdefa6fb --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDisplayVideo360AdvertiserLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDisplayVideo360AdvertiserLink( + request + ); + console.log(response); + } + + callGetDisplayVideo360AdvertiserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js new file mode 100644 index 00000000000..8ee1709276a --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDisplayVideo360AdvertiserLinkProposal() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDisplayVideo360AdvertiserLinkProposal( + request + ); + console.log(response); + } + + callGetDisplayVideo360AdvertiserLinkProposal(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js new file mode 100644 index 00000000000..c015586ecec --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings + * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetEnhancedMeasurementSettings() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getEnhancedMeasurementSettings(request); + console.log(response); + } + + callGetEnhancedMeasurementSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js new file mode 100644 index 00000000000..eee57f0c0ba --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/webDataStreams/456/globalSiteTag" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetGlobalSiteTag() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getGlobalSiteTag(request); + console.log(response); + } + + callGetGlobalSiteTag(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js new file mode 100644 index 00000000000..386da9d6ed7 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetGoogleSignalsSettings() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getGoogleSignalsSettings(request); + console.log(response); + } + + callGetGoogleSignalsSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js new file mode 100644 index 00000000000..9bd97186929 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the iOS app data stream to lookup. + * Format: properties/{property_id}/iosAppDataStreams/{stream_id} + * Example: "properties/123/iosAppDataStreams/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetIosAppDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getIosAppDataStream(request); + console.log(response); + } + + callGetIosAppDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js new file mode 100644 index 00000000000..f1c824c9125 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, + * AndroidAppDataStream) may be a parent. + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetMeasurementProtocolSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getMeasurementProtocolSecret(request); + console.log(response); + } + + callGetMeasurementProtocolSecret(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js new file mode 100644 index 00000000000..7ece6bf9529 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetProperty() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getProperty(request); + console.log(response); + } + + callGetProperty(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js new file mode 100644 index 00000000000..a70092bf420 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: accounts/1234/userLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetUserLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getUserLink(request); + console.log(response); + } + + callGetUserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js new file mode 100644 index 00000000000..24e9071c4c5 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the web data stream to lookup. + * Format: properties/{property_id}/webDataStreams/{stream_id} + * Example: "properties/123/webDataStreams/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetWebDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getWebDataStream(request); + console.log(response); + } + + callGetWebDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js new file mode 100644 index 00000000000..43780091071 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main() { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListAccountSummaries() { + // Construct request + const request = {}; + + // Run request + const iterable = await adminClient.listAccountSummariesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListAccountSummaries(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js new file mode 100644 index 00000000000..56031cfaa69 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main() { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * 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. + */ + // const pageToken = 'abc123' + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + */ + // const showDeleted = true + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListAccounts() { + // Construct request + const request = {}; + + // Run request + const iterable = await adminClient.listAccountsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListAccounts(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js new file mode 100644 index 00000000000..d190b138c03 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent property. + * For example, to limit results to app streams under the property with Id + * 123: "properties/123" + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListAndroidAppDataStreams() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listAndroidAppDataStreamsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListAndroidAppDataStreams(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js new file mode 100644 index 00000000000..37365768f23 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListConversionEvents() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listConversionEventsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListConversionEvents(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js new file mode 100644 index 00000000000..14a7e94a0aa --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListCustomDimensions() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listCustomDimensionsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListCustomDimensions(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js new file mode 100644 index 00000000000..eea66cfa550 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListCustomMetrics() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listCustomMetricsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListCustomMetrics(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js new file mode 100644 index 00000000000..6c934648c20 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListDisplayVideo360AdvertiserLinkProposals() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = + await adminClient.listDisplayVideo360AdvertiserLinkProposalsAsync( + request + ); + for await (const response of iterable) { + console.log(response); + } + } + + callListDisplayVideo360AdvertiserLinkProposals(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js new file mode 100644 index 00000000000..a4a9dc5deb6 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListDisplayVideo360AdvertiserLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listDisplayVideo360AdvertiserLinksAsync( + request + ); + for await (const response of iterable) { + console.log(response); + } + } + + callListDisplayVideo360AdvertiserLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js new file mode 100644 index 00000000000..db5f149d2e8 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListFirebaseLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listFirebaseLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFirebaseLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js new file mode 100644 index 00000000000..6112d8be8e3 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListGoogleAdsLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listGoogleAdsLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListGoogleAdsLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js new file mode 100644 index 00000000000..8b124278207 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListIosAppDataStreams() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listIosAppDataStreamsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListIosAppDataStreams(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js new file mode 100644 index 00000000000..f9b08184faf --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js @@ -0,0 +1,74 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the parent stream. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListMeasurementProtocolSecrets() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listMeasurementProtocolSecretsAsync( + request + ); + for await (const response of iterable) { + console.log(response); + } + } + + callListMeasurementProtocolSecrets(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js new file mode 100644 index 00000000000..7b7c790dd97 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js @@ -0,0 +1,86 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(filter) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + */ + // const filter = 'abc123' + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + */ + // const showDeleted = true + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListProperties() { + // Construct request + const request = { + filter, + }; + + // Run request + const iterable = await adminClient.listPropertiesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListProperties(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js new file mode 100644 index 00000000000..95f74e889ce --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: accounts/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListUserLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listUserLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListUserLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js new file mode 100644 index 00000000000..d965d33b929 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListWebDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListWebDataStreams` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListWebDataStreams() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listWebDataStreamsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListWebDataStreams(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js new file mode 100644 index 00000000000..d37b256ebac --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main() { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The account to create. + */ + // const account = {} + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Developers Console as a Redirect URI + */ + // const redirectUri = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callProvisionAccountTicket() { + // Construct request + const request = {}; + + // Run request + const response = await adminClient.provisionAccountTicket(request); + console.log(response); + } + + callProvisionAccountTicket(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js new file mode 100644 index 00000000000..d009708ad2a --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js @@ -0,0 +1,96 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(account) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account resource for which to return change history resources. + */ + // const account = 'abc123' + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + */ + // const property = 'abc123' + /** + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + */ + // const resourceType = 1234 + /** + * Optional. If set, only return changes that match one or more of these types of + * actions. + */ + // const action = 1234 + /** + * Optional. If set, only return changes if they are made by a user in this list. + */ + // const actorEmail = 'abc123' + /** + * Optional. If set, only return changes made after this time (inclusive). + */ + // const earliestChangeTime = {} + /** + * Optional. If set, only return changes made before this time (inclusive). + */ + // const latestChangeTime = {} + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callSearchChangeHistoryEvents() { + // Construct request + const request = { + account, + }; + + // Run request + const iterable = await adminClient.searchChangeHistoryEventsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callSearchChangeHistoryEvents(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js new file mode 100644 index 00000000000..a1bdc474cc1 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(account, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + */ + // const account = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateAccount() { + // Construct request + const request = { + account, + updateMask, + }; + + // Run request + const response = await adminClient.updateAccount(request); + console.log(response); + } + + callUpdateAccount(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js new file mode 100644 index 00000000000..572753b7872 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(androidAppDataStream, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The android app stream to update. + * The `name` field is used to identify the android app stream to be updated. + */ + // const androidAppDataStream = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateAndroidAppDataStream() { + // Construct request + const request = { + androidAppDataStream, + updateMask, + }; + + // Run request + const response = await adminClient.updateAndroidAppDataStream(request); + console.log(response); + } + + callUpdateAndroidAppDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js new file mode 100644 index 00000000000..02573cab1e7 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The CustomDimension to update + */ + // const customDimension = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateCustomDimension() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateCustomDimension(request); + console.log(response); + } + + callUpdateCustomDimension(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js new file mode 100644 index 00000000000..be6f1d9b298 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The CustomMetric to update + */ + // const customMetric = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateCustomMetric() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateCustomMetric(request); + console.log(response); + } + + callUpdateCustomMetric(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js new file mode 100644 index 00000000000..f56ecc6fb51 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(dataRetentionSettings, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + */ + // const dataRetentionSettings = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateDataRetentionSettings() { + // Construct request + const request = { + dataRetentionSettings, + updateMask, + }; + + // Run request + const response = await adminClient.updateDataRetentionSettings(request); + console.log(response); + } + + callUpdateDataRetentionSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js new file mode 100644 index 00000000000..3d8a74acad6 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The DisplayVideo360AdvertiserLink to update + */ + // const displayVideo_360AdvertiserLink = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateDisplayVideo360AdvertiserLink() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateDisplayVideo360AdvertiserLink( + request + ); + console.log(response); + } + + callUpdateDisplayVideo360AdvertiserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js new file mode 100644 index 00000000000..4d72d6be8d4 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(enhancedMeasurementSettings, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + */ + // const enhancedMeasurementSettings = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateEnhancedMeasurementSettings() { + // Construct request + const request = { + enhancedMeasurementSettings, + updateMask, + }; + + // Run request + const response = await adminClient.updateEnhancedMeasurementSettings( + request + ); + console.log(response); + } + + callUpdateEnhancedMeasurementSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js new file mode 100644 index 00000000000..a5ab0b976f9 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The GoogleAdsLink to update + */ + // const googleAdsLink = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateGoogleAdsLink() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateGoogleAdsLink(request); + console.log(response); + } + + callUpdateGoogleAdsLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js new file mode 100644 index 00000000000..29452bf3d2f --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(googleSignalsSettings, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + */ + // const googleSignalsSettings = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateGoogleSignalsSettings() { + // Construct request + const request = { + googleSignalsSettings, + updateMask, + }; + + // Run request + const response = await adminClient.updateGoogleSignalsSettings(request); + console.log(response); + } + + callUpdateGoogleSignalsSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js new file mode 100644 index 00000000000..f0aff2733ca --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(iosAppDataStream, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The iOS app stream to update. + * The `name` field is used to identify the iOS app stream to be updated. + */ + // const iosAppDataStream = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateIosAppDataStream() { + // Construct request + const request = { + iosAppDataStream, + updateMask, + }; + + // Run request + const response = await adminClient.updateIosAppDataStream(request); + console.log(response); + } + + callUpdateIosAppDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js new file mode 100644 index 00000000000..2ce9f85b8ff --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(measurementProtocolSecret) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The measurement protocol secret to update. + */ + // const measurementProtocolSecret = {} + /** + * The list of fields to be updated. Omitted fields will not be updated. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateMeasurementProtocolSecret() { + // Construct request + const request = { + measurementProtocolSecret, + }; + + // Run request + const response = await adminClient.updateMeasurementProtocolSecret(request); + console.log(response); + } + + callUpdateMeasurementProtocolSecret(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js new file mode 100644 index 00000000000..fad131a0e0c --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(property, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + */ + // const property = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateProperty() { + // Construct request + const request = { + property, + updateMask, + }; + + // Run request + const response = await adminClient.updateProperty(request); + console.log(response); + } + + callUpdateProperty(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js new file mode 100644 index 00000000000..9887a7ad831 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(userLink) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The user link to update. + */ + // const userLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateUserLink() { + // Construct request + const request = { + userLink, + }; + + // Run request + const response = await adminClient.updateUserLink(request); + console.log(response); + } + + callUpdateUserLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js new file mode 100644 index 00000000000..3679b0207a4 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(webDataStream, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The web stream to update. + * The `name` field is used to identify the web stream to be updated. + */ + // const webDataStream = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = + require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateWebDataStream() { + // Construct request + const request = { + webDataStream, + updateMask, + }; + + // Run request + const response = await adminClient.updateWebDataStream(request); + console.log(response); + } + + callUpdateWebDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 8b691bdf22c..b7954490e01 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -186,9 +186,20 @@ export class AnalyticsAdminServiceClient { customMetricPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/customMetrics' ), + dataRetentionSettingsPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/dataRetentionSettings' + ), dataSharingSettingsPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}/dataSharingSettings' ), + displayVideo360AdvertiserLinkPathTemplate: + new this._gaxModule.PathTemplate( + 'properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}' + ), + displayVideo360AdvertiserLinkProposalPathTemplate: + new this._gaxModule.PathTemplate( + 'properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}' + ), enhancedMeasurementSettingsPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings' ), @@ -290,6 +301,17 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'conversionEvents' ), + listDisplayVideo360AdvertiserLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'displayVideo_360AdvertiserLinks' + ), + listDisplayVideo360AdvertiserLinkProposals: + new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'displayVideo_360AdvertiserLinkProposals' + ), listCustomDimensions: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -390,7 +412,6 @@ export class AnalyticsAdminServiceClient { 'getEnhancedMeasurementSettings', 'updateEnhancedMeasurementSettings', 'createFirebaseLink', - 'updateFirebaseLink', 'deleteFirebaseLink', 'listFirebaseLinks', 'getGlobalSiteTag', @@ -411,6 +432,17 @@ export class AnalyticsAdminServiceClient { 'getConversionEvent', 'deleteConversionEvent', 'listConversionEvents', + 'getDisplayVideo360AdvertiserLink', + 'listDisplayVideo360AdvertiserLinks', + 'createDisplayVideo360AdvertiserLink', + 'deleteDisplayVideo360AdvertiserLink', + 'updateDisplayVideo360AdvertiserLink', + 'getDisplayVideo360AdvertiserLinkProposal', + 'listDisplayVideo360AdvertiserLinkProposals', + 'createDisplayVideo360AdvertiserLinkProposal', + 'deleteDisplayVideo360AdvertiserLinkProposal', + 'approveDisplayVideo360AdvertiserLinkProposal', + 'cancelDisplayVideo360AdvertiserLinkProposal', 'createCustomDimension', 'updateCustomDimension', 'listCustomDimensions', @@ -421,6 +453,8 @@ export class AnalyticsAdminServiceClient { 'listCustomMetrics', 'archiveCustomMetric', 'getCustomMetric', + 'getDataRetentionSettings', + 'updateDataRetentionSettings', ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( @@ -508,6 +542,25 @@ export class AnalyticsAdminServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Lookup for a single Account. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_account.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async + */ getAccount( request?: protos.google.analytics.admin.v1alpha.IGetAccountRequest, options?: CallOptions @@ -539,25 +592,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Lookup for a single Account. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getAccount(request); - */ getAccount( request?: protos.google.analytics.admin.v1alpha.IGetAccountRequest, optionsOrCallback?: @@ -601,6 +635,35 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getAccount(request, options, callback); } + /** + * Marks target Account as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted accounts. + * However, they can be restored using the Trash Can UI. + * + * If the accounts are not restored before the expiration time, the account + * and all child resources (eg: Properties, GoogleAdsLinks, Streams, + * UserLinks) will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_account.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async + */ deleteAccount( request?: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, options?: CallOptions @@ -632,35 +695,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteAccount(request); - */ deleteAccount( request?: protos.google.analytics.admin.v1alpha.IDeleteAccountRequest, optionsOrCallback?: @@ -704,6 +738,28 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteAccount(request, options, callback); } + /** + * Updates an account. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Account} request.account + * Required. The account to update. + * The account's `name` field is used to identify the account. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_account.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async + */ updateAccount( request?: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, options?: CallOptions @@ -735,28 +791,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates an account. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.Account} request.account - * Required. The account to update. - * The account's `name` field is used to identify the account. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1alpha.Account}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateAccount(request); - */ updateAccount( request?: protos.google.analytics.admin.v1alpha.IUpdateAccountRequest, optionsOrCallback?: @@ -800,6 +834,26 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.updateAccount(request, options, callback); } + /** + * Requests a ticket for creating an account. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Account} request.account + * The account to create. + * @param {string} request.redirectUri + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Developers Console as a Redirect URI + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ProvisionAccountTicketResponse]{@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async + */ provisionAccountTicket( request?: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, options?: CallOptions @@ -834,26 +888,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Requests a ticket for creating an account. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.Account} request.account - * The account to create. - * @param {string} request.redirectUri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Developers Console as a Redirect URI - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ProvisionAccountTicketResponse]{@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.provisionAccountTicket(request); - */ provisionAccountTicket( request?: protos.google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, optionsOrCallback?: @@ -891,6 +925,8 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; this.initialize(); return this.innerApiCalls.provisionAccountTicket( request, @@ -898,6 +934,25 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Lookup for a single "GA4" Property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_property.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async + */ getProperty( request?: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, options?: CallOptions @@ -929,25 +984,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Lookup for a single "GA4" Property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getProperty(request); - */ getProperty( request?: protos.google.analytics.admin.v1alpha.IGetPropertyRequest, optionsOrCallback?: @@ -991,6 +1027,24 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getProperty(request, options, callback); } + /** + * Creates an "GA4" property with the specified location and attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Property} request.property + * Required. The property to create. + * Note: the supplied property must specify its parent. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_property.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async + */ createProperty( request?: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, options?: CallOptions @@ -1022,24 +1076,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates an "GA4" property with the specified location and attributes. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.Property} request.property - * Required. The property to create. - * Note: the supplied property must specify its parent. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createProperty(request); - */ createProperty( request?: protos.google.analytics.admin.v1alpha.ICreatePropertyRequest, optionsOrCallback?: @@ -1074,40 +1110,11 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; this.initialize(); return this.innerApiCalls.createProperty(request, options, callback); } - deleteProperty( - request?: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IProperty, - protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | undefined, - {} | undefined - ] - >; - deleteProperty( - request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IProperty, - | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest - | null - | undefined, - {} | null | undefined - > - ): void; - deleteProperty( - request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IProperty, - | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Marks target Property as soft-deleted (ie: "trashed") and returns it. * @@ -1134,9 +1141,40 @@ export class AnalyticsAdminServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.deleteProperty(request); + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_property.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async */ + deleteProperty( + request?: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty, + protos.google.analytics.admin.v1alpha.IDeletePropertyRequest | undefined, + {} | undefined + ] + >; + deleteProperty( + request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteProperty( + request: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IProperty, + | protos.google.analytics.admin.v1alpha.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; deleteProperty( request?: protos.google.analytics.admin.v1alpha.IDeletePropertyRequest, optionsOrCallback?: @@ -1180,6 +1218,29 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteProperty(request, options, callback); } + /** + * Updates a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.Property} request.property + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_property.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async + */ updateProperty( request?: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, options?: CallOptions @@ -1211,29 +1272,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.Property} request.property - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1alpha.Property}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateProperty(request); - */ updateProperty( request?: protos.google.analytics.admin.v1alpha.IUpdatePropertyRequest, optionsOrCallback?: @@ -1277,6 +1315,23 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.updateProperty(request, options, callback); } + /** + * Gets information about a user's link to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: accounts/1234/userLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_user_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async + */ getUserLink( request?: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, options?: CallOptions @@ -1308,23 +1363,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Gets information about a user's link to an account or property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Example format: accounts/1234/userLinks/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getUserLink(request); - */ getUserLink( request?: protos.google.analytics.admin.v1alpha.IGetUserLinkRequest, optionsOrCallback?: @@ -1368,6 +1406,30 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getUserLink(request, options, callback); } + /** + * Gets information about multiple users' links to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are + * for. The parent of all provided values for the 'names' field must match + * this field. + * Example format: accounts/1234 + * @param {string[]} request.names + * Required. The names of the user links to retrieve. + * A maximum of 1000 user links can be retrieved in a batch. + * Format: accounts/{accountId}/userLinks/{userLinkId} + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchGetUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async + */ batchGetUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, options?: CallOptions @@ -1402,30 +1464,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Gets information about multiple users' links to an account or property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The account or property that all user links in the request are - * for. The parent of all provided values for the 'names' field must match - * this field. - * Example format: accounts/1234 - * @param {string[]} request.names - * Required. The names of the user links to retrieve. - * A maximum of 1000 user links can be retrieved in a batch. - * Format: accounts/{accountId}/userLinks/{userLinkId} - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [BatchGetUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.batchGetUserLinks(request); - */ batchGetUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, optionsOrCallback?: @@ -1472,6 +1510,32 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.batchGetUserLinks(request, options, callback); } + /** + * Creates a user link on an account or property. + * + * If the user with the specified email already has permissions on the + * account or property, then the user's existing permissions will be unioned + * with the permissions specified in the new UserLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {boolean} [request.notifyNewUser] + * Optional. If set, then email the new user notifying them that they've been granted + * permissions to the resource. + * @param {google.analytics.admin.v1alpha.UserLink} request.userLink + * Required. The user link to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_user_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async + */ createUserLink( request?: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, options?: CallOptions @@ -1503,32 +1567,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates a user link on an account or property. - * - * If the user with the specified email already has permissions on the - * account or property, then the user's existing permissions will be unioned - * with the permissions specified in the new UserLink. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: accounts/1234 - * @param {boolean} [request.notifyNewUser] - * Optional. If set, then email the new user notifying them that they've been granted - * permissions to the resource. - * @param {google.analytics.admin.v1alpha.UserLink} request.userLink - * Required. The user link to create. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createUserLink(request); - */ createUserLink( request?: protos.google.analytics.admin.v1alpha.ICreateUserLinkRequest, optionsOrCallback?: @@ -1572,6 +1610,36 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.createUserLink(request, options, callback); } + /** + * Creates information about multiple users' links to an account or property. + * + * This method is transactional. If any UserLink cannot be created, none of + * the UserLinks will be created. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are for. + * This field is required. The parent field in the CreateUserLinkRequest + * messages must either be empty or match this field. + * Example format: accounts/1234 + * @param {boolean} [request.notifyNewUsers] + * Optional. If set, then email the new users notifying them that they've been granted + * permissions to the resource. Regardless of whether this is set or not, + * notify_new_user field inside each individual request is ignored. + * @param {number[]} request.requests + * Required. The requests specifying the user links to create. + * A maximum of 1000 user links can be created in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchCreateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async + */ batchCreateUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, options?: CallOptions @@ -1606,36 +1674,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates information about multiple users' links to an account or property. - * - * This method is transactional. If any UserLink cannot be created, none of - * the UserLinks will be created. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The account or property that all user links in the request are for. - * This field is required. The parent field in the CreateUserLinkRequest - * messages must either be empty or match this field. - * Example format: accounts/1234 - * @param {boolean} [request.notifyNewUsers] - * Optional. If set, then email the new users notifying them that they've been granted - * permissions to the resource. Regardless of whether this is set or not, - * notify_new_user field inside each individual request is ignored. - * @param {number[]} request.requests - * Required. The requests specifying the user links to create. - * A maximum of 1000 user links can be created in a batch. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [BatchCreateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.batchCreateUserLinks(request); - */ batchCreateUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, optionsOrCallback?: @@ -1682,6 +1720,23 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.batchCreateUserLinks(request, options, callback); } + /** + * Updates a user link on an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.UserLink} request.userLink + * Required. The user link to update. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_user_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async + */ updateUserLink( request?: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, options?: CallOptions @@ -1713,23 +1768,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates a user link on an account or property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.UserLink} request.userLink - * Required. The user link to update. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateUserLink(request); - */ updateUserLink( request?: protos.google.analytics.admin.v1alpha.IUpdateUserLinkRequest, optionsOrCallback?: @@ -1773,6 +1811,29 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.updateUserLink(request, options, callback); } + /** + * Updates information about multiple users' links to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are + * for. The parent field in the UpdateUserLinkRequest messages must either be + * empty or match this field. + * Example format: accounts/1234 + * @param {number[]} request.requests + * Required. The requests specifying the user links to update. + * A maximum of 1000 user links can be updated in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchUpdateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async + */ batchUpdateUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, options?: CallOptions @@ -1807,29 +1868,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates information about multiple users' links to an account or property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The account or property that all user links in the request are - * for. The parent field in the UpdateUserLinkRequest messages must either be - * empty or match this field. - * Example format: accounts/1234 - * @param {number[]} request.requests - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [BatchUpdateUserLinksResponse]{@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.batchUpdateUserLinks(request); - */ batchUpdateUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, optionsOrCallback?: @@ -1876,6 +1914,23 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.batchUpdateUserLinks(request, options, callback); } + /** + * Deletes a user link on an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: accounts/1234/userLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_user_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async + */ deleteUserLink( request?: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, options?: CallOptions @@ -1907,23 +1962,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes a user link on an account or property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Example format: accounts/1234/userLinks/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteUserLink(request); - */ deleteUserLink( request?: protos.google.analytics.admin.v1alpha.IDeleteUserLinkRequest, optionsOrCallback?: @@ -1967,6 +2005,29 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteUserLink(request, options, callback); } + /** + * Deletes information about multiple users' links to an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The account or property that all user links in the request are + * for. The parent of all values for user link names to delete must match this + * field. + * Example format: accounts/1234 + * @param {number[]} request.requests + * Required. The requests specifying the user links to update. + * A maximum of 1000 user links can be updated in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async + */ batchDeleteUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, options?: CallOptions @@ -2001,29 +2062,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes information about multiple users' links to an account or property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The account or property that all user links in the request are - * for. The parent of all values for user link names to delete must match this - * field. - * Example format: accounts/1234 - * @param {number[]} request.requests - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.batchDeleteUserLinks(request); - */ batchDeleteUserLinks( request?: protos.google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, optionsOrCallback?: @@ -2070,6 +2108,25 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.batchDeleteUserLinks(request, options, callback); } + /** + * Lookup for a single WebDataStream + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the web data stream to lookup. + * Format: properties/{property_id}/webDataStreams/{stream_id} + * Example: "properties/123/webDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_async + */ getWebDataStream( request?: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, options?: CallOptions @@ -2104,25 +2161,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Lookup for a single WebDataStream - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the web data stream to lookup. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getWebDataStream(request); - */ getWebDataStream( request?: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, optionsOrCallback?: @@ -2169,6 +2207,25 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getWebDataStream(request, options, callback); } + /** + * Deletes a web stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the web data stream to delete. + * Format: properties/{property_id}/webDataStreams/{stream_id} + * Example: "properties/123/webDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_async + */ deleteWebDataStream( request?: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, options?: CallOptions @@ -2203,25 +2260,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes a web stream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the web data stream to delete. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteWebDataStream(request); - */ deleteWebDataStream( request?: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, optionsOrCallback?: @@ -2268,6 +2306,28 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteWebDataStream(request, options, callback); } + /** + * Updates a web stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream + * Required. The web stream to update. + * The `name` field is used to identify the web stream to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_async + */ updateWebDataStream( request?: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, options?: CallOptions @@ -2302,28 +2362,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates a web stream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream - * Required. The web stream to update. - * The `name` field is used to identify the web stream to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateWebDataStream(request); - */ updateWebDataStream( request?: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, optionsOrCallback?: @@ -2370,6 +2408,26 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.updateWebDataStream(request, options, callback); } + /** + * Creates a web stream with the specified location and attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream + * Required. The web stream to create. + * @param {string} request.parent + * Required. The parent resource where this web data stream will be created. + * Format: properties/123 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_async + */ createWebDataStream( request?: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, options?: CallOptions @@ -2404,26 +2462,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates a web stream with the specified location and attributes. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream - * Required. The web stream to create. - * @param {string} request.parent - * Required. The parent resource where this web data stream will be created. - * Format: properties/123 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createWebDataStream(request); - */ createWebDataStream( request?: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, optionsOrCallback?: @@ -2470,6 +2508,25 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.createWebDataStream(request, options, callback); } + /** + * Lookup for a single IosAppDataStream + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the iOS app data stream to lookup. + * Format: properties/{property_id}/iosAppDataStreams/{stream_id} + * Example: "properties/123/iosAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_async + */ getIosAppDataStream( request?: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, options?: CallOptions @@ -2504,25 +2561,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Lookup for a single IosAppDataStream - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the iOS app data stream to lookup. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getIosAppDataStream(request); - */ getIosAppDataStream( request?: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, optionsOrCallback?: @@ -2569,6 +2607,25 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getIosAppDataStream(request, options, callback); } + /** + * Deletes an iOS app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the iOS app data stream to delete. + * Format: properties/{property_id}/iosAppDataStreams/{stream_id} + * Example: "properties/123/iosAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_async + */ deleteIosAppDataStream( request?: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, options?: CallOptions @@ -2603,25 +2660,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes an iOS app stream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the iOS app data stream to delete. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteIosAppDataStream(request); - */ deleteIosAppDataStream( request?: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, optionsOrCallback?: @@ -2672,6 +2710,28 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Updates an iOS app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.IosAppDataStream} request.iosAppDataStream + * Required. The iOS app stream to update. + * The `name` field is used to identify the iOS app stream to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_async + */ updateIosAppDataStream( request?: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, options?: CallOptions @@ -2706,28 +2766,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates an iOS app stream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.IosAppDataStream} request.iosAppDataStream - * Required. The iOS app stream to update. - * The `name` field is used to identify the iOS app stream to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateIosAppDataStream(request); - */ updateIosAppDataStream( request?: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, optionsOrCallback?: @@ -2778,6 +2816,25 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Lookup for a single AndroidAppDataStream + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the android app data stream to lookup. + * Format: properties/{property_id}/androidAppDataStreams/{stream_id} + * Example: "properties/123/androidAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_async + */ getAndroidAppDataStream( request?: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, options?: CallOptions @@ -2812,25 +2869,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Lookup for a single AndroidAppDataStream - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the android app data stream to lookup. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getAndroidAppDataStream(request); - */ getAndroidAppDataStream( request?: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, optionsOrCallback?: @@ -2881,6 +2919,25 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Deletes an android app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the android app data stream to delete. + * Format: properties/{property_id}/androidAppDataStreams/{stream_id} + * Example: "properties/123/androidAppDataStreams/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_async + */ deleteAndroidAppDataStream( request?: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, options?: CallOptions @@ -2915,25 +2972,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes an android app stream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the android app data stream to delete. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteAndroidAppDataStream(request); - */ deleteAndroidAppDataStream( request?: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, optionsOrCallback?: @@ -2984,6 +3022,28 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Updates an android app stream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} request.androidAppDataStream + * Required. The android app stream to update. + * The `name` field is used to identify the android app stream to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_async + */ updateAndroidAppDataStream( request?: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, options?: CallOptions @@ -3018,28 +3078,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates an android app stream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} request.androidAppDataStream - * Required. The android app stream to update. - * The `name` field is used to identify the android app stream to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateAndroidAppDataStream(request); - */ updateAndroidAppDataStream( request?: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, optionsOrCallback?: @@ -3091,6 +3129,28 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Returns the singleton enhanced measurement settings for this web stream. + * Note that the stream must enable enhanced measurement for these settings to + * take effect. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: + * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings + * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_async + */ getEnhancedMeasurementSettings( request?: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, options?: CallOptions @@ -3125,28 +3185,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Returns the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the settings to lookup. - * Format: - * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getEnhancedMeasurementSettings(request); - */ getEnhancedMeasurementSettings( request?: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, optionsOrCallback?: @@ -3197,6 +3235,30 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Updates the singleton enhanced measurement settings for this web stream. + * Note that the stream must enable enhanced measurement for these settings to + * take effect. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} request.enhancedMeasurementSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_async + */ updateEnhancedMeasurementSettings( request?: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, options?: CallOptions @@ -3231,30 +3293,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} request.enhancedMeasurementSettings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateEnhancedMeasurementSettings(request); - */ updateEnhancedMeasurementSettings( request?: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, optionsOrCallback?: @@ -3306,6 +3344,28 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Creates a FirebaseLink. + * + * Properties can have at most one FirebaseLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink + * Required. The Firebase link to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async + */ createFirebaseLink( request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, options?: CallOptions @@ -3340,28 +3400,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink - * Required. The Firebase link to create. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createFirebaseLink(request); - */ createFirebaseLink( request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, optionsOrCallback?: @@ -3408,107 +3446,24 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.createFirebaseLink(request, options, callback); } - updateFirebaseLink( - request?: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IFirebaseLink, - ( - | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest - | undefined - ), - {} | undefined - ] - >; - updateFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** - * Updates a FirebaseLink on a property + * Deletes a FirebaseLink on a property * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink - * Required. The Firebase link to update. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * @param {string} request.name + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.updateFirebaseLink(request); + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async */ - updateFirebaseLink( - request?: protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IFirebaseLink, - ( - | protos.google.analytics.admin.v1alpha.IUpdateFirebaseLinkRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - 'firebase_link.name': request.firebaseLink!.name || '', - }); - this.initialize(); - return this.innerApiCalls.updateFirebaseLink(request, options, callback); - } deleteFirebaseLink( request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, options?: CallOptions @@ -3543,24 +3498,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes a FirebaseLink on a property - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteFirebaseLink(request); - */ deleteFirebaseLink( request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, optionsOrCallback?: @@ -3607,6 +3544,27 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteFirebaseLink(request, options, callback); } + /** + * Returns the Site Tag for the specified web stream. + * Site Tags are immutable singletons. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/webDataStreams/456/globalSiteTag" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GlobalSiteTag]{@link google.analytics.admin.v1alpha.GlobalSiteTag}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async + */ getGlobalSiteTag( request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, options?: CallOptions @@ -3641,27 +3599,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Returns the Site Tag for the specified web stream. - * Site Tags are immutable singletons. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/456/globalSiteTag" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GlobalSiteTag]{@link google.analytics.admin.v1alpha.GlobalSiteTag}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getGlobalSiteTag(request); - */ getGlobalSiteTag( request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, optionsOrCallback?: @@ -3708,9 +3645,28 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getGlobalSiteTag(request, options, callback); } - createGoogleAdsLink( - request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, - options?: CallOptions + /** + * Creates a GoogleAdsLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink + * Required. The GoogleAdsLink to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async + */ + createGoogleAdsLink( + request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + options?: CallOptions ): Promise< [ protos.google.analytics.admin.v1alpha.IGoogleAdsLink, @@ -3742,25 +3698,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates a GoogleAdsLink. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink - * Required. The GoogleAdsLink to create. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createGoogleAdsLink(request); - */ createGoogleAdsLink( request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, optionsOrCallback?: @@ -3807,6 +3744,27 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.createGoogleAdsLink(request, options, callback); } + /** + * Updates a GoogleAdsLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink + * The GoogleAdsLink to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async + */ updateGoogleAdsLink( request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, options?: CallOptions @@ -3841,27 +3799,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates a GoogleAdsLink on a property - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink - * The GoogleAdsLink to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateGoogleAdsLink(request); - */ updateGoogleAdsLink( request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, optionsOrCallback?: @@ -3908,6 +3845,23 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); } + /** + * Deletes a GoogleAdsLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: properties/1234/googleAdsLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async + */ deleteGoogleAdsLink( request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, options?: CallOptions @@ -3942,23 +3896,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes a GoogleAdsLink on a property - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Example format: properties/1234/googleAdsLinks/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteGoogleAdsLink(request); - */ deleteGoogleAdsLink( request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, optionsOrCallback?: @@ -4005,6 +3942,26 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); } + /** + * Get data sharing settings on an account. + * Data sharing settings are singletons. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataSharingSettings]{@link google.analytics.admin.v1alpha.DataSharingSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async + */ getDataSharingSettings( request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, options?: CallOptions @@ -4039,26 +3996,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DataSharingSettings]{@link google.analytics.admin.v1alpha.DataSharingSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getDataSharingSettings(request); - */ getDataSharingSettings( request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, optionsOrCallback?: @@ -4109,6 +4046,27 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, + * AndroidAppDataStream) may be a parent. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async + */ getMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, options?: CallOptions @@ -4143,27 +4101,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getMeasurementProtocolSecret(request); - */ getMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, optionsOrCallback?: @@ -4214,6 +4151,28 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Creates a measurement protocol secret. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent resource where this secret will be created. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: properties/{property}/webDataStreams/{webDataStream} + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async + */ createMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, options?: CallOptions @@ -4248,28 +4207,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates a measurement protocol secret. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The parent resource where this secret will be created. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret - * Required. The measurement protocol secret to create. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createMeasurementProtocolSecret(request); - */ createMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, optionsOrCallback?: @@ -4320,6 +4257,27 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Deletes target MeasurementProtocolSecret. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, + * AndroidAppDataStream) may be a parent. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async + */ deleteMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, options?: CallOptions @@ -4354,27 +4312,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes target MeasurementProtocolSecret. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteMeasurementProtocolSecret(request); - */ deleteMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, optionsOrCallback?: @@ -4425,6 +4362,25 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Updates a measurement protocol secret. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async + */ updateMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, options?: CallOptions @@ -4459,25 +4415,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates a measurement protocol secret. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret - * Required. The measurement protocol secret to update. - * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateMeasurementProtocolSecret(request); - */ updateMeasurementProtocolSecret( request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, optionsOrCallback?: @@ -4529,6 +4466,24 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Lookup for Google Signals settings for a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async + */ getGoogleSignalsSettings( request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, options?: CallOptions @@ -4563,24 +4518,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Lookup for Google Signals settings for a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getGoogleSignalsSettings(request); - */ getGoogleSignalsSettings( request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, optionsOrCallback?: @@ -4631,6 +4568,28 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Updates Google Signals settings for a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} request.googleSignalsSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async + */ updateGoogleSignalsSettings( request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, options?: CallOptions @@ -4665,28 +4624,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Updates Google Signals settings for a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} request.googleSignalsSettings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateGoogleSignalsSettings(request); - */ updateGoogleSignalsSettings( request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, optionsOrCallback?: @@ -4738,6 +4675,26 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Creates a conversion event with the specified attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.ConversionEvent} request.conversionEvent + * Required. The conversion event to create. + * @param {string} request.parent + * Required. The resource name of the parent property where this conversion event will + * be created. Format: properties/123 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async + */ createConversionEvent( request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, options?: CallOptions @@ -4772,26 +4729,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Creates a conversion event with the specified attributes. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.ConversionEvent} request.conversionEvent - * Required. The conversion event to create. - * @param {string} request.parent - * Required. The resource name of the parent property where this conversion event will - * be created. Format: properties/123 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createConversionEvent(request); - */ createConversionEvent( request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, optionsOrCallback?: @@ -4838,6 +4775,25 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.createConversionEvent(request, options, callback); } + /** + * Retrieve a single conversion event. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async + */ getConversionEvent( request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, options?: CallOptions @@ -4872,25 +4828,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Retrieve a single conversion event. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getConversionEvent(request); - */ getConversionEvent( request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, optionsOrCallback?: @@ -4937,6 +4874,25 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getConversionEvent(request, options, callback); } + /** + * Deletes a conversion event in a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async + */ deleteConversionEvent( request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, options?: CallOptions @@ -4971,25 +4927,6 @@ export class AnalyticsAdminServiceClient { {} | null | undefined > ): void; - /** - * Deletes a conversion event in a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteConversionEvent(request); - */ deleteConversionEvent( request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, optionsOrCallback?: @@ -5036,82 +4973,81 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.deleteConversionEvent(request, options, callback); } - createCustomDimension( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + /** + * Look up a single DisplayVideo360AdvertiserLink + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async + */ + getDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - createCustomDimension( - request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + getDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - createCustomDimension( - request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + getDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - /** - * Creates a CustomDimension. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension - * Required. The CustomDimension to create. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createCustomDimension(request); - */ - createCustomDimension( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + getDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -5130,89 +5066,95 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.createCustomDimension(request, options, callback); + return this.innerApiCalls.getDisplayVideo360AdvertiserLink( + request, + options, + callback + ); } - updateCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + /** + * Creates a DisplayVideo360AdvertiserLink. + * This can only be utilized by users who have proper authorization both on + * the Google Analytics property and on the Display & Video 360 advertiser. + * Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} request.displayVideo_360AdvertiserLink + * Required. The DisplayVideo360AdvertiserLink to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async + */ + createDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - updateCustomDimension( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + createDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - updateCustomDimension( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + createDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - /** - * Updates a CustomDimension on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension - * The CustomDimension to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateCustomDimension(request); - */ - updateCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + createDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -5231,77 +5173,81 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'custom_dimension.name': request.customDimension!.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.updateCustomDimension(request, options, callback); + return this.innerApiCalls.createDisplayVideo360AdvertiserLink( + request, + options, + callback + ); } - archiveCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + /** + * Deletes a DisplayVideo360AdvertiserLink on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async + */ + deleteDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - archiveCustomDimension( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + deleteDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - archiveCustomDimension( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + deleteDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - /** - * Archives a CustomDimension on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.archiveCustomDimension(request); - */ - archiveCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + deleteDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined @@ -5310,7 +5256,7 @@ export class AnalyticsAdminServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -5332,87 +5278,90 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.archiveCustomDimension( + return this.innerApiCalls.deleteDisplayVideo360AdvertiserLink( request, options, callback ); } - getCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + /** + * Updates a DisplayVideo360AdvertiserLink on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} request.displayVideo_360AdvertiserLink + * The DisplayVideo360AdvertiserLink to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async + */ + updateDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - getCustomDimension( - request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + updateDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - getCustomDimension( - request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + updateDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - /** - * Lookup for a single CustomDimension. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getCustomDimension(request); - */ - getCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + updateDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -5431,87 +5380,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + 'display_video_360_advertiser_link.name': + request.displayVideo_360AdvertiserLink!.name || '', }); this.initialize(); - return this.innerApiCalls.getCustomDimension(request, options, callback); + return this.innerApiCalls.updateDisplayVideo360AdvertiserLink( + request, + options, + callback + ); } - createCustomMetric( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + /** + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async + */ + getDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - createCustomMetric( - request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + getDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - createCustomMetric( - request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + getDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - /** - * Creates a CustomMetric. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric - * Required. The CustomMetric to create. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createCustomMetric(request); - */ - createCustomMetric( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + getDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -5530,89 +5483,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.createCustomMetric(request, options, callback); + return this.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal( + request, + options, + callback + ); } - updateCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + /** + * Creates a DisplayVideo360AdvertiserLinkProposal. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} request.displayVideo_360AdvertiserLinkProposal + * Required. The DisplayVideo360AdvertiserLinkProposal to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async + */ + createDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - updateCustomMetric( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + createDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - updateCustomMetric( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + createDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - /** - * Updates a CustomMetric on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric - * The CustomMetric to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateCustomMetric(request); - */ - updateCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + createDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -5631,77 +5586,82 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'custom_metric.name': request.customMetric!.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.updateCustomMetric(request, options, callback); + return this.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal( + request, + options, + callback + ); } - archiveCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + /** + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + * This can only be used on cancelled proposals. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async + */ + deleteDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - archiveCustomMetric( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + deleteDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - archiveCustomMetric( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + deleteDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - /** - * Archives a CustomMetric on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.archiveCustomMetric(request); - */ - archiveCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + deleteDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined @@ -5710,7 +5670,7 @@ export class AnalyticsAdminServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -5732,79 +5692,91 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.archiveCustomMetric(request, options, callback); + return this.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal( + request, + options, + callback + ); } - getCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + /** + * Approves a DisplayVideo360AdvertiserLinkProposal. + * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + * DisplayVideo360AdvertiserLink will be created. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ApproveDisplayVideo360AdvertiserLinkProposalResponse]{@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async + */ + approveDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + ( + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + | undefined + ), {} | undefined ] >; - getCustomMetric( - request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + approveDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - getCustomMetric( - request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + approveDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - /** - * Lookup for a single CustomMetric. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getCustomMetric(request); - */ - getCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + approveDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + ( + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + | undefined + ), {} | undefined ] > | void { @@ -5824,99 +5796,94 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.getCustomMetric(request, options, callback); + return this.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal( + request, + options, + callback + ); } - - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + /** + * Cancels a DisplayVideo360AdvertiserLinkProposal. + * Cancelling can mean either: + * - Declining a proposal initiated from Display & Video 360 + * - Withdrawing a proposal initiated from Google Analytics + * After being cancelled, a proposal will eventually be deleted automatically. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async + */ + cancelDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + ( + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + | undefined + ), + {} | undefined ] >; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + cancelDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + cancelDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + cancelDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | Callback< + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + ( + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + | undefined + ), + {} | undefined ] > | void { request = request || {}; @@ -5928,188 +5895,1747 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); - return this.innerApiCalls.listAccounts(request, options, callback); + return this.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal( + request, + options, + callback + ); } - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * Creates a CustomDimension. + * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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 + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension + * Required. The CustomDimension to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async + */ + createCustomDimension( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomDimension( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createCustomDimension(request, options, callback); + } + /** + * Updates a CustomDimension on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension + * The CustomDimension to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async + */ + updateCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'custom_dimension.name': request.customDimension!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateCustomDimension(request, options, callback); + } + /** + * Archives a CustomDimension on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async + */ + archiveCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.archiveCustomDimension( + request, + options, + callback + ); + } + /** + * Lookup for a single CustomDimension. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async + */ + getCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomDimension, + ( + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getCustomDimension(request, options, callback); + } + /** + * Creates a CustomMetric. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric + * Required. The CustomMetric to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async + */ + createCustomMetric( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomMetric( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createCustomMetric(request, options, callback); + } + /** + * Updates a CustomMetric on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric + * The CustomMetric to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async + */ + updateCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + ( + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'custom_metric.name': request.customMetric!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateCustomMetric(request, options, callback); + } + /** + * Archives a CustomMetric on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async + */ + archiveCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.archiveCustomMetric(request, options, callback); + } + /** + * Lookup for a single CustomMetric. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async + */ + getCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, + {} | undefined + ] + >; + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getCustomMetric(request, options, callback); + } + /** + * Returns the singleton data retention settings for this property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1alpha.DataRetentionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async + */ + getDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getDataRetentionSettings( + request, + options, + callback + ); + } + /** + * Updates the singleton data retention settings for this property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} request.dataRetentionSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1alpha.DataRetentionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async + */ + updateDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + updateDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'data_retention_settings.name': + request.dataRetentionSettings!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateDataRetentionSettings( + request, + options, + callback + ); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + >; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccounts(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccounts`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async + */ + listAccountsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Returns summaries of all accounts accessible by the caller. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + >; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccountSummaries(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummariesStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.createStream( + this.innerApiCalls.listAccountSummaries as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccountSummaries`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async + */ + listAccountSummariesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.asyncIterate( + this.innerApiCalls['listAccountSummaries'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + >; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listProperties(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAccountsAsync()` + * We recommend using `listPropertiesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountsStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + listPropertiesStream( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; - const callSettings = new gax.CallSettings(options); + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listProperties']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccounts.createStream( - this.innerApiCalls.listAccounts as gax.GaxCall, + return this.descriptors.page.listProperties.createStream( + this.innerApiCalls.listProperties as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listAccounts`, but returns an iterable object. + * Equivalent to `listProperties`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize * The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAccounts` call. + * A page token, received from a previous `ListProperties` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, + * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listAccountsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_properties.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async */ - listAccountsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + listPropertiesAsync( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; - options = options || {}; - const callSettings = new gax.CallSettings(options); + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listProperties']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccounts.asyncIterate( - this.innerApiCalls['listAccounts'] as GaxCall, + return this.descriptors.page.listProperties.asyncIterate( + this.innerApiCalls['listProperties'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - ] - >; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary - > - ): void; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary - > - ): void; /** - * Returns summaries of all accounts accessible by the caller. + * Lists all user links on an account or property. * * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. + * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` + * We recommend using `listUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse + ] + >; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + protos.google.analytics.admin.v1alpha.IUserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + protos.google.analytics.admin.v1alpha.IUserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse ] > | void { request = request || {}; @@ -6121,203 +7647,210 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); - return this.innerApiCalls.listAccountSummaries(request, options, callback); + return this.innerApiCalls.listUserLinks(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` + * We recommend using `listUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountSummariesStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; - const callSettings = new gax.CallSettings(options); + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listUserLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.createStream( - this.innerApiCalls.listAccountSummaries as gax.GaxCall, + return this.descriptors.page.listUserLinks.createStream( + this.innerApiCalls.listUserLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listAccountSummaries`, but returns an iterable object. + * Equivalent to `listUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, + * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listAccountSummariesAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async */ - listAccountSummariesAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; - options = options || {}; - const callSettings = new gax.CallSettings(options); + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listUserLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.asyncIterate( - this.innerApiCalls['listAccountSummaries'] as GaxCall, + return this.descriptors.page.listUserLinks.asyncIterate( + this.innerApiCalls['listUserLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse - ] - >; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IProperty - > - ): void; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IProperty - > - ): void; /** - * Returns child Properties under the specified parent Account. + * Lists all user links on an account or property, including implicit ones + * that come from effective permissions granted by groups or organization + * admin roles. * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. + * If a returned user link does not have direct permissions, they cannot + * be removed from the account or property directly with the DeleteUserLink + * command. They have to be removed from the group/etc that gives them + * permissions, which is currently only usable/discoverable in the GA or GMP + * UIs. * * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. + * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + ] + >; + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): void; + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAuditUserLink + > + ): void; + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse ] > | void { request = request || {}; @@ -6329,218 +7862,206 @@ export class AnalyticsAdminServiceClient { options = optionsOrCallback as CallOptions; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); - return this.innerApiCalls.listProperties(request, options, callback); + return this.innerApiCalls.auditUserLinks(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. + * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listPropertiesStream( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; - const callSettings = new gax.CallSettings(options); + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['auditUserLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listProperties.createStream( - this.innerApiCalls.listProperties as gax.GaxCall, + return this.descriptors.page.auditUserLinks.createStream( + this.innerApiCalls.auditUserLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listProperties`, but returns an iterable object. + * Equivalent to `auditUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, + * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listPropertiesAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.audit_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async */ - listPropertiesAsync( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; - options = options || {}; - const callSettings = new gax.CallSettings(options); + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['auditUserLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listProperties.asyncIterate( - this.innerApiCalls['listProperties'] as GaxCall, + return this.descriptors.page.auditUserLinks.asyncIterate( + this.innerApiCalls['auditUserLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse - ] - >; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IUserLink - > - ): void; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IUserLink - > - ): void; /** - * Lists all user links on an account or property. + * Returns child web data streams under the specified parent property. + * + * Web data streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant web data streams are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListWebDataStreams` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListWebDataStreams` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The first element of the array is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listWebDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listWebDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IWebDataStream[], + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + ] + >; + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): void; + listWebDataStreams( + request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IWebDataStream + > + ): void; + listWebDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IWebDataStream >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IWebDataStream > ): Promise< [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IWebDataStream[], + protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse ] > | void { request = request || {}; @@ -6559,7 +8080,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listUserLinks(request, options, callback); + return this.innerApiCalls.listWebDataStreams(request, options, callback); } /** @@ -6567,31 +8088,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListWebDataStreams` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListWebDataStreams` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. + * An object stream which emits an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listWebDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listWebDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6602,53 +8124,52 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listWebDataStreams']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.createStream( - this.innerApiCalls.listUserLinks as gax.GaxCall, + return this.descriptors.page.listWebDataStreams.createStream( + this.innerApiCalls.listWebDataStreams as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listUserLinks`, but returns an iterable object. + * Equivalent to `listWebDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to list results of web streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListWebDataStreams` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListWebDataStreams` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, + * [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listUserLinksAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_async */ - listUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listWebDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6657,107 +8178,103 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listWebDataStreams']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.asyncIterate( - this.innerApiCalls['listUserLinks'] as GaxCall, + return this.descriptors.page.listWebDataStreams.asyncIterate( + this.innerApiCalls['listWebDataStreams'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse - ] - >; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink - > - ): void; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink - > - ): void; /** - * Lists all user links on an account or property, including implicit ones - * that come from effective permissions granted by groups or organization - * admin roles. + * Returns child iOS app data streams under the specified parent property. * - * If a returned user link does not have direct permissions, they cannot - * be removed from the account or property directly with the DeleteUserLink - * command. They have to be removed from the group/etc that gives them - * permissions, which is currently only usable/discoverable in the GA or GMP - * UIs. + * iOS app data streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant iOS app data streams are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. + * The first element of the array is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listIosAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listIosAppDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IIosAppDataStream[], + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + ] + >; + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IIosAppDataStream + > + ): void; + listIosAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IIosAppDataStream + > + ): void; + listIosAppDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IIosAppDataStream >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IIosAppDataStream > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IIosAppDataStream[], + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse ] > | void { request = request || {}; @@ -6776,7 +8293,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.auditUserLinks(request, options, callback); + return this.innerApiCalls.listIosAppDataStreams(request, options, callback); } /** @@ -6784,31 +8301,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. + * An object stream which emits an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listIosAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listIosAppDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6819,53 +8337,52 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listIosAppDataStreams']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.createStream( - this.innerApiCalls.auditUserLinks as gax.GaxCall, + return this.descriptors.page.listIosAppDataStreams.createStream( + this.innerApiCalls.listIosAppDataStreams as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `auditUserLinks`, but returns an iterable object. + * Equivalent to `listIosAppDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. The name of the parent property. + * For example, to list results of app streams under the property with Id + * 123: "properties/123" * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListIosAppDataStreams` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListIosAppDataStreams` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, + * [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.auditUserLinksAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_async */ - auditUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listIosAppDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6874,103 +8391,105 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listIosAppDataStreams']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.asyncIterate( - this.innerApiCalls['auditUserLinks'] as GaxCall, + return this.descriptors.page.listIosAppDataStreams.asyncIterate( + this.innerApiCalls['listIosAppDataStreams'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listWebDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IWebDataStream[], - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse - ] - >; - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream - > - ): void; - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream - > - ): void; /** - * Returns child web data streams under the specified parent property. + * Returns child android app streams under the specified parent property. * - * Web data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant web data streams are found. + * Android app streams will be excluded if the caller does not have access. + * Returns an empty list if no relevant android app streams are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id + * For example, to limit results to app streams under the property with Id * 123: "properties/123" * @param {number} request.pageSize * The maximum number of resources to return. + * * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must - * match the call that provided the page token. + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The first element of the array is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listWebDataStreamsAsync()` + * We recommend using `listAndroidAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listWebDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listAndroidAppDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + ] + >; + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + > + ): void; + listAndroidAppDataStreams( + request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + > + ): void; + listAndroidAppDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream > ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream[], - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse ] > | void { request = request || {}; @@ -6989,7 +8508,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listWebDataStreams(request, options, callback); + return this.innerApiCalls.listAndroidAppDataStreams( + request, + options, + callback + ); } /** @@ -6998,31 +8521,33 @@ export class AnalyticsAdminServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id + * For example, to limit results to app streams under the property with Id * 123: "properties/123" * @param {number} request.pageSize * The maximum number of resources to return. + * * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must - * match the call that provided the page token. + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} on 'data' event. + * An object stream which emits an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listWebDataStreamsAsync()` + * We recommend using `listAndroidAppDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listWebDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listAndroidAppDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -7033,54 +8558,54 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listAndroidAppDataStreams']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listWebDataStreams.createStream( - this.innerApiCalls.listWebDataStreams as gax.GaxCall, + return this.descriptors.page.listAndroidAppDataStreams.createStream( + this.innerApiCalls.listAndroidAppDataStreams as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listWebDataStreams`, but returns an iterable object. + * Equivalent to `listAndroidAppDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id + * For example, to limit results to app streams under the property with Id * 123: "properties/123" * @param {number} request.pageSize * The maximum number of resources to return. + * * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must - * match the call that provided the page token. + * A page token, received from a previous call. Provide this to + * retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListAndroidAppDataStreams` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. The API will be called under the hood as needed, once per the page, + * [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listWebDataStreamsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_async */ - listWebDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listAndroidAppDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -7089,103 +8614,101 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listAndroidAppDataStreams']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listWebDataStreams.asyncIterate( - this.innerApiCalls['listWebDataStreams'] as GaxCall, + return this.descriptors.page.listAndroidAppDataStreams.asyncIterate( + this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listIosAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream[], - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse - ] - >; - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream - > - ): void; - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream - > - ): void; /** - * Returns child iOS app data streams under the specified parent property. - * - * iOS app data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant iOS app data streams are found. + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listIosAppDataStreamsAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listIosAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listFirebaseLinks( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + ] + >; + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IFirebaseLink + > + ): void; + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IFirebaseLink + > + ): void; + listFirebaseLinks( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IFirebaseLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream[], - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse ] > | void { request = request || {}; @@ -7204,7 +8727,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listIosAppDataStreams(request, options, callback); + return this.innerApiCalls.listFirebaseLinks(request, options, callback); } /** @@ -7212,32 +8735,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} on 'data' event. + * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listIosAppDataStreamsAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listIosAppDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listFirebaseLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -7248,161 +8771,153 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listFirebaseLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listIosAppDataStreams.createStream( - this.innerApiCalls.listIosAppDataStreams as gax.GaxCall, + return this.descriptors.page.listFirebaseLinks.createStream( + this.innerApiCalls.listFirebaseLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listIosAppDataStreams`, but returns an iterable object. + * Equivalent to `listFirebaseLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - * @example - * const iterable = client.listIosAppDataStreamsAsync(request); - * for await (const response of iterable) { - * // process response - * } - */ - listIosAppDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - options = options || {}; - const callSettings = new gax.CallSettings(options); - this.initialize(); - return this.descriptors.page.listIosAppDataStreams.asyncIterate( - this.innerApiCalls['listIosAppDataStreams'] as GaxCall, - request as unknown as RequestType, - callSettings - ) as AsyncIterable; - } - listAndroidAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse - ] - >; - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream - > - ): void; - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream - > - ): void; + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async + */ + listFirebaseLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listFirebaseLinks']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFirebaseLinks.asyncIterate( + this.innerApiCalls['listFirebaseLinks'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } /** - * Returns child android app streams under the specified parent property. - * - * Android app streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant android app streams are found. + * Lists GoogleAdsLinks on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. - * * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAndroidAppDataStreamsAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAndroidAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + ] + >; + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink + > + ): void; + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink + > + ): void; + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IGoogleAdsLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse ] > | void { request = request || {}; @@ -7421,11 +8936,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listAndroidAppDataStreams( - request, - options, - callback - ); + return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); } /** @@ -7433,34 +8944,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. - * * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} on 'data' event. + * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAndroidAppDataStreamsAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAndroidAppDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + listGoogleAdsLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -7471,56 +8979,51 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAndroidAppDataStreams.createStream( - this.innerApiCalls.listAndroidAppDataStreams as gax.GaxCall, + return this.descriptors.page.listGoogleAdsLinks.createStream( + this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listAndroidAppDataStreams`, but returns an iterable object. + * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. - * * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. The API will be called under the hood as needed, once per the page, + * [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listAndroidAppDataStreamsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async */ - listAndroidAppDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + listGoogleAdsLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -7529,101 +9032,103 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAndroidAppDataStreams.asyncIterate( - this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, + return this.descriptors.page.listGoogleAdsLinks.asyncIterate( + this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listFirebaseLinks( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse - ] - >; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink - > - ): void; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink - > - ): void; /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The first element of the array is Array of [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinks( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + ] + >; + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + > + ): void; + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + > + ): void; + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse ] > | void { request = request || {}; @@ -7642,7 +9147,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listFirebaseLinks(request, options, callback); + return this.innerApiCalls.listMeasurementProtocolSecrets( + request, + options, + callback + ); } /** @@ -7650,32 +9159,34 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink} on 'data' event. + * An object stream which emits an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecretsStream( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -7686,54 +9197,55 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.createStream( - this.innerApiCalls.listFirebaseLinks as gax.GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.createStream( + this.innerApiCalls.listMeasurementProtocolSecrets as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listFirebaseLinks`, but returns an iterable object. + * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + * may be a parent. + * Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. The API will be called under the hood as needed, once per the page, + * [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listFirebaseLinksAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async */ - listFirebaseLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecretsAsync( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -7742,99 +9254,116 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.asyncIterate( - this.innerApiCalls['listFirebaseLinks'] as GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( + this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listGoogleAdsLinks( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse - ] - >; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink - > - ): void; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink - > - ): void; /** - * Lists GoogleAdsLinks on a property. + * Searches through all changes to an account or its children given the + * specified set of filters. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinks( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + ] + >; + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + > + ): void; + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + > + ): void; + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse ] > | void { request = request || {}; @@ -7850,42 +9379,61 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + account: request.account || '', }); this.initialize(); - return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); + return this.innerApiCalls.searchChangeHistoryEvents( + request, + options, + callback + ); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. + * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEventsStream( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -7894,160 +9442,171 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + account: request.account || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.createStream( - this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.createStream( + this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. + * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, + * [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listGoogleAdsLinksAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async */ - listGoogleAdsLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEventsAsync( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + account: request.account || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.asyncIterate( - this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( + this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listMeasurementProtocolSecrets( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse - ] - >; - listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret - > - ): void; - listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret - > - ): void; /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * The first element of the array is Array of [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listMeasurementProtocolSecretsAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listMeasurementProtocolSecrets( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + ] + >; + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IConversionEvent + > + ): void; + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IConversionEvent + > + ): void; + listConversionEvents( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse ] > | void { request = request || {}; @@ -8066,11 +9625,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listMeasurementProtocolSecrets( - request, - options, - callback - ); + return this.innerApiCalls.listConversionEvents(request, options, callback); } /** @@ -8078,34 +9633,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret} on 'data' event. + * An object stream which emits an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listMeasurementProtocolSecretsAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listMeasurementProtocolSecretsStream( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEventsStream( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8116,56 +9668,51 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listConversionEvents']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listMeasurementProtocolSecrets.createStream( - this.innerApiCalls.listMeasurementProtocolSecrets as gax.GaxCall, + return this.descriptors.page.listConversionEvents.createStream( + this.innerApiCalls.listConversionEvents as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. + * Equivalent to `listConversionEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * @param {string} request.parent + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, + * [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listMeasurementProtocolSecretsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async */ - listMeasurementProtocolSecretsAsync( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEventsAsync( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -8174,115 +9721,100 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listConversionEvents']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( - this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, + return this.descriptors.page.listConversionEvents.asyncIterate( + this.innerApiCalls['listConversionEvents'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - searchChangeHistoryEvents( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse - ] - >; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent - > - ): void; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent - > - ): void; /** - * Searches through all changes to an account or its children given the - * specified set of filters. + * Lists all DisplayVideo360AdvertiserLinks on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. + * The first element of the array is Array of [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEvents( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + ] + >; + listDisplayVideo360AdvertiserLinks( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + > + ): void; + listDisplayVideo360AdvertiserLinks( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + > + ): void; + listDisplayVideo360AdvertiserLinks( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse ] > | void { request = request || {}; @@ -8298,10 +9830,10 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - account: request.account || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.searchChangeHistoryEvents( + return this.innerApiCalls.listDisplayVideo360AdvertiserLinks( request, options, callback @@ -8312,47 +9844,33 @@ export class AnalyticsAdminServiceClient { * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent} on 'data' event. + * An object stream which emits an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEventsStream( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8361,173 +9879,159 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - account: request.account || '', + parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.createStream( - this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream( + this.innerApiCalls.listDisplayVideo360AdvertiserLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. + * Equivalent to `listDisplayVideo360AdvertiserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, + * [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.searchChangeHistoryEventsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async */ - searchChangeHistoryEventsAsync( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - account: request.account || '', + parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( - this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate( + this.innerApiCalls['listDisplayVideo360AdvertiserLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } - listConversionEvents( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IConversionEvent[], - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, - protos.google.analytics.admin.v1alpha.IListConversionEventsResponse - ] - >; - listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent - > - ): void; - listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent - > - ): void; /** - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. + * Lists DisplayVideo360AdvertiserLinkProposals on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * @param {string} request.parent + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * The first element of the array is Array of [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listConversionEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listConversionEvents( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + ] + >; + listDisplayVideo360AdvertiserLinkProposals( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + > + ): void; + listDisplayVideo360AdvertiserLinkProposals( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + > + ): void; + listDisplayVideo360AdvertiserLinkProposals( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal > ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent[], - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, - protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse ] > | void { request = request || {}; @@ -8546,7 +10050,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listConversionEvents(request, options, callback); + return this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals( + request, + options, + callback + ); } /** @@ -8554,31 +10062,33 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent} on 'data' event. + * An object stream which emits an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listConversionEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listConversionEventsStream( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposalsStream( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8589,53 +10099,55 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinkProposals']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listConversionEvents.createStream( - this.innerApiCalls.listConversionEvents as gax.GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream( + this.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listConversionEvents`, but returns an iterable object. + * Equivalent to `listDisplayVideo360AdvertiserLinkProposals`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. The API will be called under the hood as needed, once per the page, + * [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listConversionEventsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async */ - listConversionEventsAsync( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposalsAsync( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -8644,15 +10156,48 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinkProposals']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listConversionEvents.asyncIterate( - this.innerApiCalls['listConversionEvents'] as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate( + this.innerApiCalls[ + 'listDisplayVideo360AdvertiserLinkProposals' + ] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } + /** + * Lists CustomDimensions on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomDimensionsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ listCustomDimensions( request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions @@ -8684,36 +10229,6 @@ export class AnalyticsAdminServiceClient { protos.google.analytics.admin.v1alpha.ICustomDimension > ): void; - /** - * Lists CustomDimensions on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listCustomDimensionsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ listCustomDimensions( request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, optionsOrCallback?: @@ -8798,7 +10313,8 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listCustomDimensions']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomDimensions.createStream( this.innerApiCalls.listCustomDimensions as gax.GaxCall, @@ -8835,11 +10351,8 @@ export class AnalyticsAdminServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listCustomDimensionsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async */ listCustomDimensionsAsync( request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, @@ -8853,8 +10366,8 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listCustomDimensions']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomDimensions.asyncIterate( this.innerApiCalls['listCustomDimensions'] as GaxCall, @@ -8862,6 +10375,36 @@ export class AnalyticsAdminServiceClient { callSettings ) as AsyncIterable; } + /** + * Lists CustomMetrics on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomMetricsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ listCustomMetrics( request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions @@ -8893,36 +10436,6 @@ export class AnalyticsAdminServiceClient { protos.google.analytics.admin.v1alpha.ICustomMetric > ): void; - /** - * Lists CustomMetrics on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listCustomMetricsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ listCustomMetrics( request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, optionsOrCallback?: @@ -9007,7 +10520,8 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listCustomMetrics']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomMetrics.createStream( this.innerApiCalls.listCustomMetrics as gax.GaxCall, @@ -9044,11 +10558,8 @@ export class AnalyticsAdminServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listCustomMetricsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async */ listCustomMetricsAsync( request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, @@ -9062,8 +10573,8 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listCustomMetrics']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomMetrics.asyncIterate( this.innerApiCalls['listCustomMetrics'] as GaxCall, @@ -9294,6 +10805,33 @@ export class AnalyticsAdminServiceClient { .property; } + /** + * Return a fully-qualified dataRetentionSettings resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + dataRetentionSettingsPath(property: string) { + return this.pathTemplates.dataRetentionSettingsPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from DataRetentionSettings resource. + * + * @param {string} dataRetentionSettingsName + * A fully-qualified path representing DataRetentionSettings resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromDataRetentionSettingsName( + dataRetentionSettingsName: string + ) { + return this.pathTemplates.dataRetentionSettingsPathTemplate.match( + dataRetentionSettingsName + ).property; + } + /** * Return a fully-qualified dataSharingSettings resource name string. * @@ -9319,6 +10857,62 @@ export class AnalyticsAdminServiceClient { ).account; } + /** + * Return a fully-qualified displayVideo360AdvertiserLink resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + displayVideo360AdvertiserLinkPath(property: string) { + return this.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from DisplayVideo360AdvertiserLink resource. + * + * @param {string} displayVideo360AdvertiserLinkName + * A fully-qualified path representing DisplayVideo360AdvertiserLink resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromDisplayVideo360AdvertiserLinkName( + displayVideo360AdvertiserLinkName: string + ) { + return this.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.match( + displayVideo360AdvertiserLinkName + ).property; + } + + /** + * Return a fully-qualified displayVideo360AdvertiserLinkProposal resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + displayVideo360AdvertiserLinkProposalPath(property: string) { + return this.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.render( + { + property: property, + } + ); + } + + /** + * Parse the property from DisplayVideo360AdvertiserLinkProposal resource. + * + * @param {string} displayVideo360AdvertiserLinkProposalName + * A fully-qualified path representing DisplayVideo360AdvertiserLinkProposal resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromDisplayVideo360AdvertiserLinkProposalName( + displayVideo360AdvertiserLinkProposalName: string + ) { + return this.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.match( + displayVideo360AdvertiserLinkProposalName + ).property; + } + /** * Return a fully-qualified enhancedMeasurementSettings resource name string. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index bcd29e2e683..ce526dafdba 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -218,11 +218,6 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, - "UpdateFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, "DeleteFirebaseLink": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -323,6 +318,61 @@ "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, + "GetDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListDisplayVideo360AdvertiserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, "CreateCustomDimension": { "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", @@ -372,6 +422,16 @@ "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" } } } diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index a1cdcdae4a7..31c90ae9945 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -155,11 +155,6 @@ "createFirebaseLink" ] }, - "UpdateFirebaseLink": { - "methods": [ - "updateFirebaseLink" - ] - }, "DeleteFirebaseLink": { "methods": [ "deleteFirebaseLink" @@ -235,6 +230,51 @@ "deleteConversionEvent" ] }, + "GetDisplayVideo360AdvertiserLink": { + "methods": [ + "getDisplayVideo360AdvertiserLink" + ] + }, + "CreateDisplayVideo360AdvertiserLink": { + "methods": [ + "createDisplayVideo360AdvertiserLink" + ] + }, + "DeleteDisplayVideo360AdvertiserLink": { + "methods": [ + "deleteDisplayVideo360AdvertiserLink" + ] + }, + "UpdateDisplayVideo360AdvertiserLink": { + "methods": [ + "updateDisplayVideo360AdvertiserLink" + ] + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "getDisplayVideo360AdvertiserLinkProposal" + ] + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "createDisplayVideo360AdvertiserLinkProposal" + ] + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "deleteDisplayVideo360AdvertiserLinkProposal" + ] + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "approveDisplayVideo360AdvertiserLinkProposal" + ] + }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "cancelDisplayVideo360AdvertiserLinkProposal" + ] + }, "CreateCustomDimension": { "methods": [ "createCustomDimension" @@ -275,6 +315,16 @@ "getCustomMetric" ] }, + "GetDataRetentionSettings": { + "methods": [ + "getDataRetentionSettings" + ] + }, + "UpdateDataRetentionSettings": { + "methods": [ + "updateDataRetentionSettings" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -366,6 +416,20 @@ "listConversionEventsAsync" ] }, + "ListDisplayVideo360AdvertiserLinks": { + "methods": [ + "listDisplayVideo360AdvertiserLinks", + "listDisplayVideo360AdvertiserLinksStream", + "listDisplayVideo360AdvertiserLinksAsync" + ] + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "methods": [ + "listDisplayVideo360AdvertiserLinkProposals", + "listDisplayVideo360AdvertiserLinkProposalsStream", + "listDisplayVideo360AdvertiserLinkProposalsAsync" + ] + }, "ListCustomDimensions": { "methods": [ "listCustomDimensions", @@ -530,11 +594,6 @@ "createFirebaseLink" ] }, - "UpdateFirebaseLink": { - "methods": [ - "updateFirebaseLink" - ] - }, "DeleteFirebaseLink": { "methods": [ "deleteFirebaseLink" @@ -610,6 +669,51 @@ "deleteConversionEvent" ] }, + "GetDisplayVideo360AdvertiserLink": { + "methods": [ + "getDisplayVideo360AdvertiserLink" + ] + }, + "CreateDisplayVideo360AdvertiserLink": { + "methods": [ + "createDisplayVideo360AdvertiserLink" + ] + }, + "DeleteDisplayVideo360AdvertiserLink": { + "methods": [ + "deleteDisplayVideo360AdvertiserLink" + ] + }, + "UpdateDisplayVideo360AdvertiserLink": { + "methods": [ + "updateDisplayVideo360AdvertiserLink" + ] + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "getDisplayVideo360AdvertiserLinkProposal" + ] + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "createDisplayVideo360AdvertiserLinkProposal" + ] + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "deleteDisplayVideo360AdvertiserLinkProposal" + ] + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "approveDisplayVideo360AdvertiserLinkProposal" + ] + }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "cancelDisplayVideo360AdvertiserLinkProposal" + ] + }, "CreateCustomDimension": { "methods": [ "createCustomDimension" @@ -650,6 +754,16 @@ "getCustomMetric" ] }, + "GetDataRetentionSettings": { + "methods": [ + "getDataRetentionSettings" + ] + }, + "UpdateDataRetentionSettings": { + "methods": [ + "updateDataRetentionSettings" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -741,6 +855,20 @@ "listConversionEventsAsync" ] }, + "ListDisplayVideo360AdvertiserLinks": { + "methods": [ + "listDisplayVideo360AdvertiserLinks", + "listDisplayVideo360AdvertiserLinksStream", + "listDisplayVideo360AdvertiserLinksAsync" + ] + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "methods": [ + "listDisplayVideo360AdvertiserLinkProposals", + "listDisplayVideo360AdvertiserLinkProposalsStream", + "listDisplayVideo360AdvertiserLinkProposalsAsync" + ] + }, "ListCustomDimensions": { "methods": [ "listCustomDimensions", diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index a7ca19cec57..1f9652c8d9d 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -560,7 +560,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() ); - const expectedOptions = {}; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() ); @@ -585,7 +585,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() ); - const expectedOptions = {}; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() ); @@ -625,7 +625,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() ); - const expectedOptions = {}; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.provisionAccountTicket = stubSimpleCall( undefined, @@ -768,7 +768,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() ); - const expectedOptions = {}; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); @@ -792,7 +792,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() ); - const expectedOptions = {}; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); @@ -832,7 +832,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() ); - const expectedOptions = {}; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.createProperty = stubSimpleCall( undefined, @@ -3525,124 +3525,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('updateFirebaseLink', () => { - it('invokes updateFirebaseLink without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() - ); - request.firebaseLink = {}; - request.firebaseLink.name = ''; - const expectedHeaderRequestParams = 'firebase_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() - ); - client.innerApiCalls.updateFirebaseLink = - stubSimpleCall(expectedResponse); - const [response] = await client.updateFirebaseLink(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateFirebaseLink without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() - ); - request.firebaseLink = {}; - request.firebaseLink.name = ''; - const expectedHeaderRequestParams = 'firebase_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() - ); - client.innerApiCalls.updateFirebaseLink = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.updateFirebaseLink( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IFirebaseLink | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes updateFirebaseLink with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest() - ); - request.firebaseLink = {}; - request.firebaseLink.name = ''; - const expectedHeaderRequestParams = 'firebase_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.updateFirebaseLink = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.updateFirebaseLink(request), expectedError); - assert( - (client.innerApiCalls.updateFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('deleteFirebaseLink', () => { it('invokes deleteFirebaseLink without error', async () => { const client = @@ -5403,8 +5285,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('createCustomDimension', () => { - it('invokes createCustomDimension without error', async () => { + describe('getDisplayVideo360AdvertiserLink', () => { + it('invokes getDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5412,10 +5294,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5424,20 +5306,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.createCustomDimension = + client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.createCustomDimension(request); + const [response] = await client.getDisplayVideo360AdvertiserLink(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomDimension as SinonStub) + (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createCustomDimension without error using callback', async () => { + it('invokes getDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5445,10 +5327,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5457,16 +5339,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.createCustomDimension = + client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createCustomDimension( + client.getDisplayVideo360AdvertiserLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null ) => { if (err) { reject(err); @@ -5479,13 +5361,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomDimension as SinonStub) + (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createCustomDimension with error', async () => { + it('invokes getDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5493,10 +5375,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5505,24 +5387,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createCustomDimension = stubSimpleCall( + client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.createCustomDimension(request), + client.getDisplayVideo360AdvertiserLink(request), expectedError ); assert( - (client.innerApiCalls.createCustomDimension as SinonStub) + (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('updateCustomDimension', () => { - it('invokes updateCustomDimension without error', async () => { + describe('createDisplayVideo360AdvertiserLink', () => { + it('invokes createDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5530,11 +5412,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5543,20 +5424,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.updateCustomDimension = + client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.updateCustomDimension(request); + const [response] = await client.createDisplayVideo360AdvertiserLink( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) + (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateCustomDimension without error using callback', async () => { + it('invokes createDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5564,11 +5447,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5577,16 +5459,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.updateCustomDimension = + client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateCustomDimension( + client.createDisplayVideo360AdvertiserLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null ) => { if (err) { reject(err); @@ -5599,13 +5481,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) + (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateCustomDimension with error', async () => { + it('invokes createDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5613,11 +5495,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5626,24 +5507,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateCustomDimension = stubSimpleCall( + client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.updateCustomDimension(request), + client.createDisplayVideo360AdvertiserLink(request), expectedError ); assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) + (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('archiveCustomDimension', () => { - it('invokes archiveCustomDimension without error', async () => { + describe('deleteDisplayVideo360AdvertiserLink', () => { + it('invokes deleteDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5651,7 +5532,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -5665,18 +5546,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.archiveCustomDimension = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.archiveCustomDimension(request); + const [response] = await client.deleteDisplayVideo360AdvertiserLink( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) + (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes archiveCustomDimension without error using callback', async () => { + it('invokes deleteDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5684,7 +5567,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -5698,10 +5581,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.archiveCustomDimension = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.archiveCustomDimension( + client.deleteDisplayVideo360AdvertiserLink( request, ( err?: Error | null, @@ -5718,13 +5601,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) + (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes archiveCustomDimension with error', async () => { + it('invokes deleteDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5732,7 +5615,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -5744,24 +5627,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.archiveCustomDimension = stubSimpleCall( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.archiveCustomDimension(request), + client.deleteDisplayVideo360AdvertiserLink(request), expectedError ); assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) + (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('getCustomDimension', () => { - it('invokes getCustomDimension without error', async () => { + describe('updateDisplayVideo360AdvertiserLink', () => { + it('invokes updateDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5769,10 +5652,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -5781,20 +5666,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.getCustomDimension = + client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.getCustomDimension(request); + const [response] = await client.updateDisplayVideo360AdvertiserLink( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getCustomDimension as SinonStub) + (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getCustomDimension without error using callback', async () => { + it('invokes updateDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5802,10 +5689,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -5814,16 +5703,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.getCustomDimension = + client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getCustomDimension( + client.updateDisplayVideo360AdvertiserLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null ) => { if (err) { reject(err); @@ -5836,13 +5725,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getCustomDimension as SinonStub) + (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getCustomDimension with error', async () => { + it('invokes updateDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5850,10 +5739,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -5862,21 +5753,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getCustomDimension = stubSimpleCall( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getCustomDimension(request), expectedError); + await assert.rejects( + client.updateDisplayVideo360AdvertiserLink(request), + expectedError + ); assert( - (client.innerApiCalls.getCustomDimension as SinonStub) + (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('createCustomMetric', () => { - it('invokes createCustomMetric without error', async () => { + describe('getDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes getDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5884,10 +5778,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5896,20 +5790,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.createCustomMetric = + client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.createCustomMetric(request); + const [response] = await client.getDisplayVideo360AdvertiserLinkProposal( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomMetric as SinonStub) + ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createCustomMetric without error using callback', async () => { + it('invokes getDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5917,10 +5816,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5929,16 +5828,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.createCustomMetric = + client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createCustomMetric( + client.getDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null ) => { if (err) { reject(err); @@ -5951,13 +5850,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomMetric as SinonStub) + ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createCustomMetric with error', async () => { + it('invokes getDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5965,10 +5867,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5977,21 +5879,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createCustomMetric = stubSimpleCall( - undefined, + client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - await assert.rejects(client.createCustomMetric(request), expectedError); assert( - (client.innerApiCalls.createCustomMetric as SinonStub) + ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('updateCustomMetric', () => { - it('invokes updateCustomMetric without error', async () => { + describe('createDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes createDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5999,12 +5905,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { otherArgs: { headers: { 'x-goog-request-params': expectedHeaderRequestParams, @@ -6012,20 +5917,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.updateCustomMetric = + client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.updateCustomMetric(request); + const [response] = + await client.createDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) + ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateCustomMetric without error using callback', async () => { + it('invokes createDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6033,11 +5942,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -6046,16 +5954,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.updateCustomMetric = + client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateCustomMetric( + client.createDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null ) => { if (err) { reject(err); @@ -6068,13 +5976,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) + ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateCustomMetric with error', async () => { + it('invokes createDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6082,11 +5993,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -6095,21 +6005,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateCustomMetric = stubSimpleCall( - undefined, + client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.createDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - await assert.rejects(client.updateCustomMetric(request), expectedError); assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) + ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('archiveCustomMetric', () => { - it('invokes archiveCustomMetric without error', async () => { + describe('deleteDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes deleteDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6117,7 +6031,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6131,18 +6045,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.archiveCustomMetric = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.archiveCustomMetric(request); + const [response] = + await client.deleteDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) + ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes archiveCustomMetric without error using callback', async () => { + it('invokes deleteDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6150,7 +6068,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6164,10 +6082,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.archiveCustomMetric = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.archiveCustomMetric( + client.deleteDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, @@ -6184,13 +6102,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) + ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes archiveCustomMetric with error', async () => { + it('invokes deleteDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6198,7 +6119,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6210,21 +6131,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.archiveCustomMetric = stubSimpleCall( - undefined, + client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.deleteDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - await assert.rejects(client.archiveCustomMetric(request), expectedError); assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) + ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('getCustomMetric', () => { - it('invokes getCustomMetric without error', async () => { + describe('approveDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes approveDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6232,7 +6157,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6244,19 +6169,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() ); - client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); - const [response] = await client.getCustomMetric(request); + client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(expectedResponse); + const [response] = + await client.approveDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getCustomMetric as SinonStub) + ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getCustomMetric without error using callback', async () => { + it('invokes approveDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6264,7 +6194,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6276,16 +6206,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() ); - client.innerApiCalls.getCustomMetric = + client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getCustomMetric( + client.approveDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + result?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse | null ) => { if (err) { reject(err); @@ -6298,13 +6228,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getCustomMetric as SinonStub) + ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getCustomMetric with error', async () => { + it('invokes approveDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6312,7 +6245,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6324,21 +6257,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getCustomMetric = stubSimpleCall( - undefined, + client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.approveDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - await assert.rejects(client.getCustomMetric(request), expectedError); assert( - (client.innerApiCalls.getCustomMetric as SinonStub) + ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('listAccounts', () => { - it('invokes listAccounts without error', async () => { + describe('cancelDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes cancelDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6346,31 +6283,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); - const expectedOptions = {}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); - const [response] = await client.listAccounts(request); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + ); + client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(expectedResponse); + const [response] = + await client.cancelDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccounts without error using callback', async () => { + it('invokes cancelDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6378,28 +6320,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); - const expectedOptions = {}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + ); + client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccounts( + client.cancelDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null ) => { if (err) { reject(err); @@ -6412,13 +6354,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccounts with error', async () => { + it('invokes cancelDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6426,23 +6371,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); - const expectedOptions = {}; + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listAccounts = stubSimpleCall( - undefined, + client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.cancelDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - await assert.rejects(client.listAccounts(request), expectedError); assert( - (client.innerApiCalls.listAccounts as SinonStub) + ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); + }); - it('invokes listAccountsStream without error', async () => { + describe('createCustomDimension', () => { + it('invokes createCustomDimension without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6450,47 +6409,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.descriptors.page.listAccounts.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAccountsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.createCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.createCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.innerApiCalls.createCustomDimension as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountsStream with error', async () => { + it('invokes createCustomDimension without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6498,24 +6442,1835 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( - undefined, - expectedError + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() ); - const stream = client.listAccountsStream(request); + client.innerApiCalls.createCustomDimension = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); + client.createCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateCustomDimension', () => { + it('invokes updateCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.updateCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.updateCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.updateCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('archiveCustomDimension', () => { + it('invokes archiveCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.archiveCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.archiveCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes archiveCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.archiveCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.archiveCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getCustomDimension', () => { + it('invokes getCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.getCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.getCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomDimension() + ); + client.innerApiCalls.getCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getCustomDimension(request), expectedError); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createCustomMetric', () => { + it('invokes createCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.createCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.createCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.createCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateCustomMetric', () => { + it('invokes updateCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.updateCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.updateCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.updateCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('archiveCustomMetric', () => { + it('invokes archiveCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.archiveCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.archiveCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes archiveCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.archiveCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.archiveCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getCustomMetric', () => { + it('invokes getCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); + const [response] = await client.getCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CustomMetric() + ); + client.innerApiCalls.getCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getDataRetentionSettings', () => { + it('invokes getDataRetentionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() + ); + client.innerApiCalls.getDataRetentionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getDataRetentionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataRetentionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() + ); + client.innerApiCalls.getDataRetentionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDataRetentionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IDataRetentionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getDataRetentionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getDataRetentionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getDataRetentionSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateDataRetentionSettings', () => { + it('invokes updateDataRetentionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() + ); + client.innerApiCalls.updateDataRetentionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.updateDataRetentionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateDataRetentionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() + ); + client.innerApiCalls.updateDataRetentionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateDataRetentionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IDataRetentionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateDataRetentionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateDataRetentionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateDataRetentionSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listAccounts', () => { + it('invokes listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('uses async iteration with listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + const iterable = client.listAccountSummariesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountSummariesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listProperties', () => { + it('invokes listProperties without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listProperties without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listProperties( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listProperties with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listProperties = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listProperties(request), expectedError); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listPropertiesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('invokes listPropertiesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); }); stream.on('error', (err: Error) => { reject(err); @@ -6523,13 +8278,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('uses async iteration with listAccounts without error', async () => { + it('uses async iteration with listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6537,36 +8292,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - const iterable = client.listAccountsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); - it('uses async iteration with listAccounts with error', async () => { + it('uses async iteration with listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6574,29 +8329,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountsAsync(request); + const iterable = client.listPropertiesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); }); - describe('listAccountSummaries', () => { - it('invokes listAccountSummaries without error', async () => { + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6604,32 +8359,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listAccountSummaries = - stubSimpleCall(expectedResponse); - const [response] = await client.listAccountSummaries(request); + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummaries without error using callback', async () => { + it('invokes listUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6637,30 +8399,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listAccountSummaries = + client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccountSummaries( + client.listUserLinks( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IAccountSummary[] - | null + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null ) => { if (err) { reject(err); @@ -6673,13 +8441,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccountSummaries with error', async () => { + it('invokes listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6687,23 +8455,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listAccountSummaries = stubSimpleCall( + client.innerApiCalls.listUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccountSummaries(request), expectedError); + await assert.rejects(client.listUserLinks(request), expectedError); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummariesStream without error', async () => { + it('invokes listUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6711,28 +8487,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountSummariesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -6746,13 +8523,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('invokes listAccountSummariesStream with error', async () => { + it('invokes listUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6760,18 +8543,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccountSummariesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -6784,13 +8568,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('uses async iteration with listAccountSummaries without error', async () => { + it('uses async iteration with listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6798,37 +8588,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; - const iterable = client.listAccountSummariesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); - it('uses async iteration with listAccountSummaries with error', async () => { + it('uses async iteration with listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6836,30 +8633,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountSummariesAsync(request); + const iterable = client.listUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); }); - describe('listProperties', () => { - it('invokes listProperties without error', async () => { + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6867,31 +8671,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); - const [response] = await client.listProperties(request); + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listProperties without error using callback', async () => { + it('invokes auditUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6899,28 +8711,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listProperties = + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listProperties( + client.auditUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | null ) => { if (err) { reject(err); @@ -6933,13 +8755,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listProperties with error', async () => { + it('invokes auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6947,23 +8769,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const expectedOptions = {}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listProperties = stubSimpleCall( + client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listProperties(request), expectedError); + await assert.rejects(client.auditUserLinks(request), expectedError); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listPropertiesStream without error', async () => { + it('invokes auditUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6971,27 +8801,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listProperties.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listPropertiesStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -7005,13 +8838,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('invokes listPropertiesStream with error', async () => { + it('invokes auditUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7019,17 +8858,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listPropertiesStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -7042,13 +8884,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('uses async iteration with listProperties without error', async () => { + it('uses async iteration with auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7056,36 +8904,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - const iterable = client.listPropertiesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; + const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); - it('uses async iteration with listProperties with error', async () => { + it('uses async iteration with auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7093,29 +8950,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPropertiesAsync(request); + const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); }); - describe('listUserLinks', () => { - it('invokes listUserLinks without error', async () => { + describe('listWebDataStreams', () => { + it('invokes listWebDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7123,7 +8989,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7136,26 +9002,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listUserLinks(request); + client.innerApiCalls.listWebDataStreams = + stubSimpleCall(expectedResponse); + const [response] = await client.listWebDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinks without error using callback', async () => { + it('invokes listWebDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7163,7 +9030,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7176,23 +9043,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.listUserLinks = + client.innerApiCalls.listWebDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listUserLinks( + client.listWebDataStreams( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + result?: + | protos.google.analytics.admin.v1alpha.IWebDataStream[] + | null ) => { if (err) { reject(err); @@ -7205,13 +9074,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listUserLinks with error', async () => { + it('invokes listWebDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7219,7 +9088,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7231,19 +9100,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listUserLinks = stubSimpleCall( + client.innerApiCalls.listWebDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listUserLinks(request), expectedError); + await assert.rejects(client.listWebDataStreams(request), expectedError); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinksStream without error', async () => { + it('invokes listWebDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7251,29 +9120,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listUserLinksStream(request); + const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { responses.push(response); } ); @@ -7287,19 +9157,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listWebDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.listWebDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listUserLinksStream with error', async () => { + it('invokes listWebDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7307,19 +9177,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listUserLinksStream(request); + const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { responses.push(response); } ); @@ -7332,19 +9203,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listWebDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.listWebDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks without error', async () => { + it('uses async iteration with listWebDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7352,44 +9223,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; - const iterable = client.listUserLinksAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + []; + const iterable = client.listWebDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks with error', async () => { + it('uses async iteration with listWebDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7397,37 +9269,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listUserLinksAsync(request); + const iterable = client.listWebDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('auditUserLinks', () => { - it('invokes auditUserLinks without error', async () => { + describe('listIosAppDataStreams', () => { + it('invokes listIosAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7435,7 +9308,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7448,26 +9321,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.auditUserLinks(request); + client.innerApiCalls.listIosAppDataStreams = + stubSimpleCall(expectedResponse); + const [response] = await client.listIosAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinks without error using callback', async () => { + it('invokes listIosAppDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7475,7 +9349,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7488,24 +9362,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.auditUserLinks = + client.innerApiCalls.listIosAppDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.auditUserLinks( + client.listIosAppDataStreams( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] | null ) => { if (err) { @@ -7519,13 +9393,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes auditUserLinks with error', async () => { + it('invokes listIosAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7533,7 +9407,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7545,19 +9419,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.auditUserLinks = stubSimpleCall( + client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.auditUserLinks(request), expectedError); + await assert.rejects( + client.listIosAppDataStreams(request), + expectedError + ); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinksStream without error', async () => { + it('invokes listIosAppDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7565,30 +9442,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.auditUserLinksStream(request); + const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { responses.push(response); } ); @@ -7602,19 +9481,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes auditUserLinksStream with error', async () => { + it('invokes listIosAppDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7622,20 +9505,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.auditUserLinksStream(request); + const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { responses.push(response); } ); @@ -7648,19 +9533,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks without error', async () => { + it('uses async iteration with listIosAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7668,45 +9557,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listIosAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks with error', async () => { + it('uses async iteration with listIosAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7714,16 +9605,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listIosAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -7731,21 +9622,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listWebDataStreams', () => { - it('invokes listWebDataStreams without error', async () => { + describe('listAndroidAppDataStreams', () => { + it('invokes listAndroidAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7753,7 +9646,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7766,27 +9659,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listWebDataStreams = + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall(expectedResponse); - const [response] = await client.listWebDataStreams(request); + const [response] = await client.listAndroidAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreams without error using callback', async () => { + it('invokes listAndroidAppDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7794,7 +9687,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7807,24 +9700,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listWebDataStreams = + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listWebDataStreams( + client.listAndroidAppDataStreams( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IWebDataStream[] + | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] | null ) => { if (err) { @@ -7838,13 +9731,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listWebDataStreams with error', async () => { + it('invokes listAndroidAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7852,7 +9745,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7864,19 +9757,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listWebDataStreams = stubSimpleCall( + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listWebDataStreams(request), expectedError); + await assert.rejects( + client.listAndroidAppDataStreams(request), + expectedError + ); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreamsStream without error', async () => { + it('invokes listAndroidAppDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7884,30 +9780,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + ) => { responses.push(response); } ); @@ -7921,19 +9819,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listWebDataStreamsStream with error', async () => { + it('invokes listAndroidAppDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7941,20 +9843,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream + ) => { responses.push(response); } ); @@ -7967,19 +9871,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listWebDataStreams without error', async () => { + it('uses async iteration with listAndroidAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7987,45 +9895,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; - const iterable = client.listWebDataStreamsAsync(request); + const iterable = client.listAndroidAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listWebDataStreams with error', async () => { + it('uses async iteration with listAndroidAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8033,16 +9943,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listWebDataStreamsAsync(request); + const iterable = client.listAndroidAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -8050,21 +9960,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAndroidAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listIosAppDataStreams', () => { - it('invokes listIosAppDataStreams without error', async () => { + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8072,7 +9984,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8085,27 +9997,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listIosAppDataStreams = - stubSimpleCall(expectedResponse); - const [response] = await client.listIosAppDataStreams(request); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreams without error using callback', async () => { + it('invokes listFirebaseLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8113,7 +10024,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8126,24 +10037,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listIosAppDataStreams = + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listIosAppDataStreams( + client.listFirebaseLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] + | protos.google.analytics.admin.v1alpha.IFirebaseLink[] | null ) => { if (err) { @@ -8157,13 +10068,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listIosAppDataStreams with error', async () => { + it('invokes listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8171,7 +10082,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8183,22 +10094,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listIosAppDataStreams(request), - expectedError - ); + await assert.rejects(client.listFirebaseLinks(request), expectedError); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreamsStream without error', async () => { + it('invokes listFirebaseLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8206,32 +10114,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -8245,23 +10151,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listIosAppDataStreamsStream with error', async () => { + it('invokes listFirebaseLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8269,22 +10171,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -8297,23 +10197,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams without error', async () => { + it('uses async iteration with listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8321,47 +10217,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; - const iterable = client.listIosAppDataStreamsAsync(request); + const iterable = client.listFirebaseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams with error', async () => { + it('uses async iteration with listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8369,16 +10263,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listIosAppDataStreamsAsync(request); + const iterable = client.listFirebaseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -8386,23 +10280,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listAndroidAppDataStreams', () => { - it('invokes listAndroidAppDataStreams without error', async () => { + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8410,7 +10302,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8423,27 +10315,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listAndroidAppDataStreams(request); + const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreams without error using callback', async () => { + it('invokes listGoogleAdsLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8451,7 +10343,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8464,24 +10356,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAndroidAppDataStreams( + client.listGoogleAdsLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] + | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] | null ) => { if (err) { @@ -8495,13 +10387,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAndroidAppDataStreams with error', async () => { + it('invokes listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8509,7 +10401,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8521,22 +10413,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listAndroidAppDataStreams(request), - expectedError - ); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreamsStream without error', async () => { + it('invokes listGoogleAdsLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8544,32 +10433,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -8583,23 +10470,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listAndroidAppDataStreamsStream with error', async () => { + it('invokes listGoogleAdsLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8607,22 +10490,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -8635,23 +10516,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams without error', async () => { + it('uses async iteration with listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8659,47 +10536,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams with error', async () => { + it('uses async iteration with listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8707,16 +10582,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -8724,23 +10599,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listFirebaseLinks', () => { - it('invokes listFirebaseLinks without error', async () => { + describe('listMeasurementProtocolSecrets', () => { + it('invokes listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8748,7 +10621,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8761,26 +10634,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listFirebaseLinks(request); + client.innerApiCalls.listMeasurementProtocolSecrets = + stubSimpleCall(expectedResponse); + const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinks without error using callback', async () => { + it('invokes listMeasurementProtocolSecrets without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8788,7 +10662,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8801,24 +10675,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listFirebaseLinks = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFirebaseLinks( + client.listMeasurementProtocolSecrets( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] | null ) => { if (err) { @@ -8832,13 +10706,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listFirebaseLinks with error', async () => { + it('invokes listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8846,7 +10720,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8858,19 +10732,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFirebaseLinks(request), expectedError); + await assert.rejects( + client.listMeasurementProtocolSecrets(request), + expectedError + ); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinksStream without error', async () => { + it('invokes listMeasurementProtocolSecretsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8878,30 +10755,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -8915,19 +10794,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listFirebaseLinksStream with error', async () => { + it('invokes listMeasurementProtocolSecretsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8935,20 +10821,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -8961,19 +10849,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks without error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8981,45 +10876,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks with error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9027,16 +10924,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9044,21 +10941,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listGoogleAdsLinks', () => { - it('invokes listGoogleAdsLinks without error', async () => { + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9066,10 +10965,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -9079,27 +10978,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listGoogleAdsLinks(request); + const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinks without error using callback', async () => { + it('invokes searchChangeHistoryEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9107,10 +11006,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -9120,24 +11019,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listGoogleAdsLinks( + client.searchChangeHistoryEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] + | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] | null ) => { if (err) { @@ -9151,13 +11050,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listGoogleAdsLinks with error', async () => { + it('invokes searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9165,10 +11064,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -9177,19 +11076,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + await assert.rejects( + client.searchChangeHistoryEvents(request), + expectedError + ); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinksStream without error', async () => { + it('invokes searchChangeHistoryEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9197,30 +11099,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { responses.push(response); } ); @@ -9234,19 +11138,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listGoogleAdsLinksStream with error', async () => { + it('invokes searchChangeHistoryEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9254,20 +11162,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { responses.push(response); } ); @@ -9280,19 +11190,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks without error', async () => { + it('uses async iteration with searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9300,45 +11214,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks with error', async () => { + it('uses async iteration with searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9346,16 +11262,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9363,21 +11279,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listMeasurementProtocolSecrets', () => { - it('invokes listMeasurementProtocolSecrets without error', async () => { + describe('listConversionEvents', () => { + it('invokes listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9385,7 +11303,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9398,27 +11316,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.listConversionEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listMeasurementProtocolSecrets(request); + const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listMeasurementProtocolSecrets without error using callback', async () => { + it('invokes listConversionEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9426,7 +11344,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9439,24 +11357,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.listConversionEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listMeasurementProtocolSecrets( + client.listConversionEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] + | protos.google.analytics.admin.v1alpha.IConversionEvent[] | null ) => { if (err) { @@ -9470,13 +11388,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listMeasurementProtocolSecrets with error', async () => { + it('invokes listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9484,7 +11402,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9496,22 +11414,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( + client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listMeasurementProtocolSecrets(request), - expectedError - ); + await assert.rejects(client.listConversionEvents(request), expectedError); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listMeasurementProtocolSecretsStream without error', async () => { + it('invokes listConversionEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9519,32 +11434,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -9558,26 +11471,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listMeasurementProtocolSecretsStream with error', async () => { + it('invokes listConversionEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9585,22 +11491,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -9613,26 +11517,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { + it('uses async iteration with listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9640,47 +11537,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.listConversionEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { + it('uses async iteration with listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9688,16 +11583,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.listConversionEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9705,23 +11600,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('searchChangeHistoryEvents', () => { - it('invokes searchChangeHistoryEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinks', () => { + it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9729,10 +11622,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -9742,27 +11635,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.searchChangeHistoryEvents(request); + const [response] = await client.listDisplayVideo360AdvertiserLinks( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9770,10 +11665,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -9783,24 +11678,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.searchChangeHistoryEvents( + client.listDisplayVideo360AdvertiserLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] | null ) => { if (err) { @@ -9814,13 +11709,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes searchChangeHistoryEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9828,10 +11723,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -9840,22 +11735,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.searchChangeHistoryEvents(request), + client.listDisplayVideo360AdvertiserLinks(request), expectedError ); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9863,31 +11758,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink ) => { responses.push(response); } @@ -9903,22 +11798,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes searchChangeHistoryEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9926,21 +11824,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink ) => { responses.push(response); } @@ -9955,22 +11853,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9978,47 +11879,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10026,16 +11927,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10043,14 +11944,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -10058,8 +11959,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listConversionEvents', () => { - it('invokes listConversionEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinkProposals', () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10067,7 +11968,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10080,27 +11981,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCall(expectedResponse); - const [response] = await client.listConversionEvents(request); + const [response] = + await client.listDisplayVideo360AdvertiserLinkProposals(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listConversionEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10108,7 +12013,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10121,24 +12026,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listConversionEvents( + client.listDisplayVideo360AdvertiserLinkProposals( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IConversionEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] | null ) => { if (err) { @@ -10152,13 +12057,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listConversionEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10166,7 +12074,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10178,19 +12086,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listConversionEvents = stubSimpleCall( - undefined, + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.listDisplayVideo360AdvertiserLinkProposals(request), expectedError ); - await assert.rejects(client.listConversionEvents(request), expectedError); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listConversionEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10198,30 +12110,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listConversionEventsStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + ) => { responses.push(response); } ); @@ -10235,19 +12150,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.createStream as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listConversionEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10255,20 +12177,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listConversionEventsStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + ) => { responses.push(response); } ); @@ -10281,19 +12206,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.createStream as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listConversionEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10301,45 +12233,48 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; - const iterable = client.listConversionEventsAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listConversionEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10347,16 +12282,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listConversionEventsAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10364,13 +12300,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); @@ -11345,6 +13283,52 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('dataRetentionSettings', () => { + const fakePath = '/rendered/path/dataRetentionSettings'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataRetentionSettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataRetentionSettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataRetentionSettingsPath', () => { + const result = client.dataRetentionSettingsPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.dataRetentionSettingsPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromDataRetentionSettingsName', () => { + const result = + client.matchPropertyFromDataRetentionSettingsName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates.dataRetentionSettingsPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('dataSharingSettings', () => { const fakePath = '/rendered/path/dataSharingSettings'; const expectedParameters = { @@ -11390,6 +13374,100 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('displayVideo360AdvertiserLink', () => { + const fakePath = '/rendered/path/displayVideo360AdvertiserLink'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('displayVideo360AdvertiserLinkPath', () => { + const result = + client.displayVideo360AdvertiserLinkPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromDisplayVideo360AdvertiserLinkName', () => { + const result = + client.matchPropertyFromDisplayVideo360AdvertiserLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('displayVideo360AdvertiserLinkProposal', () => { + const fakePath = '/rendered/path/displayVideo360AdvertiserLinkProposal'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('displayVideo360AdvertiserLinkProposalPath', () => { + const result = + client.displayVideo360AdvertiserLinkProposalPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .displayVideo360AdvertiserLinkProposalPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromDisplayVideo360AdvertiserLinkProposalName', () => { + const result = + client.matchPropertyFromDisplayVideo360AdvertiserLinkProposalName( + fakePath + ); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates + .displayVideo360AdvertiserLinkProposalPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('enhancedMeasurementSettings', () => { const fakePath = '/rendered/path/enhancedMeasurementSettings'; const expectedParameters = { From 99bd825135ed967eea5a88e0621bcd0a2f4e7ffc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 9 Dec 2021 22:54:12 +0000 Subject: [PATCH 097/142] build: add generated samples to .eslintignore (#165) --- packages/google-analytics-admin/.eslintignore | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-analytics-admin/.eslintignore b/packages/google-analytics-admin/.eslintignore index 9340ad9b86d..ea5b04aebe6 100644 --- a/packages/google-analytics-admin/.eslintignore +++ b/packages/google-analytics-admin/.eslintignore @@ -4,3 +4,4 @@ test/fixtures build/ docs/ protos/ +samples/generated/ From 18f90d814f574edd1e2772ccebf46e65ddb805c8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 20 Dec 2021 20:54:11 +0000 Subject: [PATCH 098/142] feat: add the `AcknowledgeUserDataCollection` operation which acknowledges the terms of user data collection for the specified property (#166) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 416888961 Source-Link: https://github.com/googleapis/googleapis/commit/54861b49348afd2ae7dada7b857bacdcb6f22fe3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0f16b9ae48611d9836acdb37e9f167419a8ef096 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGYxNmI5YWU0ODYxMWQ5ODM2YWNkYjM3ZTlmMTY3NDE5YThlZjA5NiJ9 feat: add the new resource type `DataStream`, which is planned to eventually replace `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources fix!: remove `GetEnhancedMeasurementSettings`, `UpdateEnhancedMeasurementSettingsRequest`, `UpdateEnhancedMeasurementSettingsRequest` operations from the API feat: add `CreateDataStream`, `DeleteDataStream`, `UpdateDataStream`, `ListDataStreams` operations to support the new `DataStream` resource feat: add `DISPLAY_VIDEO_360_ADVERTISER_LINK`, `DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL` fields to `ChangeHistoryResourceType` enum feat: add the `account` field to the `Property` type docs: update the documentation with a new list of valid values for `UserLink.direct_roles` field --- .../admin/v1alpha/analytics_admin.proto | 208 +- .../analytics/admin/v1alpha/resources.proto | 210 +- .../google-analytics-admin/protos/protos.d.ts | 2676 ++++-- .../google-analytics-admin/protos/protos.js | 8487 ++++++++++------- .../google-analytics-admin/protos/protos.json | 503 +- ...ervice.acknowledge_user_data_collection.js | 64 + ...splay_video360_advertiser_link_proposal.js | 7 +- ..._admin_service.archive_custom_dimension.js | 4 +- ...ics_admin_service.archive_custom_metric.js | 4 +- ...nalytics_admin_service.audit_user_links.js | 6 +- ...s_admin_service.batch_create_user_links.js | 4 +- ...s_admin_service.batch_delete_user_links.js | 4 +- ...tics_admin_service.batch_get_user_links.js | 4 +- ...s_admin_service.batch_update_user_links.js | 4 +- ...splay_video360_advertiser_link_proposal.js | 7 +- ...s_admin_service.create_conversion_event.js | 4 +- ...s_admin_service.create_custom_dimension.js | 4 +- ...tics_admin_service.create_custom_metric.js | 4 +- ...lytics_admin_service.create_data_stream.js | 58 + ...create_display_video360_advertiser_link.js | 8 +- ...splay_video360_advertiser_link_proposal.js | 7 +- ...tics_admin_service.create_firebase_link.js | 4 +- ...cs_admin_service.create_google_ads_link.js | 4 +- ...vice.create_measurement_protocol_secret.js | 4 +- ...analytics_admin_service.create_property.js | 4 +- ...nalytics_admin_service.create_user_link.js | 4 +- ...cs_admin_service.create_web_data_stream.js | 4 +- .../analytics_admin_service.delete_account.js | 4 +- ..._service.delete_android_app_data_stream.js | 4 +- ...s_admin_service.delete_conversion_event.js | 4 +- ...lytics_admin_service.delete_data_stream.js | 54 + ...delete_display_video360_advertiser_link.js | 8 +- ...splay_video360_advertiser_link_proposal.js | 7 +- ...tics_admin_service.delete_firebase_link.js | 4 +- ...cs_admin_service.delete_google_ads_link.js | 4 +- ...dmin_service.delete_ios_app_data_stream.js | 4 +- ...vice.delete_measurement_protocol_secret.js | 4 +- ...analytics_admin_service.delete_property.js | 4 +- ...nalytics_admin_service.delete_user_link.js | 4 +- ...cs_admin_service.delete_web_data_stream.js | 4 +- .../analytics_admin_service.get_account.js | 4 +- ...min_service.get_android_app_data_stream.js | 4 +- ...tics_admin_service.get_conversion_event.js | 4 +- ...tics_admin_service.get_custom_dimension.js | 4 +- ...alytics_admin_service.get_custom_metric.js | 4 +- ...min_service.get_data_retention_settings.js | 4 +- ...admin_service.get_data_sharing_settings.js | 4 +- ...analytics_admin_service.get_data_stream.js | 54 + ...ce.get_display_video360_advertiser_link.js | 8 +- ...splay_video360_advertiser_link_proposal.js | 8 +- ...ytics_admin_service.get_global_site_tag.js | 4 +- ...min_service.get_google_signals_settings.js | 4 +- ...s_admin_service.get_ios_app_data_stream.js | 4 +- ...service.get_measurement_protocol_secret.js | 4 +- .../analytics_admin_service.get_property.js | 4 +- .../analytics_admin_service.get_user_link.js | 4 +- ...ytics_admin_service.get_web_data_stream.js | 4 +- ...cs_admin_service.list_account_summaries.js | 9 +- .../analytics_admin_service.list_accounts.js | 9 +- ...n_service.list_android_app_data_streams.js | 6 +- ...cs_admin_service.list_conversion_events.js | 6 +- ...cs_admin_service.list_custom_dimensions.js | 6 +- ...ytics_admin_service.list_custom_metrics.js | 6 +- ...alytics_admin_service.list_data_streams.js | 68 + ...play_video360_advertiser_link_proposals.js | 11 +- ....list_display_video360_advertiser_links.js | 10 +- ...ytics_admin_service.list_firebase_links.js | 6 +- ...ics_admin_service.list_google_ads_links.js | 6 +- ...admin_service.list_ios_app_data_streams.js | 6 +- ...rvice.list_measurement_protocol_secrets.js | 10 +- ...analytics_admin_service.list_properties.js | 6 +- ...analytics_admin_service.list_user_links.js | 6 +- ...ics_admin_service.list_web_data_streams.js | 6 +- ..._admin_service.provision_account_ticket.js | 7 +- ...in_service.search_change_history_events.js | 6 +- .../analytics_admin_service.update_account.js | 4 +- ..._service.update_android_app_data_stream.js | 4 +- ...s_admin_service.update_custom_dimension.js | 4 +- ...tics_admin_service.update_custom_metric.js | 4 +- ..._service.update_data_retention_settings.js | 4 +- ...lytics_admin_service.update_data_stream.js | 59 + ...update_display_video360_advertiser_link.js | 8 +- ...cs_admin_service.update_google_ads_link.js | 4 +- ..._service.update_google_signals_settings.js | 4 +- ...dmin_service.update_ios_app_data_stream.js | 4 +- ...vice.update_measurement_protocol_secret.js | 4 +- ...analytics_admin_service.update_property.js | 4 +- ...nalytics_admin_service.update_user_link.js | 4 +- ...cs_admin_service.update_web_data_stream.js | 4 +- .../v1alpha/analytics_admin_service_client.ts | 1068 ++- ...analytics_admin_service_client_config.json | 40 +- .../src/v1alpha/gapic_metadata.json | 84 +- .../gapic_analytics_admin_service_v1alpha.ts | 3749 +++++--- 93 files changed, 11366 insertions(+), 6416 deletions(-) create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 4f2beb4b872..ff367e3ff9c 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -405,27 +405,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "parent"; } - // Returns the singleton enhanced measurement settings for this web stream. - // Note that the stream must enable enhanced measurement for these settings to - // take effect. - rpc GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates the singleton enhanced measurement settings for this web stream. - // Note that the stream must enable enhanced measurement for these settings to - // take effect. - rpc UpdateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { - option (google.api.http) = { - patch: "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" - body: "enhanced_measurement_settings" - }; - option (google.api.method_signature) = "enhanced_measurement_settings,update_mask"; - } - // Creates a FirebaseLink. // // Properties can have at most one FirebaseLink. @@ -583,6 +562,17 @@ service AnalyticsAdminService { option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; } + // Acknowledges the terms of user data collection for the specified property. + // + // This acknowledgement must be completed (either in the Google Analytics UI + // or via this API) before MeasurementProtocolSecret resources may be created. + rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) returns (AcknowledgeUserDataCollectionResponse) { + option (google.api.http) = { + post: "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection" + body: "*" + }; + } + // Searches through all changes to an account or its children given the // specified set of filters. rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { @@ -848,6 +838,48 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "data_retention_settings,update_mask"; } + + // Creates a DataStream. + rpc CreateDataStream(CreateDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/dataStreams" + body: "data_stream" + }; + option (google.api.method_signature) = "parent,data_stream"; + } + + // Deletes a DataStream on a property. + rpc DeleteDataStream(DeleteDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/dataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a DataStream on a property. + rpc UpdateDataStream(UpdateDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + patch: "/v1alpha/{data_stream.name=properties/*/dataStreams/*}" + body: "data_stream" + }; + option (google.api.method_signature) = "data_stream,update_mask"; + } + + // Lists DataStreams on a property. + rpc ListDataStreams(ListDataStreamsRequest) returns (ListDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/dataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single DataStream. + rpc GetDataStream(GetDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/dataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } } // Request message for GetAccount RPC. @@ -1479,32 +1511,6 @@ message ListAndroidAppDataStreamsResponse { string next_page_token = 2; } -// Request message for GetEnhancedMeasurementSettings RPC. -message GetEnhancedMeasurementSettingsRequest { - // Required. The name of the settings to lookup. - // Format: - // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" - } - ]; -} - -// Request message for UpdateEnhancedMeasurementSettings RPC. -message UpdateEnhancedMeasurementSettingsRequest { - // Required. The settings to update. - // The `name` field is used to identify the settings to be updated. - EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - // Request message for CreateFirebaseLink RPC message CreateFirebaseLinkRequest { // Required. Format: properties/{property_id} @@ -1689,6 +1695,32 @@ message ListAccountSummariesResponse { string next_page_token = 2; } +// Request message for AcknowledgeUserDataCollection RPC. +message AcknowledgeUserDataCollectionRequest { + // Required. The property for which to acknowledge user data collection. + string property = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Required. An acknowledgement that the caller of this method understands the terms + // of user data collection. + // + // This field must contain the exact value: + // "I acknowledge that I have the necessary privacy disclosures and rights + // from my end users for the collection and processing of their data, + // including the association of such data with the visitation information + // Google Analytics collects from my site and/or app property." + string acknowledgement = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for AcknowledgeUserDataCollection RPC. +message AcknowledgeUserDataCollectionResponse { + +} + // Request message for SearchChangeHistoryEvents RPC. message SearchChangeHistoryEventsRequest { // Required. The account resource for which to return change history resources. @@ -2314,3 +2346,85 @@ message UpdateDataRetentionSettingsRequest { // the entire entity, use one path with the string "*" to match all fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } + +// Request message for CreateDataStream RPC. +message CreateDataStreamRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DataStream" + } + ]; + + // Required. The DataStream to create. + DataStream data_stream = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteDataStream RPC. +message DeleteDataStreamRequest { + // Required. The name of the DataStream to delete. + // Example format: properties/1234/dataStreams/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataStream" + } + ]; +} + +// Request message for UpdateDataStream RPC. +message UpdateDataStreamRequest { + // The DataStream to update + DataStream data_stream = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListDataStreams RPC. +message ListDataStreamsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DataStream" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListDataStreams` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDataStreams` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListDataStreams RPC. +message ListDataStreamsResponse { + // List of DataStreams. + repeated DataStream data_streams = 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 GetDataStream RPC. +message GetDataStreamRequest { + // Required. The name of the DataStream to get. + // Example format: properties/1234/dataStreams/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataStream" + } + ]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index ec9d4c99136..4820ec8c0b5 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -196,6 +196,12 @@ enum ChangeHistoryResourceType { // DataRetentionSettings resource DATA_RETENTION_SETTINGS = 13; + + // DisplayVideo360AdvertiserLink resource + DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + + // DisplayVideo360AdvertiserLinkProposal resource + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -364,6 +370,16 @@ message Property { // deleted. If not set, then this property is not currently in the trash can // and is not slated to be deleted. google.protobuf.Timestamp expire_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The resource name of the parent account + // Format: accounts/{account_id} + // Example: "accounts/123" + string account = 13 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; } // A resource message representing a Google Analytics Android app stream. @@ -465,10 +481,113 @@ message WebDataStream { // Required. Human-readable display name for the Data Stream. // - // The max allowed display name length is 100 UTF-16 code units. + // The max allowed display name length is 255 UTF-16 code units. string display_name = 7 [(google.api.field_behavior) = REQUIRED]; } +// A resource message representing a data stream. +message DataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataStream" + pattern: "properties/{property}/dataStreams/{data_stream}" + }; + + // Data specific to web streams. + message WebStreamData { + // Output only. Analytics "Measurement ID", without the "G-" prefix. + // Example: "G-1A2BCD345E" would just be "1A2BCD345E" + string measurement_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the corresponding web app in Firebase, if any. + // This ID can change if the web app is deleted and recreated. + string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Domain name of the web app being measured, or empty. + // Example: "http://www.google.com", "https://www.google.com" + string default_uri = 3 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Data specific to Android app streams. + message AndroidAppStreamData { + // Output only. ID of the corresponding Android app in Firebase, if any. + // This ID can change if the Android app is deleted and recreated. + string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The package name for the app being measured. + // Example: "com.example.myandroidapp" + string package_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Data specific to iOS app streams. + message IosAppStreamData { + // Output only. ID of the corresponding iOS app in Firebase, if any. + // This ID can change if the iOS app is deleted and recreated. + string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The Apple App Store Bundle ID for the app + // Example: "com.example.myiosapp" + string bundle_id = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + } + + // The type of the data stream. + enum DataStreamType { + // Type unknown or not specified. + DATA_STREAM_TYPE_UNSPECIFIED = 0; + + // Web data stream. + WEB_DATA_STREAM = 1; + + // Android app data stream. + ANDROID_APP_DATA_STREAM = 2; + + // iOS app data stream. + IOS_APP_DATA_STREAM = 3; + } + + // Data for specific data stream types. The message that will be + // set corresponds to the type of this stream. + oneof stream_data { + // Data specific to web streams. Must be populated if type is + // WEB_DATA_STREAM. + WebStreamData web_stream_data = 6; + + // Data specific to Android app streams. Must be populated if type is + // ANDROID_APP_DATA_STREAM. + AndroidAppStreamData android_app_stream_data = 7; + + // Data specific to iOS app streams. Must be populated if type is + // IOS_APP_DATA_STREAM. + IosAppStreamData ios_app_stream_data = 8; + } + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/dataStreams/{stream_id} + // Example: "properties/1000/dataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The type of this DataStream resource. + DataStreamType type = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Human-readable display name for the Data Stream. + // + // Required for web data streams. + // + // The max allowed display name length is 255 UTF-16 code units. + string display_name = 3; + + // Output only. Time when this stream was originally created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when stream payload fields were last updated. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A resource message representing a user's permissions on an Account or // Property resource. message UserLink { @@ -487,10 +606,12 @@ message UserLink { // Roles directly assigned to this user for this account or property. // // Valid values: - // predefinedRoles/read - // predefinedRoles/collaborate - // predefinedRoles/edit - // predefinedRoles/manage-users + // predefinedRoles/viewer + // predefinedRoles/analyst + // predefinedRoles/editor + // predefinedRoles/admin + // predefinedRoles/no-cost-data + // predefinedRoles/no-revenue-data // // Excludes roles that are inherited from a higher-level entity, group, // or organization admin role. @@ -510,7 +631,7 @@ message AuditUserLink { // Roles directly assigned to this user for this entity. // - // Format: predefinedRoles/read + // Format: predefinedRoles/viewer // // Excludes roles that are inherited from an account (if this is for a // property), group, or organization admin role. @@ -519,72 +640,11 @@ message AuditUserLink { // Union of all permissions a user has at this account or property (includes // direct permissions, group-inherited permissions, etc.). // - // Format: predefinedRoles/read + // Format: predefinedRoles/viewer repeated string effective_roles = 4; } -// Singleton resource under a WebDataStream, configuring measurement of -// additional site interactions and content. -message EnhancedMeasurementSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" - pattern: "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings" - }; - - // Output only. Resource name of this Data Stream. - // Format: - // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Indicates whether Enhanced Measurement Settings will be used to - // automatically measure interactions and content on this web stream. - // - // Changing this value does not affect the settings themselves, but determines - // whether they are respected. - bool stream_enabled = 2; - - // Output only. If enabled, capture a page view event each time a page loads or the - // website changes the browser history state. - bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // If enabled, capture scroll events each time a visitor gets to the bottom of - // a page. - bool scrolls_enabled = 4; - - // If enabled, capture an outbound click event each time a visitor clicks a - // link that leads them away from your domain. - bool outbound_clicks_enabled = 5; - - // If enabled, capture a view search results event each time a visitor - // performs a search on your site (based on a query parameter). - bool site_search_enabled = 7; - - // If enabled, capture video play, progress, and complete events as visitors - // view embedded videos on your site. - bool video_engagement_enabled = 9; - - // If enabled, capture a file download event each time a link is clicked with - // a common document, compressed file, application, video, or audio extension. - bool file_downloads_enabled = 10; - - // Output only. If enabled, capture a page view event each time a page loads. - bool page_loads_enabled = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // If enabled, capture a page view event each time the website changes the - // browser history state. - bool page_changes_enabled = 13; - - // Required. URL query parameters to interpret as site search parameters. - // Max length is 1024 characters. Must not be empty. - string search_query_parameter = 16 [(google.api.field_behavior) = REQUIRED]; - - // Additional URL query parameters. - // Max length is 1024 characters. - string uri_query_parameter = 17; -} - -// A link between an GA4 property and a Firebase project. +// A link between a GA4 property and a Firebase project. message FirebaseLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/FirebaseLink" @@ -624,7 +684,7 @@ message GlobalSiteTag { string snippet = 2 [(google.api.field_behavior) = IMMUTABLE]; } -// A link between an GA4 property and a Google Ads account. +// A link between a GA4 property and a Google Ads account. message GoogleAdsLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GoogleAdsLink" @@ -719,7 +779,7 @@ message AccountSummary { repeated PropertySummary property_summaries = 4; } -// A virtual resource representing metadata for an GA4 property. +// A virtual resource representing metadata for a GA4 property. message PropertySummary { // Resource name of property referred to by this property summary // Format: properties/{property_id} @@ -728,7 +788,7 @@ message PropertySummary { type: "analyticsadmin.googleapis.com/Property" }]; - // Display name for the property referred to in this account summary. + // Display name for the property referred to in this property summary. string display_name = 2; } @@ -882,14 +942,14 @@ message DisplayVideo360AdvertiserLink { google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Enables the import of cost data from Display & Video 360 into the GA4 - // property. This can only be enabled if campaign_data_import_enabled is + // property. This can only be enabled if campaign_data_sharing_enabled is // enabled. After link creation, this can only be updated from the Display & // Video 360 product. // If this field is not set on create, it will be defaulted to true. google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; } -// A proposal for a link between an GA4 property and a Display & Video 360 +// A proposal for a link between a GA4 property and a Display & Video 360 // advertiser. // // A proposal is converted to a DisplayVideo360AdvertiserLink once approved. @@ -935,7 +995,7 @@ message DisplayVideo360AdvertiserLinkProposal { google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Enables the import of cost data from Display & Video 360. - // This can only be enabled if campaign_data_import_enabled is enabled. + // This can only be enabled if campaign_data_sharing_enabled is enabled. // If this field is not set on create, it will be defaulted to true. google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(google.api.field_behavior) = IMMUTABLE]; } diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index f1ee3786718..ad52f69403d 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -522,34 +522,6 @@ export namespace google { */ public listAndroidAppDataStreams(request: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest): Promise; - /** - * Calls GetEnhancedMeasurementSettings. - * @param request GetEnhancedMeasurementSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings - */ - public getEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettingsCallback): void; - - /** - * Calls GetEnhancedMeasurementSettings. - * @param request GetEnhancedMeasurementSettingsRequest message or plain object - * @returns Promise - */ - public getEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest): Promise; - - /** - * Calls UpdateEnhancedMeasurementSettings. - * @param request UpdateEnhancedMeasurementSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings - */ - public updateEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettingsCallback): void; - - /** - * Calls UpdateEnhancedMeasurementSettings. - * @param request UpdateEnhancedMeasurementSettingsRequest message or plain object - * @returns Promise - */ - public updateEnhancedMeasurementSettings(request: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest): Promise; - /** * Calls CreateFirebaseLink. * @param request CreateFirebaseLinkRequest message or plain object @@ -746,6 +718,20 @@ export namespace google { */ public updateMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest): Promise; + /** + * Calls AcknowledgeUserDataCollection. + * @param request AcknowledgeUserDataCollectionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse + */ + public acknowledgeUserDataCollection(request: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback): void; + + /** + * Calls AcknowledgeUserDataCollection. + * @param request AcknowledgeUserDataCollectionRequest message or plain object + * @returns Promise + */ + public acknowledgeUserDataCollection(request: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest): Promise; + /** * Calls SearchChangeHistoryEvents. * @param request SearchChangeHistoryEventsRequest message or plain object @@ -1165,6 +1151,76 @@ export namespace google { * @returns Promise */ public updateDataRetentionSettings(request: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): Promise; + + /** + * Calls CreateDataStream. + * @param request CreateDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public createDataStream(request: google.analytics.admin.v1alpha.ICreateDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStreamCallback): void; + + /** + * Calls CreateDataStream. + * @param request CreateDataStreamRequest message or plain object + * @returns Promise + */ + public createDataStream(request: google.analytics.admin.v1alpha.ICreateDataStreamRequest): Promise; + + /** + * Calls DeleteDataStream. + * @param request DeleteDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDataStream(request: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStreamCallback): void; + + /** + * Calls DeleteDataStream. + * @param request DeleteDataStreamRequest message or plain object + * @returns Promise + */ + public deleteDataStream(request: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): Promise; + + /** + * Calls UpdateDataStream. + * @param request UpdateDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public updateDataStream(request: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStreamCallback): void; + + /** + * Calls UpdateDataStream. + * @param request UpdateDataStreamRequest message or plain object + * @returns Promise + */ + public updateDataStream(request: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): Promise; + + /** + * Calls ListDataStreams. + * @param request ListDataStreamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataStreamsResponse + */ + public listDataStreams(request: google.analytics.admin.v1alpha.IListDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreamsCallback): void; + + /** + * Calls ListDataStreams. + * @param request ListDataStreamsRequest message or plain object + * @returns Promise + */ + public listDataStreams(request: google.analytics.admin.v1alpha.IListDataStreamsRequest): Promise; + + /** + * Calls GetDataStream. + * @param request GetDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public getDataStream(request: google.analytics.admin.v1alpha.IGetDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStreamCallback): void; + + /** + * Calls GetDataStream. + * @param request GetDataStreamRequest message or plain object + * @returns Promise + */ + public getDataStream(request: google.analytics.admin.v1alpha.IGetDataStreamRequest): Promise; } namespace AnalyticsAdminService { @@ -1407,20 +1463,6 @@ export namespace google { */ type ListAndroidAppDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) => void; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getEnhancedMeasurementSettings}. - * @param error Error, if any - * @param [response] EnhancedMeasurementSettings - */ - type GetEnhancedMeasurementSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.EnhancedMeasurementSettings) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateEnhancedMeasurementSettings}. - * @param error Error, if any - * @param [response] EnhancedMeasurementSettings - */ - type UpdateEnhancedMeasurementSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.EnhancedMeasurementSettings) => void; - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. * @param error Error, if any @@ -1519,6 +1561,13 @@ export namespace google { */ type UpdateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. + * @param error Error, if any + * @param [response] AcknowledgeUserDataCollectionResponse + */ + type AcknowledgeUserDataCollectionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) => void; + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. * @param error Error, if any @@ -1728,6 +1777,41 @@ export namespace google { * @param [response] DataRetentionSettings */ type UpdateDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type CreateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type UpdateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. + * @param error Error, if any + * @param [response] ListDataStreamsResponse + */ + type ListDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDataStreamsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type GetDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; } /** Properties of a GetAccountRequest. */ @@ -5906,192 +5990,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a GetEnhancedMeasurementSettingsRequest. */ - interface IGetEnhancedMeasurementSettingsRequest { - - /** GetEnhancedMeasurementSettingsRequest name */ - name?: (string|null); - } - - /** Represents a GetEnhancedMeasurementSettingsRequest. */ - class GetEnhancedMeasurementSettingsRequest implements IGetEnhancedMeasurementSettingsRequest { - - /** - * Constructs a new GetEnhancedMeasurementSettingsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest); - - /** GetEnhancedMeasurementSettingsRequest name. */ - public name: string; - - /** - * Creates a new GetEnhancedMeasurementSettingsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetEnhancedMeasurementSettingsRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; - - /** - * Encodes the specified GetEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. - * @param message GetEnhancedMeasurementSettingsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. - * @param message GetEnhancedMeasurementSettingsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetEnhancedMeasurementSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; - - /** - * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetEnhancedMeasurementSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; - - /** - * Verifies a GetEnhancedMeasurementSettingsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetEnhancedMeasurementSettingsRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; - - /** - * Creates a plain object from a GetEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. - * @param message GetEnhancedMeasurementSettingsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetEnhancedMeasurementSettingsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateEnhancedMeasurementSettingsRequest. */ - interface IUpdateEnhancedMeasurementSettingsRequest { - - /** UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings */ - enhancedMeasurementSettings?: (google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null); - - /** UpdateEnhancedMeasurementSettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateEnhancedMeasurementSettingsRequest. */ - class UpdateEnhancedMeasurementSettingsRequest implements IUpdateEnhancedMeasurementSettingsRequest { - - /** - * Constructs a new UpdateEnhancedMeasurementSettingsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest); - - /** UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings. */ - public enhancedMeasurementSettings?: (google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null); - - /** UpdateEnhancedMeasurementSettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdateEnhancedMeasurementSettingsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateEnhancedMeasurementSettingsRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; - - /** - * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. - * @param message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. - * @param message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateEnhancedMeasurementSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; - - /** - * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateEnhancedMeasurementSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; - - /** - * Verifies an UpdateEnhancedMeasurementSettingsRequest message. - * @param message Plain 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 UpdateEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateEnhancedMeasurementSettingsRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; - - /** - * Creates a plain object from an UpdateEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateEnhancedMeasurementSettingsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateEnhancedMeasurementSettingsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a CreateFirebaseLinkRequest. */ interface ICreateFirebaseLinkRequest { @@ -7328,63 +7226,243 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a SearchChangeHistoryEventsRequest. */ - interface ISearchChangeHistoryEventsRequest { - - /** SearchChangeHistoryEventsRequest account */ - account?: (string|null); + /** Properties of an AcknowledgeUserDataCollectionRequest. */ + interface IAcknowledgeUserDataCollectionRequest { - /** SearchChangeHistoryEventsRequest property */ + /** AcknowledgeUserDataCollectionRequest property */ property?: (string|null); - /** SearchChangeHistoryEventsRequest resourceType */ - resourceType?: (google.analytics.admin.v1alpha.ChangeHistoryResourceType[]|null); - - /** SearchChangeHistoryEventsRequest action */ - action?: (google.analytics.admin.v1alpha.ActionType[]|null); - - /** SearchChangeHistoryEventsRequest actorEmail */ - actorEmail?: (string[]|null); - - /** SearchChangeHistoryEventsRequest earliestChangeTime */ - earliestChangeTime?: (google.protobuf.ITimestamp|null); - - /** SearchChangeHistoryEventsRequest latestChangeTime */ - latestChangeTime?: (google.protobuf.ITimestamp|null); - - /** SearchChangeHistoryEventsRequest pageSize */ - pageSize?: (number|null); - - /** SearchChangeHistoryEventsRequest pageToken */ - pageToken?: (string|null); + /** AcknowledgeUserDataCollectionRequest acknowledgement */ + acknowledgement?: (string|null); } - /** Represents a SearchChangeHistoryEventsRequest. */ - class SearchChangeHistoryEventsRequest implements ISearchChangeHistoryEventsRequest { + /** Represents an AcknowledgeUserDataCollectionRequest. */ + class AcknowledgeUserDataCollectionRequest implements IAcknowledgeUserDataCollectionRequest { /** - * Constructs a new SearchChangeHistoryEventsRequest. + * Constructs a new AcknowledgeUserDataCollectionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest); - /** SearchChangeHistoryEventsRequest account. */ - public account: string; - - /** SearchChangeHistoryEventsRequest property. */ + /** AcknowledgeUserDataCollectionRequest property. */ public property: string; - /** SearchChangeHistoryEventsRequest resourceType. */ - public resourceType: google.analytics.admin.v1alpha.ChangeHistoryResourceType[]; - - /** SearchChangeHistoryEventsRequest action. */ - public action: google.analytics.admin.v1alpha.ActionType[]; + /** AcknowledgeUserDataCollectionRequest acknowledgement. */ + public acknowledgement: string; - /** SearchChangeHistoryEventsRequest actorEmail. */ - public actorEmail: string[]; + /** + * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AcknowledgeUserDataCollectionRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; - /** SearchChangeHistoryEventsRequest earliestChangeTime. */ - public earliestChangeTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AcknowledgeUserDataCollectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; + + /** + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AcknowledgeUserDataCollectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; + + /** + * Verifies an AcknowledgeUserDataCollectionRequest message. + * @param message Plain 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 AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcknowledgeUserDataCollectionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; + + /** + * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. + * @param message AcknowledgeUserDataCollectionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcknowledgeUserDataCollectionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AcknowledgeUserDataCollectionResponse. */ + interface IAcknowledgeUserDataCollectionResponse { + } + + /** Represents an AcknowledgeUserDataCollectionResponse. */ + class AcknowledgeUserDataCollectionResponse implements IAcknowledgeUserDataCollectionResponse { + + /** + * Constructs a new AcknowledgeUserDataCollectionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse); + + /** + * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AcknowledgeUserDataCollectionResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + + /** + * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AcknowledgeUserDataCollectionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + + /** + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AcknowledgeUserDataCollectionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + + /** + * Verifies an AcknowledgeUserDataCollectionResponse message. + * @param message Plain 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 AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcknowledgeUserDataCollectionResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + + /** + * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. + * @param message AcknowledgeUserDataCollectionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcknowledgeUserDataCollectionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SearchChangeHistoryEventsRequest. */ + interface ISearchChangeHistoryEventsRequest { + + /** SearchChangeHistoryEventsRequest account */ + account?: (string|null); + + /** SearchChangeHistoryEventsRequest property */ + property?: (string|null); + + /** SearchChangeHistoryEventsRequest resourceType */ + resourceType?: (google.analytics.admin.v1alpha.ChangeHistoryResourceType[]|null); + + /** SearchChangeHistoryEventsRequest action */ + action?: (google.analytics.admin.v1alpha.ActionType[]|null); + + /** SearchChangeHistoryEventsRequest actorEmail */ + actorEmail?: (string[]|null); + + /** SearchChangeHistoryEventsRequest earliestChangeTime */ + earliestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest latestChangeTime */ + latestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest pageSize */ + pageSize?: (number|null); + + /** SearchChangeHistoryEventsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a SearchChangeHistoryEventsRequest. */ + class SearchChangeHistoryEventsRequest implements ISearchChangeHistoryEventsRequest { + + /** + * Constructs a new SearchChangeHistoryEventsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest); + + /** SearchChangeHistoryEventsRequest account. */ + public account: string; + + /** SearchChangeHistoryEventsRequest property. */ + public property: string; + + /** SearchChangeHistoryEventsRequest resourceType. */ + public resourceType: google.analytics.admin.v1alpha.ChangeHistoryResourceType[]; + + /** SearchChangeHistoryEventsRequest action. */ + public action: google.analytics.admin.v1alpha.ActionType[]; + + /** SearchChangeHistoryEventsRequest actorEmail. */ + public actorEmail: string[]; + + /** SearchChangeHistoryEventsRequest earliestChangeTime. */ + public earliestChangeTime?: (google.protobuf.ITimestamp|null); /** SearchChangeHistoryEventsRequest latestChangeTime. */ public latestChangeTime?: (google.protobuf.ITimestamp|null); @@ -11432,744 +11510,1762 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** IndustryCategory enum. */ - enum IndustryCategory { - INDUSTRY_CATEGORY_UNSPECIFIED = 0, - AUTOMOTIVE = 1, - BUSINESS_AND_INDUSTRIAL_MARKETS = 2, - FINANCE = 3, - HEALTHCARE = 4, - TECHNOLOGY = 5, - TRAVEL = 6, - OTHER = 7, - ARTS_AND_ENTERTAINMENT = 8, - BEAUTY_AND_FITNESS = 9, - BOOKS_AND_LITERATURE = 10, - FOOD_AND_DRINK = 11, - GAMES = 12, - HOBBIES_AND_LEISURE = 13, - HOME_AND_GARDEN = 14, - INTERNET_AND_TELECOM = 15, - LAW_AND_GOVERNMENT = 16, - NEWS = 17, - ONLINE_COMMUNITIES = 18, - PEOPLE_AND_SOCIETY = 19, - PETS_AND_ANIMALS = 20, - REAL_ESTATE = 21, - REFERENCE = 22, - SCIENCE = 23, - SPORTS = 24, - JOBS_AND_EDUCATION = 25, - SHOPPING = 26 - } + /** Properties of a CreateDataStreamRequest. */ + interface ICreateDataStreamRequest { - /** ServiceLevel enum. */ - enum ServiceLevel { - SERVICE_LEVEL_UNSPECIFIED = 0, - GOOGLE_ANALYTICS_STANDARD = 1, - GOOGLE_ANALYTICS_360 = 2 - } + /** CreateDataStreamRequest parent */ + parent?: (string|null); - /** ActorType enum. */ - enum ActorType { - ACTOR_TYPE_UNSPECIFIED = 0, - USER = 1, - SYSTEM = 2, - SUPPORT = 3 + /** CreateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); } - /** ActionType enum. */ - enum ActionType { - ACTION_TYPE_UNSPECIFIED = 0, - CREATED = 1, - UPDATED = 2, - DELETED = 3 - } + /** Represents a CreateDataStreamRequest. */ + class CreateDataStreamRequest implements ICreateDataStreamRequest { - /** ChangeHistoryResourceType enum. */ - enum ChangeHistoryResourceType { - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, - ACCOUNT = 1, - PROPERTY = 2, - WEB_DATA_STREAM = 3, - ANDROID_APP_DATA_STREAM = 4, - IOS_APP_DATA_STREAM = 5, - FIREBASE_LINK = 6, - GOOGLE_ADS_LINK = 7, - GOOGLE_SIGNALS_SETTINGS = 8, - CONVERSION_EVENT = 9, - MEASUREMENT_PROTOCOL_SECRET = 10, - CUSTOM_DIMENSION = 11, - CUSTOM_METRIC = 12, - DATA_RETENTION_SETTINGS = 13 - } + /** + * Constructs a new CreateDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest); - /** GoogleSignalsState enum. */ - enum GoogleSignalsState { - GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0, - GOOGLE_SIGNALS_ENABLED = 1, - GOOGLE_SIGNALS_DISABLED = 2 - } + /** CreateDataStreamRequest parent. */ + public parent: string; - /** GoogleSignalsConsent enum. */ - enum GoogleSignalsConsent { - GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0, - GOOGLE_SIGNALS_CONSENT_CONSENTED = 2, - GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 - } + /** CreateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); - /** LinkProposalInitiatingProduct enum. */ - enum LinkProposalInitiatingProduct { - LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0, - GOOGLE_ANALYTICS = 1, - LINKED_PRODUCT = 2 - } + /** + * Creates a new CreateDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest): google.analytics.admin.v1alpha.CreateDataStreamRequest; - /** LinkProposalState enum. */ - enum LinkProposalState { - LINK_PROPOSAL_STATE_UNSPECIFIED = 0, - AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1, - AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2, - WITHDRAWN = 3, - DECLINED = 4, - EXPIRED = 5, - OBSOLETE = 6 - } + /** + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an Account. */ - interface IAccount { + /** + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Account name */ - name?: (string|null); + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDataStreamRequest; - /** Account createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDataStreamRequest; - /** Account updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Verifies a CreateDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Account displayName */ - displayName?: (string|null); + /** + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDataStreamRequest; - /** Account regionCode */ - regionCode?: (string|null); + /** + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * @param message CreateDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Account deleted */ - deleted?: (boolean|null); + /** + * Converts this CreateDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Represents an Account. */ - class Account implements IAccount { + /** Properties of a DeleteDataStreamRequest. */ + interface IDeleteDataStreamRequest { + + /** DeleteDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a DeleteDataStreamRequest. */ + class DeleteDataStreamRequest implements IDeleteDataStreamRequest { /** - * Constructs a new Account. + * Constructs a new DeleteDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAccount); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest); - /** Account name. */ + /** DeleteDataStreamRequest name. */ public name: string; - /** Account createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Account updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Account displayName. */ - public displayName: string; - - /** Account regionCode. */ - public regionCode: string; - - /** Account deleted. */ - public deleted: boolean; - /** - * Creates a new Account instance using the specified properties. + * Creates a new DeleteDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Account instance + * @returns DeleteDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Account + * @returns DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Account; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Account + * @returns DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Account; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Verifies an Account message. + * Verifies a DeleteDataStreamRequest message. * @param message Plain 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. + * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Account + * @returns DeleteDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Account; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. - * @param message Account + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * @param message DeleteDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Account to JSON. + * Converts this DeleteDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Property. */ - interface IProperty { - - /** Property name */ - name?: (string|null); - - /** Property createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Property updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Property parent */ - parent?: (string|null); - - /** Property displayName */ - displayName?: (string|null); - - /** Property industryCategory */ - industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); - - /** Property timeZone */ - timeZone?: (string|null); + /** Properties of an UpdateDataStreamRequest. */ + interface IUpdateDataStreamRequest { - /** Property currencyCode */ - currencyCode?: (string|null); - - /** Property serviceLevel */ - serviceLevel?: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel|null); - - /** Property deleteTime */ - deleteTime?: (google.protobuf.ITimestamp|null); + /** UpdateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); - /** Property expireTime */ - expireTime?: (google.protobuf.ITimestamp|null); + /** UpdateDataStreamRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a Property. */ - class Property implements IProperty { + /** Represents an UpdateDataStreamRequest. */ + class UpdateDataStreamRequest implements IUpdateDataStreamRequest { /** - * Constructs a new Property. + * Constructs a new UpdateDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IProperty); - - /** Property name. */ - public name: string; - - /** Property createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Property updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Property parent. */ - public parent: string; - - /** Property displayName. */ - public displayName: string; - - /** Property industryCategory. */ - public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); - - /** Property timeZone. */ - public timeZone: string; - - /** Property currencyCode. */ - public currencyCode: string; - - /** Property serviceLevel. */ - public serviceLevel: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest); - /** Property deleteTime. */ - public deleteTime?: (google.protobuf.ITimestamp|null); + /** UpdateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); - /** Property expireTime. */ - public expireTime?: (google.protobuf.ITimestamp|null); + /** UpdateDataStreamRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Property instance using the specified properties. + * Creates a new UpdateDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Property instance + * @returns UpdateDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Property + * @returns UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Property; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Property + * @returns UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Property; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Verifies a Property message. + * Verifies an UpdateDataStreamRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Property + * @returns UpdateDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. - * @param message Property + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * @param message UpdateDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Property to JSON. + * Converts this UpdateDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AndroidAppDataStream. */ - interface IAndroidAppDataStream { - - /** AndroidAppDataStream name */ - name?: (string|null); - - /** AndroidAppDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** AndroidAppDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListDataStreamsRequest. */ + interface IListDataStreamsRequest { - /** AndroidAppDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListDataStreamsRequest parent */ + parent?: (string|null); - /** AndroidAppDataStream packageName */ - packageName?: (string|null); + /** ListDataStreamsRequest pageSize */ + pageSize?: (number|null); - /** AndroidAppDataStream displayName */ - displayName?: (string|null); + /** ListDataStreamsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an AndroidAppDataStream. */ - class AndroidAppDataStream implements IAndroidAppDataStream { + /** Represents a ListDataStreamsRequest. */ + class ListDataStreamsRequest implements IListDataStreamsRequest { /** - * Constructs a new AndroidAppDataStream. + * Constructs a new ListDataStreamsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); - - /** AndroidAppDataStream name. */ - public name: string; - - /** AndroidAppDataStream firebaseAppId. */ - public firebaseAppId: string; + constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest); - /** AndroidAppDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListDataStreamsRequest parent. */ + public parent: string; - /** AndroidAppDataStream packageName. */ - public packageName: string; + /** ListDataStreamsRequest pageSize. */ + public pageSize: number; - /** AndroidAppDataStream displayName. */ - public displayName: string; + /** ListDataStreamsRequest pageToken. */ + public pageToken: string; /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new ListDataStreamsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AndroidAppDataStream instance + * @returns ListDataStreamsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode + * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AndroidAppDataStream + * @returns ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AndroidAppDataStream + * @returns ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Verifies an AndroidAppDataStream message. + * Verifies a ListDataStreamsRequest message. * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AndroidAppDataStream + * @returns ListDataStreamsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. - * @param message AndroidAppDataStream + * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. + * @param message ListDataStreamsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this ListDataStreamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IosAppDataStream. */ + /** Properties of a ListDataStreamsResponse. */ + interface IListDataStreamsResponse { + + /** ListDataStreamsResponse dataStreams */ + dataStreams?: (google.analytics.admin.v1alpha.IDataStream[]|null); + + /** ListDataStreamsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListDataStreamsResponse. */ + class ListDataStreamsResponse implements IListDataStreamsResponse { + + /** + * Constructs a new ListDataStreamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse); + + /** ListDataStreamsResponse dataStreams. */ + public dataStreams: google.analytics.admin.v1alpha.IDataStream[]; + + /** ListDataStreamsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListDataStreamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataStreamsResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse): google.analytics.admin.v1alpha.ListDataStreamsResponse; + + /** + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsResponse; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsResponse; + + /** + * Verifies a ListDataStreamsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataStreamsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsResponse; + + /** + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * @param message ListDataStreamsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDataStreamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetDataStreamRequest. */ + interface IGetDataStreamRequest { + + /** GetDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a GetDataStreamRequest. */ + class GetDataStreamRequest implements IGetDataStreamRequest { + + /** + * Constructs a new GetDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest); + + /** GetDataStreamRequest name. */ + public name: string; + + /** + * Creates a new GetDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest): google.analytics.admin.v1alpha.GetDataStreamRequest; + + /** + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataStreamRequest; + + /** + * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataStreamRequest; + + /** + * Verifies a GetDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataStreamRequest; + + /** + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @param message GetDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** IndustryCategory enum. */ + enum IndustryCategory { + INDUSTRY_CATEGORY_UNSPECIFIED = 0, + AUTOMOTIVE = 1, + BUSINESS_AND_INDUSTRIAL_MARKETS = 2, + FINANCE = 3, + HEALTHCARE = 4, + TECHNOLOGY = 5, + TRAVEL = 6, + OTHER = 7, + ARTS_AND_ENTERTAINMENT = 8, + BEAUTY_AND_FITNESS = 9, + BOOKS_AND_LITERATURE = 10, + FOOD_AND_DRINK = 11, + GAMES = 12, + HOBBIES_AND_LEISURE = 13, + HOME_AND_GARDEN = 14, + INTERNET_AND_TELECOM = 15, + LAW_AND_GOVERNMENT = 16, + NEWS = 17, + ONLINE_COMMUNITIES = 18, + PEOPLE_AND_SOCIETY = 19, + PETS_AND_ANIMALS = 20, + REAL_ESTATE = 21, + REFERENCE = 22, + SCIENCE = 23, + SPORTS = 24, + JOBS_AND_EDUCATION = 25, + SHOPPING = 26 + } + + /** ServiceLevel enum. */ + enum ServiceLevel { + SERVICE_LEVEL_UNSPECIFIED = 0, + GOOGLE_ANALYTICS_STANDARD = 1, + GOOGLE_ANALYTICS_360 = 2 + } + + /** ActorType enum. */ + enum ActorType { + ACTOR_TYPE_UNSPECIFIED = 0, + USER = 1, + SYSTEM = 2, + SUPPORT = 3 + } + + /** ActionType enum. */ + enum ActionType { + ACTION_TYPE_UNSPECIFIED = 0, + CREATED = 1, + UPDATED = 2, + DELETED = 3 + } + + /** ChangeHistoryResourceType enum. */ + enum ChangeHistoryResourceType { + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, + ACCOUNT = 1, + PROPERTY = 2, + WEB_DATA_STREAM = 3, + ANDROID_APP_DATA_STREAM = 4, + IOS_APP_DATA_STREAM = 5, + FIREBASE_LINK = 6, + GOOGLE_ADS_LINK = 7, + GOOGLE_SIGNALS_SETTINGS = 8, + CONVERSION_EVENT = 9, + MEASUREMENT_PROTOCOL_SECRET = 10, + CUSTOM_DIMENSION = 11, + CUSTOM_METRIC = 12, + DATA_RETENTION_SETTINGS = 13, + DISPLAY_VIDEO_360_ADVERTISER_LINK = 14, + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15 + } + + /** GoogleSignalsState enum. */ + enum GoogleSignalsState { + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0, + GOOGLE_SIGNALS_ENABLED = 1, + GOOGLE_SIGNALS_DISABLED = 2 + } + + /** GoogleSignalsConsent enum. */ + enum GoogleSignalsConsent { + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0, + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2, + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 + } + + /** LinkProposalInitiatingProduct enum. */ + enum LinkProposalInitiatingProduct { + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0, + GOOGLE_ANALYTICS = 1, + LINKED_PRODUCT = 2 + } + + /** LinkProposalState enum. */ + enum LinkProposalState { + LINK_PROPOSAL_STATE_UNSPECIFIED = 0, + AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1, + AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2, + WITHDRAWN = 3, + DECLINED = 4, + EXPIRED = 5, + OBSOLETE = 6 + } + + /** Properties of an Account. */ + interface IAccount { + + /** Account name */ + name?: (string|null); + + /** Account createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName */ + displayName?: (string|null); + + /** Account regionCode */ + regionCode?: (string|null); + + /** Account deleted */ + deleted?: (boolean|null); + } + + /** Represents an Account. */ + class Account implements IAccount { + + /** + * Constructs a new Account. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccount); + + /** Account name. */ + public name: string; + + /** Account createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName. */ + public displayName: string; + + /** Account regionCode. */ + public regionCode: string; + + /** Account deleted. */ + public deleted: boolean; + + /** + * Creates a new Account instance using the specified properties. + * @param [properties] Properties to set + * @returns Account instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Account to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Property. */ + interface IProperty { + + /** Property name */ + name?: (string|null); + + /** Property createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent */ + parent?: (string|null); + + /** Property displayName */ + displayName?: (string|null); + + /** Property industryCategory */ + industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); + + /** Property timeZone */ + timeZone?: (string|null); + + /** Property currencyCode */ + currencyCode?: (string|null); + + /** Property serviceLevel */ + serviceLevel?: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel|null); + + /** Property deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); + + /** Property account */ + account?: (string|null); + } + + /** Represents a Property. */ + class Property implements IProperty { + + /** + * Constructs a new Property. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProperty); + + /** Property name. */ + public name: string; + + /** Property createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent. */ + public parent: string; + + /** Property displayName. */ + public displayName: string; + + /** Property industryCategory. */ + public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); + + /** Property timeZone. */ + public timeZone: string; + + /** Property currencyCode. */ + public currencyCode: string; + + /** Property serviceLevel. */ + public serviceLevel: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel); + + /** Property deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); + + /** Property account. */ + public account: string; + + /** + * Creates a new Property instance using the specified properties. + * @param [properties] Properties to set + * @returns Property instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Property message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Property; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Property; + + /** + * Verifies a Property message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Property + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @param message Property + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Property to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AndroidAppDataStream. */ + interface IAndroidAppDataStream { + + /** AndroidAppDataStream name */ + name?: (string|null); + + /** AndroidAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** AndroidAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName */ + packageName?: (string|null); + + /** AndroidAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an AndroidAppDataStream. */ + class AndroidAppDataStream implements IAndroidAppDataStream { + + /** + * Constructs a new AndroidAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); + + /** AndroidAppDataStream name. */ + public name: string; + + /** AndroidAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** AndroidAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** AndroidAppDataStream packageName. */ + public packageName: string; + + /** AndroidAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns AndroidAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @param message AndroidAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Verifies an AndroidAppDataStream message. + * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AndroidAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @param message AndroidAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IosAppDataStream. */ interface IIosAppDataStream { - /** IosAppDataStream name */ + /** IosAppDataStream name */ + name?: (string|null); + + /** IosAppDataStream firebaseAppId */ + firebaseAppId?: (string|null); + + /** IosAppDataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId */ + bundleId?: (string|null); + + /** IosAppDataStream displayName */ + displayName?: (string|null); + } + + /** Represents an IosAppDataStream. */ + class IosAppDataStream implements IIosAppDataStream { + + /** + * Constructs a new IosAppDataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); + + /** IosAppDataStream name. */ + public name: string; + + /** IosAppDataStream firebaseAppId. */ + public firebaseAppId: string; + + /** IosAppDataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** IosAppDataStream bundleId. */ + public bundleId: string; + + /** IosAppDataStream displayName. */ + public displayName: string; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns IosAppDataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @param message IosAppDataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Verifies an IosAppDataStream message. + * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IosAppDataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @param message IosAppDataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IosAppDataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a WebDataStream. */ + interface IWebDataStream { + + /** WebDataStream name */ name?: (string|null); - /** IosAppDataStream firebaseAppId */ + /** WebDataStream measurementId */ + measurementId?: (string|null); + + /** WebDataStream firebaseAppId */ firebaseAppId?: (string|null); - /** IosAppDataStream createTime */ + /** WebDataStream createTime */ createTime?: (google.protobuf.ITimestamp|null); - /** IosAppDataStream updateTime */ + /** WebDataStream updateTime */ updateTime?: (google.protobuf.ITimestamp|null); - /** IosAppDataStream bundleId */ - bundleId?: (string|null); + /** WebDataStream defaultUri */ + defaultUri?: (string|null); - /** IosAppDataStream displayName */ + /** WebDataStream displayName */ displayName?: (string|null); } - /** Represents an IosAppDataStream. */ - class IosAppDataStream implements IIosAppDataStream { + /** Represents a WebDataStream. */ + class WebDataStream implements IWebDataStream { /** - * Constructs a new IosAppDataStream. + * Constructs a new WebDataStream. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); + constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); - /** IosAppDataStream name. */ + /** WebDataStream name. */ public name: string; - /** IosAppDataStream firebaseAppId. */ + /** WebDataStream measurementId. */ + public measurementId: string; + + /** WebDataStream firebaseAppId. */ public firebaseAppId: string; - /** IosAppDataStream createTime. */ + /** WebDataStream createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** IosAppDataStream updateTime. */ + /** WebDataStream updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); - /** IosAppDataStream bundleId. */ - public bundleId: string; + /** WebDataStream defaultUri. */ + public defaultUri: string; - /** IosAppDataStream displayName. */ + /** WebDataStream displayName. */ public displayName: string; /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new WebDataStream instance using the specified properties. * @param [properties] Properties to set - * @returns IosAppDataStream instance + * @returns WebDataStream instance */ - public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; + public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @param message WebDataStream message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes a WebDataStream message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IosAppDataStream + * @returns WebDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IosAppDataStream + * @returns WebDataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; /** - * Verifies an IosAppDataStream message. + * Verifies a WebDataStream message. * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IosAppDataStream + * @returns WebDataStream */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. - * @param message IosAppDataStream + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @param message WebDataStream * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IosAppDataStream to JSON. + * Converts this WebDataStream to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WebDataStream. */ - interface IWebDataStream { + /** Properties of a DataStream. */ + interface IDataStream { - /** WebDataStream name */ + /** DataStream webStreamData */ + webStreamData?: (google.analytics.admin.v1alpha.DataStream.IWebStreamData|null); + + /** DataStream androidAppStreamData */ + androidAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null); + + /** DataStream iosAppStreamData */ + iosAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null); + + /** DataStream name */ name?: (string|null); - /** WebDataStream measurementId */ - measurementId?: (string|null); + /** DataStream type */ + type?: (google.analytics.admin.v1alpha.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1alpha.DataStream.DataStreamType|null); + + /** DataStream displayName */ + displayName?: (string|null); + + /** DataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a DataStream. */ + class DataStream implements IDataStream { + + /** + * Constructs a new DataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDataStream); + + /** DataStream webStreamData. */ + public webStreamData?: (google.analytics.admin.v1alpha.DataStream.IWebStreamData|null); + + /** DataStream androidAppStreamData. */ + public androidAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null); + + /** DataStream iosAppStreamData. */ + public iosAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null); + + /** DataStream name. */ + public name: string; + + /** DataStream type. */ + public type: (google.analytics.admin.v1alpha.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1alpha.DataStream.DataStreamType); + + /** DataStream displayName. */ + public displayName: string; + + /** DataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** DataStream streamData. */ + public streamData?: ("webStreamData"|"androidAppStreamData"|"iosAppStreamData"); + + /** + * Creates a new DataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns DataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDataStream): google.analytics.admin.v1alpha.DataStream; + + /** + * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. + * @param message DataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. + * @param message DataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataStream; + + /** + * Decodes a DataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataStream; + + /** + * Verifies a DataStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream; + + /** + * Creates a plain object from a DataStream message. Also converts values to other types if specified. + * @param message DataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DataStream { + + /** Properties of a WebStreamData. */ + interface IWebStreamData { + + /** WebStreamData measurementId */ + measurementId?: (string|null); + + /** WebStreamData firebaseAppId */ + firebaseAppId?: (string|null); + + /** WebStreamData defaultUri */ + defaultUri?: (string|null); + } + + /** Represents a WebStreamData. */ + class WebStreamData implements IWebStreamData { + + /** + * Constructs a new WebStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.DataStream.IWebStreamData); + + /** WebStreamData measurementId. */ + public measurementId: string; + + /** WebStreamData firebaseAppId. */ + public firebaseAppId: string; + + /** WebStreamData defaultUri. */ + public defaultUri: string; + + /** + * Creates a new WebStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns WebStreamData instance + */ + public static create(properties?: google.analytics.admin.v1alpha.DataStream.IWebStreamData): google.analytics.admin.v1alpha.DataStream.WebStreamData; + + /** + * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * @param message WebStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * @param message WebStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WebStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataStream.WebStreamData; + + /** + * Decodes a WebStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataStream.WebStreamData; + + /** + * Verifies a WebStreamData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WebStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.WebStreamData; + + /** + * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. + * @param message WebStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream.WebStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WebStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AndroidAppStreamData. */ + interface IAndroidAppStreamData { + + /** AndroidAppStreamData firebaseAppId */ + firebaseAppId?: (string|null); + + /** AndroidAppStreamData packageName */ + packageName?: (string|null); + } + + /** Represents an AndroidAppStreamData. */ + class AndroidAppStreamData implements IAndroidAppStreamData { + + /** + * Constructs a new AndroidAppStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData); + + /** AndroidAppStreamData firebaseAppId. */ + public firebaseAppId: string; + + /** AndroidAppStreamData packageName. */ + public packageName: string; + + /** + * Creates a new AndroidAppStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns AndroidAppStreamData instance + */ + public static create(properties?: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + + /** + * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @param message AndroidAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @param message AndroidAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; - /** WebDataStream firebaseAppId */ - firebaseAppId?: (string|null); + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; - /** WebDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; - /** WebDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Verifies an AndroidAppStreamData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** WebDataStream defaultUri */ - defaultUri?: (string|null); + /** + * Creates an AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AndroidAppStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; - /** WebDataStream displayName */ - displayName?: (string|null); - } + /** + * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. + * @param message AndroidAppStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a WebDataStream. */ - class WebDataStream implements IWebDataStream { + /** + * Converts this AndroidAppStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new WebDataStream. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); + /** Properties of an IosAppStreamData. */ + interface IIosAppStreamData { - /** WebDataStream name. */ - public name: string; + /** IosAppStreamData firebaseAppId */ + firebaseAppId?: (string|null); - /** WebDataStream measurementId. */ - public measurementId: string; + /** IosAppStreamData bundleId */ + bundleId?: (string|null); + } - /** WebDataStream firebaseAppId. */ - public firebaseAppId: string; + /** Represents an IosAppStreamData. */ + class IosAppStreamData implements IIosAppStreamData { - /** WebDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new IosAppStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData); - /** WebDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** IosAppStreamData firebaseAppId. */ + public firebaseAppId: string; - /** WebDataStream defaultUri. */ - public defaultUri: string; + /** IosAppStreamData bundleId. */ + public bundleId: string; - /** WebDataStream displayName. */ - public displayName: string; + /** + * Creates a new IosAppStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns IosAppStreamData instance + */ + public static create(properties?: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** - * Creates a new WebDataStream instance using the specified properties. - * @param [properties] Properties to set - * @returns WebDataStream instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; + /** + * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @param message IosAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @param message IosAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an IosAppStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** - * Decodes a WebDataStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WebDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; + /** + * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WebDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; + /** + * Verifies an IosAppStreamData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a WebDataStream message. - * @param message Plain 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 IosAppStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IosAppStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WebDataStream - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; + /** + * Creates a plain object from an IosAppStreamData message. Also converts values to other types if specified. + * @param message IosAppStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream.IosAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. - * @param message WebDataStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this IosAppStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this WebDataStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DataStreamType enum. */ + enum DataStreamType { + DATA_STREAM_TYPE_UNSPECIFIED = 0, + WEB_DATA_STREAM = 1, + ANDROID_APP_DATA_STREAM = 2, + IOS_APP_DATA_STREAM = 3 + } } /** Properties of a UserLink. */ @@ -12382,162 +13478,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of an EnhancedMeasurementSettings. */ - interface IEnhancedMeasurementSettings { - - /** EnhancedMeasurementSettings name */ - name?: (string|null); - - /** EnhancedMeasurementSettings streamEnabled */ - streamEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageViewsEnabled */ - pageViewsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings scrollsEnabled */ - scrollsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings outboundClicksEnabled */ - outboundClicksEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings siteSearchEnabled */ - siteSearchEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings videoEngagementEnabled */ - videoEngagementEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings fileDownloadsEnabled */ - fileDownloadsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageLoadsEnabled */ - pageLoadsEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings pageChangesEnabled */ - pageChangesEnabled?: (boolean|null); - - /** EnhancedMeasurementSettings searchQueryParameter */ - searchQueryParameter?: (string|null); - - /** EnhancedMeasurementSettings uriQueryParameter */ - uriQueryParameter?: (string|null); - } - - /** Represents an EnhancedMeasurementSettings. */ - class EnhancedMeasurementSettings implements IEnhancedMeasurementSettings { - - /** - * Constructs a new EnhancedMeasurementSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings); - - /** EnhancedMeasurementSettings name. */ - public name: string; - - /** EnhancedMeasurementSettings streamEnabled. */ - public streamEnabled: boolean; - - /** EnhancedMeasurementSettings pageViewsEnabled. */ - public pageViewsEnabled: boolean; - - /** EnhancedMeasurementSettings scrollsEnabled. */ - public scrollsEnabled: boolean; - - /** EnhancedMeasurementSettings outboundClicksEnabled. */ - public outboundClicksEnabled: boolean; - - /** EnhancedMeasurementSettings siteSearchEnabled. */ - public siteSearchEnabled: boolean; - - /** EnhancedMeasurementSettings videoEngagementEnabled. */ - public videoEngagementEnabled: boolean; - - /** EnhancedMeasurementSettings fileDownloadsEnabled. */ - public fileDownloadsEnabled: boolean; - - /** EnhancedMeasurementSettings pageLoadsEnabled. */ - public pageLoadsEnabled: boolean; - - /** EnhancedMeasurementSettings pageChangesEnabled. */ - public pageChangesEnabled: boolean; - - /** EnhancedMeasurementSettings searchQueryParameter. */ - public searchQueryParameter: string; - - /** EnhancedMeasurementSettings uriQueryParameter. */ - public uriQueryParameter: string; - - /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns EnhancedMeasurementSettings instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; - - /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @param message EnhancedMeasurementSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @param message EnhancedMeasurementSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnhancedMeasurementSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; - - /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnhancedMeasurementSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; - - /** - * Verifies an EnhancedMeasurementSettings message. - * @param message Plain 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 EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnhancedMeasurementSettings - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.EnhancedMeasurementSettings; - - /** - * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. - * @param message EnhancedMeasurementSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.EnhancedMeasurementSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EnhancedMeasurementSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a FirebaseLink. */ interface IFirebaseLink { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index c0f4e5e584a..8015efbe059 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -1220,72 +1220,6 @@ * @variation 2 */ - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getEnhancedMeasurementSettings}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetEnhancedMeasurementSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} [response] EnhancedMeasurementSettings - */ - - /** - * Calls GetEnhancedMeasurementSettings. - * @function getEnhancedMeasurementSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} request GetEnhancedMeasurementSettingsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettingsCallback} callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.getEnhancedMeasurementSettings = function getEnhancedMeasurementSettings(request, callback) { - return this.rpcCall(getEnhancedMeasurementSettings, $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, request, callback); - }, "name", { value: "GetEnhancedMeasurementSettings" }); - - /** - * Calls GetEnhancedMeasurementSettings. - * @function getEnhancedMeasurementSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} request GetEnhancedMeasurementSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateEnhancedMeasurementSettings}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateEnhancedMeasurementSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} [response] EnhancedMeasurementSettings - */ - - /** - * Calls UpdateEnhancedMeasurementSettings. - * @function updateEnhancedMeasurementSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} request UpdateEnhancedMeasurementSettingsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettingsCallback} callback Node-style callback called with the error, if any, and EnhancedMeasurementSettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.updateEnhancedMeasurementSettings = function updateEnhancedMeasurementSettings(request, callback) { - return this.rpcCall(updateEnhancedMeasurementSettings, $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, request, callback); - }, "name", { value: "UpdateEnhancedMeasurementSettings" }); - - /** - * Calls UpdateEnhancedMeasurementSettings. - * @function updateEnhancedMeasurementSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} request UpdateEnhancedMeasurementSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -1748,6 +1682,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef AcknowledgeUserDataCollectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} [response] AcknowledgeUserDataCollectionResponse + */ + + /** + * Calls AcknowledgeUserDataCollection. + * @function acknowledgeUserDataCollection + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback} callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.acknowledgeUserDataCollection = function acknowledgeUserDataCollection(request, callback) { + return this.rpcCall(acknowledgeUserDataCollection, $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse, request, callback); + }, "name", { value: "AcknowledgeUserDataCollection" }); + + /** + * Calls AcknowledgeUserDataCollection. + * @function acknowledgeUserDataCollection + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -2738,6 +2705,171 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream + */ + + /** + * Calls CreateDataStream. + * @function createDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createDataStream = function createDataStream(request, callback) { + return this.rpcCall(createDataStream, $root.google.analytics.admin.v1alpha.CreateDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); + }, "name", { value: "CreateDataStream" }); + + /** + * Calls CreateDataStream. + * @function createDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteDataStream. + * @function deleteDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStreamCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteDataStream = function deleteDataStream(request, callback) { + return this.rpcCall(deleteDataStream, $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDataStream" }); + + /** + * Calls DeleteDataStream. + * @function deleteDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream + */ + + /** + * Calls UpdateDataStream. + * @function updateDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateDataStream = function updateDataStream(request, callback) { + return this.rpcCall(updateDataStream, $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); + }, "name", { value: "UpdateDataStream" }); + + /** + * Calls UpdateDataStream. + * @function updateDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListDataStreamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} [response] ListDataStreamsResponse + */ + + /** + * Calls ListDataStreams. + * @function listDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreamsCallback} callback Node-style callback called with the error, if any, and ListDataStreamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listDataStreams = function listDataStreams(request, callback) { + return this.rpcCall(listDataStreams, $root.google.analytics.admin.v1alpha.ListDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListDataStreamsResponse, request, callback); + }, "name", { value: "ListDataStreams" }); + + /** + * Calls ListDataStreams. + * @function listDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream + */ + + /** + * Calls GetDataStream. + * @function getDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} request GetDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDataStream = function getDataStream(request, callback) { + return this.rpcCall(getDataStream, $root.google.analytics.admin.v1alpha.GetDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); + }, "name", { value: "GetDataStream" }); + + /** + * Calls GetDataStream. + * @function getDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} request GetDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return AnalyticsAdminService; })(); @@ -12152,24 +12284,25 @@ return ListAndroidAppDataStreamsResponse; })(); - v1alpha.GetEnhancedMeasurementSettingsRequest = (function() { + v1alpha.CreateFirebaseLinkRequest = (function() { /** - * Properties of a GetEnhancedMeasurementSettingsRequest. + * Properties of a CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetEnhancedMeasurementSettingsRequest - * @property {string|null} [name] GetEnhancedMeasurementSettingsRequest name + * @interface ICreateFirebaseLinkRequest + * @property {string|null} [parent] CreateFirebaseLinkRequest parent + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink */ /** - * Constructs a new GetEnhancedMeasurementSettingsRequest. + * Constructs a new CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetEnhancedMeasurementSettingsRequest. - * @implements IGetEnhancedMeasurementSettingsRequest + * @classdesc Represents a CreateFirebaseLinkRequest. + * @implements ICreateFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set */ - function GetEnhancedMeasurementSettingsRequest(properties) { + function CreateFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12177,75 +12310,88 @@ } /** - * GetEnhancedMeasurementSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * CreateFirebaseLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @instance + */ + CreateFirebaseLinkRequest.prototype.parent = ""; + + /** + * CreateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance */ - GetEnhancedMeasurementSettingsRequest.prototype.name = ""; + CreateFirebaseLinkRequest.prototype.firebaseLink = null; /** - * Creates a new GetEnhancedMeasurementSettingsRequest instance using the specified properties. + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest instance + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance */ - GetEnhancedMeasurementSettingsRequest.create = function create(properties) { - return new GetEnhancedMeasurementSettingsRequest(properties); + CreateFirebaseLinkRequest.create = function create(properties) { + return new CreateFirebaseLinkRequest(properties); }; /** - * Encodes the specified GetEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnhancedMeasurementSettingsRequest.encode = function encode(message, writer) { + CreateFirebaseLinkRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnhancedMeasurementSettingsRequest.decode = function decode(reader, length) { + CreateFirebaseLinkRequest.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.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12256,108 +12402,121 @@ }; /** - * Decodes a GetEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnhancedMeasurementSettingsRequest message. + * Verifies a CreateFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnhancedMeasurementSettingsRequest.verify = function verify(message) { + CreateFirebaseLinkRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } return null; }; /** - * Creates a GetEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} GetEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest */ - GetEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + CreateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } return message; }; /** - * Creates a plain object from a GetEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} message GetEnhancedMeasurementSettingsRequest + * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnhancedMeasurementSettingsRequest.toObject = function toObject(message, options) { + CreateFirebaseLinkRequest.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 (options.defaults) { + object.parent = ""; + object.firebaseLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); return object; }; /** - * Converts this GetEnhancedMeasurementSettingsRequest to JSON. + * Converts this CreateFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - GetEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { + CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEnhancedMeasurementSettingsRequest; + return CreateFirebaseLinkRequest; })(); - v1alpha.UpdateEnhancedMeasurementSettingsRequest = (function() { + v1alpha.DeleteFirebaseLinkRequest = (function() { /** - * Properties of an UpdateEnhancedMeasurementSettingsRequest. + * Properties of a DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateEnhancedMeasurementSettingsRequest - * @property {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null} [enhancedMeasurementSettings] UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnhancedMeasurementSettingsRequest updateMask + * @interface IDeleteFirebaseLinkRequest + * @property {string|null} [name] DeleteFirebaseLinkRequest name */ /** - * Constructs a new UpdateEnhancedMeasurementSettingsRequest. + * Constructs a new DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateEnhancedMeasurementSettingsRequest. - * @implements IUpdateEnhancedMeasurementSettingsRequest + * @classdesc Represents a DeleteFirebaseLinkRequest. + * @implements IDeleteFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set */ - function UpdateEnhancedMeasurementSettingsRequest(properties) { + function DeleteFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12365,88 +12524,75 @@ } /** - * UpdateEnhancedMeasurementSettingsRequest enhancedMeasurementSettings. - * @member {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null|undefined} enhancedMeasurementSettings - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - * @instance - */ - UpdateEnhancedMeasurementSettingsRequest.prototype.enhancedMeasurementSettings = null; - - /** - * UpdateEnhancedMeasurementSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * DeleteFirebaseLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance */ - UpdateEnhancedMeasurementSettingsRequest.prototype.updateMask = null; + DeleteFirebaseLinkRequest.prototype.name = ""; /** - * Creates a new UpdateEnhancedMeasurementSettingsRequest instance using the specified properties. + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance */ - UpdateEnhancedMeasurementSettingsRequest.create = function create(properties) { - return new UpdateEnhancedMeasurementSettingsRequest(properties); + DeleteFirebaseLinkRequest.create = function create(properties) { + return new DeleteFirebaseLinkRequest(properties); }; /** - * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnhancedMeasurementSettingsRequest.encode = function encode(message, writer) { + DeleteFirebaseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enhancedMeasurementSettings != null && Object.hasOwnProperty.call(message, "enhancedMeasurementSettings")) - $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.encode(message.enhancedMeasurementSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateEnhancedMeasurementSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnhancedMeasurementSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnhancedMeasurementSettingsRequest.decode = function decode(reader, length) { + DeleteFirebaseLinkRequest.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.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -12457,127 +12603,109 @@ }; /** - * Decodes an UpdateEnhancedMeasurementSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnhancedMeasurementSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEnhancedMeasurementSettingsRequest message. + * Verifies a DeleteFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEnhancedMeasurementSettingsRequest.verify = function verify(message) { + DeleteFirebaseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) { - var error = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify(message.enhancedMeasurementSettings); - if (error) - return "enhancedMeasurementSettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateEnhancedMeasurementSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} UpdateEnhancedMeasurementSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest */ - UpdateEnhancedMeasurementSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); - if (object.enhancedMeasurementSettings != null) { - if (typeof object.enhancedMeasurementSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.enhancedMeasurementSettings: object expected"); - message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.fromObject(object.enhancedMeasurementSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateEnhancedMeasurementSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} message UpdateEnhancedMeasurementSettingsRequest + * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEnhancedMeasurementSettingsRequest.toObject = function toObject(message, options) { + DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.enhancedMeasurementSettings = null; - object.updateMask = null; - } - if (message.enhancedMeasurementSettings != null && message.hasOwnProperty("enhancedMeasurementSettings")) - object.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.toObject(message.enhancedMeasurementSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateEnhancedMeasurementSettingsRequest to JSON. + * Converts this DeleteFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - UpdateEnhancedMeasurementSettingsRequest.prototype.toJSON = function toJSON() { + DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEnhancedMeasurementSettingsRequest; + return DeleteFirebaseLinkRequest; })(); - v1alpha.CreateFirebaseLinkRequest = (function() { + v1alpha.ListFirebaseLinksRequest = (function() { /** - * Properties of a CreateFirebaseLinkRequest. + * Properties of a ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateFirebaseLinkRequest - * @property {string|null} [parent] CreateFirebaseLinkRequest parent - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink + * @interface IListFirebaseLinksRequest + * @property {string|null} [parent] ListFirebaseLinksRequest parent + * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize + * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken */ /** - * Constructs a new CreateFirebaseLinkRequest. + * Constructs a new ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateFirebaseLinkRequest. - * @implements ICreateFirebaseLinkRequest + * @classdesc Represents a ListFirebaseLinksRequest. + * @implements IListFirebaseLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set */ - function CreateFirebaseLinkRequest(properties) { + function ListFirebaseLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12585,80 +12713,90 @@ } /** - * CreateFirebaseLinkRequest parent. + * ListFirebaseLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - CreateFirebaseLinkRequest.prototype.parent = ""; + ListFirebaseLinksRequest.prototype.parent = ""; /** - * CreateFirebaseLinkRequest firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * ListFirebaseLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - CreateFirebaseLinkRequest.prototype.firebaseLink = null; + ListFirebaseLinksRequest.prototype.pageSize = 0; /** - * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * ListFirebaseLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListFirebaseLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance */ - CreateFirebaseLinkRequest.create = function create(properties) { - return new CreateFirebaseLinkRequest(properties); + ListFirebaseLinksRequest.create = function create(properties) { + return new ListFirebaseLinksRequest(properties); }; /** - * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encode = function encode(message, writer) { + ListFirebaseLinksRequest.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.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decode = function decode(reader, length) { + ListFirebaseLinksRequest.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.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12666,7 +12804,10 @@ message.parent = reader.string(); break; case 2: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -12677,121 +12818,126 @@ }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFirebaseLinkRequest message. + * Verifies a ListFirebaseLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFirebaseLinkRequest.verify = function verify(message) { + ListFirebaseLinksRequest.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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; - } + 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 CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest */ - CreateFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + ListFirebaseLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); - } + 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 CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFirebaseLinkRequest.toObject = function toObject(message, options) { + ListFirebaseLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.firebaseLink = null; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + 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 CreateFirebaseLinkRequest to JSON. + * Converts this ListFirebaseLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance * @returns {Object.} JSON object */ - CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFirebaseLinkRequest; + return ListFirebaseLinksRequest; })(); - v1alpha.DeleteFirebaseLinkRequest = (function() { + v1alpha.ListFirebaseLinksResponse = (function() { /** - * Properties of a DeleteFirebaseLinkRequest. + * Properties of a ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteFirebaseLinkRequest - * @property {string|null} [name] DeleteFirebaseLinkRequest name + * @interface IListFirebaseLinksResponse + * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks + * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken */ /** - * Constructs a new DeleteFirebaseLinkRequest. + * Constructs a new ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteFirebaseLinkRequest. - * @implements IDeleteFirebaseLinkRequest + * @classdesc Represents a ListFirebaseLinksResponse. + * @implements IListFirebaseLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set */ - function DeleteFirebaseLinkRequest(properties) { + function ListFirebaseLinksResponse(properties) { + this.firebaseLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12799,75 +12945,91 @@ } /** - * DeleteFirebaseLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * ListFirebaseLinksResponse firebaseLinks. + * @member {Array.} firebaseLinks + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance */ - DeleteFirebaseLinkRequest.prototype.name = ""; + ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; /** - * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * ListFirebaseLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @instance + */ + ListFirebaseLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFirebaseLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance */ - DeleteFirebaseLinkRequest.create = function create(properties) { - return new DeleteFirebaseLinkRequest(properties); + ListFirebaseLinksResponse.create = function create(properties) { + return new ListFirebaseLinksResponse(properties); }; /** - * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encode = function encode(message, writer) { + ListFirebaseLinksResponse.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.firebaseLinks != null && message.firebaseLinks.length) + for (var i = 0; i < message.firebaseLinks.length; ++i) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[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 DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decode = function decode(reader, length) { + ListFirebaseLinksResponse.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.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -12878,109 +13040,133 @@ }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFirebaseLinkRequest message. + * Verifies a ListFirebaseLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFirebaseLinkRequest.verify = function verify(message) { + ListFirebaseLinksResponse.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.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { + if (!Array.isArray(message.firebaseLinks)) + return "firebaseLinks: array expected"; + for (var i = 0; i < message.firebaseLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); + if (error) + return "firebaseLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse */ - DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + ListFirebaseLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + if (object.firebaseLinks) { + if (!Array.isArray(object.firebaseLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); + message.firebaseLinks = []; + for (var i = 0; i < object.firebaseLinks.length; ++i) { + if (typeof object.firebaseLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); + message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { + ListFirebaseLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.firebaseLinks = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.firebaseLinks && message.firebaseLinks.length) { + object.firebaseLinks = []; + for (var j = 0; j < message.firebaseLinks.length; ++j) + object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteFirebaseLinkRequest to JSON. + * Converts this ListFirebaseLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance * @returns {Object.} JSON object */ - DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteFirebaseLinkRequest; + return ListFirebaseLinksResponse; })(); - v1alpha.ListFirebaseLinksRequest = (function() { + v1alpha.GetGlobalSiteTagRequest = (function() { /** - * Properties of a ListFirebaseLinksRequest. + * Properties of a GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksRequest - * @property {string|null} [parent] ListFirebaseLinksRequest parent - * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize - * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken + * @interface IGetGlobalSiteTagRequest + * @property {string|null} [name] GetGlobalSiteTagRequest name */ /** - * Constructs a new ListFirebaseLinksRequest. + * Constructs a new GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksRequest. - * @implements IListFirebaseLinksRequest + * @classdesc Represents a GetGlobalSiteTagRequest. + * @implements IGetGlobalSiteTagRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set */ - function ListFirebaseLinksRequest(properties) { + function GetGlobalSiteTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12988,101 +13174,75 @@ } /** - * ListFirebaseLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest - * @instance - */ - ListFirebaseLinksRequest.prototype.parent = ""; - - /** - * ListFirebaseLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest - * @instance - */ - ListFirebaseLinksRequest.prototype.pageSize = 0; - - /** - * ListFirebaseLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * GetGlobalSiteTagRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance */ - ListFirebaseLinksRequest.prototype.pageToken = ""; + GetGlobalSiteTagRequest.prototype.name = ""; /** - * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * Creates a new GetGlobalSiteTagRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance */ - ListFirebaseLinksRequest.create = function create(properties) { - return new ListFirebaseLinksRequest(properties); + GetGlobalSiteTagRequest.create = function create(properties) { + return new GetGlobalSiteTagRequest(properties); }; /** - * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encode = function encode(message, writer) { + GetGlobalSiteTagRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decode = function decode(reader, length) { + GetGlobalSiteTagRequest.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.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -13093,126 +13253,108 @@ }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { + GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksRequest message. + * Verifies a GetGlobalSiteTagRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksRequest.verify = function verify(message) { + GetGlobalSiteTagRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest */ - ListFirebaseLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + GetGlobalSiteTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest + * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksRequest.toObject = function toObject(message, options) { + GetGlobalSiteTagRequest.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; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListFirebaseLinksRequest to JSON. + * Converts this GetGlobalSiteTagRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { + GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksRequest; + return GetGlobalSiteTagRequest; })(); - v1alpha.ListFirebaseLinksResponse = (function() { + v1alpha.CreateGoogleAdsLinkRequest = (function() { /** - * Properties of a ListFirebaseLinksResponse. + * Properties of a CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksResponse - * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks - * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken + * @interface ICreateGoogleAdsLinkRequest + * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink */ /** - * Constructs a new ListFirebaseLinksResponse. + * Constructs a new CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksResponse. - * @implements IListFirebaseLinksResponse + * @classdesc Represents a CreateGoogleAdsLinkRequest. + * @implements ICreateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set */ - function ListFirebaseLinksResponse(properties) { - this.firebaseLinks = []; + function CreateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13220,91 +13362,88 @@ } /** - * ListFirebaseLinksResponse firebaseLinks. - * @member {Array.} firebaseLinks - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * CreateGoogleAdsLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance */ - ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; + CreateGoogleAdsLinkRequest.prototype.parent = ""; /** - * ListFirebaseLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * CreateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance */ - ListFirebaseLinksResponse.prototype.nextPageToken = ""; + CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; /** - * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance */ - ListFirebaseLinksResponse.create = function create(properties) { - return new ListFirebaseLinksResponse(properties); + CreateGoogleAdsLinkRequest.create = function create(properties) { + return new CreateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encode = function encode(message, writer) { + CreateGoogleAdsLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.firebaseLinks != null && message.firebaseLinks.length) - for (var i = 0; i < message.firebaseLinks.length; ++i) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decode = function decode(reader, length) { + CreateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.firebaseLinks && message.firebaseLinks.length)) - message.firebaseLinks = []; - message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13315,133 +13454,122 @@ }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { + CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksResponse message. + * Verifies a CreateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksResponse.verify = function verify(message) { + CreateGoogleAdsLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { - if (!Array.isArray(message.firebaseLinks)) - return "firebaseLinks: array expected"; - for (var i = 0; i < message.firebaseLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); - if (error) - return "firebaseLinks." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest */ - ListFirebaseLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); - if (object.firebaseLinks) { - if (!Array.isArray(object.firebaseLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); - message.firebaseLinks = []; - for (var i = 0; i < object.firebaseLinks.length; ++i) { - if (typeof object.firebaseLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); - message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse + * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksResponse.toObject = function toObject(message, options) { + CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.firebaseLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.firebaseLinks && message.firebaseLinks.length) { - object.firebaseLinks = []; - for (var j = 0; j < message.firebaseLinks.length; ++j) - object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); + if (options.defaults) { + object.parent = ""; + object.googleAdsLink = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); return object; }; /** - * Converts this ListFirebaseLinksResponse to JSON. + * Converts this CreateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { + CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksResponse; + return CreateGoogleAdsLinkRequest; })(); - v1alpha.GetGlobalSiteTagRequest = (function() { + v1alpha.UpdateGoogleAdsLinkRequest = (function() { /** - * Properties of a GetGlobalSiteTagRequest. + * Properties of an UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetGlobalSiteTagRequest - * @property {string|null} [name] GetGlobalSiteTagRequest name + * @interface IUpdateGoogleAdsLinkRequest + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask */ /** - * Constructs a new GetGlobalSiteTagRequest. + * Constructs a new UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetGlobalSiteTagRequest. - * @implements IGetGlobalSiteTagRequest + * @classdesc Represents an UpdateGoogleAdsLinkRequest. + * @implements IUpdateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set */ - function GetGlobalSiteTagRequest(properties) { + function UpdateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13449,75 +13577,88 @@ } /** - * GetGlobalSiteTagRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * UpdateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance */ - GetGlobalSiteTagRequest.prototype.name = ""; + UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; /** - * Creates a new GetGlobalSiteTagRequest instance using the specified properties. + * UpdateGoogleAdsLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @instance + */ + UpdateGoogleAdsLinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance */ - GetGlobalSiteTagRequest.create = function create(properties) { - return new GetGlobalSiteTagRequest(properties); + UpdateGoogleAdsLinkRequest.create = function create(properties) { + return new UpdateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encode = function encode(message, writer) { + UpdateGoogleAdsLinkRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, 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 GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decode = function decode(reader, length) { + UpdateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13528,108 +13669,126 @@ }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGlobalSiteTagRequest message. + * Verifies an UpdateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGlobalSiteTagRequest.verify = function verify(message) { + UpdateGoogleAdsLinkRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + 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 a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest */ - GetGlobalSiteTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest + * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGlobalSiteTagRequest.toObject = function toObject(message, options) { + UpdateGoogleAdsLinkRequest.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 (options.defaults) { + object.googleAdsLink = null; + object.updateMask = null; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetGlobalSiteTagRequest to JSON. + * Converts this UpdateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { + UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetGlobalSiteTagRequest; + return UpdateGoogleAdsLinkRequest; })(); - v1alpha.CreateGoogleAdsLinkRequest = (function() { + v1alpha.DeleteGoogleAdsLinkRequest = (function() { /** - * Properties of a CreateGoogleAdsLinkRequest. + * Properties of a DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateGoogleAdsLinkRequest - * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink + * @interface IDeleteGoogleAdsLinkRequest + * @property {string|null} [name] DeleteGoogleAdsLinkRequest name */ /** - * Constructs a new CreateGoogleAdsLinkRequest. + * Constructs a new DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateGoogleAdsLinkRequest. - * @implements ICreateGoogleAdsLinkRequest + * @classdesc Represents a DeleteGoogleAdsLinkRequest. + * @implements IDeleteGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set */ - function CreateGoogleAdsLinkRequest(properties) { + function DeleteGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13637,88 +13796,75 @@ } /** - * CreateGoogleAdsLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest - * @instance - */ - CreateGoogleAdsLinkRequest.prototype.parent = ""; - - /** - * CreateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * DeleteGoogleAdsLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance */ - CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + DeleteGoogleAdsLinkRequest.prototype.name = ""; /** - * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance */ - CreateGoogleAdsLinkRequest.create = function create(properties) { - return new CreateGoogleAdsLinkRequest(properties); + DeleteGoogleAdsLinkRequest.create = function create(properties) { + return new DeleteGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encode = function encode(message, writer) { + DeleteGoogleAdsLinkRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decode = function decode(reader, length) { + DeleteGoogleAdsLinkRequest.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.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -13729,122 +13875,109 @@ }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateGoogleAdsLinkRequest message. + * Verifies a DeleteGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateGoogleAdsLinkRequest.verify = function verify(message) { + DeleteGoogleAdsLinkRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest */ - CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } + var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.googleAdsLink = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateGoogleAdsLinkRequest to JSON. + * Converts this DeleteGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateGoogleAdsLinkRequest; + return DeleteGoogleAdsLinkRequest; })(); - v1alpha.UpdateGoogleAdsLinkRequest = (function() { + v1alpha.ListGoogleAdsLinksRequest = (function() { /** - * Properties of an UpdateGoogleAdsLinkRequest. + * Properties of a ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateGoogleAdsLinkRequest - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask + * @interface IListGoogleAdsLinksRequest + * @property {string|null} [parent] ListGoogleAdsLinksRequest parent + * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize + * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken */ /** - * Constructs a new UpdateGoogleAdsLinkRequest. + * Constructs a new ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateGoogleAdsLinkRequest. - * @implements IUpdateGoogleAdsLinkRequest + * @classdesc Represents a ListGoogleAdsLinksRequest. + * @implements IListGoogleAdsLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set */ - function UpdateGoogleAdsLinkRequest(properties) { + function ListGoogleAdsLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13852,88 +13985,101 @@ } /** - * UpdateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * ListGoogleAdsLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance */ - UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + ListGoogleAdsLinksRequest.prototype.parent = ""; /** - * UpdateGoogleAdsLinkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * ListGoogleAdsLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance */ - UpdateGoogleAdsLinkRequest.prototype.updateMask = null; + ListGoogleAdsLinksRequest.prototype.pageSize = 0; /** - * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * ListGoogleAdsLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance */ - UpdateGoogleAdsLinkRequest.create = function create(properties) { - return new UpdateGoogleAdsLinkRequest(properties); + ListGoogleAdsLinksRequest.create = function create(properties) { + return new ListGoogleAdsLinksRequest(properties); }; /** - * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encode = function encode(message, writer) { + ListGoogleAdsLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decode = function decode(reader, length) { + ListGoogleAdsLinksRequest.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.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -13944,126 +14090,126 @@ }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateGoogleAdsLinkRequest message. + * Verifies a ListGoogleAdsLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateGoogleAdsLinkRequest.verify = function verify(message) { + ListGoogleAdsLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest */ - UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + 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 an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + ListGoogleAdsLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.googleAdsLink = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateGoogleAdsLinkRequest to JSON. + * Converts this ListGoogleAdsLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance * @returns {Object.} JSON object */ - UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateGoogleAdsLinkRequest; + return ListGoogleAdsLinksRequest; })(); - v1alpha.DeleteGoogleAdsLinkRequest = (function() { + v1alpha.ListGoogleAdsLinksResponse = (function() { /** - * Properties of a DeleteGoogleAdsLinkRequest. + * Properties of a ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteGoogleAdsLinkRequest - * @property {string|null} [name] DeleteGoogleAdsLinkRequest name + * @interface IListGoogleAdsLinksResponse + * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks + * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken */ /** - * Constructs a new DeleteGoogleAdsLinkRequest. + * Constructs a new ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteGoogleAdsLinkRequest. - * @implements IDeleteGoogleAdsLinkRequest + * @classdesc Represents a ListGoogleAdsLinksResponse. + * @implements IListGoogleAdsLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set */ - function DeleteGoogleAdsLinkRequest(properties) { + function ListGoogleAdsLinksResponse(properties) { + this.googleAdsLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14071,75 +14217,91 @@ } /** - * DeleteGoogleAdsLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * ListGoogleAdsLinksResponse googleAdsLinks. + * @member {Array.} googleAdsLinks + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance */ - DeleteGoogleAdsLinkRequest.prototype.name = ""; + ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; /** - * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * ListGoogleAdsLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @instance + */ + ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance */ - DeleteGoogleAdsLinkRequest.create = function create(properties) { - return new DeleteGoogleAdsLinkRequest(properties); + ListGoogleAdsLinksResponse.create = function create(properties) { + return new ListGoogleAdsLinksResponse(properties); }; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encode = function encode(message, writer) { + ListGoogleAdsLinksResponse.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.googleAdsLinks != null && message.googleAdsLinks.length) + for (var i = 0; i < message.googleAdsLinks.length; ++i) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[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 DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decode = function decode(reader, length) { + ListGoogleAdsLinksResponse.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.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -14150,109 +14312,133 @@ }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteGoogleAdsLinkRequest message. + * Verifies a ListGoogleAdsLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteGoogleAdsLinkRequest.verify = function verify(message) { + ListGoogleAdsLinksResponse.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.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { + if (!Array.isArray(message.googleAdsLinks)) + return "googleAdsLinks: array expected"; + for (var i = 0; i < message.googleAdsLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); + if (error) + return "googleAdsLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse */ - DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + if (object.googleAdsLinks) { + if (!Array.isArray(object.googleAdsLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); + message.googleAdsLinks = []; + for (var i = 0; i < object.googleAdsLinks.length; ++i) { + if (typeof object.googleAdsLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); + message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { + ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.googleAdsLinks = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.googleAdsLinks && message.googleAdsLinks.length) { + object.googleAdsLinks = []; + for (var j = 0; j < message.googleAdsLinks.length; ++j) + object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteGoogleAdsLinkRequest to JSON. + * Converts this ListGoogleAdsLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance * @returns {Object.} JSON object */ - DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteGoogleAdsLinkRequest; + return ListGoogleAdsLinksResponse; })(); - v1alpha.ListGoogleAdsLinksRequest = (function() { + v1alpha.GetDataSharingSettingsRequest = (function() { /** - * Properties of a ListGoogleAdsLinksRequest. + * Properties of a GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksRequest - * @property {string|null} [parent] ListGoogleAdsLinksRequest parent - * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize - * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken + * @interface IGetDataSharingSettingsRequest + * @property {string|null} [name] GetDataSharingSettingsRequest name */ /** - * Constructs a new ListGoogleAdsLinksRequest. + * Constructs a new GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksRequest. - * @implements IListGoogleAdsLinksRequest + * @classdesc Represents a GetDataSharingSettingsRequest. + * @implements IGetDataSharingSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set */ - function ListGoogleAdsLinksRequest(properties) { + function GetDataSharingSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14260,101 +14446,75 @@ } /** - * ListGoogleAdsLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest - * @instance - */ - ListGoogleAdsLinksRequest.prototype.parent = ""; - - /** - * ListGoogleAdsLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest - * @instance - */ - ListGoogleAdsLinksRequest.prototype.pageSize = 0; - - /** - * ListGoogleAdsLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * GetDataSharingSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance */ - ListGoogleAdsLinksRequest.prototype.pageToken = ""; + GetDataSharingSettingsRequest.prototype.name = ""; /** - * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance */ - ListGoogleAdsLinksRequest.create = function create(properties) { - return new ListGoogleAdsLinksRequest(properties); + GetDataSharingSettingsRequest.create = function create(properties) { + return new GetDataSharingSettingsRequest(properties); }; /** - * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encode = function encode(message, writer) { + GetDataSharingSettingsRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decode = function decode(reader, length) { + GetDataSharingSettingsRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -14365,126 +14525,108 @@ }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksRequest message. + * Verifies a GetDataSharingSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksRequest.verify = function verify(message) { + GetDataSharingSettingsRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest */ - ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + GetDataSharingSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest + * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksRequest.toObject = function toObject(message, options) { + GetDataSharingSettingsRequest.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; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListGoogleAdsLinksRequest to JSON. + * Converts this GetDataSharingSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { + GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksRequest; + return GetDataSharingSettingsRequest; })(); - v1alpha.ListGoogleAdsLinksResponse = (function() { + v1alpha.ListAccountSummariesRequest = (function() { /** - * Properties of a ListGoogleAdsLinksResponse. + * Properties of a ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksResponse - * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks - * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken + * @interface IListAccountSummariesRequest + * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize + * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken */ /** - * Constructs a new ListGoogleAdsLinksResponse. + * Constructs a new ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksResponse. - * @implements IListGoogleAdsLinksResponse + * @classdesc Represents a ListAccountSummariesRequest. + * @implements IListAccountSummariesRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set */ - function ListGoogleAdsLinksResponse(properties) { - this.googleAdsLinks = []; + function ListAccountSummariesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14492,91 +14634,88 @@ } /** - * ListGoogleAdsLinksResponse googleAdsLinks. - * @member {Array.} googleAdsLinks - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * ListAccountSummariesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; + ListAccountSummariesRequest.prototype.pageSize = 0; /** - * ListGoogleAdsLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * ListAccountSummariesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; + ListAccountSummariesRequest.prototype.pageToken = ""; /** - * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * Creates a new ListAccountSummariesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance */ - ListGoogleAdsLinksResponse.create = function create(properties) { - return new ListGoogleAdsLinksResponse(properties); + ListAccountSummariesRequest.create = function create(properties) { + return new ListAccountSummariesRequest(properties); }; /** - * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encode = function encode(message, writer) { + ListAccountSummariesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLinks != null && message.googleAdsLinks.length) - for (var i = 0; i < message.googleAdsLinks.length; ++i) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.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); return writer; }; /** - * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decode = function decode(reader, length) { + ListAccountSummariesRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.googleAdsLinks && message.googleAdsLinks.length)) - message.googleAdsLinks = []; - message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); + message.pageSize = reader.int32(); break; case 2: - message.nextPageToken = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -14587,133 +14726,118 @@ }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { + ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksResponse message. + * Verifies a ListAccountSummariesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksResponse.verify = function verify(message) { + ListAccountSummariesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { - if (!Array.isArray(message.googleAdsLinks)) - return "googleAdsLinks: array expected"; - for (var i = 0; i < message.googleAdsLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); - if (error) - return "googleAdsLinks." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: 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 ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest */ - ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + ListAccountSummariesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); - if (object.googleAdsLinks) { - if (!Array.isArray(object.googleAdsLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); - message.googleAdsLinks = []; - for (var i = 0; i < object.googleAdsLinks.length; ++i) { - if (typeof object.googleAdsLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); - message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); + 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 ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse + * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { + ListAccountSummariesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.googleAdsLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.googleAdsLinks && message.googleAdsLinks.length) { - object.googleAdsLinks = []; - for (var j = 0; j < message.googleAdsLinks.length; ++j) - object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + if (options.defaults) { + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListGoogleAdsLinksResponse to JSON. + * Converts this ListAccountSummariesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { + ListAccountSummariesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksResponse; + return ListAccountSummariesRequest; })(); - v1alpha.GetDataSharingSettingsRequest = (function() { + v1alpha.ListAccountSummariesResponse = (function() { /** - * Properties of a GetDataSharingSettingsRequest. + * Properties of a ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataSharingSettingsRequest - * @property {string|null} [name] GetDataSharingSettingsRequest name + * @interface IListAccountSummariesResponse + * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries + * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken */ /** - * Constructs a new GetDataSharingSettingsRequest. + * Constructs a new ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataSharingSettingsRequest. - * @implements IGetDataSharingSettingsRequest + * @classdesc Represents a ListAccountSummariesResponse. + * @implements IListAccountSummariesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set */ - function GetDataSharingSettingsRequest(properties) { + function ListAccountSummariesResponse(properties) { + this.accountSummaries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14721,75 +14845,91 @@ } /** - * GetDataSharingSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * ListAccountSummariesResponse accountSummaries. + * @member {Array.} accountSummaries + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance */ - GetDataSharingSettingsRequest.prototype.name = ""; + ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; /** - * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * ListAccountSummariesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @instance + */ + ListAccountSummariesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAccountSummariesResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance */ - GetDataSharingSettingsRequest.create = function create(properties) { - return new GetDataSharingSettingsRequest(properties); + ListAccountSummariesResponse.create = function create(properties) { + return new ListAccountSummariesResponse(properties); }; /** - * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encode = function encode(message, writer) { + ListAccountSummariesResponse.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.accountSummaries != null && message.accountSummaries.length) + for (var i = 0; i < message.accountSummaries.length; ++i) + $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[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 GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decode = function decode(reader, length) { + ListAccountSummariesResponse.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.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -14800,108 +14940,134 @@ }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataSharingSettingsRequest message. + * Verifies a ListAccountSummariesResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataSharingSettingsRequest.verify = function verify(message) { + ListAccountSummariesResponse.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.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { + if (!Array.isArray(message.accountSummaries)) + return "accountSummaries: array expected"; + for (var i = 0; i < message.accountSummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); + if (error) + return "accountSummaries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse */ - GetDataSharingSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + ListAccountSummariesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); + if (object.accountSummaries) { + if (!Array.isArray(object.accountSummaries)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); + message.accountSummaries = []; + for (var i = 0; i < object.accountSummaries.length; ++i) { + if (typeof object.accountSummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); + message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest + * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataSharingSettingsRequest.toObject = function toObject(message, options) { + ListAccountSummariesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.accountSummaries = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.accountSummaries && message.accountSummaries.length) { + object.accountSummaries = []; + for (var j = 0; j < message.accountSummaries.length; ++j) + object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetDataSharingSettingsRequest to JSON. + * Converts this ListAccountSummariesResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance * @returns {Object.} JSON object */ - GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { + ListAccountSummariesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDataSharingSettingsRequest; + return ListAccountSummariesResponse; })(); - v1alpha.ListAccountSummariesRequest = (function() { + v1alpha.AcknowledgeUserDataCollectionRequest = (function() { /** - * Properties of a ListAccountSummariesRequest. + * Properties of an AcknowledgeUserDataCollectionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesRequest - * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize - * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken + * @interface IAcknowledgeUserDataCollectionRequest + * @property {string|null} [property] AcknowledgeUserDataCollectionRequest property + * @property {string|null} [acknowledgement] AcknowledgeUserDataCollectionRequest acknowledgement */ /** - * Constructs a new ListAccountSummariesRequest. + * Constructs a new AcknowledgeUserDataCollectionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesRequest. - * @implements IListAccountSummariesRequest + * @classdesc Represents an AcknowledgeUserDataCollectionRequest. + * @implements IAcknowledgeUserDataCollectionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set */ - function ListAccountSummariesRequest(properties) { + function AcknowledgeUserDataCollectionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14909,88 +15075,88 @@ } /** - * ListAccountSummariesRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * AcknowledgeUserDataCollectionRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance */ - ListAccountSummariesRequest.prototype.pageSize = 0; + AcknowledgeUserDataCollectionRequest.prototype.property = ""; /** - * ListAccountSummariesRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * AcknowledgeUserDataCollectionRequest acknowledgement. + * @member {string} acknowledgement + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance */ - ListAccountSummariesRequest.prototype.pageToken = ""; + AcknowledgeUserDataCollectionRequest.prototype.acknowledgement = ""; /** - * Creates a new ListAccountSummariesRequest instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest instance */ - ListAccountSummariesRequest.create = function create(properties) { - return new ListAccountSummariesRequest(properties); + AcknowledgeUserDataCollectionRequest.create = function create(properties) { + return new AcknowledgeUserDataCollectionRequest(properties); }; /** - * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encode = function encode(message, writer) { + AcknowledgeUserDataCollectionRequest.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.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acknowledgement); return writer; }; /** - * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AcknowledgeUserDataCollectionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decode = function decode(reader, length) { + AcknowledgeUserDataCollectionRequest.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.analytics.admin.v1alpha.ListAccountSummariesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pageSize = reader.int32(); + message.property = reader.string(); break; case 2: - message.pageToken = reader.string(); + message.acknowledgement = reader.string(); break; default: reader.skipType(tag & 7); @@ -15001,118 +15167,115 @@ }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { + AcknowledgeUserDataCollectionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesRequest message. + * Verifies an AcknowledgeUserDataCollectionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesRequest.verify = function verify(message) { + AcknowledgeUserDataCollectionRequest.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.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!$util.isString(message.acknowledgement)) + return "acknowledgement: string expected"; return null; }; /** - * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest */ - ListAccountSummariesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) + AcknowledgeUserDataCollectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); + if (object.property != null) + message.property = String(object.property); + if (object.acknowledgement != null) + message.acknowledgement = String(object.acknowledgement); return message; }; /** - * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesRequest.toObject = function toObject(message, options) { + AcknowledgeUserDataCollectionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.pageSize = 0; - object.pageToken = ""; + object.property = ""; + object.acknowledgement = ""; } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = message.acknowledgement; return object; }; /** - * Converts this ListAccountSummariesRequest to JSON. + * Converts this AcknowledgeUserDataCollectionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance * @returns {Object.} JSON object */ - ListAccountSummariesRequest.prototype.toJSON = function toJSON() { + AcknowledgeUserDataCollectionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesRequest; + return AcknowledgeUserDataCollectionRequest; })(); - v1alpha.ListAccountSummariesResponse = (function() { + v1alpha.AcknowledgeUserDataCollectionResponse = (function() { /** - * Properties of a ListAccountSummariesResponse. + * Properties of an AcknowledgeUserDataCollectionResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesResponse - * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries - * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken + * @interface IAcknowledgeUserDataCollectionResponse */ /** - * Constructs a new ListAccountSummariesResponse. + * Constructs a new AcknowledgeUserDataCollectionResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesResponse. - * @implements IListAccountSummariesResponse + * @classdesc Represents an AcknowledgeUserDataCollectionResponse. + * @implements IAcknowledgeUserDataCollectionResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set */ - function ListAccountSummariesResponse(properties) { - this.accountSummaries = []; + function AcknowledgeUserDataCollectionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15120,92 +15283,63 @@ } /** - * ListAccountSummariesResponse accountSummaries. - * @member {Array.} accountSummaries - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse - * @instance - */ - ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; - - /** - * ListAccountSummariesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse - * @instance - */ - ListAccountSummariesResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListAccountSummariesResponse instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse instance */ - ListAccountSummariesResponse.create = function create(properties) { - return new ListAccountSummariesResponse(properties); + AcknowledgeUserDataCollectionResponse.create = function create(properties) { + return new AcknowledgeUserDataCollectionResponse(properties); }; /** - * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encode = function encode(message, writer) { + AcknowledgeUserDataCollectionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.accountSummaries != null && message.accountSummaries.length) - for (var i = 0; i < message.accountSummaries.length; ++i) - $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[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 ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { + AcknowledgeUserDataCollectionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decode = function decode(reader, length) { + AcknowledgeUserDataCollectionResponse.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.analytics.admin.v1alpha.ListAccountSummariesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.accountSummaries && message.accountSummaries.length)) - message.accountSummaries = []; - message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -15215,113 +15349,74 @@ }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { + AcknowledgeUserDataCollectionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesResponse message. + * Verifies an AcknowledgeUserDataCollectionResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesResponse.verify = function verify(message) { + AcknowledgeUserDataCollectionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { - if (!Array.isArray(message.accountSummaries)) - return "accountSummaries: array expected"; - for (var i = 0; i < message.accountSummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); - if (error) - return "accountSummaries." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse */ - ListAccountSummariesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) + AcknowledgeUserDataCollectionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); - if (object.accountSummaries) { - if (!Array.isArray(object.accountSummaries)) - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); - message.accountSummaries = []; - for (var i = 0; i < object.accountSummaries.length; ++i) { - if (typeof object.accountSummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); - message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; + return new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); }; /** - * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. + * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.accountSummaries = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.accountSummaries && message.accountSummaries.length) { - object.accountSummaries = []; - for (var j = 0; j < message.accountSummaries.length; ++j) - object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; + AcknowledgeUserDataCollectionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ListAccountSummariesResponse to JSON. + * Converts this AcknowledgeUserDataCollectionResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @instance * @returns {Object.} JSON object */ - ListAccountSummariesResponse.prototype.toJSON = function toJSON() { + AcknowledgeUserDataCollectionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesResponse; + return AcknowledgeUserDataCollectionResponse; })(); v1alpha.SearchChangeHistoryEventsRequest = (function() { @@ -15621,6 +15716,8 @@ case 11: case 12: case 13: + case 14: + case 15: break; } } @@ -15743,6 +15840,14 @@ case 13: message.resourceType[i] = 13; break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK": + case 14: + message.resourceType[i] = 14; + break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": + case 15: + message.resourceType[i] = 15; + break; } } if (object.action) { @@ -24667,255 +24772,25 @@ return UpdateDataRetentionSettingsRequest; })(); - /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory - * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); + v1alpha.CreateDataStreamRequest = (function() { - /** - * ServiceLevel enum. - * @name google.analytics.admin.v1alpha.ServiceLevel - * @enum {number} - * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value - * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value - * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value - */ - v1alpha.ServiceLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; - values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; - return values; - })(); - - /** - * ActorType enum. - * @name google.analytics.admin.v1alpha.ActorType - * @enum {number} - * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value - * @property {number} SUPPORT=3 SUPPORT value - */ - v1alpha.ActorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - values[valuesById[3] = "SUPPORT"] = 3; - return values; - })(); - - /** - * ActionType enum. - * @name google.analytics.admin.v1alpha.ActionType - * @enum {number} - * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value - * @property {number} CREATED=1 CREATED value - * @property {number} UPDATED=2 UPDATED value - * @property {number} DELETED=3 DELETED value - */ - v1alpha.ActionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATED"] = 1; - values[valuesById[2] = "UPDATED"] = 2; - values[valuesById[3] = "DELETED"] = 3; - return values; - })(); - - /** - * ChangeHistoryResourceType enum. - * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType - * @enum {number} - * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value - * @property {number} ACCOUNT=1 ACCOUNT value - * @property {number} PROPERTY=2 PROPERTY value - * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value - * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value - * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value - * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value - * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value - * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value - * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value - * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value - * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value - * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value - * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value - */ - v1alpha.ChangeHistoryResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACCOUNT"] = 1; - values[valuesById[2] = "PROPERTY"] = 2; - values[valuesById[3] = "WEB_DATA_STREAM"] = 3; - values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; - values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; - values[valuesById[6] = "FIREBASE_LINK"] = 6; - values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; - values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; - values[valuesById[9] = "CONVERSION_EVENT"] = 9; - values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; - values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; - values[valuesById[12] = "CUSTOM_METRIC"] = 12; - values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; - return values; - })(); - - /** - * GoogleSignalsState enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsState - * @enum {number} - * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value - * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value - */ - v1alpha.GoogleSignalsState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; - values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; - return values; - })(); - - /** - * GoogleSignalsConsent enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsConsent - * @enum {number} - * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value - * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value - */ - v1alpha.GoogleSignalsConsent = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; - values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; - values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; - return values; - })(); - - /** - * LinkProposalInitiatingProduct enum. - * @name google.analytics.admin.v1alpha.LinkProposalInitiatingProduct - * @enum {number} - * @property {number} LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED=0 LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED value - * @property {number} GOOGLE_ANALYTICS=1 GOOGLE_ANALYTICS value - * @property {number} LINKED_PRODUCT=2 LINKED_PRODUCT value - */ - v1alpha.LinkProposalInitiatingProduct = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_ANALYTICS"] = 1; - values[valuesById[2] = "LINKED_PRODUCT"] = 2; - return values; - })(); - - /** - * LinkProposalState enum. - * @name google.analytics.admin.v1alpha.LinkProposalState - * @enum {number} - * @property {number} LINK_PROPOSAL_STATE_UNSPECIFIED=0 LINK_PROPOSAL_STATE_UNSPECIFIED value - * @property {number} AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS=1 AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS value - * @property {number} AWAITING_REVIEW_FROM_LINKED_PRODUCT=2 AWAITING_REVIEW_FROM_LINKED_PRODUCT value - * @property {number} WITHDRAWN=3 WITHDRAWN value - * @property {number} DECLINED=4 DECLINED value - * @property {number} EXPIRED=5 EXPIRED value - * @property {number} OBSOLETE=6 OBSOLETE value - */ - v1alpha.LinkProposalState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LINK_PROPOSAL_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS"] = 1; - values[valuesById[2] = "AWAITING_REVIEW_FROM_LINKED_PRODUCT"] = 2; - values[valuesById[3] = "WITHDRAWN"] = 3; - values[valuesById[4] = "DECLINED"] = 4; - values[valuesById[5] = "EXPIRED"] = 5; - values[valuesById[6] = "OBSOLETE"] = 6; - return values; - })(); - - v1alpha.Account = (function() { - - /** - * Properties of an Account. - * @memberof google.analytics.admin.v1alpha - * @interface IAccount - * @property {string|null} [name] Account name - * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime - * @property {string|null} [displayName] Account displayName - * @property {string|null} [regionCode] Account regionCode - * @property {boolean|null} [deleted] Account deleted - */ + /** + * Properties of a CreateDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateDataStreamRequest + * @property {string|null} [parent] CreateDataStreamRequest parent + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream + */ /** - * Constructs a new Account. + * Constructs a new CreateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Account. - * @implements IAccount + * @classdesc Represents a CreateDataStreamRequest. + * @implements ICreateDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set */ - function Account(properties) { + function CreateDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24923,140 +24798,88 @@ } /** - * Account name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.name = ""; - - /** - * Account createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.createTime = null; - - /** - * Account updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.updateTime = null; - - /** - * Account displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.displayName = ""; - - /** - * Account regionCode. - * @member {string} regionCode - * @memberof google.analytics.admin.v1alpha.Account + * CreateDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @instance */ - Account.prototype.regionCode = ""; + CreateDataStreamRequest.prototype.parent = ""; /** - * Account deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Account + * CreateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @instance */ - Account.prototype.deleted = false; + CreateDataStreamRequest.prototype.dataStream = null; /** - * Creates a new Account instance using the specified properties. + * Creates a new CreateDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Account} Account instance + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest instance */ - Account.create = function create(properties) { - return new Account(properties); + CreateDataStreamRequest.create = function create(properties) { + return new CreateDataStreamRequest(properties); }; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encode = function encode(message, writer) { + CreateDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest * @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) { + CreateDataStreamRequest.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.analytics.admin.v1alpha.Account(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.displayName = reader.string(); - break; - case 5: - message.regionCode = reader.string(); - break; - case 6: - message.deleted = reader.bool(); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25067,168 +24890,121 @@ }; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest * @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) { + CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Account message. + * Verifies a CreateDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @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) { + CreateDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); if (error) - return "updateTime." + error; + return "dataStream." + error; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - if (!$util.isString(message.regionCode)) - return "regionCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; return null; }; /** - * Creates an Account message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest */ - Account.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Account) + CreateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.Account(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.regionCode != null) - message.regionCode = String(object.regionCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); return message; }; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.Account} message Account + * @param {google.analytics.admin.v1alpha.CreateDataStreamRequest} message CreateDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Account.toObject = function toObject(message, options) { + CreateDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.regionCode = ""; - object.deleted = false; + object.parent = ""; + object.dataStream = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - object.regionCode = message.regionCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); return object; }; /** - * Converts this Account to JSON. + * Converts this CreateDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @instance * @returns {Object.} JSON object */ - Account.prototype.toJSON = function toJSON() { + CreateDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Account; + return CreateDataStreamRequest; })(); - v1alpha.Property = (function() { + v1alpha.DeleteDataStreamRequest = (function() { /** - * Properties of a Property. + * Properties of a DeleteDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IProperty - * @property {string|null} [name] Property name - * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime - * @property {string|null} [parent] Property parent - * @property {string|null} [displayName] Property displayName - * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory - * @property {string|null} [timeZone] Property timeZone - * @property {string|null} [currencyCode] Property currencyCode - * @property {google.analytics.admin.v1alpha.ServiceLevel|null} [serviceLevel] Property serviceLevel - * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime - * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + * @interface IDeleteDataStreamRequest + * @property {string|null} [name] DeleteDataStreamRequest name */ /** - * Constructs a new Property. + * Constructs a new DeleteDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a Property. - * @implements IProperty + * @classdesc Represents a DeleteDataStreamRequest. + * @implements IDeleteDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set */ - function Property(properties) { + function DeleteDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25236,206 +25012,76 @@ } /** - * Property name. + * DeleteDataStreamRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.name = ""; - - /** - * Property createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.createTime = null; - - /** - * Property updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.updateTime = null; - - /** - * Property parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.parent = ""; - - /** - * Property displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.displayName = ""; - - /** - * Property industryCategory. - * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.industryCategory = 0; - - /** - * Property timeZone. - * @member {string} timeZone - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.timeZone = ""; - - /** - * Property currencyCode. - * @member {string} currencyCode - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.currencyCode = ""; - - /** - * Property serviceLevel. - * @member {google.analytics.admin.v1alpha.ServiceLevel} serviceLevel - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.serviceLevel = 0; - - /** - * Property deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.deleteTime = null; - - /** - * Property expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @instance */ - Property.prototype.expireTime = null; + DeleteDataStreamRequest.prototype.name = ""; /** - * Creates a new Property instance using the specified properties. + * Creates a new DeleteDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Property} Property instance + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest instance */ - Property.create = function create(properties) { - return new Property(properties); + DeleteDataStreamRequest.create = function create(properties) { + return new DeleteDataStreamRequest(properties); }; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encode = function encode(message, writer) { + DeleteDataStreamRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); - if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); - if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); - if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Property.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decode = function decode(reader, length) { + DeleteDataStreamRequest.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.analytics.admin.v1alpha.Property(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; - case 5: - message.displayName = reader.string(); - break; - case 6: - message.industryCategory = reader.int32(); - break; - case 7: - message.timeZone = reader.string(); - break; - case 8: - message.currencyCode = reader.string(); - break; - case 10: - message.serviceLevel = reader.int32(); - break; - case 11: - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -25445,369 +25091,108 @@ }; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Property.decodeDelimited = function decodeDelimited(reader) { + DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Property message. + * Verifies a DeleteDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Property.verify = function verify(message) { + DeleteDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - switch (message.industryCategory) { - default: - return "industryCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - break; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - if (!$util.isString(message.currencyCode)) - return "currencyCode: string expected"; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - switch (message.serviceLevel) { - default: - return "serviceLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); - if (error) - return "deleteTime." + error; - } - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } return null; }; /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Property} Property + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest */ - Property.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Property) + DeleteDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.Property(); + var message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); if (object.name != null) message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.industryCategory) { - case "INDUSTRY_CATEGORY_UNSPECIFIED": - case 0: - message.industryCategory = 0; - break; - case "AUTOMOTIVE": - case 1: - message.industryCategory = 1; - break; - case "BUSINESS_AND_INDUSTRIAL_MARKETS": - case 2: - message.industryCategory = 2; - break; - case "FINANCE": - case 3: - message.industryCategory = 3; - break; - case "HEALTHCARE": - case 4: - message.industryCategory = 4; - break; - case "TECHNOLOGY": - case 5: - message.industryCategory = 5; - break; - case "TRAVEL": - case 6: - message.industryCategory = 6; - break; - case "OTHER": - case 7: - message.industryCategory = 7; - break; - case "ARTS_AND_ENTERTAINMENT": - case 8: - message.industryCategory = 8; - break; - case "BEAUTY_AND_FITNESS": - case 9: - message.industryCategory = 9; - break; - case "BOOKS_AND_LITERATURE": - case 10: - message.industryCategory = 10; - break; - case "FOOD_AND_DRINK": - case 11: - message.industryCategory = 11; - break; - case "GAMES": - case 12: - message.industryCategory = 12; - break; - case "HOBBIES_AND_LEISURE": - case 13: - message.industryCategory = 13; - break; - case "HOME_AND_GARDEN": - case 14: - message.industryCategory = 14; - break; - case "INTERNET_AND_TELECOM": - case 15: - message.industryCategory = 15; - break; - case "LAW_AND_GOVERNMENT": - case 16: - message.industryCategory = 16; - break; - case "NEWS": - case 17: - message.industryCategory = 17; - break; - case "ONLINE_COMMUNITIES": - case 18: - message.industryCategory = 18; - break; - case "PEOPLE_AND_SOCIETY": - case 19: - message.industryCategory = 19; - break; - case "PETS_AND_ANIMALS": - case 20: - message.industryCategory = 20; - break; - case "REAL_ESTATE": - case 21: - message.industryCategory = 21; - break; - case "REFERENCE": - case 22: - message.industryCategory = 22; - break; - case "SCIENCE": - case 23: - message.industryCategory = 23; - break; - case "SPORTS": - case 24: - message.industryCategory = 24; - break; - case "JOBS_AND_EDUCATION": - case 25: - message.industryCategory = 25; - break; - case "SHOPPING": - case 26: - message.industryCategory = 26; - break; - } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.currencyCode != null) - message.currencyCode = String(object.currencyCode); - switch (object.serviceLevel) { - case "SERVICE_LEVEL_UNSPECIFIED": - case 0: - message.serviceLevel = 0; - break; - case "GOOGLE_ANALYTICS_STANDARD": - case 1: - message.serviceLevel = 1; - break; - case "GOOGLE_ANALYTICS_360": - case 2: - message.serviceLevel = 2; - break; - } - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); - } - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); - } return message; }; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {google.analytics.admin.v1alpha.DeleteDataStreamRequest} message DeleteDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Property.toObject = function toObject(message, options) { + DeleteDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.parent = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; - object.timeZone = ""; - object.currencyCode = ""; - object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; - object.deleteTime = null; - object.expireTime = null; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - object.currencyCode = message.currencyCode; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); return object; }; /** - * Converts this Property to JSON. + * Converts this DeleteDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @instance * @returns {Object.} JSON object */ - Property.prototype.toJSON = function toJSON() { + DeleteDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Property; + return DeleteDataStreamRequest; })(); - v1alpha.AndroidAppDataStream = (function() { + v1alpha.UpdateDataStreamRequest = (function() { /** - * Properties of an AndroidAppDataStream. + * Properties of an UpdateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAndroidAppDataStream - * @property {string|null} [name] AndroidAppDataStream name - * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime - * @property {string|null} [packageName] AndroidAppDataStream packageName - * @property {string|null} [displayName] AndroidAppDataStream displayName + * @interface IUpdateDataStreamRequest + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask */ /** - * Constructs a new AndroidAppDataStream. + * Constructs a new UpdateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AndroidAppDataStream. - * @implements IAndroidAppDataStream + * @classdesc Represents an UpdateDataStreamRequest. + * @implements IUpdateDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set */ - function AndroidAppDataStream(properties) { + function UpdateDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25815,140 +25200,88 @@ } /** - * AndroidAppDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.name = ""; - - /** - * AndroidAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.firebaseAppId = ""; - - /** - * AndroidAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.createTime = null; - - /** - * AndroidAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.updateTime = null; - - /** - * AndroidAppDataStream packageName. - * @member {string} packageName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * UpdateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance */ - AndroidAppDataStream.prototype.packageName = ""; + UpdateDataStreamRequest.prototype.dataStream = null; /** - * AndroidAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * UpdateDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance */ - AndroidAppDataStream.prototype.displayName = ""; + UpdateDataStreamRequest.prototype.updateMask = null; /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new UpdateDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest instance */ - AndroidAppDataStream.create = function create(properties) { - return new AndroidAppDataStream(properties); + UpdateDataStreamRequest.create = function create(properties) { + return new UpdateDataStreamRequest(properties); }; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encode = function encode(message, writer) { + UpdateDataStreamRequest.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, 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 AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decode = function decode(reader, length) { + UpdateDataStreamRequest.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.analytics.admin.v1alpha.AndroidAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); break; case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.packageName = reader.string(); - break; - case 6: - message.displayName = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25959,163 +25292,128 @@ }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AndroidAppDataStream message. + * Verifies an UpdateDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AndroidAppDataStream.verify = function verify(message) { + UpdateDataStreamRequest.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); if (error) - return "createTime." + error; + return "dataStream." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "updateTime." + error; + return "updateMask." + error; } - if (message.packageName != null && message.hasOwnProperty("packageName")) - if (!$util.isString(message.packageName)) - return "packageName: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest */ - AndroidAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + UpdateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.packageName != null) - message.packageName = String(object.packageName); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {google.analytics.admin.v1alpha.UpdateDataStreamRequest} message UpdateDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AndroidAppDataStream.toObject = function toObject(message, options) { + UpdateDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.packageName = ""; - object.displayName = ""; + object.dataStream = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.packageName != null && message.hasOwnProperty("packageName")) - object.packageName = message.packageName; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this AndroidAppDataStream to JSON. + * Converts this UpdateDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance * @returns {Object.} JSON object */ - AndroidAppDataStream.prototype.toJSON = function toJSON() { + UpdateDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AndroidAppDataStream; + return UpdateDataStreamRequest; })(); - v1alpha.IosAppDataStream = (function() { + v1alpha.ListDataStreamsRequest = (function() { /** - * Properties of an IosAppDataStream. + * Properties of a ListDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IIosAppDataStream - * @property {string|null} [name] IosAppDataStream name - * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime - * @property {string|null} [bundleId] IosAppDataStream bundleId - * @property {string|null} [displayName] IosAppDataStream displayName + * @interface IListDataStreamsRequest + * @property {string|null} [parent] ListDataStreamsRequest parent + * @property {number|null} [pageSize] ListDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListDataStreamsRequest pageToken */ /** - * Constructs a new IosAppDataStream. + * Constructs a new ListDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an IosAppDataStream. - * @implements IIosAppDataStream + * @classdesc Represents a ListDataStreamsRequest. + * @implements IListDataStreamsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set */ - function IosAppDataStream(properties) { + function ListDataStreamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26123,140 +25421,101 @@ } /** - * IosAppDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * ListDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance */ - IosAppDataStream.prototype.name = ""; + ListDataStreamsRequest.prototype.parent = ""; /** - * IosAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * ListDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance */ - IosAppDataStream.prototype.firebaseAppId = ""; + ListDataStreamsRequest.prototype.pageSize = 0; /** - * IosAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * ListDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance */ - IosAppDataStream.prototype.createTime = null; + ListDataStreamsRequest.prototype.pageToken = ""; /** - * IosAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance + * Creates a new ListDataStreamsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest instance */ - IosAppDataStream.prototype.updateTime = null; + ListDataStreamsRequest.create = function create(properties) { + return new ListDataStreamsRequest(properties); + }; /** - * IosAppDataStream bundleId. - * @member {string} bundleId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.prototype.bundleId = ""; - - /** - * IosAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @instance - */ - IosAppDataStream.prototype.displayName = ""; - - /** - * Creates a new IosAppDataStream instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance - */ - IosAppDataStream.create = function create(properties) { - return new IosAppDataStream(properties); - }; - - /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream - * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IosAppDataStream.encode = function encode(message, writer) { + ListDataStreamsRequest.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + 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 IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decode = function decode(reader, length) { + ListDataStreamsRequest.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.analytics.admin.v1alpha.IosAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.firebaseAppId = reader.string(); + message.pageSize = reader.int32(); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.bundleId = reader.string(); - break; - case 6: - message.displayName = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -26267,164 +25526,126 @@ }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IosAppDataStream message. + * Verifies a ListDataStreamsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IosAppDataStream.verify = function verify(message) { + ListDataStreamsRequest.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - if (!$util.isString(message.bundleId)) - return "bundleId: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string 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 an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest */ - IosAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + ListDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.bundleId != null) - message.bundleId = String(object.bundleId); - if (object.displayName != null) - message.displayName = String(object.displayName); + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); + 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 an IosAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {google.analytics.admin.v1alpha.ListDataStreamsRequest} message ListDataStreamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IosAppDataStream.toObject = function toObject(message, options) { + ListDataStreamsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.bundleId = ""; - object.displayName = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - object.bundleId = message.bundleId; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + 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 IosAppDataStream to JSON. + * Converts this ListDataStreamsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance * @returns {Object.} JSON object */ - IosAppDataStream.prototype.toJSON = function toJSON() { + ListDataStreamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IosAppDataStream; + return ListDataStreamsRequest; })(); - v1alpha.WebDataStream = (function() { + v1alpha.ListDataStreamsResponse = (function() { /** - * Properties of a WebDataStream. + * Properties of a ListDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IWebDataStream - * @property {string|null} [name] WebDataStream name - * @property {string|null} [measurementId] WebDataStream measurementId - * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime - * @property {string|null} [defaultUri] WebDataStream defaultUri - * @property {string|null} [displayName] WebDataStream displayName + * @interface IListDataStreamsResponse + * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams + * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken */ /** - * Constructs a new WebDataStream. + * Constructs a new ListDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a WebDataStream. - * @implements IWebDataStream + * @classdesc Represents a ListDataStreamsResponse. + * @implements IListDataStreamsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set */ - function WebDataStream(properties) { + function ListDataStreamsResponse(properties) { + this.dataStreams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26432,153 +25653,304 @@ } /** - * WebDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.name = ""; - - /** - * WebDataStream measurementId. - * @member {string} measurementId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.measurementId = ""; - - /** - * WebDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.firebaseAppId = ""; - - /** - * WebDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.createTime = null; - - /** - * WebDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - */ - WebDataStream.prototype.updateTime = null; - - /** - * WebDataStream defaultUri. - * @member {string} defaultUri - * @memberof google.analytics.admin.v1alpha.WebDataStream + * ListDataStreamsResponse dataStreams. + * @member {Array.} dataStreams + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance */ - WebDataStream.prototype.defaultUri = ""; + ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; /** - * WebDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.WebDataStream + * ListDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance */ - WebDataStream.prototype.displayName = ""; + ListDataStreamsResponse.prototype.nextPageToken = ""; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new ListDataStreamsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse instance */ - WebDataStream.create = function create(properties) { - return new WebDataStream(properties); + ListDataStreamsResponse.create = function create(properties) { + return new ListDataStreamsResponse(properties); }; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encode = function encode(message, writer) { + ListDataStreamsResponse.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + if (message.dataStreams != null && message.dataStreams.length) + for (var i = 0; i < message.dataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStreams[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 WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decode = function decode(reader, length) { + ListDataStreamsResponse.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.analytics.admin.v1alpha.WebDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.dataStreams && message.dataStreams.length)) + message.dataStreams = []; + message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); break; case 2: - message.measurementId = reader.string(); - break; - case 3: - message.firebaseAppId = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; - case 6: - message.defaultUri = reader.string(); + default: + reader.skipType(tag & 7); break; - case 7: - message.displayName = reader.string(); + } + } + return message; + }; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataStreamsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataStreamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { + if (!Array.isArray(message.dataStreams)) + return "dataStreams: array expected"; + for (var i = 0; i < message.dataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStreams[i]); + if (error) + return "dataStreams." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + */ + ListDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); + if (object.dataStreams) { + if (!Array.isArray(object.dataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: array expected"); + message.dataStreams = []; + for (var i = 0; i < object.dataStreams.length; ++i) { + if (typeof object.dataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: object expected"); + message.dataStreams[i] = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStreams[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} message ListDataStreamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDataStreamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.dataStreams && message.dataStreams.length) { + object.dataStreams = []; + for (var j = 0; j < message.dataStreams.length; ++j) + object.dataStreams[j] = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStreams[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListDataStreamsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @instance + * @returns {Object.} JSON object + */ + ListDataStreamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListDataStreamsResponse; + })(); + + v1alpha.GetDataStreamRequest = (function() { + + /** + * Properties of a GetDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetDataStreamRequest + * @property {string|null} [name] GetDataStreamRequest name + */ + + /** + * Constructs a new GetDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetDataStreamRequest. + * @implements IGetDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + */ + function GetDataStreamRequest(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]]; + } + + /** + * GetDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @instance + */ + GetDataStreamRequest.prototype.name = ""; + + /** + * Creates a new GetDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest instance + */ + GetDataStreamRequest.create = function create(properties) { + return new GetDataStreamRequest(properties); + }; + + /** + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataStreamRequest.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 GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataStreamRequest.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.analytics.admin.v1alpha.GetDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -26589,146 +25961,3271 @@ }; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decodeDelimited = function decodeDelimited(reader) { + GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebDataStream message. + * Verifies a GetDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebDataStream.verify = function verify(message) { + GetDataStreamRequest.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.measurementId != null && message.hasOwnProperty("measurementId")) - if (!$util.isString(message.measurementId)) - return "measurementId: string expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - if (!$util.isString(message.defaultUri)) - return "defaultUri: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest */ - WebDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + GetDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); + var message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); if (object.name != null) message.name = String(object.name); - if (object.measurementId != null) - message.measurementId = String(object.measurementId); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.defaultUri != null) - message.defaultUri = String(object.defaultUri); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; - /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @static - * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WebDataStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.measurementId = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.defaultUri = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - object.measurementId = message.measurementId; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - object.defaultUri = message.defaultUri; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - return object; - }; + /** + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.GetDataStreamRequest} message GetDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataStreamRequest.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 GetDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataStreamRequest; + })(); + + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + + /** + * ServiceLevel enum. + * @name google.analytics.admin.v1alpha.ServiceLevel + * @enum {number} + * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value + * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value + */ + v1alpha.ServiceLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; + values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; + return values; + })(); + + /** + * ActorType enum. + * @name google.analytics.admin.v1alpha.ActorType + * @enum {number} + * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} SUPPORT=3 SUPPORT value + */ + v1alpha.ActorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "SUPPORT"] = 3; + return values; + })(); + + /** + * ActionType enum. + * @name google.analytics.admin.v1alpha.ActionType + * @enum {number} + * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value + * @property {number} CREATED=1 CREATED value + * @property {number} UPDATED=2 UPDATED value + * @property {number} DELETED=3 DELETED value + */ + v1alpha.ActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "UPDATED"] = 2; + values[valuesById[3] = "DELETED"] = 3; + return values; + })(); + + /** + * ChangeHistoryResourceType enum. + * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType + * @enum {number} + * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} ACCOUNT=1 ACCOUNT value + * @property {number} PROPERTY=2 PROPERTY value + * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value + * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value + * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value + * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value + * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value + * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value + * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value + * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value + * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value + * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value + * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK=14 DISPLAY_VIDEO_360_ADVERTISER_LINK value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL=15 DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL value + */ + v1alpha.ChangeHistoryResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACCOUNT"] = 1; + values[valuesById[2] = "PROPERTY"] = 2; + values[valuesById[3] = "WEB_DATA_STREAM"] = 3; + values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; + values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; + values[valuesById[6] = "FIREBASE_LINK"] = 6; + values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; + values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; + values[valuesById[9] = "CONVERSION_EVENT"] = 9; + values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; + values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; + values[valuesById[12] = "CUSTOM_METRIC"] = 12; + values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; + values[valuesById[14] = "DISPLAY_VIDEO_360_ADVERTISER_LINK"] = 14; + values[valuesById[15] = "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"] = 15; + return values; + })(); + + /** + * GoogleSignalsState enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsState + * @enum {number} + * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value + * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value + */ + v1alpha.GoogleSignalsState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; + values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; + return values; + })(); + + /** + * GoogleSignalsConsent enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsConsent + * @enum {number} + * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value + * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value + */ + v1alpha.GoogleSignalsConsent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; + values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; + values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; + return values; + })(); + + /** + * LinkProposalInitiatingProduct enum. + * @name google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + * @enum {number} + * @property {number} LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED=0 LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS=1 GOOGLE_ANALYTICS value + * @property {number} LINKED_PRODUCT=2 LINKED_PRODUCT value + */ + v1alpha.LinkProposalInitiatingProduct = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "LINKED_PRODUCT"] = 2; + return values; + })(); + + /** + * LinkProposalState enum. + * @name google.analytics.admin.v1alpha.LinkProposalState + * @enum {number} + * @property {number} LINK_PROPOSAL_STATE_UNSPECIFIED=0 LINK_PROPOSAL_STATE_UNSPECIFIED value + * @property {number} AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS=1 AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS value + * @property {number} AWAITING_REVIEW_FROM_LINKED_PRODUCT=2 AWAITING_REVIEW_FROM_LINKED_PRODUCT value + * @property {number} WITHDRAWN=3 WITHDRAWN value + * @property {number} DECLINED=4 DECLINED value + * @property {number} EXPIRED=5 EXPIRED value + * @property {number} OBSOLETE=6 OBSOLETE value + */ + v1alpha.LinkProposalState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "AWAITING_REVIEW_FROM_LINKED_PRODUCT"] = 2; + values[valuesById[3] = "WITHDRAWN"] = 3; + values[valuesById[4] = "DECLINED"] = 4; + values[valuesById[5] = "EXPIRED"] = 5; + values[valuesById[6] = "OBSOLETE"] = 6; + return values; + })(); + + v1alpha.Account = (function() { + + /** + * Properties of an Account. + * @memberof google.analytics.admin.v1alpha + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [regionCode] Account regionCode + * @property {boolean|null} [deleted] Account deleted + */ + + /** + * Constructs a new Account. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an Account. + * @implements IAccount + * @constructor + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.name = ""; + + /** + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.createTime = null; + + /** + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.updateTime = null; + + /** + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.displayName = ""; + + /** + * Account regionCode. + * @member {string} regionCode + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.regionCode = ""; + + /** + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.deleted = false; + + /** + * Creates a new Account instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance + */ + Account.create = function create(properties) { + return new Account(properties); + }; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + return writer; + }; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.displayName = reader.string(); + break; + case 5: + message.regionCode = reader.string(); + break; + case 6: + message.deleted = reader.bool(); + 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.analytics.admin.v1alpha.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; + return null; + }; + + /** + * Creates an Account message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Account} Account + */ + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) + return object; + var message = new $root.google.analytics.admin.v1alpha.Account(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + return message; + }; + + /** + * Creates a plain object from an Account message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Account + * @static + * @param {google.analytics.admin.v1alpha.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 = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.regionCode = ""; + object.deleted = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; + return object; + }; + + /** + * Converts this Account to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Account + * @instance + * @returns {Object.} JSON object + */ + Account.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Account; + })(); + + v1alpha.Property = (function() { + + /** + * Properties of a Property. + * @memberof google.analytics.admin.v1alpha + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {google.analytics.admin.v1alpha.ServiceLevel|null} [serviceLevel] Property serviceLevel + * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + * @property {string|null} [account] Property account + */ + + /** + * Constructs a new Property. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a Property. + * @implements IProperty + * @constructor + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + */ + function Property(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]]; + } + + /** + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.name = ""; + + /** + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.createTime = null; + + /** + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.updateTime = null; + + /** + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.parent = ""; + + /** + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.displayName = ""; + + /** + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.industryCategory = 0; + + /** + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property serviceLevel. + * @member {google.analytics.admin.v1alpha.ServiceLevel} serviceLevel + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.serviceLevel = 0; + + /** + * Property deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.deleteTime = null; + + /** + * Property expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.expireTime = null; + + /** + * Property account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.account = ""; + + /** + * Creates a new Property instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance + */ + Property.create = function create(properties) { + return new Property(properties); + }; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.account); + return writer; + }; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Property message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.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.analytics.admin.v1alpha.Property(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + case 5: + message.displayName = reader.string(); + break; + case 6: + message.industryCategory = reader.int32(); + break; + case 7: + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 10: + message.serviceLevel = reader.int32(); + break; + case 11: + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 13: + message.account = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Property message. + * @function verify + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Property.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + switch (message.serviceLevel) { + default: + return "serviceLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + return null; + }; + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Property} Property + */ + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) + return object; + var message = new $root.google.analytics.admin.v1alpha.Property(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": + case 0: + message.industryCategory = 0; + break; + case "AUTOMOTIVE": + case 1: + message.industryCategory = 1; + break; + case "BUSINESS_AND_INDUSTRIAL_MARKETS": + case 2: + message.industryCategory = 2; + break; + case "FINANCE": + case 3: + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; + break; + } + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + switch (object.serviceLevel) { + case "SERVICE_LEVEL_UNSPECIFIED": + case 0: + message.serviceLevel = 0; + break; + case "GOOGLE_ANALYTICS_STANDARD": + case 1: + message.serviceLevel = 1; + break; + case "GOOGLE_ANALYTICS_360": + case 2: + message.serviceLevel = 2; + break; + } + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + if (object.account != null) + message.account = String(object.account); + return message; + }; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Property.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parent = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; + object.deleteTime = null; + object.expireTime = null; + object.account = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + return object; + }; + + /** + * Converts this Property to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.Property + * @instance + * @returns {Object.} JSON object + */ + Property.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Property; + })(); + + v1alpha.AndroidAppDataStream = (function() { + + /** + * Properties of an AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IAndroidAppDataStream + * @property {string|null} [name] AndroidAppDataStream name + * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime + * @property {string|null} [packageName] AndroidAppDataStream packageName + * @property {string|null} [displayName] AndroidAppDataStream displayName + */ + + /** + * Constructs a new AndroidAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AndroidAppDataStream. + * @implements IAndroidAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + */ + function AndroidAppDataStream(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]]; + } + + /** + * AndroidAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.name = ""; + + /** + * AndroidAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.firebaseAppId = ""; + + /** + * AndroidAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.createTime = null; + + /** + * AndroidAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.updateTime = null; + + /** + * AndroidAppDataStream packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.packageName = ""; + + /** + * AndroidAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + */ + AndroidAppDataStream.prototype.displayName = ""; + + /** + * Creates a new AndroidAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + */ + AndroidAppDataStream.create = function create(properties) { + return new AndroidAppDataStream(properties); + }; + + /** + * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.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.analytics.admin.v1alpha.AndroidAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.packageName = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AndroidAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + */ + AndroidAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.packageName != null) + message.packageName = String(object.packageName); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.packageName = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this AndroidAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @instance + * @returns {Object.} JSON object + */ + AndroidAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AndroidAppDataStream; + })(); + + v1alpha.IosAppDataStream = (function() { + + /** + * Properties of an IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IIosAppDataStream + * @property {string|null} [name] IosAppDataStream name + * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime + * @property {string|null} [bundleId] IosAppDataStream bundleId + * @property {string|null} [displayName] IosAppDataStream displayName + */ + + /** + * Constructs a new IosAppDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an IosAppDataStream. + * @implements IIosAppDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + */ + function IosAppDataStream(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]]; + } + + /** + * IosAppDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.name = ""; + + /** + * IosAppDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.firebaseAppId = ""; + + /** + * IosAppDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.createTime = null; + + /** + * IosAppDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.updateTime = null; + + /** + * IosAppDataStream bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.bundleId = ""; + + /** + * IosAppDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + */ + IosAppDataStream.prototype.displayName = ""; + + /** + * Creates a new IosAppDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + */ + IosAppDataStream.create = function create(properties) { + return new IosAppDataStream(properties); + }; + + /** + * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.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.analytics.admin.v1alpha.IosAppDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.bundleId = reader.string(); + break; + case 6: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppDataStream.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + */ + IosAppDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @static + * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IosAppDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.bundleId = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this IosAppDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @instance + * @returns {Object.} JSON object + */ + IosAppDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IosAppDataStream; + })(); + + v1alpha.WebDataStream = (function() { + + /** + * Properties of a WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IWebDataStream + * @property {string|null} [name] WebDataStream name + * @property {string|null} [measurementId] WebDataStream measurementId + * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId + * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime + * @property {string|null} [defaultUri] WebDataStream defaultUri + * @property {string|null} [displayName] WebDataStream displayName + */ + + /** + * Constructs a new WebDataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a WebDataStream. + * @implements IWebDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + */ + function WebDataStream(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]]; + } + + /** + * WebDataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.name = ""; + + /** + * WebDataStream measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.measurementId = ""; + + /** + * WebDataStream firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.firebaseAppId = ""; + + /** + * WebDataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.createTime = null; + + /** + * WebDataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.updateTime = null; + + /** + * WebDataStream defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.defaultUri = ""; + + /** + * WebDataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + */ + WebDataStream.prototype.displayName = ""; + + /** + * Creates a new WebDataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + */ + WebDataStream.create = function create(properties) { + return new WebDataStream(properties); + }; + + /** + * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.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.analytics.admin.v1alpha.WebDataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.measurementId = reader.string(); + break; + case 3: + message.firebaseAppId = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.defaultUri = reader.string(); + break; + case 7: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebDataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WebDataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebDataStream.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.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + */ + WebDataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); + if (object.name != null) + message.name = String(object.name); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @static + * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebDataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.measurementId = ""; + object.firebaseAppId = ""; + object.createTime = null; + object.updateTime = null; + object.defaultUri = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this WebDataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.WebDataStream + * @instance + * @returns {Object.} JSON object + */ + WebDataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return WebDataStream; + })(); + + v1alpha.DataStream = (function() { + + /** + * Properties of a DataStream. + * @memberof google.analytics.admin.v1alpha + * @interface IDataStream + * @property {google.analytics.admin.v1alpha.DataStream.IWebStreamData|null} [webStreamData] DataStream webStreamData + * @property {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null} [androidAppStreamData] DataStream androidAppStreamData + * @property {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null} [iosAppStreamData] DataStream iosAppStreamData + * @property {string|null} [name] DataStream name + * @property {google.analytics.admin.v1alpha.DataStream.DataStreamType|null} [type] DataStream type + * @property {string|null} [displayName] DataStream displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] DataStream updateTime + */ + + /** + * Constructs a new DataStream. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DataStream. + * @implements IDataStream + * @constructor + * @param {google.analytics.admin.v1alpha.IDataStream=} [properties] Properties to set + */ + function DataStream(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]]; + } + + /** + * DataStream webStreamData. + * @member {google.analytics.admin.v1alpha.DataStream.IWebStreamData|null|undefined} webStreamData + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.webStreamData = null; + + /** + * DataStream androidAppStreamData. + * @member {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null|undefined} androidAppStreamData + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.androidAppStreamData = null; + + /** + * DataStream iosAppStreamData. + * @member {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null|undefined} iosAppStreamData + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.iosAppStreamData = null; + + /** + * DataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.name = ""; + + /** + * DataStream type. + * @member {google.analytics.admin.v1alpha.DataStream.DataStreamType} type + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.type = 0; + + /** + * DataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.displayName = ""; + + /** + * DataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.createTime = null; + + /** + * DataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.updateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DataStream streamData. + * @member {"webStreamData"|"androidAppStreamData"|"iosAppStreamData"|undefined} streamData + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + Object.defineProperty(DataStream.prototype, "streamData", { + get: $util.oneOfGetter($oneOfFields = ["webStreamData", "androidAppStreamData", "iosAppStreamData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {google.analytics.admin.v1alpha.IDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream instance + */ + DataStream.create = function create(properties) { + return new DataStream(properties); + }; + + /** + * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {google.analytics.admin.v1alpha.IDataStream} message DataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataStream.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.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.webStreamData != null && Object.hasOwnProperty.call(message, "webStreamData")) + $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.encode(message.webStreamData, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.androidAppStreamData != null && Object.hasOwnProperty.call(message, "androidAppStreamData")) + $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.encode(message.androidAppStreamData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.iosAppStreamData != null && Object.hasOwnProperty.call(message, "iosAppStreamData")) + $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.encode(message.iosAppStreamData, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {google.analytics.admin.v1alpha.IDataStream} message DataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataStream.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.analytics.admin.v1alpha.DataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 6: + message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.decode(reader, reader.uint32()); + break; + case 7: + message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); + break; + case 8: + message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.decode(reader, reader.uint32()); + break; + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataStream message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.verify(message.webStreamData); + if (error) + return "webStreamData." + error; + } + } + if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { + if (properties.streamData === 1) + return "streamData: multiple values"; + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify(message.androidAppStreamData); + if (error) + return "androidAppStreamData." + error; + } + } + if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { + if (properties.streamData === 1) + return "streamData: multiple values"; + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify(message.iosAppStreamData); + if (error) + return "iosAppStreamData." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; + + /** + * Creates a DataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream + */ + DataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataStream(); + if (object.webStreamData != null) { + if (typeof object.webStreamData !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.webStreamData: object expected"); + message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.fromObject(object.webStreamData); + } + if (object.androidAppStreamData != null) { + if (typeof object.androidAppStreamData !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.androidAppStreamData: object expected"); + message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.fromObject(object.androidAppStreamData); + } + if (object.iosAppStreamData != null) { + if (typeof object.iosAppStreamData !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.iosAppStreamData: object expected"); + message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.fromObject(object.iosAppStreamData); + } + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + case "DATA_STREAM_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "WEB_DATA_STREAM": + case 1: + message.type = 1; + break; + case "ANDROID_APP_DATA_STREAM": + case 2: + message.type = 2; + break; + case "IOS_APP_DATA_STREAM": + case 3: + message.type = 3; + break; + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; + + /** + * Creates a plain object from a DataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {google.analytics.admin.v1alpha.DataStream} message DataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "DATA_STREAM_TYPE_UNSPECIFIED" : 0; + object.displayName = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] : message.type; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { + object.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.toObject(message.webStreamData, options); + if (options.oneofs) + object.streamData = "webStreamData"; + } + if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { + object.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.toObject(message.androidAppStreamData, options); + if (options.oneofs) + object.streamData = "androidAppStreamData"; + } + if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { + object.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.toObject(message.iosAppStreamData, options); + if (options.oneofs) + object.streamData = "iosAppStreamData"; + } + return object; + }; + + /** + * Converts this DataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + * @returns {Object.} JSON object + */ + DataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + DataStream.WebStreamData = (function() { + + /** + * Properties of a WebStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @interface IWebStreamData + * @property {string|null} [measurementId] WebStreamData measurementId + * @property {string|null} [firebaseAppId] WebStreamData firebaseAppId + * @property {string|null} [defaultUri] WebStreamData defaultUri + */ + + /** + * Constructs a new WebStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @classdesc Represents a WebStreamData. + * @implements IWebStreamData + * @constructor + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData=} [properties] Properties to set + */ + function WebStreamData(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]]; + } + + /** + * WebStreamData measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @instance + */ + WebStreamData.prototype.measurementId = ""; + + /** + * WebStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @instance + */ + WebStreamData.prototype.firebaseAppId = ""; + + /** + * WebStreamData defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @instance + */ + WebStreamData.prototype.defaultUri = ""; + + /** + * Creates a new WebStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData instance + */ + WebStreamData.create = function create(properties) { + return new WebStreamData(properties); + }; + + /** + * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData} message WebStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultUri); + return writer; + }; + + /** + * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData} message WebStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebStreamData.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.analytics.admin.v1alpha.DataStream.WebStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.measurementId = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.defaultUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WebStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WebStreamData message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; + return null; + }; + + /** + * Creates a WebStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData + */ + WebStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.WebStreamData) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataStream.WebStreamData(); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); + return message; + }; + + /** + * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.WebStreamData} message WebStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.measurementId = ""; + object.firebaseAppId = ""; + object.defaultUri = ""; + } + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + return object; + }; + + /** + * Converts this WebStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @instance + * @returns {Object.} JSON object + */ + WebStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return WebStreamData; + })(); + + DataStream.AndroidAppStreamData = (function() { + + /** + * Properties of an AndroidAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @interface IAndroidAppStreamData + * @property {string|null} [firebaseAppId] AndroidAppStreamData firebaseAppId + * @property {string|null} [packageName] AndroidAppStreamData packageName + */ + + /** + * Constructs a new AndroidAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @classdesc Represents an AndroidAppStreamData. + * @implements IAndroidAppStreamData + * @constructor + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData=} [properties] Properties to set + */ + function AndroidAppStreamData(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]]; + } + + /** + * AndroidAppStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @instance + */ + AndroidAppStreamData.prototype.firebaseAppId = ""; + + /** + * AndroidAppStreamData packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @instance + */ + AndroidAppStreamData.prototype.packageName = ""; + + /** + * Creates a new AndroidAppStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData instance + */ + AndroidAppStreamData.create = function create(properties) { + return new AndroidAppStreamData(properties); + }; + + /** + * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.packageName); + return writer; + }; + + /** + * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppStreamData.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.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.firebaseAppId = reader.string(); + break; + case 2: + message.packageName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AndroidAppStreamData message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + return null; + }; + + /** + * Creates an AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + */ + AndroidAppStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.packageName != null) + message.packageName = String(object.packageName); + return message; + }; + + /** + * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} message AndroidAppStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.firebaseAppId = ""; + object.packageName = ""; + } + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + return object; + }; + + /** + * Converts this AndroidAppStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @instance + * @returns {Object.} JSON object + */ + AndroidAppStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AndroidAppStreamData; + })(); + + DataStream.IosAppStreamData = (function() { + + /** + * Properties of an IosAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @interface IIosAppStreamData + * @property {string|null} [firebaseAppId] IosAppStreamData firebaseAppId + * @property {string|null} [bundleId] IosAppStreamData bundleId + */ + + /** + * Constructs a new IosAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @classdesc Represents an IosAppStreamData. + * @implements IIosAppStreamData + * @constructor + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData=} [properties] Properties to set + */ + function IosAppStreamData(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]]; + } + + /** + * IosAppStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @instance + */ + IosAppStreamData.prototype.firebaseAppId = ""; + + /** + * IosAppStreamData bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @instance + */ + IosAppStreamData.prototype.bundleId = ""; + + /** + * Creates a new IosAppStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData instance + */ + IosAppStreamData.create = function create(properties) { + return new IosAppStreamData(properties); + }; + + /** + * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.bundleId); + return writer; + }; + + /** + * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppStreamData.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.analytics.admin.v1alpha.DataStream.IosAppStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.firebaseAppId = reader.string(); + break; + case 2: + message.bundleId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppStreamData message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + return null; + }; + + /** + * Creates an IosAppStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData + */ + IosAppStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + return message; + }; + + /** + * Creates a plain object from an IosAppStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} message IosAppStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IosAppStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.firebaseAppId = ""; + object.bundleId = ""; + } + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; + return object; + }; + + /** + * Converts this IosAppStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @instance + * @returns {Object.} JSON object + */ + IosAppStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IosAppStreamData; + })(); /** - * Converts this WebDataStream to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @instance - * @returns {Object.} JSON object + * DataStreamType enum. + * @name google.analytics.admin.v1alpha.DataStream.DataStreamType + * @enum {number} + * @property {number} DATA_STREAM_TYPE_UNSPECIFIED=0 DATA_STREAM_TYPE_UNSPECIFIED value + * @property {number} WEB_DATA_STREAM=1 WEB_DATA_STREAM value + * @property {number} ANDROID_APP_DATA_STREAM=2 ANDROID_APP_DATA_STREAM value + * @property {number} IOS_APP_DATA_STREAM=3 IOS_APP_DATA_STREAM value */ - WebDataStream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + DataStream.DataStreamType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_STREAM_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "WEB_DATA_STREAM"] = 1; + values[valuesById[2] = "ANDROID_APP_DATA_STREAM"] = 2; + values[valuesById[3] = "IOS_APP_DATA_STREAM"] = 3; + return values; + })(); - return WebDataStream; + return DataStream; })(); v1alpha.UserLink = (function() { @@ -27268,436 +29765,6 @@ return AuditUserLink; })(); - v1alpha.EnhancedMeasurementSettings = (function() { - - /** - * Properties of an EnhancedMeasurementSettings. - * @memberof google.analytics.admin.v1alpha - * @interface IEnhancedMeasurementSettings - * @property {string|null} [name] EnhancedMeasurementSettings name - * @property {boolean|null} [streamEnabled] EnhancedMeasurementSettings streamEnabled - * @property {boolean|null} [pageViewsEnabled] EnhancedMeasurementSettings pageViewsEnabled - * @property {boolean|null} [scrollsEnabled] EnhancedMeasurementSettings scrollsEnabled - * @property {boolean|null} [outboundClicksEnabled] EnhancedMeasurementSettings outboundClicksEnabled - * @property {boolean|null} [siteSearchEnabled] EnhancedMeasurementSettings siteSearchEnabled - * @property {boolean|null} [videoEngagementEnabled] EnhancedMeasurementSettings videoEngagementEnabled - * @property {boolean|null} [fileDownloadsEnabled] EnhancedMeasurementSettings fileDownloadsEnabled - * @property {boolean|null} [pageLoadsEnabled] EnhancedMeasurementSettings pageLoadsEnabled - * @property {boolean|null} [pageChangesEnabled] EnhancedMeasurementSettings pageChangesEnabled - * @property {string|null} [searchQueryParameter] EnhancedMeasurementSettings searchQueryParameter - * @property {string|null} [uriQueryParameter] EnhancedMeasurementSettings uriQueryParameter - */ - - /** - * Constructs a new EnhancedMeasurementSettings. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an EnhancedMeasurementSettings. - * @implements IEnhancedMeasurementSettings - * @constructor - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set - */ - function EnhancedMeasurementSettings(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]]; - } - - /** - * EnhancedMeasurementSettings name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.name = ""; - - /** - * EnhancedMeasurementSettings streamEnabled. - * @member {boolean} streamEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.streamEnabled = false; - - /** - * EnhancedMeasurementSettings pageViewsEnabled. - * @member {boolean} pageViewsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageViewsEnabled = false; - - /** - * EnhancedMeasurementSettings scrollsEnabled. - * @member {boolean} scrollsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.scrollsEnabled = false; - - /** - * EnhancedMeasurementSettings outboundClicksEnabled. - * @member {boolean} outboundClicksEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.outboundClicksEnabled = false; - - /** - * EnhancedMeasurementSettings siteSearchEnabled. - * @member {boolean} siteSearchEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.siteSearchEnabled = false; - - /** - * EnhancedMeasurementSettings videoEngagementEnabled. - * @member {boolean} videoEngagementEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.videoEngagementEnabled = false; - - /** - * EnhancedMeasurementSettings fileDownloadsEnabled. - * @member {boolean} fileDownloadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.fileDownloadsEnabled = false; - - /** - * EnhancedMeasurementSettings pageLoadsEnabled. - * @member {boolean} pageLoadsEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageLoadsEnabled = false; - - /** - * EnhancedMeasurementSettings pageChangesEnabled. - * @member {boolean} pageChangesEnabled - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.pageChangesEnabled = false; - - /** - * EnhancedMeasurementSettings searchQueryParameter. - * @member {string} searchQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.searchQueryParameter = ""; - - /** - * EnhancedMeasurementSettings uriQueryParameter. - * @member {string} uriQueryParameter - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - */ - EnhancedMeasurementSettings.prototype.uriQueryParameter = ""; - - /** - * Creates a new EnhancedMeasurementSettings instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings instance - */ - EnhancedMeasurementSettings.create = function create(properties) { - return new EnhancedMeasurementSettings(properties); - }; - - /** - * Encodes the specified EnhancedMeasurementSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnhancedMeasurementSettings.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.streamEnabled != null && Object.hasOwnProperty.call(message, "streamEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnabled); - if (message.pageViewsEnabled != null && Object.hasOwnProperty.call(message, "pageViewsEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.pageViewsEnabled); - if (message.scrollsEnabled != null && Object.hasOwnProperty.call(message, "scrollsEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.scrollsEnabled); - if (message.outboundClicksEnabled != null && Object.hasOwnProperty.call(message, "outboundClicksEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.outboundClicksEnabled); - if (message.siteSearchEnabled != null && Object.hasOwnProperty.call(message, "siteSearchEnabled")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.siteSearchEnabled); - if (message.videoEngagementEnabled != null && Object.hasOwnProperty.call(message, "videoEngagementEnabled")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.videoEngagementEnabled); - if (message.fileDownloadsEnabled != null && Object.hasOwnProperty.call(message, "fileDownloadsEnabled")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.fileDownloadsEnabled); - if (message.pageLoadsEnabled != null && Object.hasOwnProperty.call(message, "pageLoadsEnabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.pageLoadsEnabled); - if (message.pageChangesEnabled != null && Object.hasOwnProperty.call(message, "pageChangesEnabled")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.pageChangesEnabled); - if (message.searchQueryParameter != null && Object.hasOwnProperty.call(message, "searchQueryParameter")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.searchQueryParameter); - if (message.uriQueryParameter != null && Object.hasOwnProperty.call(message, "uriQueryParameter")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.uriQueryParameter); - return writer; - }; - - /** - * Encodes the specified EnhancedMeasurementSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings} message EnhancedMeasurementSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnhancedMeasurementSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnhancedMeasurementSettings.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.analytics.admin.v1alpha.EnhancedMeasurementSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.streamEnabled = reader.bool(); - break; - case 3: - message.pageViewsEnabled = reader.bool(); - break; - case 4: - message.scrollsEnabled = reader.bool(); - break; - case 5: - message.outboundClicksEnabled = reader.bool(); - break; - case 7: - message.siteSearchEnabled = reader.bool(); - break; - case 9: - message.videoEngagementEnabled = reader.bool(); - break; - case 10: - message.fileDownloadsEnabled = reader.bool(); - break; - case 12: - message.pageLoadsEnabled = reader.bool(); - break; - case 13: - message.pageChangesEnabled = reader.bool(); - break; - case 16: - message.searchQueryParameter = reader.string(); - break; - case 17: - message.uriQueryParameter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnhancedMeasurementSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnhancedMeasurementSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnhancedMeasurementSettings message. - * @function verify - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnhancedMeasurementSettings.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.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - if (typeof message.streamEnabled !== "boolean") - return "streamEnabled: boolean expected"; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - if (typeof message.pageViewsEnabled !== "boolean") - return "pageViewsEnabled: boolean expected"; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - if (typeof message.scrollsEnabled !== "boolean") - return "scrollsEnabled: boolean expected"; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - if (typeof message.outboundClicksEnabled !== "boolean") - return "outboundClicksEnabled: boolean expected"; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - if (typeof message.siteSearchEnabled !== "boolean") - return "siteSearchEnabled: boolean expected"; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - if (typeof message.videoEngagementEnabled !== "boolean") - return "videoEngagementEnabled: boolean expected"; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - if (typeof message.fileDownloadsEnabled !== "boolean") - return "fileDownloadsEnabled: boolean expected"; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - if (typeof message.pageLoadsEnabled !== "boolean") - return "pageLoadsEnabled: boolean expected"; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - if (typeof message.pageChangesEnabled !== "boolean") - return "pageChangesEnabled: boolean expected"; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - if (!$util.isString(message.searchQueryParameter)) - return "searchQueryParameter: string expected"; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - if (!$util.isString(message.uriQueryParameter)) - return "uriQueryParameter: string expected"; - return null; - }; - - /** - * Creates an EnhancedMeasurementSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} EnhancedMeasurementSettings - */ - EnhancedMeasurementSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) - return object; - var message = new $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.streamEnabled != null) - message.streamEnabled = Boolean(object.streamEnabled); - if (object.pageViewsEnabled != null) - message.pageViewsEnabled = Boolean(object.pageViewsEnabled); - if (object.scrollsEnabled != null) - message.scrollsEnabled = Boolean(object.scrollsEnabled); - if (object.outboundClicksEnabled != null) - message.outboundClicksEnabled = Boolean(object.outboundClicksEnabled); - if (object.siteSearchEnabled != null) - message.siteSearchEnabled = Boolean(object.siteSearchEnabled); - if (object.videoEngagementEnabled != null) - message.videoEngagementEnabled = Boolean(object.videoEngagementEnabled); - if (object.fileDownloadsEnabled != null) - message.fileDownloadsEnabled = Boolean(object.fileDownloadsEnabled); - if (object.pageLoadsEnabled != null) - message.pageLoadsEnabled = Boolean(object.pageLoadsEnabled); - if (object.pageChangesEnabled != null) - message.pageChangesEnabled = Boolean(object.pageChangesEnabled); - if (object.searchQueryParameter != null) - message.searchQueryParameter = String(object.searchQueryParameter); - if (object.uriQueryParameter != null) - message.uriQueryParameter = String(object.uriQueryParameter); - return message; - }; - - /** - * Creates a plain object from an EnhancedMeasurementSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @static - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} message EnhancedMeasurementSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnhancedMeasurementSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.streamEnabled = false; - object.pageViewsEnabled = false; - object.scrollsEnabled = false; - object.outboundClicksEnabled = false; - object.siteSearchEnabled = false; - object.videoEngagementEnabled = false; - object.fileDownloadsEnabled = false; - object.pageLoadsEnabled = false; - object.pageChangesEnabled = false; - object.searchQueryParameter = ""; - object.uriQueryParameter = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.streamEnabled != null && message.hasOwnProperty("streamEnabled")) - object.streamEnabled = message.streamEnabled; - if (message.pageViewsEnabled != null && message.hasOwnProperty("pageViewsEnabled")) - object.pageViewsEnabled = message.pageViewsEnabled; - if (message.scrollsEnabled != null && message.hasOwnProperty("scrollsEnabled")) - object.scrollsEnabled = message.scrollsEnabled; - if (message.outboundClicksEnabled != null && message.hasOwnProperty("outboundClicksEnabled")) - object.outboundClicksEnabled = message.outboundClicksEnabled; - if (message.siteSearchEnabled != null && message.hasOwnProperty("siteSearchEnabled")) - object.siteSearchEnabled = message.siteSearchEnabled; - if (message.videoEngagementEnabled != null && message.hasOwnProperty("videoEngagementEnabled")) - object.videoEngagementEnabled = message.videoEngagementEnabled; - if (message.fileDownloadsEnabled != null && message.hasOwnProperty("fileDownloadsEnabled")) - object.fileDownloadsEnabled = message.fileDownloadsEnabled; - if (message.pageLoadsEnabled != null && message.hasOwnProperty("pageLoadsEnabled")) - object.pageLoadsEnabled = message.pageLoadsEnabled; - if (message.pageChangesEnabled != null && message.hasOwnProperty("pageChangesEnabled")) - object.pageChangesEnabled = message.pageChangesEnabled; - if (message.searchQueryParameter != null && message.hasOwnProperty("searchQueryParameter")) - object.searchQueryParameter = message.searchQueryParameter; - if (message.uriQueryParameter != null && message.hasOwnProperty("uriQueryParameter")) - object.uriQueryParameter = message.uriQueryParameter; - return object; - }; - - /** - * Converts this EnhancedMeasurementSettings to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.EnhancedMeasurementSettings - * @instance - * @returns {Object.} JSON object - */ - EnhancedMeasurementSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EnhancedMeasurementSettings; - })(); - v1alpha.FirebaseLink = (function() { /** diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 49a5d783e76..90dcaa4fe6d 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -676,44 +676,6 @@ } ] }, - "GetEnhancedMeasurementSettings": { - "requestType": "GetEnhancedMeasurementSettingsRequest", - "responseType": "EnhancedMeasurementSettings", - "options": { - "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "UpdateEnhancedMeasurementSettings": { - "requestType": "UpdateEnhancedMeasurementSettingsRequest", - "responseType": "EnhancedMeasurementSettings", - "options": { - "(google.api.http).patch": "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", - "(google.api.http).body": "enhanced_measurement_settings", - "(google.api.method_signature)": "enhanced_measurement_settings,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}", - "body": "enhanced_measurement_settings" - } - }, - { - "(google.api.method_signature)": "enhanced_measurement_settings,update_mask" - } - ] - }, "CreateFirebaseLink": { "requestType": "CreateFirebaseLinkRequest", "responseType": "FirebaseLink", @@ -1027,6 +989,22 @@ } ] }, + "AcknowledgeUserDataCollection": { + "requestType": "AcknowledgeUserDataCollectionRequest", + "responseType": "AcknowledgeUserDataCollectionResponse", + "options": { + "(google.api.http).post": "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection", + "body": "*" + } + } + ] + }, "SearchChangeHistoryEvents": { "requestType": "SearchChangeHistoryEventsRequest", "responseType": "SearchChangeHistoryEventsResponse", @@ -1584,6 +1562,100 @@ "(google.api.method_signature)": "data_retention_settings,update_mask" } ] + }, + "CreateDataStream": { + "requestType": "CreateDataStreamRequest", + "responseType": "DataStream", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/dataStreams", + "(google.api.http).body": "data_stream", + "(google.api.method_signature)": "parent,data_stream" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/dataStreams", + "body": "data_stream" + } + }, + { + "(google.api.method_signature)": "parent,data_stream" + } + ] + }, + "DeleteDataStream": { + "requestType": "DeleteDataStreamRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/dataStreams/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/dataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateDataStream": { + "requestType": "UpdateDataStreamRequest", + "responseType": "DataStream", + "options": { + "(google.api.http).patch": "/v1alpha/{data_stream.name=properties/*/dataStreams/*}", + "(google.api.http).body": "data_stream", + "(google.api.method_signature)": "data_stream,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{data_stream.name=properties/*/dataStreams/*}", + "body": "data_stream" + } + }, + { + "(google.api.method_signature)": "data_stream,update_mask" + } + ] + }, + "ListDataStreams": { + "requestType": "ListDataStreamsRequest", + "responseType": "ListDataStreamsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/dataStreams", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/dataStreams" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetDataStream": { + "requestType": "GetDataStreamRequest", + "responseType": "DataStream", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/dataStreams/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/dataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, @@ -2253,36 +2325,6 @@ } } }, - "GetEnhancedMeasurementSettingsRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" - } - } - } - }, - "UpdateEnhancedMeasurementSettingsRequest": { - "fields": { - "enhancedMeasurementSettings": { - "type": "EnhancedMeasurementSettings", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, "CreateFirebaseLinkRequest": { "fields": { "parent": { @@ -2475,6 +2517,28 @@ } } }, + "AcknowledgeUserDataCollectionRequest": { + "fields": { + "property": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + }, + "acknowledgement": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "AcknowledgeUserDataCollectionResponse": { + "fields": {} + }, "SearchChangeHistoryEventsRequest": { "fields": { "account": { @@ -3168,6 +3232,97 @@ } } }, + "CreateDataStreamRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + } + }, + "dataStream": { + "type": "DataStream", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + } + } + } + }, + "UpdateDataStreamRequest": { + "fields": { + "dataStream": { + "type": "DataStream", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListDataStreamsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDataStreamsResponse": { + "fields": { + "dataStreams": { + "rule": "repeated", + "type": "DataStream", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + } + } + } + }, "IndustryCategory": { "values": { "INDUSTRY_CATEGORY_UNSPECIFIED": 0, @@ -3237,7 +3392,9 @@ "MEASUREMENT_PROTOCOL_SECRET": 10, "CUSTOM_DIMENSION": 11, "CUSTOM_METRIC": 12, - "DATA_RETENTION_SETTINGS": 13 + "DATA_RETENTION_SETTINGS": 13, + "DISPLAY_VIDEO_360_ADVERTISER_LINK": 14, + "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": 15 } }, "GoogleSignalsState": { @@ -3395,6 +3552,14 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "account": { + "type": "string", + "id": 13, + "options": { + "(google.api.field_behavior)": "IMMUTABLE", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } } } }, @@ -3549,6 +3714,138 @@ } } }, + "DataStream": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DataStream", + "(google.api.resource).pattern": "properties/{property}/dataStreams/{data_stream}" + }, + "oneofs": { + "streamData": { + "oneof": [ + "webStreamData", + "androidAppStreamData", + "iosAppStreamData" + ] + } + }, + "fields": { + "webStreamData": { + "type": "WebStreamData", + "id": 6 + }, + "androidAppStreamData": { + "type": "AndroidAppStreamData", + "id": 7 + }, + "iosAppStreamData": { + "type": "IosAppStreamData", + "id": 8 + }, + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "type": { + "type": "DataStreamType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "displayName": { + "type": "string", + "id": 3 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "WebStreamData": { + "fields": { + "measurementId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "firebaseAppId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "defaultUri": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "AndroidAppStreamData": { + "fields": { + "firebaseAppId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "packageName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "IosAppStreamData": { + "fields": { + "firebaseAppId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "bundleId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DataStreamType": { + "values": { + "DATA_STREAM_TYPE_UNSPECIFIED": 0, + "WEB_DATA_STREAM": 1, + "ANDROID_APP_DATA_STREAM": 2, + "IOS_APP_DATA_STREAM": 3 + } + } + } + }, "UserLink": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/UserLink", @@ -3598,74 +3895,6 @@ } } }, - "EnhancedMeasurementSettings": { - "options": { - "(google.api.resource).type": "analyticsadmin.googleapis.com/EnhancedMeasurementSettings", - "(google.api.resource).pattern": "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "streamEnabled": { - "type": "bool", - "id": 2 - }, - "pageViewsEnabled": { - "type": "bool", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "scrollsEnabled": { - "type": "bool", - "id": 4 - }, - "outboundClicksEnabled": { - "type": "bool", - "id": 5 - }, - "siteSearchEnabled": { - "type": "bool", - "id": 7 - }, - "videoEngagementEnabled": { - "type": "bool", - "id": 9 - }, - "fileDownloadsEnabled": { - "type": "bool", - "id": 10 - }, - "pageLoadsEnabled": { - "type": "bool", - "id": 12, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "pageChangesEnabled": { - "type": "bool", - "id": 13 - }, - "searchQueryParameter": { - "type": "string", - "id": 16, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "uriQueryParameter": { - "type": "string", - "id": 17 - } - } - }, "FirebaseLink": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/FirebaseLink", diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js new file mode 100644 index 00000000000..7fed67bcfac --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +'use strict'; + +function main(property, acknowledgement) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The property for which to acknowledge user data collection. + */ + // const property = 'abc123' + /** + * Required. An acknowledgement that the caller of this method understands the terms + * of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + */ + // const acknowledgement = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callAcknowledgeUserDataCollection() { + // Construct request + const request = { + property, + acknowledgement, + }; + + // Run request + const response = await adminClient.acknowledgeUserDataCollection(request); + console.log(response); + } + + callAcknowledgeUserDataCollection(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js index 6494128baa8..7fc00a94def 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -39,8 +39,7 @@ function main(name) { }; // Run request - const response = - await adminClient.approveDisplayVideo360AdvertiserLinkProposal(request); + const response = await adminClient.approveDisplayVideo360AdvertiserLinkProposal(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js index 00088c99c9f..732d54fe56d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js index 47d98b674c6..6a1f26bbc5b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js index 097b076144f..e0ae6fa81e6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -39,8 +40,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -54,7 +54,7 @@ function main(parent) { // Run request const iterable = await adminClient.auditUserLinksAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js index 9c73c1a6cd9..adabf63ba54 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, requests) { @@ -39,8 +40,7 @@ function main(parent, requests) { // const requests = 1234 // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js index 4cf576d63a9..71a6d938923 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, requests) { @@ -33,8 +34,7 @@ function main(parent, requests) { // const requests = 1234 // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js index a7e2a509049..020d39cc6bf 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, names) { @@ -34,8 +35,7 @@ function main(parent, names) { // const names = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js index d137ee51751..6935da0adbb 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, requests) { @@ -33,8 +34,7 @@ function main(parent, requests) { // const requests = 1234 // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js index db8fbe06d98..961bbcd6790 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -39,8 +39,7 @@ function main(name) { }; // Run request - const response = - await adminClient.cancelDisplayVideo360AdvertiserLinkProposal(request); + const response = await adminClient.cancelDisplayVideo360AdvertiserLinkProposal(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js index bcdfe9e10a1..1fe1ebcf75a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(conversionEvent, parent) { @@ -30,8 +31,7 @@ function main(conversionEvent, parent) { // const parent = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js index 51006bbe528..6645dbc0460 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, customDimension) { @@ -29,8 +30,7 @@ function main(parent, customDimension) { // const customDimension = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js index 263bc9633c4..14fb89fd972 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, customMetric) { @@ -29,8 +30,7 @@ function main(parent, customMetric) { // const customMetric = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js new file mode 100644 index 00000000000..12713154468 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +'use strict'; + +function main(parent, dataStream) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The DataStream to create. + */ + // const dataStream = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateDataStream() { + // Construct request + const request = { + parent, + dataStream, + }; + + // Run request + const response = await adminClient.createDataStream(request); + console.log(response); + } + + callCreateDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js index c4575d7c454..2688f8f863f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, displayVideo_360AdvertiserLink) { @@ -29,8 +30,7 @@ function main(parent, displayVideo_360AdvertiserLink) { // const displayVideo_360AdvertiserLink = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -43,9 +43,7 @@ function main(parent, displayVideo_360AdvertiserLink) { }; // Run request - const response = await adminClient.createDisplayVideo360AdvertiserLink( - request - ); + const response = await adminClient.createDisplayVideo360AdvertiserLink(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js index 2be0ad80460..09e43599819 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, displayVideo_360AdvertiserLinkProposal) { @@ -29,8 +30,7 @@ function main(parent, displayVideo_360AdvertiserLinkProposal) { // const displayVideo_360AdvertiserLinkProposal = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -43,8 +43,7 @@ function main(parent, displayVideo_360AdvertiserLinkProposal) { }; // Run request - const response = - await adminClient.createDisplayVideo360AdvertiserLinkProposal(request); + const response = await adminClient.createDisplayVideo360AdvertiserLinkProposal(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js index 648fcdce1e6..4c4d25da226 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, firebaseLink) { @@ -30,8 +31,7 @@ function main(parent, firebaseLink) { // const firebaseLink = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js index c5b759b21f2..6669a769a86 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, googleAdsLink) { @@ -29,8 +30,7 @@ function main(parent, googleAdsLink) { // const googleAdsLink = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js index 87442aa1c86..eb87c5930ef 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, measurementProtocolSecret) { @@ -32,8 +33,7 @@ function main(parent, measurementProtocolSecret) { // const measurementProtocolSecret = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js index be94a13f11d..408aa42e8a9 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(property) { @@ -26,8 +27,7 @@ function main(property) { // const property = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js index 54d70e01f7b..70a48b9c0b6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, userLink) { @@ -34,8 +35,7 @@ function main(parent, userLink) { // const userLink = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js index 2fce4267ca2..52331de1013 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(webDataStream, parent) { @@ -30,8 +31,7 @@ function main(webDataStream, parent) { // const parent = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js index 7c9d5624c96..6f53e221918 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js index 71e23d4c5ca..84388f4015f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js index 5db0f4f69d7..e64fb451593 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js new file mode 100644 index 00000000000..4f0d5d7906f --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteDataStream(request); + console.log(response); + } + + callDeleteDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js index a755daeb51a..e87904f4d05 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -39,9 +39,7 @@ function main(name) { }; // Run request - const response = await adminClient.deleteDisplayVideo360AdvertiserLink( - request - ); + const response = await adminClient.deleteDisplayVideo360AdvertiserLink(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js index c5812e7d3e8..59961d38e79 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -39,8 +39,7 @@ function main(name) { }; // Run request - const response = - await adminClient.deleteDisplayVideo360AdvertiserLinkProposal(request); + const response = await adminClient.deleteDisplayVideo360AdvertiserLinkProposal(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js index 9a7d4384f5c..8105bf895f0 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js index 219d7b51726..bd1dd495f44 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -25,8 +26,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js index 019c83ba78d..a24b2e75973 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js index 0d79b604954..b3faa5de66e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -29,8 +30,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js index 2dab976cfd7..23555331f54 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js index aca0d56f99b..7a22875ee5a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -25,8 +26,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js index 7dd89ad313c..200ddafccad 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js index 9e63591e0bf..3593d4c3130 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js index db6c77016ff..c8c33224715 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js index 4884855a9ff..a79201b10df 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js index adc01bc1638..d2420f176a4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js index d03e8113e44..a837094c27e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js index 6a6d36f78d5..9c054e1f6d4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -28,8 +29,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js index 1328a811567..9a23c6f3818 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js new file mode 100644 index 00000000000..cc891e41cb1 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDataStream(request); + console.log(response); + } + + callGetDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js index 8acfdefa6fb..6925299ca44 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -39,9 +39,7 @@ function main(name) { }; // Run request - const response = await adminClient.getDisplayVideo360AdvertiserLink( - request - ); + const response = await adminClient.getDisplayVideo360AdvertiserLink(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js index 8ee1709276a..7f4f02b2e1b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -39,9 +39,7 @@ function main(name) { }; // Run request - const response = await adminClient.getDisplayVideo360AdvertiserLinkProposal( - request - ); + const response = await adminClient.getDisplayVideo360AdvertiserLinkProposal(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js index eee57f0c0ba..7abeb9362a9 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -28,8 +29,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js index 386da9d6ed7..968e70123a4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js index 9bd97186929..39ae8df45cd 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js index f1c824c9125..d97a2ce1e24 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -29,8 +30,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js index 7ece6bf9529..9fced3ccade 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js index a70092bf420..50a0e70a18e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -25,8 +26,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js index 24e9071c4c5..83b948039a1 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js index 43780091071..a7ab7383b4d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -35,20 +36,20 @@ function main() { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); async function callListAccountSummaries() { // Construct request - const request = {}; + const request = { + }; // Run request const iterable = await adminClient.listAccountSummariesAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js index 56031cfaa69..dfade9dd3a1 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -41,20 +42,20 @@ function main() { // const showDeleted = true // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); async function callListAccounts() { // Construct request - const request = {}; + const request = { + }; // Run request const iterable = await adminClient.listAccountsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js index d190b138c03..b03e4c67f32 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -41,8 +42,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -56,7 +56,7 @@ function main(parent) { // Run request const iterable = await adminClient.listAndroidAppDataStreamsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js index 37365768f23..51c4ce6d91b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -39,8 +40,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -54,7 +54,7 @@ function main(parent) { // Run request const iterable = await adminClient.listConversionEventsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js index 14a7e94a0aa..7c5acd38275 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -38,8 +39,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -53,7 +53,7 @@ function main(parent) { // Run request const iterable = await adminClient.listCustomDimensionsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js index eea66cfa550..817bf631245 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -38,8 +39,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -53,7 +53,7 @@ function main(parent) { // Run request const iterable = await adminClient.listCustomMetricsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js new file mode 100644 index 00000000000..840d5fc2442 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListDataStreams() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listDataStreamsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDataStreams(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js index 6c934648c20..34ce44cd473 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -40,8 +41,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -53,12 +53,9 @@ function main(parent) { }; // Run request - const iterable = - await adminClient.listDisplayVideo360AdvertiserLinkProposalsAsync( - request - ); + const iterable = await adminClient.listDisplayVideo360AdvertiserLinkProposalsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js index a4a9dc5deb6..91c1553e49e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -39,8 +40,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -52,11 +52,9 @@ function main(parent) { }; // Run request - const iterable = await adminClient.listDisplayVideo360AdvertiserLinksAsync( - request - ); + const iterable = await adminClient.listDisplayVideo360AdvertiserLinksAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js index db5f149d2e8..0fe813bd42a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -40,8 +41,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -55,7 +55,7 @@ function main(parent) { // Run request const iterable = await adminClient.listFirebaseLinksAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js index 6112d8be8e3..02a870b7339 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -38,8 +39,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -53,7 +53,7 @@ function main(parent) { // Run request const iterable = await adminClient.listGoogleAdsLinksAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js index 8b124278207..c842d07e0b6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -40,8 +41,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -55,7 +55,7 @@ function main(parent) { // Run request const iterable = await adminClient.listIosAppDataStreamsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js index f9b08184faf..02c93177f9f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -42,8 +43,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -55,11 +55,9 @@ function main(parent) { }; // Run request - const iterable = await adminClient.listMeasurementProtocolSecretsAsync( - request - ); + const iterable = await adminClient.listMeasurementProtocolSecretsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js index 7b7c790dd97..ae925cf3424 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(filter) { @@ -56,8 +57,7 @@ function main(filter) { // const showDeleted = true // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -71,7 +71,7 @@ function main(filter) { // Run request const iterable = await adminClient.listPropertiesAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js index 95f74e889ce..18ea8de73f4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -39,8 +40,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -54,7 +54,7 @@ function main(parent) { // Run request const iterable = await adminClient.listUserLinksAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js index d965d33b929..880e4f7d023 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -40,8 +41,7 @@ function main(parent) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -55,7 +55,7 @@ function main(parent) { // Run request const iterable = await adminClient.listWebDataStreamsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js index d37b256ebac..3a158ddb3a1 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -30,15 +31,15 @@ function main() { // const redirectUri = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); async function callProvisionAccountTicket() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await adminClient.provisionAccountTicket(request); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js index d009708ad2a..4d6360a037e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(account) { @@ -66,8 +67,7 @@ function main(account) { // const pageToken = 'abc123' // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -81,7 +81,7 @@ function main(account) { // Run request const iterable = await adminClient.searchChangeHistoryEventsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js index a1bdc474cc1..c81fa97d3e4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(account, updateMask) { @@ -32,8 +33,7 @@ function main(account, updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js index 572753b7872..2302eb2d587 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(androidAppDataStream, updateMask) { @@ -32,8 +33,7 @@ function main(androidAppDataStream, updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js index 02573cab1e7..759d441c197 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(updateMask) { @@ -31,8 +32,7 @@ function main(updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js index be6f1d9b298..d79d62b6beb 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(updateMask) { @@ -31,8 +32,7 @@ function main(updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js index f56ecc6fb51..d1822d11328 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(dataRetentionSettings, updateMask) { @@ -32,8 +33,7 @@ function main(dataRetentionSettings, updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js new file mode 100644 index 00000000000..f3b93594b80 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +'use strict'; + +function main(updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The DataStream to update + */ + // const dataStream = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateDataStream() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateDataStream(request); + console.log(response); + } + + callUpdateDataStream(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js index 3d8a74acad6..3040260f02b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(updateMask) { @@ -31,8 +32,7 @@ function main(updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); @@ -44,9 +44,7 @@ function main(updateMask) { }; // Run request - const response = await adminClient.updateDisplayVideo360AdvertiserLink( - request - ); + const response = await adminClient.updateDisplayVideo360AdvertiserLink(request); console.log(response); } diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js index a5ab0b976f9..1dee702ef3b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(updateMask) { @@ -31,8 +32,7 @@ function main(updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js index 29452bf3d2f..27993f209c8 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(googleSignalsSettings, updateMask) { @@ -32,8 +33,7 @@ function main(googleSignalsSettings, updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js index f0aff2733ca..4aeb6c6a154 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(iosAppDataStream, updateMask) { @@ -32,8 +33,7 @@ function main(iosAppDataStream, updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js index 2ce9f85b8ff..e929f72e94d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(measurementProtocolSecret) { @@ -29,8 +30,7 @@ function main(measurementProtocolSecret) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js index fad131a0e0c..ca6ded4e5c3 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(property, updateMask) { @@ -33,8 +34,7 @@ function main(property, updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js index 9887a7ad831..fee280cbe0b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(userLink) { @@ -25,8 +26,7 @@ function main(userLink) { // const userLink = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js index 3679b0207a4..f2b2ec6b9b4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(webDataStream, updateMask) { @@ -32,8 +33,7 @@ function main(webDataStream, updateMask) { // const updateMask = {} // Imports the Admin library - const {AnalyticsAdminServiceClient} = - require('@google-analytics/admin').v1alpha; + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; // Instantiates a client const adminClient = new AnalyticsAdminServiceClient(); diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index b7954490e01..8ddceac5409 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -192,6 +192,9 @@ export class AnalyticsAdminServiceClient { dataSharingSettingsPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}/dataSharingSettings' ), + dataStreamPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/dataStreams/{data_stream}' + ), displayVideo360AdvertiserLinkPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}' @@ -200,9 +203,6 @@ export class AnalyticsAdminServiceClient { new this._gaxModule.PathTemplate( 'properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}' ), - enhancedMeasurementSettingsPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings' - ), firebaseLinkPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/firebaseLinks/{firebase_link}' ), @@ -322,6 +322,11 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'customMetrics' ), + listDataStreams: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'dataStreams' + ), }; // Put together the default options sent with requests. @@ -409,8 +414,6 @@ export class AnalyticsAdminServiceClient { 'deleteAndroidAppDataStream', 'updateAndroidAppDataStream', 'listAndroidAppDataStreams', - 'getEnhancedMeasurementSettings', - 'updateEnhancedMeasurementSettings', 'createFirebaseLink', 'deleteFirebaseLink', 'listFirebaseLinks', @@ -425,6 +428,7 @@ export class AnalyticsAdminServiceClient { 'createMeasurementProtocolSecret', 'deleteMeasurementProtocolSecret', 'updateMeasurementProtocolSecret', + 'acknowledgeUserDataCollection', 'searchChangeHistoryEvents', 'getGoogleSignalsSettings', 'updateGoogleSignalsSettings', @@ -455,6 +459,11 @@ export class AnalyticsAdminServiceClient { 'getCustomMetric', 'getDataRetentionSettings', 'updateDataRetentionSettings', + 'createDataStream', + 'deleteDataStream', + 'updateDataStream', + 'listDataStreams', + 'getDataStream', ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( @@ -3129,221 +3138,6 @@ export class AnalyticsAdminServiceClient { callback ); } - /** - * Returns the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the settings to lookup. - * Format: - * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_async - */ - getEnhancedMeasurementSettings( - request?: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - ( - | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest - | undefined - ), - {} | undefined - ] - >; - getEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getEnhancedMeasurementSettings( - request?: protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - ( - | protos.google.analytics.admin.v1alpha.IGetEnhancedMeasurementSettingsRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.getEnhancedMeasurementSettings( - request, - options, - callback - ); - } - /** - * Updates the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.EnhancedMeasurementSettings} request.enhancedMeasurementSettings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [EnhancedMeasurementSettings]{@link google.analytics.admin.v1alpha.EnhancedMeasurementSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_async - */ - updateEnhancedMeasurementSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - ( - | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest - | undefined - ), - {} | undefined - ] - >; - updateEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateEnhancedMeasurementSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateEnhancedMeasurementSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings, - ( - | protos.google.analytics.admin.v1alpha.IUpdateEnhancedMeasurementSettingsRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - 'enhanced_measurement_settings.name': - request.enhancedMeasurementSettings!.name || '', - }); - this.initialize(); - return this.innerApiCalls.updateEnhancedMeasurementSettings( - request, - options, - callback - ); - } /** * Creates a FirebaseLink. * @@ -4466,6 +4260,119 @@ export class AnalyticsAdminServiceClient { callback ); } + /** + * Acknowledges the terms of user data collection for the specified property. + * + * This acknowledgement must be completed (either in the Google Analytics UI + * or via this API) before MeasurementProtocolSecret resources may be created. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.property + * Required. The property for which to acknowledge user data collection. + * @param {string} request.acknowledgement + * Required. An acknowledgement that the caller of this method understands the terms + * of user data collection. + * + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AcknowledgeUserDataCollectionResponse]{@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async + */ + acknowledgeUserDataCollection( + request?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + ( + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | undefined + ), + {} | undefined + ] + >; + acknowledgeUserDataCollection( + request: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + acknowledgeUserDataCollection( + request: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + acknowledgeUserDataCollection( + request?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + ( + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + property: request.property || '', + }); + this.initialize(); + return this.innerApiCalls.acknowledgeUserDataCollection( + request, + options, + callback + ); + } /** * Lookup for Google Signals settings for a property. * @@ -6909,31 +6816,421 @@ export class AnalyticsAdminServiceClient { callback ); } - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. + * Creates a DataStream. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.DataStream} request.dataStream + * Required. The DataStream to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async + */ + createDataStream( + request?: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + createDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDataStream( + request?: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream, + ( + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createDataStream(request, options, callback); + } + /** + * Deletes a DataStream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async + */ + deleteDataStream( + request?: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + deleteDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDataStream( + request?: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteDataStream(request, options, callback); + } + /** + * Updates a DataStream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.DataStream} request.dataStream + * The DataStream to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async + */ + updateDataStream( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest + | undefined + ), + {} | undefined + ] + >; + updateDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataStream( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream, + ( + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'data_stream.name': request.dataStream!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateDataStream(request, options, callback); + } + /** + * Lookup for a single DataStream. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async + */ + getDataStream( + request?: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream, + protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | undefined, + {} | undefined + ] + >; + getDataStream( + request: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataStream( + request: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataStream( + request?: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream, + protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getDataStream(request, options, callback); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. @@ -10582,6 +10879,213 @@ export class AnalyticsAdminServiceClient { callSettings ) as AsyncIterable; } + /** + * Lists DataStreams on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream[], + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + ] + >; + listDataStreams( + request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDataStream + > + ): void; + listDataStreams( + request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDataStream + > + ): void; + listDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDataStream + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IDataStream + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IDataStream[], + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listDataStreams(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listDataStreams']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataStreams.createStream( + this.innerApiCalls.listDataStreams as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDataStreams`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_data_streams.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async + */ + listDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listDataStreams']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataStreams.asyncIterate( + this.innerApiCalls['listDataStreams'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } // -------------------- // -- Path templates -- // -------------------- @@ -10857,6 +11361,44 @@ export class AnalyticsAdminServiceClient { ).account; } + /** + * Return a fully-qualified dataStream resource name string. + * + * @param {string} property + * @param {string} data_stream + * @returns {string} Resource name string. + */ + dataStreamPath(property: string, dataStream: string) { + return this.pathTemplates.dataStreamPathTemplate.render({ + property: property, + data_stream: dataStream, + }); + } + + /** + * Parse the property from DataStream resource. + * + * @param {string} dataStreamName + * A fully-qualified path representing DataStream resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromDataStreamName(dataStreamName: string) { + return this.pathTemplates.dataStreamPathTemplate.match(dataStreamName) + .property; + } + + /** + * Parse the data_stream from DataStream resource. + * + * @param {string} dataStreamName + * A fully-qualified path representing DataStream resource. + * @returns {string} A string representing the data_stream. + */ + matchDataStreamFromDataStreamName(dataStreamName: string) { + return this.pathTemplates.dataStreamPathTemplate.match(dataStreamName) + .data_stream; + } + /** * Return a fully-qualified displayVideo360AdvertiserLink resource name string. * @@ -10913,50 +11455,6 @@ export class AnalyticsAdminServiceClient { ).property; } - /** - * Return a fully-qualified enhancedMeasurementSettings resource name string. - * - * @param {string} property - * @param {string} web_data_stream - * @returns {string} Resource name string. - */ - enhancedMeasurementSettingsPath(property: string, webDataStream: string) { - return this.pathTemplates.enhancedMeasurementSettingsPathTemplate.render({ - property: property, - web_data_stream: webDataStream, - }); - } - - /** - * Parse the property from EnhancedMeasurementSettings resource. - * - * @param {string} enhancedMeasurementSettingsName - * A fully-qualified path representing EnhancedMeasurementSettings resource. - * @returns {string} A string representing the property. - */ - matchPropertyFromEnhancedMeasurementSettingsName( - enhancedMeasurementSettingsName: string - ) { - return this.pathTemplates.enhancedMeasurementSettingsPathTemplate.match( - enhancedMeasurementSettingsName - ).property; - } - - /** - * Parse the web_data_stream from EnhancedMeasurementSettings resource. - * - * @param {string} enhancedMeasurementSettingsName - * A fully-qualified path representing EnhancedMeasurementSettings resource. - * @returns {string} A string representing the web_data_stream. - */ - matchWebDataStreamFromEnhancedMeasurementSettingsName( - enhancedMeasurementSettingsName: string - ) { - return this.pathTemplates.enhancedMeasurementSettingsPathTemplate.match( - enhancedMeasurementSettingsName - ).web_data_stream; - } - /** * Return a fully-qualified firebaseLink resource name string. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index ce526dafdba..ef1db64e88f 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -203,16 +203,6 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, - "GetEnhancedMeasurementSettings": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateEnhancedMeasurementSettings": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, "CreateFirebaseLink": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -283,6 +273,11 @@ "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, + "AcknowledgeUserDataCollection": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, "SearchChangeHistoryEvents": { "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", @@ -432,6 +427,31 @@ "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListDataStreams": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" } } } diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index 31c90ae9945..ce5d5ceee2c 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -140,16 +140,6 @@ "updateAndroidAppDataStream" ] }, - "GetEnhancedMeasurementSettings": { - "methods": [ - "getEnhancedMeasurementSettings" - ] - }, - "UpdateEnhancedMeasurementSettings": { - "methods": [ - "updateEnhancedMeasurementSettings" - ] - }, "CreateFirebaseLink": { "methods": [ "createFirebaseLink" @@ -205,6 +195,11 @@ "updateMeasurementProtocolSecret" ] }, + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledgeUserDataCollection" + ] + }, "GetGoogleSignalsSettings": { "methods": [ "getGoogleSignalsSettings" @@ -325,6 +320,26 @@ "updateDataRetentionSettings" ] }, + "CreateDataStream": { + "methods": [ + "createDataStream" + ] + }, + "DeleteDataStream": { + "methods": [ + "deleteDataStream" + ] + }, + "UpdateDataStream": { + "methods": [ + "updateDataStream" + ] + }, + "GetDataStream": { + "methods": [ + "getDataStream" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -443,6 +458,13 @@ "listCustomMetricsStream", "listCustomMetricsAsync" ] + }, + "ListDataStreams": { + "methods": [ + "listDataStreams", + "listDataStreamsStream", + "listDataStreamsAsync" + ] } } }, @@ -579,16 +601,6 @@ "updateAndroidAppDataStream" ] }, - "GetEnhancedMeasurementSettings": { - "methods": [ - "getEnhancedMeasurementSettings" - ] - }, - "UpdateEnhancedMeasurementSettings": { - "methods": [ - "updateEnhancedMeasurementSettings" - ] - }, "CreateFirebaseLink": { "methods": [ "createFirebaseLink" @@ -644,6 +656,11 @@ "updateMeasurementProtocolSecret" ] }, + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledgeUserDataCollection" + ] + }, "GetGoogleSignalsSettings": { "methods": [ "getGoogleSignalsSettings" @@ -764,6 +781,26 @@ "updateDataRetentionSettings" ] }, + "CreateDataStream": { + "methods": [ + "createDataStream" + ] + }, + "DeleteDataStream": { + "methods": [ + "deleteDataStream" + ] + }, + "UpdateDataStream": { + "methods": [ + "updateDataStream" + ] + }, + "GetDataStream": { + "methods": [ + "getDataStream" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -882,6 +919,13 @@ "listCustomMetricsStream", "listCustomMetricsAsync" ] + }, + "ListDataStreams": { + "methods": [ + "listDataStreams", + "listDataStreamsStream", + "listDataStreamsAsync" + ] } } } diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 1f9652c8d9d..8bccab78476 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -3169,247 +3169,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('getEnhancedMeasurementSettings', () => { - it('invokes getEnhancedMeasurementSettings without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() - ); - client.innerApiCalls.getEnhancedMeasurementSettings = - stubSimpleCall(expectedResponse); - const [response] = await client.getEnhancedMeasurementSettings(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getEnhancedMeasurementSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes getEnhancedMeasurementSettings without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() - ); - client.innerApiCalls.getEnhancedMeasurementSettings = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.getEnhancedMeasurementSettings( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getEnhancedMeasurementSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes getEnhancedMeasurementSettings with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.getEnhancedMeasurementSettings = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getEnhancedMeasurementSettings(request), - expectedError - ); - assert( - (client.innerApiCalls.getEnhancedMeasurementSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - - describe('updateEnhancedMeasurementSettings', () => { - it('invokes updateEnhancedMeasurementSettings without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() - ); - request.enhancedMeasurementSettings = {}; - request.enhancedMeasurementSettings.name = ''; - const expectedHeaderRequestParams = 'enhanced_measurement_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() - ); - client.innerApiCalls.updateEnhancedMeasurementSettings = - stubSimpleCall(expectedResponse); - const [response] = await client.updateEnhancedMeasurementSettings( - request - ); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateEnhancedMeasurementSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateEnhancedMeasurementSettings without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() - ); - request.enhancedMeasurementSettings = {}; - request.enhancedMeasurementSettings.name = ''; - const expectedHeaderRequestParams = 'enhanced_measurement_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.EnhancedMeasurementSettings() - ); - client.innerApiCalls.updateEnhancedMeasurementSettings = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.updateEnhancedMeasurementSettings( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IEnhancedMeasurementSettings | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateEnhancedMeasurementSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes updateEnhancedMeasurementSettings with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest() - ); - request.enhancedMeasurementSettings = {}; - request.enhancedMeasurementSettings.name = ''; - const expectedHeaderRequestParams = 'enhanced_measurement_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.updateEnhancedMeasurementSettings = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.updateEnhancedMeasurementSettings(request), - expectedError - ); - assert( - (client.innerApiCalls.updateEnhancedMeasurementSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('createFirebaseLink', () => { it('invokes createFirebaseLink without error', async () => { const client = @@ -4695,8 +4454,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('getGoogleSignalsSettings', () => { - it('invokes getGoogleSignalsSettings without error', async () => { + describe('acknowledgeUserDataCollection', () => { + it('invokes acknowledgeUserDataCollection without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4704,10 +4463,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.property = ''; + const expectedHeaderRequestParams = 'property='; const expectedOptions = { otherArgs: { headers: { @@ -4716,20 +4475,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() ); - client.innerApiCalls.getGoogleSignalsSettings = + client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall(expectedResponse); - const [response] = await client.getGoogleSignalsSettings(request); + const [response] = await client.acknowledgeUserDataCollection(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getGoogleSignalsSettings without error using callback', async () => { + it('invokes acknowledgeUserDataCollection without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4737,10 +4496,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.property = ''; + const expectedHeaderRequestParams = 'property='; const expectedOptions = { otherArgs: { headers: { @@ -4749,16 +4508,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() ); - client.innerApiCalls.getGoogleSignalsSettings = + client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getGoogleSignalsSettings( + client.acknowledgeUserDataCollection( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null + result?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse | null ) => { if (err) { reject(err); @@ -4771,13 +4530,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getGoogleSignalsSettings with error', async () => { + it('invokes acknowledgeUserDataCollection with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4785,10 +4544,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.property = ''; + const expectedHeaderRequestParams = 'property='; const expectedOptions = { otherArgs: { headers: { @@ -4797,24 +4556,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCall( + client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getGoogleSignalsSettings(request), + client.acknowledgeUserDataCollection(request), expectedError ); assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); }); - describe('updateGoogleSignalsSettings', () => { - it('invokes updateGoogleSignalsSettings without error', async () => { + describe('getGoogleSignalsSettings', () => { + it('invokes getGoogleSignalsSettings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4822,11 +4581,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -4837,18 +4595,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); - client.innerApiCalls.updateGoogleSignalsSettings = + client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCall(expectedResponse); - const [response] = await client.updateGoogleSignalsSettings(request); + const [response] = await client.getGoogleSignalsSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateGoogleSignalsSettings without error using callback', async () => { + it('invokes getGoogleSignalsSettings without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4856,11 +4614,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -4871,10 +4628,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); - client.innerApiCalls.updateGoogleSignalsSettings = + client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateGoogleSignalsSettings( + client.getGoogleSignalsSettings( request, ( err?: Error | null, @@ -4891,13 +4648,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateGoogleSignalsSettings with error', async () => { + it('invokes getGoogleSignalsSettings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4905,9 +4662,129 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); - request.googleSignalsSettings = {}; + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getGoogleSignalsSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateGoogleSignalsSettings', () => { + it('invokes updateGoogleSignalsSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + ); + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + ); + client.innerApiCalls.updateGoogleSignalsSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.updateGoogleSignalsSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateGoogleSignalsSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + ); + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + ); + client.innerApiCalls.updateGoogleSignalsSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateGoogleSignalsSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateGoogleSignalsSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + ); + request.googleSignalsSettings = {}; request.googleSignalsSettings.name = ''; const expectedHeaderRequestParams = 'google_signals_settings.name='; const expectedOptions = { @@ -7573,8 +7450,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listAccounts', () => { - it('invokes listAccounts without error', async () => { + describe('createDataStream', () => { + it('invokes createDataStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7582,31 +7459,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); - const [response] = await client.listAccounts(request); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataStream() + ); + client.innerApiCalls.createDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.createDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.createDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccounts without error using callback', async () => { + it('invokes createDataStream without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7614,28 +7491,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataStream() + ); + client.innerApiCalls.createDataStream = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccounts( + client.createDataStream( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + result?: protos.google.analytics.admin.v1alpha.IDataStream | null ) => { if (err) { reject(err); @@ -7648,13 +7525,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.createDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccounts with error', async () => { + it('invokes createDataStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7662,23 +7539,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listAccounts = stubSimpleCall( + client.innerApiCalls.createDataStream = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccounts(request), expectedError); + await assert.rejects(client.createDataStream(request), expectedError); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.createDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); + }); - it('invokes listAccountsStream without error', async () => { + describe('deleteDataStream', () => { + it('invokes deleteDataStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7686,47 +7573,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.descriptors.page.listAccounts.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAccountsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.deleteDataStream(request); + assert.deepStrictEqual(response, expectedResponse); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.innerApiCalls.deleteDataStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountsStream with error', async () => { + it('invokes deleteDataStream without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7734,18 +7605,483 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( - undefined, - expectedError + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - const stream = client.listAccountsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDataStream = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteDataStream( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteDataStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteDataStream(request), expectedError); + assert( + (client.innerApiCalls.deleteDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateDataStream', () => { + it('invokes updateDataStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataStream() + ); + client.innerApiCalls.updateDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.updateDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateDataStream without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataStream() + ); + client.innerApiCalls.updateDataStream = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateDataStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateDataStream(request), expectedError); + assert( + (client.innerApiCalls.updateDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getDataStream', () => { + it('invokes getDataStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataStream() + ); + client.innerApiCalls.getDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.getDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataStream without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DataStream() + ); + client.innerApiCalls.getDataStream = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getDataStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getDataStream(request), expectedError); + assert( + (client.innerApiCalls.getDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listAccounts', () => { + it('invokes listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', (response: protos.google.analytics.admin.v1alpha.Account) => { responses.push(response); } @@ -7759,13 +8095,274 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(client.innerApiCalls.listAccountSummaries, request) ); }); - it('uses async iteration with listAccounts without error', async () => { + it('uses async iteration with listAccountSummaries without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7773,36 +8370,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - const iterable = client.listAccountsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + const iterable = client.listAccountSummariesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); - it('uses async iteration with listAccounts with error', async () => { + it('uses async iteration with listAccountSummaries with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7810,29 +8408,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountsAsync(request); + const iterable = client.listAccountSummariesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); }); - describe('listAccountSummaries', () => { - it('invokes listAccountSummaries without error', async () => { + describe('listProperties', () => { + it('invokes listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7840,32 +8439,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listAccountSummaries = - stubSimpleCall(expectedResponse); - const [response] = await client.listAccountSummaries(request); + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummaries without error using callback', async () => { + it('invokes listProperties without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7873,30 +8471,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listAccountSummaries = + client.innerApiCalls.listProperties = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccountSummaries( + client.listProperties( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IAccountSummary[] - | null + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null ) => { if (err) { reject(err); @@ -7909,13 +8505,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccountSummaries with error', async () => { + it('invokes listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7923,23 +8519,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); - client.innerApiCalls.listAccountSummaries = stubSimpleCall( + client.innerApiCalls.listProperties = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccountSummaries(request), expectedError); + await assert.rejects(client.listProperties(request), expectedError); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummariesStream without error', async () => { + it('invokes listPropertiesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7947,28 +8543,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listProperties.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountSummariesStream(request); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -7982,13 +8577,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('invokes listAccountSummariesStream with error', async () => { + it('invokes listPropertiesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7996,18 +8591,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listProperties.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccountSummariesStream(request); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -8020,13 +8614,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('uses async iteration with listAccountSummaries without error', async () => { + it('uses async iteration with listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8034,37 +8628,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; - const iterable = client.listAccountSummariesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); - it('uses async iteration with listAccountSummaries with error', async () => { + it('uses async iteration with listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8072,30 +8665,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountSummariesAsync(request); + const iterable = client.listPropertiesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); }); - describe('listProperties', () => { - it('invokes listProperties without error', async () => { + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8103,31 +8695,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); - const [response] = await client.listProperties(request); + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listProperties without error using callback', async () => { + it('invokes listUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8135,28 +8735,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listProperties = + client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listProperties( + client.listUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null ) => { if (err) { reject(err); @@ -8169,13 +8777,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listProperties with error', async () => { + it('invokes listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8183,23 +8791,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listProperties = stubSimpleCall( + client.innerApiCalls.listUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listProperties(request), expectedError); + await assert.rejects(client.listUserLinks(request), expectedError); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listPropertiesStream without error', async () => { + it('invokes listUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8207,27 +8823,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listProperties.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listPropertiesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -8241,13 +8859,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('invokes listPropertiesStream with error', async () => { + it('invokes listUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8255,17 +8879,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listPropertiesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -8278,13 +8904,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('uses async iteration with listProperties without error', async () => { + it('uses async iteration with listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8292,36 +8924,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - const iterable = client.listPropertiesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); - it('uses async iteration with listProperties with error', async () => { + it('uses async iteration with listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8329,29 +8969,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPropertiesAsync(request); + const iterable = client.listUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); }); - describe('listUserLinks', () => { - it('invokes listUserLinks without error', async () => { + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8359,7 +9007,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8372,26 +9020,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listUserLinks(request); + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinks without error using callback', async () => { + it('invokes auditUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8399,7 +9047,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8412,23 +9060,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listUserLinks = + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listUserLinks( + client.auditUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | null ) => { if (err) { reject(err); @@ -8441,13 +9091,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listUserLinks with error', async () => { + it('invokes auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8455,7 +9105,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8467,19 +9117,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listUserLinks = stubSimpleCall( + client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listUserLinks(request), expectedError); + await assert.rejects(client.auditUserLinks(request), expectedError); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinksStream without error', async () => { + it('invokes auditUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8487,29 +9137,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listUserLinksStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -8523,19 +9174,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.auditUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listUserLinksStream with error', async () => { + it('invokes auditUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8543,19 +9194,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listUserLinksStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -8568,19 +9220,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.auditUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks without error', async () => { + it('uses async iteration with auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8588,44 +9240,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; - const iterable = client.listUserLinksAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; + const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks with error', async () => { + it('uses async iteration with auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8633,37 +9286,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listUserLinksAsync(request); + const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('auditUserLinks', () => { - it('invokes auditUserLinks without error', async () => { + describe('listWebDataStreams', () => { + it('invokes listWebDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8671,7 +9325,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8684,26 +9338,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.auditUserLinks(request); + client.innerApiCalls.listWebDataStreams = + stubSimpleCall(expectedResponse); + const [response] = await client.listWebDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinks without error using callback', async () => { + it('invokes listWebDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8711,7 +9366,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8724,24 +9379,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.innerApiCalls.auditUserLinks = + client.innerApiCalls.listWebDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.auditUserLinks( + client.listWebDataStreams( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | protos.google.analytics.admin.v1alpha.IWebDataStream[] | null ) => { if (err) { @@ -8755,13 +9410,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes auditUserLinks with error', async () => { + it('invokes listWebDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8769,7 +9424,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8781,19 +9436,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.auditUserLinks = stubSimpleCall( + client.innerApiCalls.listWebDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.auditUserLinks(request), expectedError); + await assert.rejects(client.listWebDataStreams(request), expectedError); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listWebDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinksStream without error', async () => { + it('invokes listWebDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8801,30 +9456,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.auditUserLinksStream(request); + const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { responses.push(response); } ); @@ -8838,19 +9493,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listWebDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listWebDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes auditUserLinksStream with error', async () => { + it('invokes listWebDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8858,20 +9513,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listWebDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.auditUserLinksStream(request); + const stream = client.listWebDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { responses.push(response); } ); @@ -8884,19 +9539,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listWebDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listWebDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listWebDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks without error', async () => { + it('uses async iteration with listWebDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8904,45 +9559,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.WebDataStream() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listWebDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks with error', async () => { + it('uses async iteration with listWebDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8950,16 +9605,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listWebDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listWebDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -8967,21 +9622,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listWebDataStreams', () => { - it('invokes listWebDataStreams without error', async () => { + describe('listIosAppDataStreams', () => { + it('invokes listIosAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8989,7 +9644,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9002,27 +9657,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.listWebDataStreams = + client.innerApiCalls.listIosAppDataStreams = stubSimpleCall(expectedResponse); - const [response] = await client.listWebDataStreams(request); + const [response] = await client.listIosAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreams without error using callback', async () => { + it('invokes listIosAppDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9030,7 +9685,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9043,24 +9698,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.innerApiCalls.listWebDataStreams = + client.innerApiCalls.listIosAppDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listWebDataStreams( + client.listIosAppDataStreams( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IWebDataStream[] + | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] | null ) => { if (err) { @@ -9074,13 +9729,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listWebDataStreams with error', async () => { + it('invokes listIosAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9088,7 +9743,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9100,19 +9755,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listWebDataStreams = stubSimpleCall( + client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listWebDataStreams(request), expectedError); + await assert.rejects( + client.listIosAppDataStreams(request), + expectedError + ); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listIosAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreamsStream without error', async () => { + it('invokes listIosAppDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9120,30 +9778,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { responses.push(response); } ); @@ -9157,19 +9817,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listWebDataStreamsStream with error', async () => { + it('invokes listIosAppDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9177,20 +9841,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listIosAppDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listIosAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.IosAppDataStream + ) => { responses.push(response); } ); @@ -9203,19 +9869,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) + .calledWith(client.innerApiCalls.listIosAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub + client.descriptors.page.listIosAppDataStreams + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listWebDataStreams without error', async () => { + it('uses async iteration with listIosAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9223,45 +9893,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.IosAppDataStream() ), ]; - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; - const iterable = client.listWebDataStreamsAsync(request); + const iterable = client.listIosAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listWebDataStreams with error', async () => { + it('uses async iteration with listIosAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9269,16 +9941,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listIosAppDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listWebDataStreamsAsync(request); + const iterable = client.listIosAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9286,21 +9958,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listIosAppDataStreams + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listIosAppDataStreams', () => { - it('invokes listIosAppDataStreams without error', async () => { + describe('listAndroidAppDataStreams', () => { + it('invokes listAndroidAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9308,7 +9982,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9321,27 +9995,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listIosAppDataStreams = + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall(expectedResponse); - const [response] = await client.listIosAppDataStreams(request); + const [response] = await client.listAndroidAppDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreams without error using callback', async () => { + it('invokes listAndroidAppDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9349,7 +10023,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9362,24 +10036,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.innerApiCalls.listIosAppDataStreams = + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listIosAppDataStreams( + client.listAndroidAppDataStreams( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] + | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] | null ) => { if (err) { @@ -9393,13 +10067,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listIosAppDataStreams with error', async () => { + it('invokes listAndroidAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9407,7 +10081,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9419,22 +10093,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( + client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.listIosAppDataStreams(request), + client.listAndroidAppDataStreams(request), expectedError ); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreamsStream without error', async () => { + it('invokes listAndroidAppDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9442,31 +10116,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream ) => { responses.push(response); } @@ -9482,22 +10156,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listIosAppDataStreamsStream with error', async () => { + it('invokes listAndroidAppDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9505,21 +10179,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listAndroidAppDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listAndroidAppDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream + response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream ) => { responses.push(response); } @@ -9534,22 +10208,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams without error', async () => { + it('uses async iteration with listAndroidAppDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9557,47 +10231,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() ), ]; - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; - const iterable = client.listIosAppDataStreamsAsync(request); + const iterable = client.listAndroidAppDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams with error', async () => { + it('uses async iteration with listAndroidAppDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9605,16 +10279,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listAndroidAppDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listIosAppDataStreamsAsync(request); + const iterable = client.listAndroidAppDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9622,14 +10296,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams + client.descriptors.page.listAndroidAppDataStreams .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -9637,8 +10311,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listAndroidAppDataStreams', () => { - it('invokes listAndroidAppDataStreams without error', async () => { + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9646,7 +10320,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9659,27 +10333,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = - stubSimpleCall(expectedResponse); - const [response] = await client.listAndroidAppDataStreams(request); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreams without error using callback', async () => { + it('invokes listFirebaseLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9687,7 +10360,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9700,24 +10373,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAndroidAppDataStreams( + client.listFirebaseLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] + | protos.google.analytics.admin.v1alpha.IFirebaseLink[] | null ) => { if (err) { @@ -9731,13 +10404,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAndroidAppDataStreams with error', async () => { + it('invokes listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9745,7 +10418,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9757,22 +10430,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listAndroidAppDataStreams(request), - expectedError - ); + await assert.rejects(client.listFirebaseLinks(request), expectedError); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreamsStream without error', async () => { + it('invokes listFirebaseLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9780,32 +10450,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -9819,23 +10487,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listAndroidAppDataStreamsStream with error', async () => { + it('invokes listFirebaseLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9843,22 +10507,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -9871,23 +10533,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams without error', async () => { + it('uses async iteration with listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9895,47 +10553,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.listFirebaseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams with error', async () => { + it('uses async iteration with listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9943,16 +10599,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.listFirebaseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9960,23 +10616,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listFirebaseLinks', () => { - it('invokes listFirebaseLinks without error', async () => { + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9984,7 +10638,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9997,26 +10651,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listFirebaseLinks(request); + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCall(expectedResponse); + const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinks without error using callback', async () => { + it('invokes listGoogleAdsLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10024,7 +10679,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10037,24 +10692,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listFirebaseLinks = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFirebaseLinks( + client.listGoogleAdsLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] | null ) => { if (err) { @@ -10068,13 +10723,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listFirebaseLinks with error', async () => { + it('invokes listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10082,7 +10737,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10094,19 +10749,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFirebaseLinks(request), expectedError); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinksStream without error', async () => { + it('invokes listGoogleAdsLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10114,30 +10769,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -10151,19 +10806,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listFirebaseLinksStream with error', async () => { + it('invokes listGoogleAdsLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10171,20 +10826,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -10197,19 +10852,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks without error', async () => { + it('uses async iteration with listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10217,45 +10872,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks with error', async () => { + it('uses async iteration with listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10263,16 +10918,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10280,21 +10935,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listGoogleAdsLinks', () => { - it('invokes listGoogleAdsLinks without error', async () => { + describe('listMeasurementProtocolSecrets', () => { + it('invokes listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10302,7 +10957,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10315,27 +10970,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall(expectedResponse); - const [response] = await client.listGoogleAdsLinks(request); + const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinks without error using callback', async () => { + it('invokes listMeasurementProtocolSecrets without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10343,7 +10998,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10356,24 +11011,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listGoogleAdsLinks( + client.listMeasurementProtocolSecrets( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] + | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] | null ) => { if (err) { @@ -10387,13 +11042,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listGoogleAdsLinks with error', async () => { + it('invokes listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10401,7 +11056,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10413,19 +11068,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + await assert.rejects( + client.listMeasurementProtocolSecrets(request), + expectedError + ); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinksStream without error', async () => { + it('invokes listMeasurementProtocolSecretsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10433,30 +11091,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -10470,19 +11130,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listGoogleAdsLinksStream with error', async () => { + it('invokes listMeasurementProtocolSecretsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10490,20 +11157,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -10516,19 +11185,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks without error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10536,45 +11212,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks with error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10582,16 +11260,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10599,21 +11277,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listMeasurementProtocolSecrets', () => { - it('invokes listMeasurementProtocolSecrets without error', async () => { + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10621,10 +11301,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -10634,27 +11314,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listMeasurementProtocolSecrets(request); + const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listMeasurementProtocolSecrets without error using callback', async () => { + it('invokes searchChangeHistoryEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10662,10 +11342,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -10675,24 +11355,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listMeasurementProtocolSecrets( + client.searchChangeHistoryEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] + | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] | null ) => { if (err) { @@ -10706,13 +11386,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listMeasurementProtocolSecrets with error', async () => { + it('invokes searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10720,10 +11400,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -10732,22 +11412,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.listMeasurementProtocolSecrets(request), + client.searchChangeHistoryEvents(request), expectedError ); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listMeasurementProtocolSecretsStream without error', async () => { + it('invokes searchChangeHistoryEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10755,31 +11435,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent ) => { responses.push(response); } @@ -10795,25 +11475,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listMeasurementProtocolSecretsStream with error', async () => { + it('invokes searchChangeHistoryEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10821,21 +11498,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent ) => { responses.push(response); } @@ -10850,25 +11527,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { + it('uses async iteration with searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10876,47 +11550,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { + it('uses async iteration with searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10924,16 +11598,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10941,14 +11615,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -10956,8 +11630,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('searchChangeHistoryEvents', () => { - it('invokes searchChangeHistoryEvents without error', async () => { + describe('listConversionEvents', () => { + it('invokes listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10965,10 +11639,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -10978,27 +11652,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listConversionEvents = stubSimpleCall(expectedResponse); - const [response] = await client.searchChangeHistoryEvents(request); + const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEvents without error using callback', async () => { + it('invokes listConversionEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11006,10 +11680,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -11019,24 +11693,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listConversionEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.searchChangeHistoryEvents( + client.listConversionEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] + | protos.google.analytics.admin.v1alpha.IConversionEvent[] | null ) => { if (err) { @@ -11050,13 +11724,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes searchChangeHistoryEvents with error', async () => { + it('invokes listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11064,10 +11738,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -11076,22 +11750,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.searchChangeHistoryEvents(request), - expectedError - ); + await assert.rejects(client.listConversionEvents(request), expectedError); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEventsStream without error', async () => { + it('invokes listConversionEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11099,32 +11770,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -11138,23 +11807,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes searchChangeHistoryEventsStream with error', async () => { + it('invokes listConversionEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11162,22 +11827,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -11190,23 +11853,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents without error', async () => { + it('uses async iteration with listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11214,47 +11873,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listConversionEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents with error', async () => { + it('uses async iteration with listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11262,16 +11919,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listConversionEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11279,23 +11936,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listConversionEvents', () => { - it('invokes listConversionEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinks', () => { + it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11303,7 +11958,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11316,27 +11971,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listConversionEvents(request); + const [response] = await client.listDisplayVideo360AdvertiserLinks( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listConversionEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11344,7 +12001,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11357,24 +12014,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listConversionEvents( + client.listDisplayVideo360AdvertiserLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IConversionEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] | null ) => { if (err) { @@ -11388,13 +12045,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listConversionEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11402,7 +12059,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11414,19 +12071,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listConversionEvents = stubSimpleCall( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listConversionEvents(request), expectedError); + await assert.rejects( + client.listDisplayVideo360AdvertiserLinks(request), + expectedError + ); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listConversionEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11434,30 +12094,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listConversionEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + ) => { responses.push(response); } ); @@ -11471,19 +12133,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.createStream as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listConversionEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11491,20 +12160,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listConversionEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + ) => { responses.push(response); } ); @@ -11517,19 +12188,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.createStream as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listConversionEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11537,45 +12215,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; - const iterable = client.listConversionEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listConversionEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11583,16 +12263,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listConversionEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11600,21 +12280,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listDisplayVideo360AdvertiserLinks', () => { - it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { + describe('listDisplayVideo360AdvertiserLinkProposals', () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11622,7 +12304,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11635,29 +12317,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCall(expectedResponse); - const [response] = await client.listDisplayVideo360AdvertiserLinks( - request - ); + const [response] = + await client.listDisplayVideo360AdvertiserLinkProposals(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11665,7 +12349,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11678,24 +12362,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinks( + client.listDisplayVideo360AdvertiserLinkProposals( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] | null ) => { if (err) { @@ -11709,13 +12393,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11723,7 +12410,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11735,22 +12422,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( - undefined, - expectedError - ); + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + stubSimpleCall(undefined, expectedError); await assert.rejects( - client.listDisplayVideo360AdvertiserLinks(request), + client.listDisplayVideo360AdvertiserLinkProposals(request), expectedError ); assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11758,31 +12446,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal ) => { responses.push(response); } @@ -11798,25 +12487,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ) .getCall(0) .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, request ) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11824,21 +12513,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal ) => { responses.push(response); } @@ -11853,25 +12543,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ) .getCall(0) .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, request ) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11879,47 +12569,48 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11927,16 +12618,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11944,14 +12636,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -11959,8 +12651,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDisplayVideo360AdvertiserLinkProposals', () => { - it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { + describe('listCustomDimensions', () => { + it('invokes listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11968,7 +12660,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11981,31 +12673,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + client.innerApiCalls.listCustomDimensions = stubSimpleCall(expectedResponse); - const [response] = - await client.listDisplayVideo360AdvertiserLinkProposals(request); + const [response] = await client.listCustomDimensions(request); assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { + it('invokes listCustomDimensions without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12013,7 +12701,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12026,24 +12714,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + client.innerApiCalls.listCustomDimensions = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinkProposals( + client.listCustomDimensions( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] + | protos.google.analytics.admin.v1alpha.ICustomDimension[] | null ) => { if (err) { @@ -12057,16 +12745,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('invokes listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12074,7 +12759,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12086,23 +12771,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = - stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.listDisplayVideo360AdvertiserLinkProposals(request), + client.innerApiCalls.listCustomDimensions = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.listCustomDimensions(request), expectedError); assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { + it('invokes listCustomDimensionsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12110,33 +12791,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(expectedResponse); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -12150,26 +12828,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub + client.descriptors.page.listCustomDimensions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { + it('invokes listCustomDimensionsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12177,23 +12848,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -12206,26 +12874,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub + client.descriptors.page.listCustomDimensions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { + it('uses async iteration with listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12233,48 +12894,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomDimensionsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('uses async iteration with listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12282,17 +12940,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomDimensionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -12300,23 +12957,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listCustomDimensions', () => { - it('invokes listCustomDimensions without error', async () => { + describe('listCustomMetrics', () => { + it('invokes listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12324,7 +12979,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12337,27 +12992,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listCustomDimensions = - stubSimpleCall(expectedResponse); - const [response] = await client.listCustomDimensions(request); + client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomMetrics(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomDimensions without error using callback', async () => { + it('invokes listCustomMetrics without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12365,7 +13019,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12378,24 +13032,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listCustomDimensions = + client.innerApiCalls.listCustomMetrics = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomDimensions( + client.listCustomMetrics( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.ICustomDimension[] + | protos.google.analytics.admin.v1alpha.ICustomMetric[] | null ) => { if (err) { @@ -12409,13 +13063,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listCustomDimensions with error', async () => { + it('invokes listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12423,7 +13077,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12435,19 +13089,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomDimensions = stubSimpleCall( + client.innerApiCalls.listCustomMetrics = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomDimensions(request), expectedError); + await assert.rejects(client.listCustomMetrics(request), expectedError); assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomDimensionsStream without error', async () => { + it('invokes listCustomMetricsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12455,30 +13109,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -12492,19 +13146,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub + client.descriptors.page.listCustomMetrics.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listCustomDimensionsStream with error', async () => { + it('invokes listCustomMetricsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12512,20 +13166,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -12538,19 +13192,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub + client.descriptors.page.listCustomMetrics.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomDimensions without error', async () => { + it('uses async iteration with listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12558,45 +13212,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; - const iterable = client.listCustomDimensionsAsync(request); + const iterable = client.listCustomMetricsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomDimensions with error', async () => { + it('uses async iteration with listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12604,16 +13258,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomDimensionsAsync(request); + const iterable = client.listCustomMetricsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -12621,21 +13275,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listCustomMetrics', () => { - it('invokes listCustomMetrics without error', async () => { + describe('listDataStreams', () => { + it('invokes listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12643,7 +13297,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12656,26 +13310,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomMetrics(request); + client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); + const [response] = await client.listDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) + (client.innerApiCalls.listDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomMetrics without error using callback', async () => { + it('invokes listDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12683,7 +13337,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12696,25 +13350,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomMetrics = + client.innerApiCalls.listDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomMetrics( + client.listDataStreams( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.ICustomMetric[] - | null + result?: protos.google.analytics.admin.v1alpha.IDataStream[] | null ) => { if (err) { reject(err); @@ -12727,13 +13379,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) + (client.innerApiCalls.listDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listCustomMetrics with error', async () => { + it('invokes listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12741,7 +13393,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12753,19 +13405,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomMetrics = stubSimpleCall( + client.innerApiCalls.listDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomMetrics(request), expectedError); + await assert.rejects(client.listDataStreams(request), expectedError); assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) + (client.innerApiCalls.listDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomMetricsStream without error', async () => { + it('invokes listDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12773,30 +13425,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomMetricsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -12810,19 +13462,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub + client.descriptors.page.listDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listCustomMetricsStream with error', async () => { + it('invokes listDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12830,20 +13482,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomMetricsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -12856,19 +13508,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub + client.descriptors.page.listDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomMetrics without error', async () => { + it('uses async iteration with listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12876,45 +13528,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = - []; - const iterable = client.listCustomMetricsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; + const iterable = client.listDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomMetrics with error', async () => { + it('uses async iteration with listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12922,16 +13573,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomMetricsAsync(request); + const iterable = client.listDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -12939,13 +13590,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); @@ -13374,10 +14025,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('displayVideo360AdvertiserLink', () => { - const fakePath = '/rendered/path/displayVideo360AdvertiserLink'; + describe('dataStream', () => { + const fakePath = '/rendered/path/dataStream'; const expectedParameters = { property: 'propertyValue', + data_stream: 'dataStreamValue', }; const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ @@ -13385,42 +14037,49 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { projectId: 'bogus', }); client.initialize(); - client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.render = - sinon.stub().returns(fakePath); - client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.match = - sinon.stub().returns(expectedParameters); + client.pathTemplates.dataStreamPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataStreamPathTemplate.match = sinon + .stub() + .returns(expectedParameters); - it('displayVideo360AdvertiserLinkPath', () => { - const result = - client.displayVideo360AdvertiserLinkPath('propertyValue'); + it('dataStreamPath', () => { + const result = client.dataStreamPath( + 'propertyValue', + 'dataStreamValue' + ); assert.strictEqual(result, fakePath); assert( - ( - client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate - .render as SinonStub - ) + (client.pathTemplates.dataStreamPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchPropertyFromDisplayVideo360AdvertiserLinkName', () => { - const result = - client.matchPropertyFromDisplayVideo360AdvertiserLinkName(fakePath); + it('matchPropertyFromDataStreamName', () => { + const result = client.matchPropertyFromDataStreamName(fakePath); assert.strictEqual(result, 'propertyValue'); assert( - ( - client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate - .match as SinonStub - ) + (client.pathTemplates.dataStreamPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataStreamFromDataStreamName', () => { + const result = client.matchDataStreamFromDataStreamName(fakePath); + assert.strictEqual(result, 'dataStreamValue'); + assert( + (client.pathTemplates.dataStreamPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); }); - describe('displayVideo360AdvertiserLinkProposal', () => { - const fakePath = '/rendered/path/displayVideo360AdvertiserLinkProposal'; + describe('displayVideo360AdvertiserLink', () => { + const fakePath = '/rendered/path/displayVideo360AdvertiserLink'; const expectedParameters = { property: 'propertyValue', }; @@ -13430,19 +14089,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { projectId: 'bogus', }); client.initialize(); - client.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.render = + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.render = sinon.stub().returns(fakePath); - client.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.match = + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate.match = sinon.stub().returns(expectedParameters); - it('displayVideo360AdvertiserLinkProposalPath', () => { + it('displayVideo360AdvertiserLinkPath', () => { const result = - client.displayVideo360AdvertiserLinkProposalPath('propertyValue'); + client.displayVideo360AdvertiserLinkPath('propertyValue'); assert.strictEqual(result, fakePath); assert( ( - client.pathTemplates - .displayVideo360AdvertiserLinkProposalPathTemplate + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate .render as SinonStub ) .getCall(-1) @@ -13450,16 +14108,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('matchPropertyFromDisplayVideo360AdvertiserLinkProposalName', () => { + it('matchPropertyFromDisplayVideo360AdvertiserLinkName', () => { const result = - client.matchPropertyFromDisplayVideo360AdvertiserLinkProposalName( - fakePath - ); + client.matchPropertyFromDisplayVideo360AdvertiserLinkName(fakePath); assert.strictEqual(result, 'propertyValue'); assert( ( - client.pathTemplates - .displayVideo360AdvertiserLinkProposalPathTemplate + client.pathTemplates.displayVideo360AdvertiserLinkPathTemplate .match as SinonStub ) .getCall(-1) @@ -13468,11 +14123,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('enhancedMeasurementSettings', () => { - const fakePath = '/rendered/path/enhancedMeasurementSettings'; + describe('displayVideo360AdvertiserLinkProposal', () => { + const fakePath = '/rendered/path/displayVideo360AdvertiserLinkProposal'; const expectedParameters = { property: 'propertyValue', - web_data_stream: 'webDataStreamValue', }; const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ @@ -13480,21 +14134,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { projectId: 'bogus', }); client.initialize(); - client.pathTemplates.enhancedMeasurementSettingsPathTemplate.render = + client.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.render = sinon.stub().returns(fakePath); - client.pathTemplates.enhancedMeasurementSettingsPathTemplate.match = sinon - .stub() - .returns(expectedParameters); + client.pathTemplates.displayVideo360AdvertiserLinkProposalPathTemplate.match = + sinon.stub().returns(expectedParameters); - it('enhancedMeasurementSettingsPath', () => { - const result = client.enhancedMeasurementSettingsPath( - 'propertyValue', - 'webDataStreamValue' - ); + it('displayVideo360AdvertiserLinkProposalPath', () => { + const result = + client.displayVideo360AdvertiserLinkProposalPath('propertyValue'); assert.strictEqual(result, fakePath); assert( ( - client.pathTemplates.enhancedMeasurementSettingsPathTemplate + client.pathTemplates + .displayVideo360AdvertiserLinkProposalPathTemplate .render as SinonStub ) .getCall(-1) @@ -13502,29 +14154,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('matchPropertyFromEnhancedMeasurementSettingsName', () => { - const result = - client.matchPropertyFromEnhancedMeasurementSettingsName(fakePath); - assert.strictEqual(result, 'propertyValue'); - assert( - ( - client.pathTemplates.enhancedMeasurementSettingsPathTemplate - .match as SinonStub - ) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchWebDataStreamFromEnhancedMeasurementSettingsName', () => { + it('matchPropertyFromDisplayVideo360AdvertiserLinkProposalName', () => { const result = - client.matchWebDataStreamFromEnhancedMeasurementSettingsName( + client.matchPropertyFromDisplayVideo360AdvertiserLinkProposalName( fakePath ); - assert.strictEqual(result, 'webDataStreamValue'); + assert.strictEqual(result, 'propertyValue'); assert( ( - client.pathTemplates.enhancedMeasurementSettingsPathTemplate + client.pathTemplates + .displayVideo360AdvertiserLinkProposalPathTemplate .match as SinonStub ) .getCall(-1) From c95815248a275552e6e29ba52b2140b8c02a2f44 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 29 Dec 2021 20:00:32 +0000 Subject: [PATCH 099/142] docs(node): support "stable"/"preview" release level (#1312) (#170) --- packages/google-analytics-admin/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 95f23fb9797..707dea32b4e 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -136,12 +136,14 @@ This library follows [Semantic Versioning](http://semver.org/). + This library is considered to be in **alpha**. 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 From de9101980861ec29060ad8b0a69f680dd4e87651 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 30 Dec 2021 15:18:08 -0500 Subject: [PATCH 100/142] chore: add api_shortname and library_type to repo metadata (#169) --- packages/google-analytics-admin/.repo-metadata.json | 6 ++++-- packages/google-analytics-admin/README.md | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/google-analytics-admin/.repo-metadata.json b/packages/google-analytics-admin/.repo-metadata.json index 2b2f3ae9b60..61cb4422e47 100644 --- a/packages/google-analytics-admin/.repo-metadata.json +++ b/packages/google-analytics-admin/.repo-metadata.json @@ -2,7 +2,7 @@ "client_documentation": "https://googleapis.dev/nodejs/analytics-admin/latest/index.html", "api_id": "analyticsadmin.googleapis.com", "distribution_name": "@google-analytics/admin", - "release_level": "alpha", + "release_level": "preview", "default_version": "v1alpha", "language": "nodejs", "name_pretty": "Google Analytics Admin", @@ -10,5 +10,7 @@ "product_documentation": "https://developers.google.com/analytics", "requires_billing": false, "name": "analytics-admin", - "issue_tracker": "" + "issue_tracker": "", + "api_shortname": "analyticsadmin", + "library_type": "GAPIC_AUTO" } diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 707dea32b4e..32c4ed389d0 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -4,7 +4,7 @@ # [Google Analytics Admin: Node.js Client](https://github.com/googleapis/nodejs-analytics-admin) -[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) + [![npm version](https://img.shields.io/npm/v/@google-analytics/admin.svg)](https://www.npmjs.org/package/@google-analytics/admin) [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-analytics-admin/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-analytics-admin) @@ -137,11 +137,11 @@ This library follows [Semantic Versioning](http://semver.org/). -This library is considered to be in **alpha**. This means it is still a -work-in-progress and under active development. Any release is subject to -backwards-incompatible changes at any time. +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] From a6534296d9a626aa339ffaa4fa7912f0118c9ad5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Dec 2021 23:20:24 +0000 Subject: [PATCH 101/142] docs(badges): tweak badge to use new preview/stable language (#1314) (#172) --- packages/google-analytics-admin/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 32c4ed389d0..905ff95462f 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -4,9 +4,8 @@ # [Google Analytics Admin: Node.js Client](https://github.com/googleapis/nodejs-analytics-admin) - +[![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-analytics/admin.svg)](https://www.npmjs.org/package/@google-analytics/admin) -[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-analytics-admin/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-analytics-admin) From 0fb55b639d2901ebcd6fe2a4ae575ca3222c3a4f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 17:02:17 +0000 Subject: [PATCH 102/142] test(nodejs): remove 15 add 16 (#1322) (#174) --- packages/google-analytics-admin/protos/protos.d.ts | 2 +- packages/google-analytics-admin/protos/protos.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index ad52f69403d..52b02873f61 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 8015efbe059..829d40c2285 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From dd2ade9d8a82abcfcba5222cdadab7c37f3f9e2f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 20 Jan 2022 08:22:19 +0000 Subject: [PATCH 103/142] build: update copyright year to 2022 (#177) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 422607515 Source-Link: https://github.com/googleapis/googleapis/commit/ba2ffd6fe6642e28b4fed2ffae217b4c5f084034 Source-Link: https://github.com/googleapis/googleapis-gen/commit/73ba4add239a619da567ffbd4e5730fdd6de04d3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNiYTRhZGQyMzlhNjE5ZGE1NjdmZmJkNGU1NzMwZmRkNmRlMDRkMyJ9 --- packages/google-analytics-admin/.jsdoc.js | 4 ++-- .../src/v1alpha/analytics_admin_service_client.ts | 2 +- packages/google-analytics-admin/src/v1alpha/index.ts | 2 +- .../system-test/fixtures/sample/src/index.js | 2 +- .../system-test/fixtures/sample/src/index.ts | 2 +- packages/google-analytics-admin/system-test/install.ts | 2 +- .../test/gapic_analytics_admin_service_v1alpha.ts | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/google-analytics-admin/.jsdoc.js b/packages/google-analytics-admin/.jsdoc.js index fad999682e6..59f18fd52c1 100644 --- a/packages/google-analytics-admin/.jsdoc.js +++ b/packages/google-analytics-admin/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2021 Google LLC', + copyright: 'Copyright 2022 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-analytics/admin', diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 8ddceac5409..833072a4bdf 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/src/v1alpha/index.ts b/packages/google-analytics-admin/src/v1alpha/index.ts index ab42d795d67..6836b1c433a 100644 --- a/packages/google-analytics-admin/src/v1alpha/index.ts +++ b/packages/google-analytics-admin/src/v1alpha/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js index 10cf555e81b..bb5568ded04 100644 --- a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js +++ b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts index ddc40c74ecc..d231ad52e18 100644 --- a/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts +++ b/packages/google-analytics-admin/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/system-test/install.ts b/packages/google-analytics-admin/system-test/install.ts index d2d61c0396f..6dd1eaadafa 100644 --- a/packages/google-analytics-admin/system-test/install.ts +++ b/packages/google-analytics-admin/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 8bccab78476..6f4184f679d 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 67a271eda8189cb848d97bedc6419aab908f4be3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 26 Jan 2022 20:02:19 +0000 Subject: [PATCH 104/142] chore: update v2.12.0 gapic-generator-typescript (#179) - [ ] Regenerate this pull request now. Committer: @summer-ji-eng PiperOrigin-RevId: 424244721 Source-Link: https://github.com/googleapis/googleapis/commit/4b6b01f507ebc3df95fdf8e1d76b0ae0ae33e52c Source-Link: https://github.com/googleapis/googleapis-gen/commit/8ac83fba606d008c7e8a42e7d55b6596ec4be35f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGFjODNmYmE2MDZkMDA4YzdlOGE0MmU3ZDU1YjY1OTZlYzRiZTM1ZiJ9 --- packages/google-analytics-admin/linkinator.config.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/linkinator.config.json b/packages/google-analytics-admin/linkinator.config.json index 0121dfa684f..befd23c8633 100644 --- a/packages/google-analytics-admin/linkinator.config.json +++ b/packages/google-analytics-admin/linkinator.config.json @@ -3,8 +3,14 @@ "skip": [ "https://codecov.io/gh/googleapis/", "www.googleapis.com", - "img.shields.io" + "img.shields.io", + "https://console.cloud.google.com/cloudshell", + "https://support.google.com" ], "silent": true, - "concurrency": 5 + "concurrency": 5, + "retry": true, + "retryErrors": true, + "retryErrorsCount": 5, + "retryErrorsJitter": 3000 } From 0399ba46504eab6d74d9eb74487278d07aa68cc0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 22:08:43 +0000 Subject: [PATCH 105/142] docs(nodejs): version support policy edits (#1346) (#183) --- packages/google-analytics-admin/README.md | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index 905ff95462f..c7e52693178 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -112,21 +112,21 @@ also contains samples. Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). 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. -Client libraries targeting some end-of-life versions of Node.js are available, and -can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). -The dist-tags follow the naming convention `legacy-(version)`. - -_Legacy Node.js versions are supported as a best effort:_ +Google's client libraries support legacy versions of Node.js runtimes on a +best-efforts basis with the following warnings: -* Legacy versions will not be tested in continuous integration. -* Some security patches may not be able to be backported. -* Dependencies will not be kept up-to-date, and features will not be backported. +* Legacy versions are not tested in continuous integration. +* Some security patches and features cannot be backported. +* Dependencies cannot be kept up-to-date. -#### Legacy tags available - -* `legacy-8`: install client libraries from this dist-tag for versions - compatible with Node.js 8. +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-analytics/admin@legacy-8` installs client libraries +for versions compatible with Node.js 8. ## Versioning From a2ba15b5129bfb83bf8863e3dc18cd9cde44e270 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 5 Feb 2022 18:38:56 +0100 Subject: [PATCH 106/142] chore(deps): update dependency sinon to v13 (#181) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^12.0.0` -> `^13.0.0`](https://renovatebot.com/diffs/npm/sinon/12.0.1/13.0.1) | [![age](https://badges.renovateapi.com/packages/npm/sinon/13.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/13.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/13.0.1/compatibility-slim/12.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/13.0.1/confidence-slim/12.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v13.0.1`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#​1301) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v13.0.0...v13.0.1) - [`ec4223f9`](https://togithub.com/sinonjs/sinon/commit/ec4223f94076d809483e3c6a7536cfc1278dd3c9) Bump nise to fix [sinonjs/nise#​193](https://togithub.com/sinonjs/nise/issues/193) (Carl-Erik Kopseng) - [`f329a010`](https://togithub.com/sinonjs/sinon/commit/f329a01040bfa5a79e039419220b21eda56935d6) Add unimported to workflow ([#​2441](https://togithub.com/sinonjs/sinon/issues/2441)) (Morgan Roderick) - [`7f16cec9`](https://togithub.com/sinonjs/sinon/commit/7f16cec968c3c8d4e580267fb00195916d6f827d) Enable updates to same major version (Carl-Erik Kopseng) - [`f784d7ad`](https://togithub.com/sinonjs/sinon/commit/f784d7ad2c86be0fc65477d69f8bdafca846ef2c) Re-introduce new version.sh script to version hook (Joel Bradshaw) > This was inadvertently removed during merge conflicts, and is required > for any of the new release process stuff to work - [`51c508ab`](https://togithub.com/sinonjs/sinon/commit/51c508ab77cf0f9fb8c5305ff626f6a2eada178f) Add dry run mode to `npm version` ([#​2436](https://togithub.com/sinonjs/sinon/issues/2436)) (Joel Bradshaw) > - Add DRY_RUN flag to skip publish/push > > - Allow overriding branch names for testing - [`05341dcf`](https://togithub.com/sinonjs/sinon/commit/05341dcf92ddca4a1d4c90966b1fcdc7039cff18) Update npm version scripts to manage new releases branch (Joel Bradshaw) - [`fe658261`](https://togithub.com/sinonjs/sinon/commit/fe65826171db69ed2986a1060db77944dbc98a6d) Remove release archives from master (Joel Bradshaw) > These archives made it difficult to find things in the GitHub interface, > and take up a lot of space in a checked-out repo for something that is > not useful to most people checking out the repository. > > The main purpose of these archives is to make old versions and > documentation available on the Sinon website that is run out of this > repo. This can be supported by using a separate branch for website > releases, and to maintain the archives. > > Following this commit, the `npm version` scripts will be updated to > automatically handle archiving the releases in the new releases branch > and keeping it up to date with master. > > Also remove the directories we removed from .prettierignore, since they > don't exist any more. *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2022-02-01.* ### [`v13.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#​1300) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v12.0.1...v13.0.0) - [`cf3d6c0c`](https://togithub.com/sinonjs/sinon/commit/cf3d6c0cd9689c0ee673b3daa8bf9abd70304392) Upgrade packages ([#​2431](https://togithub.com/sinonjs/sinon/issues/2431)) (Carl-Erik Kopseng) > - Update all @​sinonjs/ packages > > - Upgrade to fake-timers 9 > > - chore: ensure always using latest LTS release - [`41710467`](https://togithub.com/sinonjs/sinon/commit/417104670d575e96a1b645ea40ce763afa76fb1b) Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master ([#​2426](https://togithub.com/sinonjs/sinon/issues/2426)) (Joel Bradshaw) > Co-authored-by: Carl-Erik Kopseng - [`c80a7266`](https://togithub.com/sinonjs/sinon/commit/c80a72660e89d88b08275eff1028ecb9e26fd8e9) Bump node-fetch from 2.6.1 to 2.6.7 ([#​2430](https://togithub.com/sinonjs/sinon/issues/2430)) (dependabot\[bot]) > Co-authored-by: dependabot\[bot] <49699333+dependabot\[bot][@​users](https://togithub.com/users).noreply.github.com> - [`a00f14a9`](https://togithub.com/sinonjs/sinon/commit/a00f14a97dbe8c65afa89674e16ad73fc7d2fdc0) Add explicit export for `./*` ([#​2413](https://togithub.com/sinonjs/sinon/issues/2413)) (なつき) - [`b82ca7ad`](https://togithub.com/sinonjs/sinon/commit/b82ca7ad9b1add59007771f65a18ee34415de8ca) Bump cached-path-relative from 1.0.2 to 1.1.0 ([#​2428](https://togithub.com/sinonjs/sinon/issues/2428)) (dependabot\[bot]) - [`a9ea1427`](https://togithub.com/sinonjs/sinon/commit/a9ea142716c094ef3c432ecc4089f8207b8dd8b6) Add documentation for assert.calledOnceWithMatch ([#​2424](https://togithub.com/sinonjs/sinon/issues/2424)) (Mathias Schreck) - [`1d5ab86b`](https://togithub.com/sinonjs/sinon/commit/1d5ab86ba60e50dd69593ffed2bffd4b8faa0d38) Be more general in stripping off stack frames to fix Firefox tests ([#​2425](https://togithub.com/sinonjs/sinon/issues/2425)) (Joel Bradshaw) - [`56b06129`](https://togithub.com/sinonjs/sinon/commit/56b06129e223eae690265c37b1113067e2b31bdc) Check call count type ([#​2410](https://togithub.com/sinonjs/sinon/issues/2410)) (Joel Bradshaw) - [`7863e2df`](https://togithub.com/sinonjs/sinon/commit/7863e2dfdbda79e0a32e42af09e6539fc2f2b80f) Fix [#​2414](https://togithub.com/sinonjs/sinon/issues/2414): make Sinon available on homepage (Carl-Erik Kopseng) - [`fabaabdd`](https://togithub.com/sinonjs/sinon/commit/fabaabdda82f39a7f5b75b55bd56cf77b1cd4a8f) Bump nokogiri from 1.11.4 to 1.13.1 ([#​2423](https://togithub.com/sinonjs/sinon/issues/2423)) (dependabot\[bot]) - [`dbc0fbd2`](https://togithub.com/sinonjs/sinon/commit/dbc0fbd263c8419fa47f9c3b20cf47890a242d21) Bump shelljs from 0.8.4 to 0.8.5 ([#​2422](https://togithub.com/sinonjs/sinon/issues/2422)) (dependabot\[bot]) - [`fb8b3d72`](https://togithub.com/sinonjs/sinon/commit/fb8b3d72a85dc8fb0547f859baf3f03a22a039f7) Run Prettier (Carl-Erik Kopseng) - [`12a45939`](https://togithub.com/sinonjs/sinon/commit/12a45939e9b047b6d3663fe55f2eb383ec63c4e1) Fix 2377: Throw error when trying to stub non-configurable or non-writable properties ([#​2417](https://togithub.com/sinonjs/sinon/issues/2417)) (Stuart Dotson) > Fixes issue [#​2377](https://togithub.com/sinonjs/sinon/issues/2377) by throwing an error when trying to stub non-configurable or non-writable properties *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2022-01-28.*
--- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 724016a0209..d4150107358 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -56,7 +56,7 @@ "mocha": "^8.0.1", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^12.0.0", + "sinon": "^13.0.0", "ts-loader": "^9.0.0", "typescript": "^3.9.6" }, From 014b9b9253cc7a8123dc11c56b5d3f32b23ed91d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 18 Feb 2022 02:03:01 +0000 Subject: [PATCH 107/142] docs(samples): include metadata file, add exclusions for samples to handwritten libraries (#184) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: https://github.com/googleapis/googleapis/commit/84594b35af0c38efcd6967e8179d801702ad96ff Source-Link: https://github.com/googleapis/googleapis-gen/commit/ed74f970fd82914874e6b27b04763cfa66bafe9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9 --- ...ervice.acknowledge_user_data_collection.js | 9 +- ...splay_video360_advertiser_link_proposal.js | 9 +- ..._admin_service.archive_custom_dimension.js | 9 +- ...ics_admin_service.archive_custom_metric.js | 9 +- ...nalytics_admin_service.audit_user_links.js | 9 +- ...s_admin_service.batch_create_user_links.js | 9 +- ...s_admin_service.batch_delete_user_links.js | 9 +- ...tics_admin_service.batch_get_user_links.js | 9 +- ...s_admin_service.batch_update_user_links.js | 9 +- ...splay_video360_advertiser_link_proposal.js | 9 +- ...s_admin_service.create_conversion_event.js | 9 +- ...s_admin_service.create_custom_dimension.js | 9 +- ...tics_admin_service.create_custom_metric.js | 9 +- ...lytics_admin_service.create_data_stream.js | 9 +- ...create_display_video360_advertiser_link.js | 9 +- ...splay_video360_advertiser_link_proposal.js | 9 +- ...tics_admin_service.create_firebase_link.js | 9 +- ...cs_admin_service.create_google_ads_link.js | 9 +- ...vice.create_measurement_protocol_secret.js | 9 +- ...analytics_admin_service.create_property.js | 9 +- ...nalytics_admin_service.create_user_link.js | 9 +- ...cs_admin_service.create_web_data_stream.js | 9 +- .../analytics_admin_service.delete_account.js | 9 +- ..._service.delete_android_app_data_stream.js | 9 +- ...s_admin_service.delete_conversion_event.js | 9 +- ...lytics_admin_service.delete_data_stream.js | 9 +- ...delete_display_video360_advertiser_link.js | 9 +- ...splay_video360_advertiser_link_proposal.js | 9 +- ...tics_admin_service.delete_firebase_link.js | 9 +- ...cs_admin_service.delete_google_ads_link.js | 9 +- ...dmin_service.delete_ios_app_data_stream.js | 9 +- ...vice.delete_measurement_protocol_secret.js | 9 +- ...analytics_admin_service.delete_property.js | 9 +- ...nalytics_admin_service.delete_user_link.js | 9 +- ...cs_admin_service.delete_web_data_stream.js | 9 +- .../analytics_admin_service.get_account.js | 9 +- ...min_service.get_android_app_data_stream.js | 9 +- ...tics_admin_service.get_conversion_event.js | 9 +- ...tics_admin_service.get_custom_dimension.js | 9 +- ...alytics_admin_service.get_custom_metric.js | 9 +- ...min_service.get_data_retention_settings.js | 9 +- ...admin_service.get_data_sharing_settings.js | 9 +- ...analytics_admin_service.get_data_stream.js | 9 +- ...ce.get_display_video360_advertiser_link.js | 9 +- ...splay_video360_advertiser_link_proposal.js | 9 +- ...ytics_admin_service.get_global_site_tag.js | 9 +- ...min_service.get_google_signals_settings.js | 9 +- ...s_admin_service.get_ios_app_data_stream.js | 9 +- ...service.get_measurement_protocol_secret.js | 9 +- .../analytics_admin_service.get_property.js | 9 +- .../analytics_admin_service.get_user_link.js | 9 +- ...ytics_admin_service.get_web_data_stream.js | 9 +- ...cs_admin_service.list_account_summaries.js | 9 +- .../analytics_admin_service.list_accounts.js | 9 +- ...n_service.list_android_app_data_streams.js | 9 +- ...cs_admin_service.list_conversion_events.js | 9 +- ...cs_admin_service.list_custom_dimensions.js | 9 +- ...ytics_admin_service.list_custom_metrics.js | 9 +- ...alytics_admin_service.list_data_streams.js | 9 +- ...play_video360_advertiser_link_proposals.js | 9 +- ....list_display_video360_advertiser_links.js | 9 +- ...ytics_admin_service.list_firebase_links.js | 9 +- ...ics_admin_service.list_google_ads_links.js | 9 +- ...admin_service.list_ios_app_data_streams.js | 9 +- ...rvice.list_measurement_protocol_secrets.js | 9 +- ...analytics_admin_service.list_properties.js | 9 +- ...analytics_admin_service.list_user_links.js | 9 +- ...ics_admin_service.list_web_data_streams.js | 9 +- ..._admin_service.provision_account_ticket.js | 9 +- ...in_service.search_change_history_events.js | 9 +- .../analytics_admin_service.update_account.js | 9 +- ..._service.update_android_app_data_stream.js | 9 +- ...s_admin_service.update_custom_dimension.js | 9 +- ...tics_admin_service.update_custom_metric.js | 9 +- ..._service.update_data_retention_settings.js | 9 +- ...lytics_admin_service.update_data_stream.js | 9 +- ...update_display_video360_advertiser_link.js | 9 +- ...cs_admin_service.update_google_ads_link.js | 9 +- ..._service.update_google_signals_settings.js | 9 +- ...dmin_service.update_ios_app_data_stream.js | 9 +- ...vice.update_measurement_protocol_secret.js | 9 +- ...analytics_admin_service.update_property.js | 9 +- ...nalytics_admin_service.update_user_link.js | 9 +- ...cs_admin_service.update_web_data_stream.js | 9 +- ...tadata.google.analytics.admin.v1alpha.json | 3671 +++++++++++++++++ .../v1alpha/analytics_admin_service_client.ts | 5 +- .../gapic_analytics_admin_service_v1alpha.ts | 1263 +++++- 87 files changed, 5512 insertions(+), 183 deletions(-) create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js index 7fed67bcfac..5bcfc38bc05 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js index 7fc00a94def..1f691a3c09c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js index 732d54fe56d..48be3a7a3f7 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js index 6a1f26bbc5b..5afad7030d6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js index e0ae6fa81e6..14e86fb59a6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js index adabf63ba54..cf09400f176 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js index 71a6d938923..9e6d2d6c4f6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js index 020d39cc6bf..b43c8776382 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js index 6935da0adbb..b3e8d493cdd 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js index 961bbcd6790..9003bf739ba 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js index 1fe1ebcf75a..4e29baea85a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js index 6645dbc0460..015b39dd61e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js index 14fb89fd972..896c7cae90d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js index 12713154468..447c77a9e0a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js index 2688f8f863f..fc9ecfc0d55 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js index 09e43599819..9815ab9bcb4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js index 4c4d25da226..2022590fe57 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js index 6669a769a86..fc6c764ecad 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js index eb87c5930ef..ae7ce6d7af8 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js index 408aa42e8a9..37a26536a0c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js index 70a48b9c0b6..7f10712fd48 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js index 52331de1013..67d01614dca 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js index 6f53e221918..0881043b914 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js index 84388f4015f..49c928df4db 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js index e64fb451593..4d82df818be 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js index 4f0d5d7906f..9ee9e2e35dd 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js index e87904f4d05..6709f70153b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js index 59961d38e79..49e71c499f3 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js index 8105bf895f0..fa775a84e75 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js index bd1dd495f44..7e4859959a4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js index a24b2e75973..66f2b9dd94d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js index b3faa5de66e..740e7c14cd6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js index 23555331f54..a013f3d51aa 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js index 7a22875ee5a..c8e619786a6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js index 200ddafccad..cf8c8fe6f19 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js index 3593d4c3130..a8d2bd23b9d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js index c8c33224715..76889efa1eb 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js index a79201b10df..8eaf6d169c7 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js index d2420f176a4..cf71366de5b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js index a837094c27e..3ee1ce9e65b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js index 9c054e1f6d4..7a734340ca8 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js index 9a23c6f3818..651593e444c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js index cc891e41cb1..9e94747b003 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js index 6925299ca44..fede5330880 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js index 7f4f02b2e1b..b13181c0dd6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js index 7abeb9362a9..3b078adf0ff 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js index 968e70123a4..6843a1cd99d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js index 39ae8df45cd..7101b4ffb87 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js index d97a2ce1e24..e6f2a052714 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js index 9fced3ccade..789def70fc6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js index 50a0e70a18e..9fedb795963 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js index 83b948039a1..db5780ee37a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js index a7ab7383b4d..98d74dfdee6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js index dfade9dd3a1..a31cb17645c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js index b03e4c67f32..e22d7ffcf77 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js index 51c4ce6d91b..c5e1b273421 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js index 7c5acd38275..fc6cd936ba9 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js index 817bf631245..84b2067dc31 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js index 840d5fc2442..76d3d10fead 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js index 34ce44cd473..2ed63f61622 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js index 91c1553e49e..13637942239 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js index 0fe813bd42a..07fb24d8107 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js index 02a870b7339..96b093b9c7e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js index c842d07e0b6..adc4ece241c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js index 02c93177f9f..73367dd8255 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js index ae925cf3424..5596bf43c36 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js index 18ea8de73f4..0f0975f09e4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js index 880e4f7d023..a7106477940 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js index 3a158ddb3a1..9c9255008be 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js index 4d6360a037e..b9f9d576365 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js index c81fa97d3e4..4a3829a66de 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js index 2302eb2d587..11cc1620d5f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js index 759d441c197..b6638b1f173 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js index d79d62b6beb..50af269b9c3 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js index d1822d11328..13e6dd5cad7 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js index f3b93594b80..f3c6fc73620 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js index 3040260f02b..1697b7a8489 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js index 1dee702ef3b..ba2fae475ea 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js index 27993f209c8..85e7f515556 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js index 4aeb6c6a154..257f8696bbc 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js index e929f72e94d..294e1271f18 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js index ca6ded4e5c3..c4cbff7c281 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js index fee280cbe0b..3c3a48a7b0a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js index f2b2ec6b9b4..d951eeeb3f0 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// 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'; diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json new file mode 100644 index 00000000000..c38c98f451b --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -0,0 +1,3671 @@ +{ + "clientLibrary": { + "name": "nodejs-admin", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.analytics.admin.v1alpha", + "version": "v1alpha" + } + ] + }, + "snippets": [ + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async", + "title": "AnalyticsAdminService getAccount Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single Account.", + "canonical": true, + "file": "analytics_admin_service.get_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Account", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async", + "title": "AnalyticsAdminService listAccounts Sample", + "origin": "API_DEFINITION", + "description": " Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: \"trashed\") accounts are excluded by default. Returns an empty list if no relevant accounts are found.", + "canonical": true, + "file": "analytics_admin_service.list_accounts.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAccounts", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", + "async": true, + "parameters": [ + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "show_deleted", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListAccountsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAccounts", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async", + "title": "AnalyticsAdminService deleteAccount Sample", + "origin": "API_DEFINITION", + "description": " Marks target Account as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", + "canonical": true, + "file": "analytics_admin_service.delete_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async", + "title": "AnalyticsAdminService updateAccount Sample", + "origin": "API_DEFINITION", + "description": " Updates an account.", + "canonical": true, + "file": "analytics_admin_service.update_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", + "async": true, + "parameters": [ + { + "name": "account", + "type": ".google.analytics.admin.v1alpha.Account" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Account", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async", + "title": "AnalyticsAdminService provisionAccountTicket Sample", + "origin": "API_DEFINITION", + "description": " Requests a ticket for creating an account.", + "canonical": true, + "file": "analytics_admin_service.provision_account_ticket.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ProvisionAccountTicket", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", + "async": true, + "parameters": [ + { + "name": "account", + "type": ".google.analytics.admin.v1alpha.Account" + }, + { + "name": "redirect_uri", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ProvisionAccountTicketResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ProvisionAccountTicket", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async", + "title": "AnalyticsAdminService listAccountSummaries Sample", + "origin": "API_DEFINITION", + "description": " Returns summaries of all accounts accessible by the caller.", + "canonical": true, + "file": "analytics_admin_service.list_account_summaries.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAccountSummaries", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", + "async": true, + "parameters": [ + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListAccountSummariesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAccountSummaries", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async", + "title": "AnalyticsAdminService getProperty Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single \"GA4\" Property.", + "canonical": true, + "file": "analytics_admin_service.get_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async", + "title": "AnalyticsAdminService listProperties Sample", + "origin": "API_DEFINITION", + "description": " Returns child Properties under the specified parent Account. Only \"GA4\" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", + "canonical": true, + "file": "analytics_admin_service.list_properties.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListProperties", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "show_deleted", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListPropertiesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListProperties", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async", + "title": "AnalyticsAdminService createProperty Sample", + "origin": "API_DEFINITION", + "description": " Creates an \"GA4\" property with the specified location and attributes.", + "canonical": true, + "file": "analytics_admin_service.create_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", + "async": true, + "parameters": [ + { + "name": "property", + "type": ".google.analytics.admin.v1alpha.Property" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async", + "title": "AnalyticsAdminService deleteProperty Sample", + "origin": "API_DEFINITION", + "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.", + "canonical": true, + "file": "analytics_admin_service.delete_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async", + "title": "AnalyticsAdminService updateProperty Sample", + "origin": "API_DEFINITION", + "description": " Updates a property.", + "canonical": true, + "file": "analytics_admin_service.update_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", + "async": true, + "parameters": [ + { + "name": "property", + "type": ".google.analytics.admin.v1alpha.Property" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async", + "title": "AnalyticsAdminService getUserLink Sample", + "origin": "API_DEFINITION", + "description": " Gets information about a user's link to an account or property.", + "canonical": true, + "file": "analytics_admin_service.get_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.UserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async", + "title": "AnalyticsAdminService batchGetUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Gets information about multiple users' links to an account or property.", + "canonical": true, + "file": "analytics_admin_service.batch_get_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchGetUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "names", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.analytics.admin.v1alpha.BatchGetUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchGetUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async", + "title": "AnalyticsAdminService listUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists all user links on an account or property.", + "canonical": true, + "file": "analytics_admin_service.list_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async", + "title": "AnalyticsAdminService auditUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.", + "canonical": true, + "file": "analytics_admin_service.audit_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AuditUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AuditUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "AuditUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async", + "title": "AnalyticsAdminService createUserLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be unioned with the permissions specified in the new UserLink.", + "canonical": true, + "file": "analytics_admin_service.create_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "notify_new_user", + "type": "TYPE_BOOL" + }, + { + "name": "user_link", + "type": ".google.analytics.admin.v1alpha.UserLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.UserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async", + "title": "AnalyticsAdminService batchCreateUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.", + "canonical": true, + "file": "analytics_admin_service.batch_create_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "notify_new_users", + "type": "TYPE_BOOL" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchCreateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async", + "title": "AnalyticsAdminService updateUserLink Sample", + "origin": "API_DEFINITION", + "description": " Updates a user link on an account or property.", + "canonical": true, + "file": "analytics_admin_service.update_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLink", + "async": true, + "parameters": [ + { + "name": "user_link", + "type": ".google.analytics.admin.v1alpha.UserLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.UserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async", + "title": "AnalyticsAdminService batchUpdateUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Updates information about multiple users' links to an account or property.", + "canonical": true, + "file": "analytics_admin_service.batch_update_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchUpdateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchUpdateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async", + "title": "AnalyticsAdminService deleteUserLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a user link on an account or property.", + "canonical": true, + "file": "analytics_admin_service.delete_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async", + "title": "AnalyticsAdminService batchDeleteUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Deletes information about multiple users' links to an account or property.", + "canonical": true, + "file": "analytics_admin_service.batch_delete_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchDeleteUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchDeleteUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_async", + "title": "AnalyticsAdminService getWebDataStream Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single WebDataStream", + "canonical": true, + "file": "analytics_admin_service.get_web_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.WebDataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_async", + "title": "AnalyticsAdminService deleteWebDataStream Sample", + "origin": "API_DEFINITION", + "description": " Deletes a web stream on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_web_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_async", + "title": "AnalyticsAdminService updateWebDataStream Sample", + "origin": "API_DEFINITION", + "description": " Updates a web stream on a property.", + "canonical": true, + "file": "analytics_admin_service.update_web_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStream", + "async": true, + "parameters": [ + { + "name": "web_data_stream", + "type": ".google.analytics.admin.v1alpha.WebDataStream" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.WebDataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_async", + "title": "AnalyticsAdminService createWebDataStream Sample", + "origin": "API_DEFINITION", + "description": " Creates a web stream with the specified location and attributes.", + "canonical": true, + "file": "analytics_admin_service.create_web_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStream", + "async": true, + "parameters": [ + { + "name": "web_data_stream", + "type": ".google.analytics.admin.v1alpha.WebDataStream" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.WebDataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateWebDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_async", + "title": "AnalyticsAdminService listWebDataStreams Sample", + "origin": "API_DEFINITION", + "description": " Returns child web data streams under the specified parent property. Web data streams will be excluded if the caller does not have access. Returns an empty list if no relevant web data streams are found.", + "canonical": true, + "file": "analytics_admin_service.list_web_data_streams.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListWebDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreams", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListWebDataStreamsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListWebDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreams", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_async", + "title": "AnalyticsAdminService getIosAppDataStream Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single IosAppDataStream", + "canonical": true, + "file": "analytics_admin_service.get_ios_app_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIosAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.IosAppDataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetIosAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_async", + "title": "AnalyticsAdminService deleteIosAppDataStream Sample", + "origin": "API_DEFINITION", + "description": " Deletes an iOS app stream on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_ios_app_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteIosAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteIosAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_async", + "title": "AnalyticsAdminService updateIosAppDataStream Sample", + "origin": "API_DEFINITION", + "description": " Updates an iOS app stream on a property.", + "canonical": true, + "file": "analytics_admin_service.update_ios_app_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateIosAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStream", + "async": true, + "parameters": [ + { + "name": "ios_app_data_stream", + "type": ".google.analytics.admin.v1alpha.IosAppDataStream" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.IosAppDataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateIosAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_async", + "title": "AnalyticsAdminService listIosAppDataStreams Sample", + "origin": "API_DEFINITION", + "description": " Returns child iOS app data streams under the specified parent property. iOS app data streams will be excluded if the caller does not have access. Returns an empty list if no relevant iOS app data streams are found.", + "canonical": true, + "file": "analytics_admin_service.list_ios_app_data_streams.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListIosAppDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreams", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListIosAppDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreams", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_async", + "title": "AnalyticsAdminService getAndroidAppDataStream Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single AndroidAppDataStream", + "canonical": true, + "file": "analytics_admin_service.get_android_app_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAndroidAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AndroidAppDataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetAndroidAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_async", + "title": "AnalyticsAdminService deleteAndroidAppDataStream Sample", + "origin": "API_DEFINITION", + "description": " Deletes an android app stream on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_android_app_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteAndroidAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteAndroidAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_async", + "title": "AnalyticsAdminService updateAndroidAppDataStream Sample", + "origin": "API_DEFINITION", + "description": " Updates an android app stream on a property.", + "canonical": true, + "file": "analytics_admin_service.update_android_app_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAndroidAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStream", + "async": true, + "parameters": [ + { + "name": "android_app_data_stream", + "type": ".google.analytics.admin.v1alpha.AndroidAppDataStream" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AndroidAppDataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateAndroidAppDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_async", + "title": "AnalyticsAdminService listAndroidAppDataStreams Sample", + "origin": "API_DEFINITION", + "description": " Returns child android app streams under the specified parent property. Android app streams will be excluded if the caller does not have access. Returns an empty list if no relevant android app streams are found.", + "canonical": true, + "file": "analytics_admin_service.list_android_app_data_streams.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAndroidAppDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreams", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAndroidAppDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreams", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async", + "title": "AnalyticsAdminService createFirebaseLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a FirebaseLink. Properties can have at most one FirebaseLink.", + "canonical": true, + "file": "analytics_admin_service.create_firebase_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "firebase_link", + "type": ".google.analytics.admin.v1alpha.FirebaseLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.FirebaseLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async", + "title": "AnalyticsAdminService deleteFirebaseLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a FirebaseLink on a property", + "canonical": true, + "file": "analytics_admin_service.delete_firebase_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async", + "title": "AnalyticsAdminService listFirebaseLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.", + "canonical": true, + "file": "analytics_admin_service.list_firebase_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFirebaseLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListFirebaseLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListFirebaseLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async", + "title": "AnalyticsAdminService getGlobalSiteTag Sample", + "origin": "API_DEFINITION", + "description": " Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.", + "canonical": true, + "file": "analytics_admin_service.get_global_site_tag.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGlobalSiteTag", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GlobalSiteTag", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetGlobalSiteTag", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async", + "title": "AnalyticsAdminService createGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a GoogleAdsLink.", + "canonical": true, + "file": "analytics_admin_service.create_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "google_ads_link", + "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async", + "title": "AnalyticsAdminService updateGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Updates a GoogleAdsLink on a property", + "canonical": true, + "file": "analytics_admin_service.update_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "google_ads_link", + "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async", + "title": "AnalyticsAdminService deleteGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a GoogleAdsLink on a property", + "canonical": true, + "file": "analytics_admin_service.delete_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async", + "title": "AnalyticsAdminService listGoogleAdsLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists GoogleAdsLinks on a property.", + "canonical": true, + "file": "analytics_admin_service.list_google_ads_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGoogleAdsLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListGoogleAdsLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async", + "title": "AnalyticsAdminService getDataSharingSettings Sample", + "origin": "API_DEFINITION", + "description": " Get data sharing settings on an account. Data sharing settings are singletons.", + "canonical": true, + "file": "analytics_admin_service.get_data_sharing_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataSharingSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataSharingSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataSharingSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService getMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single \"GA4\" MeasurementProtocolSecret.", + "canonical": true, + "file": "analytics_admin_service.get_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async", + "title": "AnalyticsAdminService listMeasurementProtocolSecrets Sample", + "origin": "API_DEFINITION", + "description": " Returns child MeasurementProtocolSecrets under the specified parent Property.", + "canonical": true, + "file": "analytics_admin_service.list_measurement_protocol_secrets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListMeasurementProtocolSecrets", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListMeasurementProtocolSecrets", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService createMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Creates a measurement protocol secret.", + "canonical": true, + "file": "analytics_admin_service.create_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "measurement_protocol_secret", + "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" + } + ], + "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService deleteMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Deletes target MeasurementProtocolSecret.", + "canonical": true, + "file": "analytics_admin_service.delete_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService updateMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Updates a measurement protocol secret.", + "canonical": true, + "file": "analytics_admin_service.update_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "measurement_protocol_secret", + "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async", + "title": "AnalyticsAdminService acknowledgeUserDataCollection Sample", + "origin": "API_DEFINITION", + "description": " Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or via this API) before MeasurementProtocolSecret resources may be created.", + "canonical": true, + "file": "analytics_admin_service.acknowledge_user_data_collection.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AcknowledgeUserDataCollection", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", + "async": true, + "parameters": [ + { + "name": "property", + "type": "TYPE_STRING" + }, + { + "name": "acknowledgement", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "AcknowledgeUserDataCollection", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async", + "title": "AnalyticsAdminService searchChangeHistoryEvents Sample", + "origin": "API_DEFINITION", + "description": " Searches through all changes to an account or its children given the specified set of filters.", + "canonical": true, + "file": "analytics_admin_service.search_change_history_events.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SearchChangeHistoryEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", + "async": true, + "parameters": [ + { + "name": "account", + "type": "TYPE_STRING" + }, + { + "name": "property", + "type": "TYPE_STRING" + }, + { + "name": "resource_type", + "type": "TYPE_ENUM[]" + }, + { + "name": "action", + "type": "TYPE_ENUM[]" + }, + { + "name": "actor_email", + "type": "TYPE_STRING[]" + }, + { + "name": "earliest_change_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "latest_change_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "SearchChangeHistoryEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async", + "title": "AnalyticsAdminService getGoogleSignalsSettings Sample", + "origin": "API_DEFINITION", + "description": " Lookup for Google Signals settings for a property.", + "canonical": true, + "file": "analytics_admin_service.get_google_signals_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async", + "title": "AnalyticsAdminService updateGoogleSignalsSettings Sample", + "origin": "API_DEFINITION", + "description": " Updates Google Signals settings for a property.", + "canonical": true, + "file": "analytics_admin_service.update_google_signals_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", + "async": true, + "parameters": [ + { + "name": "google_signals_settings", + "type": ".google.analytics.admin.v1alpha.GoogleSignalsSettings" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async", + "title": "AnalyticsAdminService createConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Creates a conversion event with the specified attributes.", + "canonical": true, + "file": "analytics_admin_service.create_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", + "async": true, + "parameters": [ + { + "name": "conversion_event", + "type": ".google.analytics.admin.v1alpha.ConversionEvent" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async", + "title": "AnalyticsAdminService getConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Retrieve a single conversion event.", + "canonical": true, + "file": "analytics_admin_service.get_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async", + "title": "AnalyticsAdminService deleteConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Deletes a conversion event in a property.", + "canonical": true, + "file": "analytics_admin_service.delete_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async", + "title": "AnalyticsAdminService listConversionEvents Sample", + "origin": "API_DEFINITION", + "description": " Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.", + "canonical": true, + "file": "analytics_admin_service.list_conversion_events.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListConversionEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListConversionEventsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListConversionEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Look up a single DisplayVideo360AdvertiserLink", + "canonical": true, + "file": "analytics_admin_service.get_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async", + "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists all DisplayVideo360AdvertiserLinks on a property.", + "canonical": true, + "file": "analytics_admin_service.list_display_video360_advertiser_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDisplayVideo360AdvertiserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListDisplayVideo360AdvertiserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.", + "canonical": true, + "file": "analytics_admin_service.create_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "display_video_360_advertiser_link", + "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a DisplayVideo360AdvertiserLink on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService updateDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Updates a DisplayVideo360AdvertiserLink on a property.", + "canonical": true, + "file": "analytics_admin_service.update_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "display_video_360_advertiser_link", + "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single DisplayVideo360AdvertiserLinkProposal.", + "canonical": true, + "file": "analytics_admin_service.get_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async", + "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinkProposals Sample", + "origin": "API_DEFINITION", + "description": " Lists DisplayVideo360AdvertiserLinkProposals on a property.", + "canonical": true, + "file": "analytics_admin_service.list_display_video360_advertiser_link_proposals.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDisplayVideo360AdvertiserLinkProposals", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListDisplayVideo360AdvertiserLinkProposals", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Creates a DisplayVideo360AdvertiserLinkProposal.", + "canonical": true, + "file": "analytics_admin_service.create_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "display_video_360_advertiser_link_proposal", + "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.", + "canonical": true, + "file": "analytics_admin_service.delete_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService approveDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.", + "canonical": true, + "file": "analytics_admin_service.approve_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService cancelDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.", + "canonical": true, + "file": "analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async", + "title": "AnalyticsAdminService createCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Creates a CustomDimension.", + "canonical": true, + "file": "analytics_admin_service.create_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "custom_dimension", + "type": ".google.analytics.admin.v1alpha.CustomDimension" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async", + "title": "AnalyticsAdminService updateCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Updates a CustomDimension on a property.", + "canonical": true, + "file": "analytics_admin_service.update_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", + "async": true, + "parameters": [ + { + "name": "custom_dimension", + "type": ".google.analytics.admin.v1alpha.CustomDimension" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async", + "title": "AnalyticsAdminService listCustomDimensions Sample", + "origin": "API_DEFINITION", + "description": " Lists CustomDimensions on a property.", + "canonical": true, + "file": "analytics_admin_service.list_custom_dimensions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCustomDimensions", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListCustomDimensionsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListCustomDimensions", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async", + "title": "AnalyticsAdminService archiveCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Archives a CustomDimension on a property.", + "canonical": true, + "file": "analytics_admin_service.archive_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ArchiveCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ArchiveCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async", + "title": "AnalyticsAdminService getCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single CustomDimension.", + "canonical": true, + "file": "analytics_admin_service.get_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async", + "title": "AnalyticsAdminService createCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Creates a CustomMetric.", + "canonical": true, + "file": "analytics_admin_service.create_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "custom_metric", + "type": ".google.analytics.admin.v1alpha.CustomMetric" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async", + "title": "AnalyticsAdminService updateCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Updates a CustomMetric on a property.", + "canonical": true, + "file": "analytics_admin_service.update_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", + "async": true, + "parameters": [ + { + "name": "custom_metric", + "type": ".google.analytics.admin.v1alpha.CustomMetric" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async", + "title": "AnalyticsAdminService listCustomMetrics Sample", + "origin": "API_DEFINITION", + "description": " Lists CustomMetrics on a property.", + "canonical": true, + "file": "analytics_admin_service.list_custom_metrics.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCustomMetrics", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListCustomMetricsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListCustomMetrics", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async", + "title": "AnalyticsAdminService archiveCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Archives a CustomMetric on a property.", + "canonical": true, + "file": "analytics_admin_service.archive_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ArchiveCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ArchiveCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async", + "title": "AnalyticsAdminService getCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single CustomMetric.", + "canonical": true, + "file": "analytics_admin_service.get_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async", + "title": "AnalyticsAdminService getDataRetentionSettings Sample", + "origin": "API_DEFINITION", + "description": " Returns the singleton data retention settings for this property.", + "canonical": true, + "file": "analytics_admin_service.get_data_retention_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async", + "title": "AnalyticsAdminService updateDataRetentionSettings Sample", + "origin": "API_DEFINITION", + "description": " Updates the singleton data retention settings for this property.", + "canonical": true, + "file": "analytics_admin_service.update_data_retention_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", + "async": true, + "parameters": [ + { + "name": "data_retention_settings", + "type": ".google.analytics.admin.v1alpha.DataRetentionSettings" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async", + "title": "AnalyticsAdminService createDataStream Sample", + "origin": "API_DEFINITION", + "description": " Creates a DataStream.", + "canonical": true, + "file": "analytics_admin_service.create_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "data_stream", + "type": ".google.analytics.admin.v1alpha.DataStream" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async", + "title": "AnalyticsAdminService deleteDataStream Sample", + "origin": "API_DEFINITION", + "description": " Deletes a DataStream on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async", + "title": "AnalyticsAdminService updateDataStream Sample", + "origin": "API_DEFINITION", + "description": " Updates a DataStream on a property.", + "canonical": true, + "file": "analytics_admin_service.update_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", + "async": true, + "parameters": [ + { + "name": "data_stream", + "type": ".google.analytics.admin.v1alpha.DataStream" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async", + "title": "AnalyticsAdminService listDataStreams Sample", + "origin": "API_DEFINITION", + "description": " Lists DataStreams on a property.", + "canonical": true, + "file": "analytics_admin_service.list_data_streams.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListDataStreamsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async", + "title": "AnalyticsAdminService getDataStream Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single DataStream.", + "canonical": true, + "file": "analytics_admin_service.get_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + } + ] +} diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 833072a4bdf..e72c26ca711 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -11795,9 +11795,8 @@ export class AnalyticsAdminServiceClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.analyticsAdminServiceStub!.then(stub => { + if (this.analyticsAdminServiceStub && !this._terminated) { + return this.analyticsAdminServiceStub.then(stub => { this._terminated = true; stub.close(); }); diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 6f4184f679d..5903da47a85 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -159,13 +159,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert(client.analyticsAdminServiceStub); }); - it('has close method', () => { + it('has close method for the initialized client', done => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.close(); + client.initialize(); + assert(client.analyticsAdminServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + client.close().then(() => { + done(); + }); }); it('has getProjectId method', async () => { @@ -316,6 +332,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getAccount with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getAccount(request), expectedError); + }); }); describe('deleteAccount', () => { @@ -430,6 +463,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteAccount with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteAccount(request), expectedError); + }); }); describe('updateAccount', () => { @@ -547,6 +597,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateAccount with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedHeaderRequestParams = 'account.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateAccount(request), expectedError); + }); }); describe('provisionAccountTicket', () => { @@ -641,6 +709,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes provisionAccountTicket with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() + ); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.provisionAccountTicket(request), + expectedError + ); + }); }); describe('getProperty', () => { @@ -755,6 +841,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetPropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getProperty(request), expectedError); + }); }); describe('createProperty', () => { @@ -845,6 +948,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() + ); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createProperty(request), expectedError); + }); }); describe('deleteProperty', () => { @@ -959,6 +1077,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteProperty(request), expectedError); + }); }); describe('updateProperty', () => { @@ -1076,6 +1211,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedHeaderRequestParams = 'property.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateProperty(request), expectedError); + }); }); describe('getUserLink', () => { @@ -1190,6 +1343,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getUserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getUserLink(request), expectedError); + }); }); describe('batchGetUserLinks', () => { @@ -1304,6 +1474,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes batchGetUserLinks with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.batchGetUserLinks(request), expectedError); + }); }); describe('createUserLink', () => { @@ -1418,6 +1605,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createUserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createUserLink(request), expectedError); + }); }); describe('batchCreateUserLinks', () => { @@ -1533,6 +1737,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes batchCreateUserLinks with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.batchCreateUserLinks(request), expectedError); + }); }); describe('updateUserLink', () => { @@ -1650,6 +1871,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateUserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() + ); + request.userLink = {}; + request.userLink.name = ''; + const expectedHeaderRequestParams = 'user_link.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateUserLink(request), expectedError); + }); }); describe('batchUpdateUserLinks', () => { @@ -1765,6 +2004,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes batchUpdateUserLinks with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.batchUpdateUserLinks(request), expectedError); + }); }); describe('deleteUserLink', () => { @@ -1879,6 +2135,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteUserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteUserLink(request), expectedError); + }); }); describe('batchDeleteUserLinks', () => { @@ -1994,6 +2267,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes batchDeleteUserLinks with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.batchDeleteUserLinks(request), expectedError); + }); }); describe('getWebDataStream', () => { @@ -2108,6 +2398,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getWebDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getWebDataStream(request), expectedError); + }); }); describe('deleteWebDataStream', () => { @@ -2223,10 +2530,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); - }); - describe('updateWebDataStream', () => { - it('invokes updateWebDataStream without error', async () => { + it('invokes deleteWebDataStream with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2234,7 +2539,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteWebDataStream(request), expectedError); + }); + }); + + describe('updateWebDataStream', () => { + it('invokes updateWebDataStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() ); request.webDataStream = {}; request.webDataStream.name = ''; @@ -2341,6 +2665,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateWebDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + ); + request.webDataStream = {}; + request.webDataStream.name = ''; + const expectedHeaderRequestParams = 'web_data_stream.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateWebDataStream(request), expectedError); + }); }); describe('createWebDataStream', () => { @@ -2456,6 +2798,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createWebDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createWebDataStream(request), expectedError); + }); }); describe('getIosAppDataStream', () => { @@ -2571,6 +2930,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getIosAppDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getIosAppDataStream(request), expectedError); + }); }); describe('deleteIosAppDataStream', () => { @@ -2689,6 +3065,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteIosAppDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteIosAppDataStream(request), + expectedError + ); + }); }); describe('updateIosAppDataStream', () => { @@ -2810,6 +3206,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateIosAppDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + ); + request.iosAppDataStream = {}; + request.iosAppDataStream.name = ''; + const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateIosAppDataStream(request), + expectedError + ); + }); }); describe('getAndroidAppDataStream', () => { @@ -2928,6 +3345,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getAndroidAppDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getAndroidAppDataStream(request), + expectedError + ); + }); }); describe('deleteAndroidAppDataStream', () => { @@ -3046,6 +3483,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteAndroidAppDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteAndroidAppDataStream(request), + expectedError + ); + }); }); describe('updateAndroidAppDataStream', () => { @@ -3167,6 +3624,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateAndroidAppDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + ); + request.androidAppDataStream = {}; + request.androidAppDataStream.name = ''; + const expectedHeaderRequestParams = 'android_app_data_stream.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateAndroidAppDataStream(request), + expectedError + ); + }); }); describe('createFirebaseLink', () => { @@ -3282,6 +3760,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createFirebaseLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createFirebaseLink(request), expectedError); + }); }); describe('deleteFirebaseLink', () => { @@ -3397,6 +3892,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteFirebaseLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteFirebaseLink(request), expectedError); + }); }); describe('getGlobalSiteTag', () => { @@ -3511,6 +4023,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getGlobalSiteTag with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getGlobalSiteTag(request), expectedError); + }); }); describe('createGoogleAdsLink', () => { @@ -3626,6 +4155,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createGoogleAdsLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createGoogleAdsLink(request), expectedError); + }); }); describe('updateGoogleAdsLink', () => { @@ -3744,6 +4290,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateGoogleAdsLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateGoogleAdsLink(request), expectedError); + }); }); describe('deleteGoogleAdsLink', () => { @@ -3859,6 +4423,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteGoogleAdsLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); + }); }); describe('getDataSharingSettings', () => { @@ -3977,6 +4558,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDataSharingSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getDataSharingSettings(request), + expectedError + ); + }); }); describe('getMeasurementProtocolSecret', () => { @@ -4095,10 +4696,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); - }); - describe('createMeasurementProtocolSecret', () => { - it('invokes createMeasurementProtocolSecret without error', async () => { + it('invokes getMeasurementProtocolSecret with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4106,10 +4705,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getMeasurementProtocolSecret(request), + expectedError + ); + }); + }); + + describe('createMeasurementProtocolSecret', () => { + it('invokes createMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -4213,6 +4834,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createMeasurementProtocolSecret with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createMeasurementProtocolSecret(request), + expectedError + ); + }); }); describe('deleteMeasurementProtocolSecret', () => { @@ -4331,6 +4972,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteMeasurementProtocolSecret with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteMeasurementProtocolSecret(request), + expectedError + ); + }); }); describe('updateMeasurementProtocolSecret', () => { @@ -4452,6 +5113,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateMeasurementProtocolSecret with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateMeasurementProtocolSecret(request), + expectedError + ); + }); }); describe('acknowledgeUserDataCollection', () => { @@ -4570,6 +5252,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes acknowledgeUserDataCollection with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() + ); + request.property = ''; + const expectedHeaderRequestParams = 'property='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.acknowledgeUserDataCollection(request), + expectedError + ); + }); }); describe('getGoogleSignalsSettings', () => { @@ -4688,6 +5390,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getGoogleSignalsSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getGoogleSignalsSettings(request), + expectedError + ); + }); }); describe('updateGoogleSignalsSettings', () => { @@ -4809,6 +5531,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateGoogleSignalsSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + ); + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateGoogleSignalsSettings(request), + expectedError + ); + }); }); describe('createConversionEvent', () => { @@ -4927,6 +5670,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createConversionEvent with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createConversionEvent(request), + expectedError + ); + }); }); describe('getConversionEvent', () => { @@ -5042,6 +5805,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getConversionEvent with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getConversionEvent(request), expectedError); + }); }); describe('deleteConversionEvent', () => { @@ -5160,6 +5940,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteConversionEvent with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteConversionEvent(request), + expectedError + ); + }); }); describe('getDisplayVideo360AdvertiserLink', () => { @@ -5278,6 +6078,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDisplayVideo360AdvertiserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getDisplayVideo360AdvertiserLink(request), + expectedError + ); + }); }); describe('createDisplayVideo360AdvertiserLink', () => { @@ -5398,6 +6218,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createDisplayVideo360AdvertiserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createDisplayVideo360AdvertiserLink(request), + expectedError + ); + }); }); describe('deleteDisplayVideo360AdvertiserLink', () => { @@ -5518,6 +6358,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteDisplayVideo360AdvertiserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteDisplayVideo360AdvertiserLink(request), + expectedError + ); + }); }); describe('updateDisplayVideo360AdvertiserLink', () => { @@ -5644,6 +6504,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateDisplayVideo360AdvertiserLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() + ); + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateDisplayVideo360AdvertiserLink(request), + expectedError + ); + }); }); describe('getDisplayVideo360AdvertiserLinkProposal', () => { @@ -5771,6 +6653,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getDisplayVideo360AdvertiserLinkProposal(request), + expectedError + ); + }); }); describe('createDisplayVideo360AdvertiserLinkProposal', () => { @@ -5897,6 +6799,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createDisplayVideo360AdvertiserLinkProposal(request), + expectedError + ); + }); }); describe('deleteDisplayVideo360AdvertiserLinkProposal', () => { @@ -6023,6 +6945,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteDisplayVideo360AdvertiserLinkProposal(request), + expectedError + ); + }); }); describe('approveDisplayVideo360AdvertiserLinkProposal', () => { @@ -6149,6 +7091,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes approveDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.approveDisplayVideo360AdvertiserLinkProposal(request), + expectedError + ); + }); }); describe('cancelDisplayVideo360AdvertiserLinkProposal', () => { @@ -6275,6 +7237,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes cancelDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.cancelDisplayVideo360AdvertiserLinkProposal(request), + expectedError + ); + }); }); describe('createCustomDimension', () => { @@ -6393,6 +7375,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createCustomDimension(request), + expectedError + ); + }); }); describe('updateCustomDimension', () => { @@ -6514,6 +7516,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateCustomDimension(request), + expectedError + ); + }); }); describe('archiveCustomDimension', () => { @@ -6632,6 +7655,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes archiveCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.archiveCustomDimension(request), + expectedError + ); + }); }); describe('getCustomDimension', () => { @@ -6747,6 +7790,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCustomDimension(request), expectedError); + }); }); describe('createCustomMetric', () => { @@ -6862,6 +7922,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createCustomMetric(request), expectedError); + }); }); describe('updateCustomMetric', () => { @@ -6980,6 +8057,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateCustomMetric(request), expectedError); + }); }); describe('archiveCustomMetric', () => { @@ -7095,6 +8190,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes archiveCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.archiveCustomMetric(request), expectedError); + }); }); describe('getCustomMetric', () => { @@ -7209,6 +8321,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCustomMetric(request), expectedError); + }); }); describe('getDataRetentionSettings', () => { @@ -7327,6 +8456,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDataRetentionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getDataRetentionSettings(request), + expectedError + ); + }); }); describe('updateDataRetentionSettings', () => { @@ -7448,6 +8597,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateDataRetentionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateDataRetentionSettings(request), + expectedError + ); + }); }); describe('createDataStream', () => { @@ -7562,6 +8732,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createDataStream(request), expectedError); + }); }); describe('deleteDataStream', () => { @@ -7676,6 +8863,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteDataStream(request), expectedError); + }); }); describe('updateDataStream', () => { @@ -7793,6 +8997,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateDataStream(request), expectedError); + }); }); describe('getDataStream', () => { @@ -7907,6 +9129,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDataStream(request), expectedError); + }); }); describe('listAccounts', () => { From 07014d1f863c5a6e22fe4bdf5bfd56121feea5a6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 08:40:58 -0800 Subject: [PATCH 108/142] feat!: remove `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources (#187) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat!: remove `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources and corresponding operations, as they are replaced by the `DataStream` resource feat: add `restricted_metric_type` field to the `CustomMetric` resource feat!: move the `GlobalSiteTag` resource from the property level to the data stream level PiperOrigin-RevId: 432342398 Source-Link: https://github.com/googleapis/googleapis/commit/a079cb09ba1573ee7422a8b0bbc2197db6a5d69e Source-Link: https://github.com/googleapis/googleapis-gen/commit/2f29c5af3054a6e38df2158f09b76ec2fafd0b2f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmYyOWM1YWYzMDU0YTZlMzhkZjIxNThmMDliNzZlYzJmYWZkMGIyZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../admin/v1alpha/analytics_admin.proto | 425 +- .../analytics/admin/v1alpha/resources.proto | 156 +- .../google-analytics-admin/protos/protos.d.ts | 2236 +- .../google-analytics-admin/protos/protos.js | 17694 ++++++---------- .../google-analytics-admin/protos/protos.json | 897 +- ...vice.create_measurement_protocol_secret.js | 4 +- ...vice.delete_measurement_protocol_secret.js | 4 +- ...ytics_admin_service.get_global_site_tag.js | 4 +- ...service.get_measurement_protocol_secret.js | 4 +- ...rvice.list_measurement_protocol_secrets.js | 4 +- ...analytics_admin_service.list_properties.js | 7 +- ...tadata.google.analytics.admin.v1alpha.json | 570 +- .../v1alpha/analytics_admin_service_client.ts | 5182 ++--- ...analytics_admin_service_client_config.json | 173 +- .../src/v1alpha/gapic_metadata.json | 142 - .../gapic_analytics_admin_service_v1alpha.ts | 5618 ++--- 16 files changed, 9963 insertions(+), 23157 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index ff367e3ff9c..00fe85460f6 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -288,123 +288,6 @@ service AnalyticsAdminService { }; } - // Lookup for a single WebDataStream - rpc GetWebDataStream(GetWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a web stream on a property. - rpc DeleteWebDataStream(DeleteWebDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/webDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a web stream on a property. - rpc UpdateWebDataStream(UpdateWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}" - body: "web_data_stream" - }; - option (google.api.method_signature) = "web_data_stream,update_mask"; - } - - // Creates a web stream with the specified location and attributes. - rpc CreateWebDataStream(CreateWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/webDataStreams" - body: "web_data_stream" - }; - option (google.api.method_signature) = "parent,web_data_stream"; - } - - // Returns child web data streams under the specified parent property. - // - // Web data streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant web data streams are found. - rpc ListWebDataStreams(ListWebDataStreamsRequest) returns (ListWebDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/webDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single IosAppDataStream - rpc GetIosAppDataStream(GetIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes an iOS app stream on a property. - rpc DeleteIosAppDataStream(DeleteIosAppDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an iOS app stream on a property. - rpc UpdateIosAppDataStream(UpdateIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}" - body: "ios_app_data_stream" - }; - option (google.api.method_signature) = "ios_app_data_stream,update_mask"; - } - - // Returns child iOS app data streams under the specified parent property. - // - // iOS app data streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant iOS app data streams are found. - rpc ListIosAppDataStreams(ListIosAppDataStreamsRequest) returns (ListIosAppDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/iosAppDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single AndroidAppDataStream - rpc GetAndroidAppDataStream(GetAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes an android app stream on a property. - rpc DeleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an android app stream on a property. - rpc UpdateAndroidAppDataStream(UpdateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}" - body: "android_app_data_stream" - }; - option (google.api.method_signature) = "android_app_data_stream,update_mask"; - } - - // Returns child android app streams under the specified parent property. - // - // Android app streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant android app streams are found. - rpc ListAndroidAppDataStreams(ListAndroidAppDataStreamsRequest) returns (ListAndroidAppDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/androidAppDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - // Creates a FirebaseLink. // // Properties can have at most one FirebaseLink. @@ -437,7 +320,7 @@ service AnalyticsAdminService { // Site Tags are immutable singletons. rpc GetGlobalSiteTag(GetGlobalSiteTagRequest) returns (GlobalSiteTag) { option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}" + get: "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}" }; option (google.api.method_signature) = "name"; } @@ -488,13 +371,7 @@ service AnalyticsAdminService { // Lookup for a single "GA4" MeasurementProtocolSecret. rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" - additional_bindings { - get: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - } - additional_bindings { - get: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - } + get: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" }; option (google.api.method_signature) = "name"; } @@ -503,13 +380,7 @@ service AnalyticsAdminService { // Property. rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { option (google.api.http) = { - get: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" - additional_bindings { - get: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" - } - additional_bindings { - get: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" - } + get: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" }; option (google.api.method_signature) = "parent"; } @@ -517,16 +388,8 @@ service AnalyticsAdminService { // Creates a measurement protocol secret. rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { option (google.api.http) = { - post: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + post: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" body: "measurement_protocol_secret" - additional_bindings { - post: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" - body: "measurement_protocol_secret" - } - additional_bindings { - post: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" - body: "measurement_protocol_secret" - } }; option (google.api.method_signature) = "parent,measurement_protocol_secret"; } @@ -534,13 +397,7 @@ service AnalyticsAdminService { // Deletes target MeasurementProtocolSecret. rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" - additional_bindings { - delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - } - additional_bindings { - delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - } + delete: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" }; option (google.api.method_signature) = "name"; } @@ -548,16 +405,8 @@ service AnalyticsAdminService { // Updates a measurement protocol secret. rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { option (google.api.http) = { - patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" body: "measurement_protocol_secret" - additional_bindings { - patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - body: "measurement_protocol_secret" - } - additional_bindings { - patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - body: "measurement_protocol_secret" - } }; option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; } @@ -983,14 +832,17 @@ message GetPropertyRequest { message ListPropertiesRequest { // Required. An expression for filtering the results of the request. // Fields eligible for filtering are: - // `parent:`(The resource name of the parent account) or + // `parent:`(The resource name of the parent account/property) or + // `ancestor:`(The resource name of the parent account) or // `firebase_project:`(The id or number of the linked firebase project). // Some examples of filters: // // ``` // | Filter | Description | // |-----------------------------|-------------------------------------------| - // | parent:accounts/123 | The account with account id: 123. | + // | parent:accounts/123 | The account with account id: 123. | + // | parent:properties/123 | The property with property id: 123. | + // | ancestor:accounts/123 | The account with account id: 123. | // | firebase_project:project-id | The firebase project with id: project-id. | // | firebase_project:123 | The firebase project with number: 123. | // ``` @@ -1278,239 +1130,6 @@ message BatchDeleteUserLinksRequest { repeated DeleteUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for GetWebDataStream RPC. -message GetWebDataStreamRequest { - // Required. The name of the web data stream to lookup. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/123/webDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for DeleteWebDataStream RPC. -message DeleteWebDataStreamRequest { - // Required. The name of the web data stream to delete. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/123/webDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for UpdateWebDataStream RPC. -message UpdateWebDataStreamRequest { - // Required. The web stream to update. - // The `name` field is used to identify the web stream to be updated. - WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for CreateWebDataStream RPC. -message CreateWebDataStreamRequest { - // Required. The web stream to create. - WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this web data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for ListWebDataStreams RPC. -message ListWebDataStreamsRequest { - // Required. The name of the parent property. - // For example, to list results of web streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous `ListWebDataStreams` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListWebDataStreams` must - // match the call that provided the page token. - string page_token = 3; -} - -// Request message for ListWebDataStreams RPC. -message ListWebDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated WebDataStream web_data_streams = 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 GetIosAppDataStream RPC. -message GetIosAppDataStreamRequest { - // Required. The name of the iOS app data stream to lookup. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/123/iosAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; -} - -// Request message for DeleteIosAppDataStream RPC. -message DeleteIosAppDataStreamRequest { - // Required. The name of the iOS app data stream to delete. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/123/iosAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; -} - -// Request message for UpdateIosAppDataStream RPC. -message UpdateIosAppDataStreamRequest { - // Required. The iOS app stream to update. - // The `name` field is used to identify the iOS app stream to be updated. - IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListIosAppDataStreams RPC. -message ListIosAppDataStreamsRequest { - // Required. The name of the parent property. - // For example, to list results of app streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous `ListIosAppDataStreams` - // call. Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListIosAppDataStreams` - // must match the call that provided the page token. - string page_token = 3; -} - -// Request message for ListIosAppDataStreams RPC. -message ListIosAppDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated IosAppDataStream ios_app_data_streams = 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 GetAndroidAppDataStream RPC. -message GetAndroidAppDataStreamRequest { - // Required. The name of the android app data stream to lookup. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/123/androidAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; -} - -// Request message for DeleteAndroidAppDataStream RPC. -message DeleteAndroidAppDataStreamRequest { - // Required. The name of the android app data stream to delete. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/123/androidAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; -} - -// Request message for UpdateAndroidAppDataStream RPC. -message UpdateAndroidAppDataStreamRequest { - // Required. The android app stream to update. - // The `name` field is used to identify the android app stream to be updated. - AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListAndroidAppDataStreams RPC. -message ListAndroidAppDataStreamsRequest { - // Required. The name of the parent property. - // For example, to limit results to app streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; - - // The maximum number of resources to return. - // - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous call. Provide this to - // retrieve the subsequent page. - // When paginating, all other parameters provided to - // `ListAndroidAppDataStreams` must match the call that provided the page - // token. - string page_token = 3; -} - -// Request message for ListAndroidDataStreams RPC. -message ListAndroidAppDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated AndroidAppDataStream android_app_data_streams = 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 CreateFirebaseLink RPC message CreateFirebaseLinkRequest { // Required. Format: properties/{property_id} @@ -1578,8 +1197,8 @@ message ListFirebaseLinksResponse { message GetGlobalSiteTagRequest { // Required. The name of the site tag to lookup. // Note that site tags are singletons and do not have unique IDs. - // Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag - // Example: "properties/123/webDataStreams/456/globalSiteTag" + // Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + // Example: "properties/123/dataStreams/456/globalSiteTag" string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1784,9 +1403,7 @@ message SearchChangeHistoryEventsResponse { message GetMeasurementProtocolSecretRequest { // Required. The name of the measurement protocol secret to lookup. // Format: - // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - // Note: Any type of stream (WebDataStream, IosAppDataStream, - // AndroidAppDataStream) may be a parent. + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1798,9 +1415,7 @@ message GetMeasurementProtocolSecretRequest { // Request message for CreateMeasurementProtocolSecret RPC message CreateMeasurementProtocolSecretRequest { // Required. The parent resource where this secret will be created. - // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - // may be a parent. - // Format: properties/{property}/webDataStreams/{webDataStream} + // Format: properties/{property}/dataStreams/{dataStream} string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1816,9 +1431,7 @@ message CreateMeasurementProtocolSecretRequest { message DeleteMeasurementProtocolSecretRequest { // Required. The name of the MeasurementProtocolSecret to delete. // Format: - // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - // Note: Any type of stream (WebDataStream, IosAppDataStream, - // AndroidAppDataStream) may be a parent. + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1839,10 +1452,8 @@ message UpdateMeasurementProtocolSecretRequest { // Request message for ListMeasurementProtocolSecret RPC message ListMeasurementProtocolSecretsRequest { // Required. The resource name of the parent stream. - // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - // may be a parent. // Format: - // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 4820ec8c0b5..cbb624f1a87 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -164,15 +164,6 @@ enum ChangeHistoryResourceType { // Property resource PROPERTY = 2; - // WebDataStream resource - WEB_DATA_STREAM = 3; - - // AndroidAppDataStream resource - ANDROID_APP_DATA_STREAM = 4; - - // IosAppDataStream resource - IOS_APP_DATA_STREAM = 5; - // FirebaseLink resource FIREBASE_LINK = 6; @@ -202,6 +193,9 @@ enum ChangeHistoryResourceType { // DisplayVideo360AdvertiserLinkProposal resource DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + + // DataStream resource + DATA_STREAM = 18; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -382,109 +376,6 @@ message Property { ]; } -// A resource message representing a Google Analytics Android app stream. -message AndroidAppDataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - pattern: "properties/{property}/androidAppDataStreams/{android_app_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/1000/androidAppDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding Android app in Firebase, if any. - // This ID can change if the Android app is deleted and recreated. - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The package name for the app being measured. - // Example: "com.example.myandroidapp" - string package_name = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Human-readable display name for the Data Stream. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 6; -} - -// A resource message representing a Google Analytics IOS app stream. -message IosAppDataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/IosAppDataStream" - pattern: "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/1000/iosAppDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding iOS app in Firebase, if any. - // This ID can change if the iOS app is deleted and recreated. - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The Apple App Store Bundle ID for the app - // Example: "com.example.myiosapp" - string bundle_id = 5 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; - - // Human-readable display name for the Data Stream. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 6; -} - -// A resource message representing a Google Analytics web stream. -message WebDataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/WebDataStream" - pattern: "properties/{property}/webDataStreams/{web_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/1000/webDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Analytics "Measurement ID", without the "G-" prefix. - // Example: "G-1A2BCD345E" would just be "1A2BCD345E" - string measurement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding web app in Firebase, if any. - // This ID can change if the web app is deleted and recreated. - string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Domain name of the web app being measured, or empty. - // Example: "http://www.google.com", "https://www.google.com" - string default_uri = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Required. Human-readable display name for the Data Stream. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 7 [(google.api.field_behavior) = REQUIRED]; -} - // A resource message representing a data stream. message DataStream { option (google.api.resource) = { @@ -668,15 +559,16 @@ message FirebaseLink { } // Read-only resource with the tag for sending data from a website to a -// WebDataStream. +// DataStream. Only present for web DataStream resources. message GlobalSiteTag { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GlobalSiteTag" - pattern: "properties/{property}/globalSiteTag" + pattern: "properties/{property}/dataStreams/{data_stream}/globalSiteTag" }; // Output only. Resource name for this GlobalSiteTag resource. - // Format: properties/{propertyId}/globalSiteTag + // Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + // Example: "properties/123/dataStreams/456/globalSiteTag" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of @@ -796,7 +688,7 @@ message PropertySummary { message MeasurementProtocolSecret { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - pattern: "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" }; // Output only. Resource name of this secret. This secret may be a child of any type of @@ -854,15 +746,6 @@ message ChangeHistoryChange { // A snapshot of a Property resource in change history. Property property = 2; - // A snapshot of a WebDataStream resource in change history. - WebDataStream web_data_stream = 3; - - // A snapshot of an AndroidAppDataStream resource in change history. - AndroidAppDataStream android_app_data_stream = 4; - - // A snapshot of an IosAppDataStream resource in change history. - IosAppDataStream ios_app_data_stream = 5; - // A snapshot of a FirebaseLink resource in change history. FirebaseLink firebase_link = 6; @@ -894,6 +777,9 @@ message ChangeHistoryChange { // A snapshot of a data retention settings resource in change history. DataRetentionSettings data_retention_settings = 15; + + // A snapshot of a DataStream resource in change history. + DataStream data_stream = 18; } } @@ -1176,6 +1062,19 @@ message CustomMetric { EVENT = 1; } + // Labels that mark the data in this custom metric as data that should be + // restricted to specific users. + enum RestrictedMetricType { + // Type unknown or unspecified. + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + + // Metric reports cost data. + COST_DATA = 1; + + // Metric reports revenue data. + REVENUE_DATA = 2; + } + // Output only. Resource name for this CustomMetric resource. // Format: properties/{property}/customMetrics/{customMetric} string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1211,6 +1110,11 @@ message CustomMetric { (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; + + // Optional. Types of restricted data that this metric may contain. Required for metrics + // with CURRENCY measurement unit. Must be empty for metrics with a + // non-CURRENCY measurement unit. + repeated RestrictedMetricType restricted_metric_type = 8 [(google.api.field_behavior) = OPTIONAL]; } // Settings values for data retention. This is a singleton resource. diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 52b02873f61..44fb941b3b9 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -340,188 +340,6 @@ export namespace google { */ public batchDeleteUserLinks(request: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest): Promise; - /** - * Calls GetWebDataStream. - * @param request GetWebDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WebDataStream - */ - public getWebDataStream(request: google.analytics.admin.v1alpha.IGetWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStreamCallback): void; - - /** - * Calls GetWebDataStream. - * @param request GetWebDataStreamRequest message or plain object - * @returns Promise - */ - public getWebDataStream(request: google.analytics.admin.v1alpha.IGetWebDataStreamRequest): Promise; - - /** - * Calls DeleteWebDataStream. - * @param request DeleteWebDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteWebDataStream(request: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStreamCallback): void; - - /** - * Calls DeleteWebDataStream. - * @param request DeleteWebDataStreamRequest message or plain object - * @returns Promise - */ - public deleteWebDataStream(request: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest): Promise; - - /** - * Calls UpdateWebDataStream. - * @param request UpdateWebDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WebDataStream - */ - public updateWebDataStream(request: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStreamCallback): void; - - /** - * Calls UpdateWebDataStream. - * @param request UpdateWebDataStreamRequest message or plain object - * @returns Promise - */ - public updateWebDataStream(request: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest): Promise; - - /** - * Calls CreateWebDataStream. - * @param request CreateWebDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WebDataStream - */ - public createWebDataStream(request: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStreamCallback): void; - - /** - * Calls CreateWebDataStream. - * @param request CreateWebDataStreamRequest message or plain object - * @returns Promise - */ - public createWebDataStream(request: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest): Promise; - - /** - * Calls ListWebDataStreams. - * @param request ListWebDataStreamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListWebDataStreamsResponse - */ - public listWebDataStreams(request: google.analytics.admin.v1alpha.IListWebDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreamsCallback): void; - - /** - * Calls ListWebDataStreams. - * @param request ListWebDataStreamsRequest message or plain object - * @returns Promise - */ - public listWebDataStreams(request: google.analytics.admin.v1alpha.IListWebDataStreamsRequest): Promise; - - /** - * Calls GetIosAppDataStream. - * @param request GetIosAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IosAppDataStream - */ - public getIosAppDataStream(request: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStreamCallback): void; - - /** - * Calls GetIosAppDataStream. - * @param request GetIosAppDataStreamRequest message or plain object - * @returns Promise - */ - public getIosAppDataStream(request: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest): Promise; - - /** - * Calls DeleteIosAppDataStream. - * @param request DeleteIosAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteIosAppDataStream(request: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStreamCallback): void; - - /** - * Calls DeleteIosAppDataStream. - * @param request DeleteIosAppDataStreamRequest message or plain object - * @returns Promise - */ - public deleteIosAppDataStream(request: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest): Promise; - - /** - * Calls UpdateIosAppDataStream. - * @param request UpdateIosAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IosAppDataStream - */ - public updateIosAppDataStream(request: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStreamCallback): void; - - /** - * Calls UpdateIosAppDataStream. - * @param request UpdateIosAppDataStreamRequest message or plain object - * @returns Promise - */ - public updateIosAppDataStream(request: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest): Promise; - - /** - * Calls ListIosAppDataStreams. - * @param request ListIosAppDataStreamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIosAppDataStreamsResponse - */ - public listIosAppDataStreams(request: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreamsCallback): void; - - /** - * Calls ListIosAppDataStreams. - * @param request ListIosAppDataStreamsRequest message or plain object - * @returns Promise - */ - public listIosAppDataStreams(request: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest): Promise; - - /** - * Calls GetAndroidAppDataStream. - * @param request GetAndroidAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AndroidAppDataStream - */ - public getAndroidAppDataStream(request: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStreamCallback): void; - - /** - * Calls GetAndroidAppDataStream. - * @param request GetAndroidAppDataStreamRequest message or plain object - * @returns Promise - */ - public getAndroidAppDataStream(request: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest): Promise; - - /** - * Calls DeleteAndroidAppDataStream. - * @param request DeleteAndroidAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteAndroidAppDataStream(request: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStreamCallback): void; - - /** - * Calls DeleteAndroidAppDataStream. - * @param request DeleteAndroidAppDataStreamRequest message or plain object - * @returns Promise - */ - public deleteAndroidAppDataStream(request: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest): Promise; - - /** - * Calls UpdateAndroidAppDataStream. - * @param request UpdateAndroidAppDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AndroidAppDataStream - */ - public updateAndroidAppDataStream(request: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStreamCallback): void; - - /** - * Calls UpdateAndroidAppDataStream. - * @param request UpdateAndroidAppDataStreamRequest message or plain object - * @returns Promise - */ - public updateAndroidAppDataStream(request: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest): Promise; - - /** - * Calls ListAndroidAppDataStreams. - * @param request ListAndroidAppDataStreamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAndroidAppDataStreamsResponse - */ - public listAndroidAppDataStreams(request: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreamsCallback): void; - - /** - * Calls ListAndroidAppDataStreams. - * @param request ListAndroidAppDataStreamsRequest message or plain object - * @returns Promise - */ - public listAndroidAppDataStreams(request: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest): Promise; - /** * Calls CreateFirebaseLink. * @param request CreateFirebaseLinkRequest message or plain object @@ -1372,97 +1190,6 @@ export namespace google { */ type BatchDeleteUserLinksCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getWebDataStream}. - * @param error Error, if any - * @param [response] WebDataStream - */ - type GetWebDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.WebDataStream) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteWebDataStream}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteWebDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateWebDataStream}. - * @param error Error, if any - * @param [response] WebDataStream - */ - type UpdateWebDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.WebDataStream) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createWebDataStream}. - * @param error Error, if any - * @param [response] WebDataStream - */ - type CreateWebDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.WebDataStream) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listWebDataStreams}. - * @param error Error, if any - * @param [response] ListWebDataStreamsResponse - */ - type ListWebDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListWebDataStreamsResponse) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getIosAppDataStream}. - * @param error Error, if any - * @param [response] IosAppDataStream - */ - type GetIosAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.IosAppDataStream) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteIosAppDataStream}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteIosAppDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateIosAppDataStream}. - * @param error Error, if any - * @param [response] IosAppDataStream - */ - type UpdateIosAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.IosAppDataStream) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listIosAppDataStreams}. - * @param error Error, if any - * @param [response] ListIosAppDataStreamsResponse - */ - type ListIosAppDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAndroidAppDataStream}. - * @param error Error, if any - * @param [response] AndroidAppDataStream - */ - type GetAndroidAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AndroidAppDataStream) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAndroidAppDataStream}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteAndroidAppDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAndroidAppDataStream}. - * @param error Error, if any - * @param [response] AndroidAppDataStream - */ - type UpdateAndroidAppDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AndroidAppDataStream) => void; - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAndroidAppDataStreams}. - * @param error Error, if any - * @param [response] ListAndroidAppDataStreamsResponse - */ - type ListAndroidAppDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) => void; - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. * @param error Error, if any @@ -4417,1574 +4144,56 @@ export namespace google { public static encode(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. - * @param message BatchDeleteUserLinksRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchDeleteUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; - - /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchDeleteUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; - - /** - * Verifies a BatchDeleteUserLinksRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchDeleteUserLinksRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; - - /** - * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. - * @param message BatchDeleteUserLinksRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BatchDeleteUserLinksRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetWebDataStreamRequest. */ - interface IGetWebDataStreamRequest { - - /** GetWebDataStreamRequest name */ - name?: (string|null); - } - - /** Represents a GetWebDataStreamRequest. */ - class GetWebDataStreamRequest implements IGetWebDataStreamRequest { - - /** - * Constructs a new GetWebDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IGetWebDataStreamRequest); - - /** GetWebDataStreamRequest name. */ - public name: string; - - /** - * Creates a new GetWebDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetWebDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IGetWebDataStreamRequest): google.analytics.admin.v1alpha.GetWebDataStreamRequest; - - /** - * Encodes the specified GetWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. - * @param message GetWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IGetWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. - * @param message GetWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetWebDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetWebDataStreamRequest; - - /** - * Decodes a GetWebDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetWebDataStreamRequest; - - /** - * Verifies a GetWebDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetWebDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetWebDataStreamRequest; - - /** - * Creates a plain object from a GetWebDataStreamRequest message. Also converts values to other types if specified. - * @param message GetWebDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.GetWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetWebDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteWebDataStreamRequest. */ - interface IDeleteWebDataStreamRequest { - - /** DeleteWebDataStreamRequest name */ - name?: (string|null); - } - - /** Represents a DeleteWebDataStreamRequest. */ - class DeleteWebDataStreamRequest implements IDeleteWebDataStreamRequest { - - /** - * Constructs a new DeleteWebDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest); - - /** DeleteWebDataStreamRequest name. */ - public name: string; - - /** - * Creates a new DeleteWebDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteWebDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; - - /** - * Encodes the specified DeleteWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. - * @param message DeleteWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. - * @param message DeleteWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; - - /** - * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; - - /** - * Verifies a DeleteWebDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteWebDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; - - /** - * Creates a plain object from a DeleteWebDataStreamRequest message. Also converts values to other types if specified. - * @param message DeleteWebDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteWebDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateWebDataStreamRequest. */ - interface IUpdateWebDataStreamRequest { - - /** UpdateWebDataStreamRequest webDataStream */ - webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** UpdateWebDataStreamRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateWebDataStreamRequest. */ - class UpdateWebDataStreamRequest implements IUpdateWebDataStreamRequest { - - /** - * Constructs a new UpdateWebDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest); - - /** UpdateWebDataStreamRequest webDataStream. */ - public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** UpdateWebDataStreamRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdateWebDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateWebDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; - - /** - * Encodes the specified UpdateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. - * @param message UpdateWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. - * @param message UpdateWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; - - /** - * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; - - /** - * Verifies an UpdateWebDataStreamRequest message. - * @param message Plain 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 UpdateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateWebDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; - - /** - * Creates a plain object from an UpdateWebDataStreamRequest message. Also converts values to other types if specified. - * @param message UpdateWebDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateWebDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateWebDataStreamRequest. */ - interface ICreateWebDataStreamRequest { - - /** CreateWebDataStreamRequest webDataStream */ - webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** CreateWebDataStreamRequest parent */ - parent?: (string|null); - } - - /** Represents a CreateWebDataStreamRequest. */ - class CreateWebDataStreamRequest implements ICreateWebDataStreamRequest { - - /** - * Constructs a new CreateWebDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest); - - /** CreateWebDataStreamRequest webDataStream. */ - public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** CreateWebDataStreamRequest parent. */ - public parent: string; - - /** - * Creates a new CreateWebDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateWebDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; - - /** - * Encodes the specified CreateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. - * @param message CreateWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. - * @param message CreateWebDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; - - /** - * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateWebDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; - - /** - * Verifies a CreateWebDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateWebDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateWebDataStreamRequest; - - /** - * Creates a plain object from a CreateWebDataStreamRequest message. Also converts values to other types if specified. - * @param message CreateWebDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.CreateWebDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateWebDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListWebDataStreamsRequest. */ - interface IListWebDataStreamsRequest { - - /** ListWebDataStreamsRequest parent */ - parent?: (string|null); - - /** ListWebDataStreamsRequest pageSize */ - pageSize?: (number|null); - - /** ListWebDataStreamsRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListWebDataStreamsRequest. */ - class ListWebDataStreamsRequest implements IListWebDataStreamsRequest { - - /** - * Constructs a new ListWebDataStreamsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsRequest); - - /** ListWebDataStreamsRequest parent. */ - public parent: string; - - /** ListWebDataStreamsRequest pageSize. */ - public pageSize: number; - - /** ListWebDataStreamsRequest pageToken. */ - public pageToken: string; - - /** - * Creates a new ListWebDataStreamsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListWebDataStreamsRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsRequest): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; - - /** - * Encodes the specified ListWebDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. - * @param message ListWebDataStreamsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IListWebDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListWebDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. - * @param message ListWebDataStreamsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListWebDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListWebDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; - - /** - * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListWebDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; - - /** - * Verifies a ListWebDataStreamsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListWebDataStreamsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListWebDataStreamsRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListWebDataStreamsRequest; - - /** - * Creates a plain object from a ListWebDataStreamsRequest message. Also converts values to other types if specified. - * @param message ListWebDataStreamsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ListWebDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListWebDataStreamsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListWebDataStreamsResponse. */ - interface IListWebDataStreamsResponse { - - /** ListWebDataStreamsResponse webDataStreams */ - webDataStreams?: (google.analytics.admin.v1alpha.IWebDataStream[]|null); - - /** ListWebDataStreamsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListWebDataStreamsResponse. */ - class ListWebDataStreamsResponse implements IListWebDataStreamsResponse { - - /** - * Constructs a new ListWebDataStreamsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsResponse); - - /** ListWebDataStreamsResponse webDataStreams. */ - public webDataStreams: google.analytics.admin.v1alpha.IWebDataStream[]; - - /** ListWebDataStreamsResponse nextPageToken. */ - public nextPageToken: string; - - /** - * Creates a new ListWebDataStreamsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListWebDataStreamsResponse instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IListWebDataStreamsResponse): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; - - /** - * Encodes the specified ListWebDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. - * @param message ListWebDataStreamsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IListWebDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListWebDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. - * @param message ListWebDataStreamsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListWebDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListWebDataStreamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; - - /** - * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListWebDataStreamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; - - /** - * Verifies a ListWebDataStreamsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListWebDataStreamsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListWebDataStreamsResponse - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListWebDataStreamsResponse; - - /** - * Creates a plain object from a ListWebDataStreamsResponse message. Also converts values to other types if specified. - * @param message ListWebDataStreamsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ListWebDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListWebDataStreamsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetIosAppDataStreamRequest. */ - interface IGetIosAppDataStreamRequest { - - /** GetIosAppDataStreamRequest name */ - name?: (string|null); - } - - /** Represents a GetIosAppDataStreamRequest. */ - class GetIosAppDataStreamRequest implements IGetIosAppDataStreamRequest { - - /** - * Constructs a new GetIosAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest); - - /** GetIosAppDataStreamRequest name. */ - public name: string; - - /** - * Creates a new GetIosAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetIosAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; - - /** - * Encodes the specified GetIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. - * @param message GetIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. - * @param message GetIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; - - /** - * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; - - /** - * Verifies a GetIosAppDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetIosAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; - - /** - * Creates a plain object from a GetIosAppDataStreamRequest message. Also converts values to other types if specified. - * @param message GetIosAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetIosAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteIosAppDataStreamRequest. */ - interface IDeleteIosAppDataStreamRequest { - - /** DeleteIosAppDataStreamRequest name */ - name?: (string|null); - } - - /** Represents a DeleteIosAppDataStreamRequest. */ - class DeleteIosAppDataStreamRequest implements IDeleteIosAppDataStreamRequest { - - /** - * Constructs a new DeleteIosAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest); - - /** DeleteIosAppDataStreamRequest name. */ - public name: string; - - /** - * Creates a new DeleteIosAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteIosAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; - - /** - * Encodes the specified DeleteIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. - * @param message DeleteIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. - * @param message DeleteIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; - - /** - * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; - - /** - * Verifies a DeleteIosAppDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteIosAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; - - /** - * Creates a plain object from a DeleteIosAppDataStreamRequest message. Also converts values to other types if specified. - * @param message DeleteIosAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteIosAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateIosAppDataStreamRequest. */ - interface IUpdateIosAppDataStreamRequest { - - /** UpdateIosAppDataStreamRequest iosAppDataStream */ - iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** UpdateIosAppDataStreamRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateIosAppDataStreamRequest. */ - class UpdateIosAppDataStreamRequest implements IUpdateIosAppDataStreamRequest { - - /** - * Constructs a new UpdateIosAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest); - - /** UpdateIosAppDataStreamRequest iosAppDataStream. */ - public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - - /** UpdateIosAppDataStreamRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdateIosAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateIosAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; - - /** - * Encodes the specified UpdateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. - * @param message UpdateIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. - * @param message UpdateIosAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; - - /** - * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateIosAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; - - /** - * Verifies an UpdateIosAppDataStreamRequest message. - * @param message Plain 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 UpdateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateIosAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; - - /** - * Creates a plain object from an UpdateIosAppDataStreamRequest message. Also converts values to other types if specified. - * @param message UpdateIosAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateIosAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListIosAppDataStreamsRequest. */ - interface IListIosAppDataStreamsRequest { - - /** ListIosAppDataStreamsRequest parent */ - parent?: (string|null); - - /** ListIosAppDataStreamsRequest pageSize */ - pageSize?: (number|null); - - /** ListIosAppDataStreamsRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListIosAppDataStreamsRequest. */ - class ListIosAppDataStreamsRequest implements IListIosAppDataStreamsRequest { - - /** - * Constructs a new ListIosAppDataStreamsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest); - - /** ListIosAppDataStreamsRequest parent. */ - public parent: string; - - /** ListIosAppDataStreamsRequest pageSize. */ - public pageSize: number; - - /** ListIosAppDataStreamsRequest pageToken. */ - public pageToken: string; - - /** - * Creates a new ListIosAppDataStreamsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListIosAppDataStreamsRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; - - /** - * Encodes the specified ListIosAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. - * @param message ListIosAppDataStreamsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListIosAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. - * @param message ListIosAppDataStreamsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListIosAppDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; - - /** - * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListIosAppDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; - - /** - * Verifies a ListIosAppDataStreamsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListIosAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListIosAppDataStreamsRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; - - /** - * Creates a plain object from a ListIosAppDataStreamsRequest message. Also converts values to other types if specified. - * @param message ListIosAppDataStreamsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListIosAppDataStreamsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListIosAppDataStreamsResponse. */ - interface IListIosAppDataStreamsResponse { - - /** ListIosAppDataStreamsResponse iosAppDataStreams */ - iosAppDataStreams?: (google.analytics.admin.v1alpha.IIosAppDataStream[]|null); - - /** ListIosAppDataStreamsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListIosAppDataStreamsResponse. */ - class ListIosAppDataStreamsResponse implements IListIosAppDataStreamsResponse { - - /** - * Constructs a new ListIosAppDataStreamsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse); - - /** ListIosAppDataStreamsResponse iosAppDataStreams. */ - public iosAppDataStreams: google.analytics.admin.v1alpha.IIosAppDataStream[]; - - /** ListIosAppDataStreamsResponse nextPageToken. */ - public nextPageToken: string; - - /** - * Creates a new ListIosAppDataStreamsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListIosAppDataStreamsResponse instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; - - /** - * Encodes the specified ListIosAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. - * @param message ListIosAppDataStreamsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListIosAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. - * @param message ListIosAppDataStreamsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListIosAppDataStreamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; - - /** - * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListIosAppDataStreamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; - - /** - * Verifies a ListIosAppDataStreamsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListIosAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListIosAppDataStreamsResponse - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; - - /** - * Creates a plain object from a ListIosAppDataStreamsResponse message. Also converts values to other types if specified. - * @param message ListIosAppDataStreamsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListIosAppDataStreamsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAndroidAppDataStreamRequest. */ - interface IGetAndroidAppDataStreamRequest { - - /** GetAndroidAppDataStreamRequest name */ - name?: (string|null); - } - - /** Represents a GetAndroidAppDataStreamRequest. */ - class GetAndroidAppDataStreamRequest implements IGetAndroidAppDataStreamRequest { - - /** - * Constructs a new GetAndroidAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest); - - /** GetAndroidAppDataStreamRequest name. */ - public name: string; - - /** - * Creates a new GetAndroidAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAndroidAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; - - /** - * Encodes the specified GetAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. - * @param message GetAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. - * @param message GetAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; - - /** - * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; - - /** - * Verifies a GetAndroidAppDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAndroidAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; - - /** - * Creates a plain object from a GetAndroidAppDataStreamRequest message. Also converts values to other types if specified. - * @param message GetAndroidAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAndroidAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteAndroidAppDataStreamRequest. */ - interface IDeleteAndroidAppDataStreamRequest { - - /** DeleteAndroidAppDataStreamRequest name */ - name?: (string|null); - } - - /** Represents a DeleteAndroidAppDataStreamRequest. */ - class DeleteAndroidAppDataStreamRequest implements IDeleteAndroidAppDataStreamRequest { - - /** - * Constructs a new DeleteAndroidAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest); - - /** DeleteAndroidAppDataStreamRequest name. */ - public name: string; - - /** - * Creates a new DeleteAndroidAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteAndroidAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; - - /** - * Encodes the specified DeleteAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. - * @param message DeleteAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. - * @param message DeleteAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; - - /** - * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; - - /** - * Verifies a DeleteAndroidAppDataStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteAndroidAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; - - /** - * Creates a plain object from a DeleteAndroidAppDataStreamRequest message. Also converts values to other types if specified. - * @param message DeleteAndroidAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteAndroidAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateAndroidAppDataStreamRequest. */ - interface IUpdateAndroidAppDataStreamRequest { - - /** UpdateAndroidAppDataStreamRequest androidAppDataStream */ - androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** UpdateAndroidAppDataStreamRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateAndroidAppDataStreamRequest. */ - class UpdateAndroidAppDataStreamRequest implements IUpdateAndroidAppDataStreamRequest { - - /** - * Constructs a new UpdateAndroidAppDataStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest); - - /** UpdateAndroidAppDataStreamRequest androidAppDataStream. */ - public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** UpdateAndroidAppDataStreamRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdateAndroidAppDataStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateAndroidAppDataStreamRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; - - /** - * Encodes the specified UpdateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. - * @param message UpdateAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. - * @param message UpdateAndroidAppDataStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; - - /** - * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateAndroidAppDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; - - /** - * Verifies an UpdateAndroidAppDataStreamRequest message. - * @param message Plain 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 UpdateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateAndroidAppDataStreamRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; - - /** - * Creates a plain object from an UpdateAndroidAppDataStreamRequest message. Also converts values to other types if specified. - * @param message UpdateAndroidAppDataStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateAndroidAppDataStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListAndroidAppDataStreamsRequest. */ - interface IListAndroidAppDataStreamsRequest { - - /** ListAndroidAppDataStreamsRequest parent */ - parent?: (string|null); - - /** ListAndroidAppDataStreamsRequest pageSize */ - pageSize?: (number|null); - - /** ListAndroidAppDataStreamsRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListAndroidAppDataStreamsRequest. */ - class ListAndroidAppDataStreamsRequest implements IListAndroidAppDataStreamsRequest { - - /** - * Constructs a new ListAndroidAppDataStreamsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest); - - /** ListAndroidAppDataStreamsRequest parent. */ - public parent: string; - - /** ListAndroidAppDataStreamsRequest pageSize. */ - public pageSize: number; - - /** ListAndroidAppDataStreamsRequest pageToken. */ - public pageToken: string; - - /** - * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAndroidAppDataStreamsRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; - - /** - * Encodes the specified ListAndroidAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. - * @param message ListAndroidAppDataStreamsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListAndroidAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. - * @param message ListAndroidAppDataStreamsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListAndroidAppDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; - - /** - * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListAndroidAppDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; - - /** - * Verifies a ListAndroidAppDataStreamsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListAndroidAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListAndroidAppDataStreamsRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; - - /** - * Creates a plain object from a ListAndroidAppDataStreamsRequest message. Also converts values to other types if specified. - * @param message ListAndroidAppDataStreamsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListAndroidAppDataStreamsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListAndroidAppDataStreamsResponse. */ - interface IListAndroidAppDataStreamsResponse { - - /** ListAndroidAppDataStreamsResponse androidAppDataStreams */ - androidAppDataStreams?: (google.analytics.admin.v1alpha.IAndroidAppDataStream[]|null); - - /** ListAndroidAppDataStreamsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListAndroidAppDataStreamsResponse. */ - class ListAndroidAppDataStreamsResponse implements IListAndroidAppDataStreamsResponse { - - /** - * Constructs a new ListAndroidAppDataStreamsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse); - - /** ListAndroidAppDataStreamsResponse androidAppDataStreams. */ - public androidAppDataStreams: google.analytics.admin.v1alpha.IAndroidAppDataStream[]; - - /** ListAndroidAppDataStreamsResponse nextPageToken. */ - public nextPageToken: string; - - /** - * Creates a new ListAndroidAppDataStreamsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAndroidAppDataStreamsResponse instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; - - /** - * Encodes the specified ListAndroidAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. - * @param message ListAndroidAppDataStreamsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListAndroidAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. - * @param message ListAndroidAppDataStreamsResponse message or plain object to encode + * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * @param message BatchDeleteUserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAndroidAppDataStreamsResponse + * @returns BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; /** - * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAndroidAppDataStreamsResponse + * @returns BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; /** - * Verifies a ListAndroidAppDataStreamsResponse message. + * Verifies a BatchDeleteUserLinksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListAndroidAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAndroidAppDataStreamsResponse + * @returns BatchDeleteUserLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; /** - * Creates a plain object from a ListAndroidAppDataStreamsResponse message. Also converts values to other types if specified. - * @param message ListAndroidAppDataStreamsResponse + * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchDeleteUserLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAndroidAppDataStreamsResponse to JSON. + * Converts this BatchDeleteUserLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -12139,9 +10348,6 @@ export namespace google { CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, ACCOUNT = 1, PROPERTY = 2, - WEB_DATA_STREAM = 3, - ANDROID_APP_DATA_STREAM = 4, - IOS_APP_DATA_STREAM = 5, FIREBASE_LINK = 6, GOOGLE_ADS_LINK = 7, GOOGLE_SIGNALS_SETTINGS = 8, @@ -12151,7 +10357,8 @@ export namespace google { CUSTOM_METRIC = 12, DATA_RETENTION_SETTINGS = 13, DISPLAY_VIDEO_360_ADVERTISER_LINK = 14, - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15 + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15, + DATA_STREAM = 18 } /** GoogleSignalsState enum. */ @@ -12462,372 +10669,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of an AndroidAppDataStream. */ - interface IAndroidAppDataStream { - - /** AndroidAppDataStream name */ - name?: (string|null); - - /** AndroidAppDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** AndroidAppDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream packageName */ - packageName?: (string|null); - - /** AndroidAppDataStream displayName */ - displayName?: (string|null); - } - - /** Represents an AndroidAppDataStream. */ - class AndroidAppDataStream implements IAndroidAppDataStream { - - /** - * Constructs a new AndroidAppDataStream. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream); - - /** AndroidAppDataStream name. */ - public name: string; - - /** AndroidAppDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** AndroidAppDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** AndroidAppDataStream packageName. */ - public packageName: string; - - /** AndroidAppDataStream displayName. */ - public displayName: string; - - /** - * Creates a new AndroidAppDataStream instance using the specified properties. - * @param [properties] Properties to set - * @returns AndroidAppDataStream instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IAndroidAppDataStream): google.analytics.admin.v1alpha.AndroidAppDataStream; - - /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. - * @param message AndroidAppDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAndroidAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AndroidAppDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AndroidAppDataStream; - - /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AndroidAppDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AndroidAppDataStream; - - /** - * Verifies an AndroidAppDataStream message. - * @param message Plain 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 AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AndroidAppDataStream - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AndroidAppDataStream; - - /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. - * @param message AndroidAppDataStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AndroidAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AndroidAppDataStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an IosAppDataStream. */ - interface IIosAppDataStream { - - /** IosAppDataStream name */ - name?: (string|null); - - /** IosAppDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** IosAppDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream bundleId */ - bundleId?: (string|null); - - /** IosAppDataStream displayName */ - displayName?: (string|null); - } - - /** Represents an IosAppDataStream. */ - class IosAppDataStream implements IIosAppDataStream { - - /** - * Constructs a new IosAppDataStream. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IIosAppDataStream); - - /** IosAppDataStream name. */ - public name: string; - - /** IosAppDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** IosAppDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** IosAppDataStream bundleId. */ - public bundleId: string; - - /** IosAppDataStream displayName. */ - public displayName: string; - - /** - * Creates a new IosAppDataStream instance using the specified properties. - * @param [properties] Properties to set - * @returns IosAppDataStream instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IIosAppDataStream): google.analytics.admin.v1alpha.IosAppDataStream; - - /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. - * @param message IosAppDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IIosAppDataStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IosAppDataStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IosAppDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.IosAppDataStream; - - /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IosAppDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.IosAppDataStream; - - /** - * Verifies an IosAppDataStream message. - * @param message Plain 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 IosAppDataStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IosAppDataStream - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.IosAppDataStream; - - /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. - * @param message IosAppDataStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.IosAppDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IosAppDataStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a WebDataStream. */ - interface IWebDataStream { - - /** WebDataStream name */ - name?: (string|null); - - /** WebDataStream measurementId */ - measurementId?: (string|null); - - /** WebDataStream firebaseAppId */ - firebaseAppId?: (string|null); - - /** WebDataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** WebDataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** WebDataStream defaultUri */ - defaultUri?: (string|null); - - /** WebDataStream displayName */ - displayName?: (string|null); - } - - /** Represents a WebDataStream. */ - class WebDataStream implements IWebDataStream { - - /** - * Constructs a new WebDataStream. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IWebDataStream); - - /** WebDataStream name. */ - public name: string; - - /** WebDataStream measurementId. */ - public measurementId: string; - - /** WebDataStream firebaseAppId. */ - public firebaseAppId: string; - - /** WebDataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** WebDataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** WebDataStream defaultUri. */ - public defaultUri: string; - - /** WebDataStream displayName. */ - public displayName: string; - - /** - * Creates a new WebDataStream instance using the specified properties. - * @param [properties] Properties to set - * @returns WebDataStream instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IWebDataStream): google.analytics.admin.v1alpha.WebDataStream; - - /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. - * @param message WebDataStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IWebDataStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WebDataStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WebDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.WebDataStream; - - /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WebDataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.WebDataStream; - - /** - * Verifies a WebDataStream message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WebDataStream - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.WebDataStream; - - /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. - * @param message WebDataStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.WebDataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WebDataStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a DataStream. */ interface IDataStream { @@ -14467,15 +12308,6 @@ export namespace google { /** ChangeHistoryResource property */ property?: (google.analytics.admin.v1alpha.IProperty|null); - /** ChangeHistoryResource webDataStream */ - webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** ChangeHistoryResource androidAppDataStream */ - androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** ChangeHistoryResource iosAppDataStream */ - iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - /** ChangeHistoryResource firebaseLink */ firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); @@ -14505,6 +12337,9 @@ export namespace google { /** ChangeHistoryResource dataRetentionSettings */ dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + + /** ChangeHistoryResource dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); } /** Represents a ChangeHistoryResource. */ @@ -14522,15 +12357,6 @@ export namespace google { /** ChangeHistoryResource property. */ public property?: (google.analytics.admin.v1alpha.IProperty|null); - /** ChangeHistoryResource webDataStream. */ - public webDataStream?: (google.analytics.admin.v1alpha.IWebDataStream|null); - - /** ChangeHistoryResource androidAppDataStream. */ - public androidAppDataStream?: (google.analytics.admin.v1alpha.IAndroidAppDataStream|null); - - /** ChangeHistoryResource iosAppDataStream. */ - public iosAppDataStream?: (google.analytics.admin.v1alpha.IIosAppDataStream|null); - /** ChangeHistoryResource firebaseLink. */ public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); @@ -14561,8 +12387,11 @@ export namespace google { /** ChangeHistoryResource dataRetentionSettings. */ public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + /** ChangeHistoryResource dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** ChangeHistoryResource resource. */ - public resource?: ("account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"); + public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"); /** * Creates a new ChangeHistoryResource instance using the specified properties. @@ -15356,6 +13185,9 @@ export namespace google { /** CustomMetric scope */ scope?: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope|null); + + /** CustomMetric restrictedMetricType */ + restrictedMetricType?: (google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[]|null); } /** Represents a CustomMetric. */ @@ -15385,6 +13217,9 @@ export namespace google { /** CustomMetric scope. */ public scope: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope); + /** CustomMetric restrictedMetricType. */ + public restrictedMetricType: google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[]; + /** * Creates a new CustomMetric instance using the specified properties. * @param [properties] Properties to set @@ -15478,6 +13313,13 @@ export namespace google { METRIC_SCOPE_UNSPECIFIED = 0, EVENT = 1 } + + /** RestrictedMetricType enum. */ + enum RestrictedMetricType { + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0, + COST_DATA = 1, + REVENUE_DATA = 2 + } } /** Properties of a DataRetentionSettings. */ diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 829d40c2285..b12da788a48 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -791,435 +791,6 @@ * @variation 2 */ - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getWebDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetWebDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.WebDataStream} [response] WebDataStream - */ - - /** - * Calls GetWebDataStream. - * @function getWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} request GetWebDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStreamCallback} callback Node-style callback called with the error, if any, and WebDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.getWebDataStream = function getWebDataStream(request, callback) { - return this.rpcCall(getWebDataStream, $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest, $root.google.analytics.admin.v1alpha.WebDataStream, request, callback); - }, "name", { value: "GetWebDataStream" }); - - /** - * Calls GetWebDataStream. - * @function getWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} request GetWebDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteWebDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteWebDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteWebDataStream. - * @function deleteWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} request DeleteWebDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStreamCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteWebDataStream = function deleteWebDataStream(request, callback) { - return this.rpcCall(deleteWebDataStream, $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteWebDataStream" }); - - /** - * Calls DeleteWebDataStream. - * @function deleteWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} request DeleteWebDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateWebDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateWebDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.WebDataStream} [response] WebDataStream - */ - - /** - * Calls UpdateWebDataStream. - * @function updateWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} request UpdateWebDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStreamCallback} callback Node-style callback called with the error, if any, and WebDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.updateWebDataStream = function updateWebDataStream(request, callback) { - return this.rpcCall(updateWebDataStream, $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, $root.google.analytics.admin.v1alpha.WebDataStream, request, callback); - }, "name", { value: "UpdateWebDataStream" }); - - /** - * Calls UpdateWebDataStream. - * @function updateWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} request UpdateWebDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createWebDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateWebDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.WebDataStream} [response] WebDataStream - */ - - /** - * Calls CreateWebDataStream. - * @function createWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} request CreateWebDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStreamCallback} callback Node-style callback called with the error, if any, and WebDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.createWebDataStream = function createWebDataStream(request, callback) { - return this.rpcCall(createWebDataStream, $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, $root.google.analytics.admin.v1alpha.WebDataStream, request, callback); - }, "name", { value: "CreateWebDataStream" }); - - /** - * Calls CreateWebDataStream. - * @function createWebDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} request CreateWebDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listWebDataStreams}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListWebDataStreamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} [response] ListWebDataStreamsResponse - */ - - /** - * Calls ListWebDataStreams. - * @function listWebDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} request ListWebDataStreamsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreamsCallback} callback Node-style callback called with the error, if any, and ListWebDataStreamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.listWebDataStreams = function listWebDataStreams(request, callback) { - return this.rpcCall(listWebDataStreams, $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse, request, callback); - }, "name", { value: "ListWebDataStreams" }); - - /** - * Calls ListWebDataStreams. - * @function listWebDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} request ListWebDataStreamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getIosAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetIosAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.IosAppDataStream} [response] IosAppDataStream - */ - - /** - * Calls GetIosAppDataStream. - * @function getIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} request GetIosAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and IosAppDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.getIosAppDataStream = function getIosAppDataStream(request, callback) { - return this.rpcCall(getIosAppDataStream, $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, $root.google.analytics.admin.v1alpha.IosAppDataStream, request, callback); - }, "name", { value: "GetIosAppDataStream" }); - - /** - * Calls GetIosAppDataStream. - * @function getIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} request GetIosAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteIosAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteIosAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteIosAppDataStream. - * @function deleteIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} request DeleteIosAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteIosAppDataStream = function deleteIosAppDataStream(request, callback) { - return this.rpcCall(deleteIosAppDataStream, $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteIosAppDataStream" }); - - /** - * Calls DeleteIosAppDataStream. - * @function deleteIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} request DeleteIosAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateIosAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateIosAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.IosAppDataStream} [response] IosAppDataStream - */ - - /** - * Calls UpdateIosAppDataStream. - * @function updateIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} request UpdateIosAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStreamCallback} callback Node-style callback called with the error, if any, and IosAppDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.updateIosAppDataStream = function updateIosAppDataStream(request, callback) { - return this.rpcCall(updateIosAppDataStream, $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, $root.google.analytics.admin.v1alpha.IosAppDataStream, request, callback); - }, "name", { value: "UpdateIosAppDataStream" }); - - /** - * Calls UpdateIosAppDataStream. - * @function updateIosAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} request UpdateIosAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listIosAppDataStreams}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListIosAppDataStreamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} [response] ListIosAppDataStreamsResponse - */ - - /** - * Calls ListIosAppDataStreams. - * @function listIosAppDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} request ListIosAppDataStreamsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreamsCallback} callback Node-style callback called with the error, if any, and ListIosAppDataStreamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.listIosAppDataStreams = function listIosAppDataStreams(request, callback) { - return this.rpcCall(listIosAppDataStreams, $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse, request, callback); - }, "name", { value: "ListIosAppDataStreams" }); - - /** - * Calls ListIosAppDataStreams. - * @function listIosAppDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} request ListIosAppDataStreamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAndroidAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetAndroidAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} [response] AndroidAppDataStream - */ - - /** - * Calls GetAndroidAppDataStream. - * @function getAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} request GetAndroidAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and AndroidAppDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.getAndroidAppDataStream = function getAndroidAppDataStream(request, callback) { - return this.rpcCall(getAndroidAppDataStream, $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, $root.google.analytics.admin.v1alpha.AndroidAppDataStream, request, callback); - }, "name", { value: "GetAndroidAppDataStream" }); - - /** - * Calls GetAndroidAppDataStream. - * @function getAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} request GetAndroidAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAndroidAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteAndroidAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteAndroidAppDataStream. - * @function deleteAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} request DeleteAndroidAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteAndroidAppDataStream = function deleteAndroidAppDataStream(request, callback) { - return this.rpcCall(deleteAndroidAppDataStream, $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteAndroidAppDataStream" }); - - /** - * Calls DeleteAndroidAppDataStream. - * @function deleteAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} request DeleteAndroidAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAndroidAppDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateAndroidAppDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} [response] AndroidAppDataStream - */ - - /** - * Calls UpdateAndroidAppDataStream. - * @function updateAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} request UpdateAndroidAppDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStreamCallback} callback Node-style callback called with the error, if any, and AndroidAppDataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.updateAndroidAppDataStream = function updateAndroidAppDataStream(request, callback) { - return this.rpcCall(updateAndroidAppDataStream, $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, $root.google.analytics.admin.v1alpha.AndroidAppDataStream, request, callback); - }, "name", { value: "UpdateAndroidAppDataStream" }); - - /** - * Calls UpdateAndroidAppDataStream. - * @function updateAndroidAppDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} request UpdateAndroidAppDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAndroidAppDataStreams}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListAndroidAppDataStreamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} [response] ListAndroidAppDataStreamsResponse - */ - - /** - * Calls ListAndroidAppDataStreams. - * @function listAndroidAppDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} request ListAndroidAppDataStreamsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreamsCallback} callback Node-style callback called with the error, if any, and ListAndroidAppDataStreamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.listAndroidAppDataStreams = function listAndroidAppDataStreams(request, callback) { - return this.rpcCall(listAndroidAppDataStreams, $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse, request, callback); - }, "name", { value: "ListAndroidAppDataStreams" }); - - /** - * Calls ListAndroidAppDataStreams. - * @function listAndroidAppDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} request ListAndroidAppDataStreamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -8898,24 +8469,25 @@ return BatchDeleteUserLinksRequest; })(); - v1alpha.GetWebDataStreamRequest = (function() { + v1alpha.CreateFirebaseLinkRequest = (function() { /** - * Properties of a GetWebDataStreamRequest. + * Properties of a CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetWebDataStreamRequest - * @property {string|null} [name] GetWebDataStreamRequest name - */ + * @interface ICreateFirebaseLinkRequest + * @property {string|null} [parent] CreateFirebaseLinkRequest parent + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink + */ /** - * Constructs a new GetWebDataStreamRequest. + * Constructs a new CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetWebDataStreamRequest. - * @implements IGetWebDataStreamRequest + * @classdesc Represents a CreateFirebaseLinkRequest. + * @implements ICreateFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set */ - function GetWebDataStreamRequest(properties) { + function CreateFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8923,75 +8495,88 @@ } /** - * GetWebDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * CreateFirebaseLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @instance + */ + CreateFirebaseLinkRequest.prototype.parent = ""; + + /** + * CreateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance */ - GetWebDataStreamRequest.prototype.name = ""; + CreateFirebaseLinkRequest.prototype.firebaseLink = null; /** - * Creates a new GetWebDataStreamRequest instance using the specified properties. + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance */ - GetWebDataStreamRequest.create = function create(properties) { - return new GetWebDataStreamRequest(properties); + CreateFirebaseLinkRequest.create = function create(properties) { + return new CreateFirebaseLinkRequest(properties); }; /** - * Encodes the specified GetWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWebDataStreamRequest.encode = function encode(message, writer) { + CreateFirebaseLinkRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetWebDataStreamRequest.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetWebDataStreamRequest} message GetWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWebDataStreamRequest message from the specified reader or buffer. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWebDataStreamRequest.decode = function decode(reader, length) { + CreateFirebaseLinkRequest.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.analytics.admin.v1alpha.GetWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9002,107 +8587,121 @@ }; /** - * Decodes a GetWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetWebDataStreamRequest message. + * Verifies a CreateFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetWebDataStreamRequest.verify = function verify(message) { + CreateFirebaseLinkRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } return null; }; /** - * Creates a GetWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetWebDataStreamRequest} GetWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest */ - GetWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest) + CreateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetWebDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } return message; }; /** - * Creates a plain object from a GetWebDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetWebDataStreamRequest} message GetWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWebDataStreamRequest.toObject = function toObject(message, options) { + CreateFirebaseLinkRequest.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 (options.defaults) { + object.parent = ""; + object.firebaseLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); return object; }; /** - * Converts this GetWebDataStreamRequest to JSON. + * Converts this CreateFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - GetWebDataStreamRequest.prototype.toJSON = function toJSON() { + CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetWebDataStreamRequest; + return CreateFirebaseLinkRequest; })(); - v1alpha.DeleteWebDataStreamRequest = (function() { + v1alpha.DeleteFirebaseLinkRequest = (function() { /** - * Properties of a DeleteWebDataStreamRequest. + * Properties of a DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteWebDataStreamRequest - * @property {string|null} [name] DeleteWebDataStreamRequest name + * @interface IDeleteFirebaseLinkRequest + * @property {string|null} [name] DeleteFirebaseLinkRequest name */ /** - * Constructs a new DeleteWebDataStreamRequest. + * Constructs a new DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteWebDataStreamRequest. - * @implements IDeleteWebDataStreamRequest + * @classdesc Represents a DeleteFirebaseLinkRequest. + * @implements IDeleteFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set */ - function DeleteWebDataStreamRequest(properties) { + function DeleteFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9110,35 +8709,35 @@ } /** - * DeleteWebDataStreamRequest name. + * DeleteFirebaseLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance */ - DeleteWebDataStreamRequest.prototype.name = ""; + DeleteFirebaseLinkRequest.prototype.name = ""; /** - * Creates a new DeleteWebDataStreamRequest instance using the specified properties. + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance */ - DeleteWebDataStreamRequest.create = function create(properties) { - return new DeleteWebDataStreamRequest(properties); + DeleteFirebaseLinkRequest.create = function create(properties) { + return new DeleteFirebaseLinkRequest(properties); }; /** - * Encodes the specified DeleteWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebDataStreamRequest.encode = function encode(message, writer) { + DeleteFirebaseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -9147,33 +8746,33 @@ }; /** - * Encodes the specified DeleteWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest} message DeleteWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebDataStreamRequest.decode = function decode(reader, length) { + DeleteFirebaseLinkRequest.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.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9189,30 +8788,30 @@ }; /** - * Decodes a DeleteWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteWebDataStreamRequest message. + * Verifies a DeleteFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteWebDataStreamRequest.verify = function verify(message) { + DeleteFirebaseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -9222,32 +8821,32 @@ }; /** - * Creates a DeleteWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} DeleteWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest */ - DeleteWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteWebDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} message DeleteWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteWebDataStreamRequest.toObject = function toObject(message, options) { + DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -9259,38 +8858,39 @@ }; /** - * Converts this DeleteWebDataStreamRequest to JSON. + * Converts this DeleteFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - DeleteWebDataStreamRequest.prototype.toJSON = function toJSON() { + DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteWebDataStreamRequest; + return DeleteFirebaseLinkRequest; })(); - v1alpha.UpdateWebDataStreamRequest = (function() { + v1alpha.ListFirebaseLinksRequest = (function() { /** - * Properties of an UpdateWebDataStreamRequest. + * Properties of a ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateWebDataStreamRequest - * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] UpdateWebDataStreamRequest webDataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebDataStreamRequest updateMask + * @interface IListFirebaseLinksRequest + * @property {string|null} [parent] ListFirebaseLinksRequest parent + * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize + * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken */ /** - * Constructs a new UpdateWebDataStreamRequest. + * Constructs a new ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateWebDataStreamRequest. - * @implements IUpdateWebDataStreamRequest + * @classdesc Represents a ListFirebaseLinksRequest. + * @implements IListFirebaseLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set */ - function UpdateWebDataStreamRequest(properties) { + function ListFirebaseLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9298,88 +8898,101 @@ } /** - * UpdateWebDataStreamRequest webDataStream. - * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * ListFirebaseLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - UpdateWebDataStreamRequest.prototype.webDataStream = null; + ListFirebaseLinksRequest.prototype.parent = ""; /** - * UpdateWebDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * ListFirebaseLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - UpdateWebDataStreamRequest.prototype.updateMask = null; + ListFirebaseLinksRequest.prototype.pageSize = 0; + + /** + * ListFirebaseLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageToken = ""; /** - * Creates a new UpdateWebDataStreamRequest instance using the specified properties. + * Creates a new ListFirebaseLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance */ - UpdateWebDataStreamRequest.create = function create(properties) { - return new UpdateWebDataStreamRequest(properties); + ListFirebaseLinksRequest.create = function create(properties) { + return new ListFirebaseLinksRequest(properties); }; /** - * Encodes the specified UpdateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebDataStreamRequest.encode = function encode(message, writer) { + ListFirebaseLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest} message UpdateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebDataStreamRequest.decode = function decode(reader, length) { + ListFirebaseLinksRequest.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.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -9390,127 +9003,126 @@ }; /** - * Decodes an UpdateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateWebDataStreamRequest message. + * Verifies a ListFirebaseLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateWebDataStreamRequest.verify = function verify(message) { + ListFirebaseLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); - if (error) - return "webDataStream." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} UpdateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest */ - UpdateWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + ListFirebaseLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); - if (object.webDataStream != null) { - if (typeof object.webDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.webDataStream: object expected"); - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; - - /** - * Creates a plain object from an UpdateWebDataStreamRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + 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 ListFirebaseLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} message UpdateWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateWebDataStreamRequest.toObject = function toObject(message, options) { + ListFirebaseLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.webDataStream = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) - object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateWebDataStreamRequest to JSON. + * Converts this ListFirebaseLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance * @returns {Object.} JSON object */ - UpdateWebDataStreamRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateWebDataStreamRequest; + return ListFirebaseLinksRequest; })(); - v1alpha.CreateWebDataStreamRequest = (function() { + v1alpha.ListFirebaseLinksResponse = (function() { /** - * Properties of a CreateWebDataStreamRequest. + * Properties of a ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface ICreateWebDataStreamRequest - * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] CreateWebDataStreamRequest webDataStream - * @property {string|null} [parent] CreateWebDataStreamRequest parent + * @interface IListFirebaseLinksResponse + * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks + * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken */ /** - * Constructs a new CreateWebDataStreamRequest. + * Constructs a new ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateWebDataStreamRequest. - * @implements ICreateWebDataStreamRequest + * @classdesc Represents a ListFirebaseLinksResponse. + * @implements IListFirebaseLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set */ - function CreateWebDataStreamRequest(properties) { + function ListFirebaseLinksResponse(properties) { + this.firebaseLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9518,88 +9130,91 @@ } /** - * CreateWebDataStreamRequest webDataStream. - * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * ListFirebaseLinksResponse firebaseLinks. + * @member {Array.} firebaseLinks + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance */ - CreateWebDataStreamRequest.prototype.webDataStream = null; + ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; /** - * CreateWebDataStreamRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * ListFirebaseLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance */ - CreateWebDataStreamRequest.prototype.parent = ""; + ListFirebaseLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateWebDataStreamRequest instance using the specified properties. + * Creates a new ListFirebaseLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance */ - CreateWebDataStreamRequest.create = function create(properties) { - return new CreateWebDataStreamRequest(properties); + ListFirebaseLinksResponse.create = function create(properties) { + return new ListFirebaseLinksResponse(properties); }; /** - * Encodes the specified CreateWebDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebDataStreamRequest.encode = function encode(message, writer) { + ListFirebaseLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.firebaseLinks != null && message.firebaseLinks.length) + for (var i = 0; i < message.firebaseLinks.length; ++i) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[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 CreateWebDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateWebDataStreamRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateWebDataStreamRequest} message CreateWebDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebDataStreamRequest.decode = function decode(reader, length) { + ListFirebaseLinksResponse.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.analytics.admin.v1alpha.CreateWebDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); break; case 2: - message.parent = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -9610,123 +9225,133 @@ }; /** - * Decodes a CreateWebDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateWebDataStreamRequest message. + * Verifies a ListFirebaseLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateWebDataStreamRequest.verify = function verify(message) { + ListFirebaseLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); - if (error) - return "webDataStream." + error; + if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { + if (!Array.isArray(message.firebaseLinks)) + return "firebaseLinks: array expected"; + for (var i = 0; i < message.firebaseLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); + if (error) + return "firebaseLinks." + error; + } } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateWebDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} CreateWebDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse */ - CreateWebDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + ListFirebaseLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(); - if (object.webDataStream != null) { - if (typeof object.webDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateWebDataStreamRequest.webDataStream: object expected"); - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + if (object.firebaseLinks) { + if (!Array.isArray(object.firebaseLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); + message.firebaseLinks = []; + for (var i = 0; i < object.firebaseLinks.length; ++i) { + if (typeof object.firebaseLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); + message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); + } } - if (object.parent != null) - message.parent = String(object.parent); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateWebDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.CreateWebDataStreamRequest} message CreateWebDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateWebDataStreamRequest.toObject = function toObject(message, options) { + ListFirebaseLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.webDataStream = null; - object.parent = ""; + if (options.arrays || options.defaults) + object.firebaseLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.firebaseLinks && message.firebaseLinks.length) { + object.firebaseLinks = []; + for (var j = 0; j < message.firebaseLinks.length; ++j) + object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) - object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateWebDataStreamRequest to JSON. + * Converts this ListFirebaseLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateWebDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance * @returns {Object.} JSON object */ - CreateWebDataStreamRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateWebDataStreamRequest; + return ListFirebaseLinksResponse; })(); - v1alpha.ListWebDataStreamsRequest = (function() { + v1alpha.GetGlobalSiteTagRequest = (function() { /** - * Properties of a ListWebDataStreamsRequest. + * Properties of a GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListWebDataStreamsRequest - * @property {string|null} [parent] ListWebDataStreamsRequest parent - * @property {number|null} [pageSize] ListWebDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListWebDataStreamsRequest pageToken + * @interface IGetGlobalSiteTagRequest + * @property {string|null} [name] GetGlobalSiteTagRequest name */ /** - * Constructs a new ListWebDataStreamsRequest. + * Constructs a new GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListWebDataStreamsRequest. - * @implements IListWebDataStreamsRequest + * @classdesc Represents a GetGlobalSiteTagRequest. + * @implements IGetGlobalSiteTagRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set */ - function ListWebDataStreamsRequest(properties) { + function GetGlobalSiteTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9734,101 +9359,75 @@ } /** - * ListWebDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest - * @instance - */ - ListWebDataStreamsRequest.prototype.parent = ""; - - /** - * ListWebDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest - * @instance - */ - ListWebDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListWebDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * GetGlobalSiteTagRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance */ - ListWebDataStreamsRequest.prototype.pageToken = ""; + GetGlobalSiteTagRequest.prototype.name = ""; /** - * Creates a new ListWebDataStreamsRequest instance using the specified properties. + * Creates a new GetGlobalSiteTagRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance */ - ListWebDataStreamsRequest.create = function create(properties) { - return new ListWebDataStreamsRequest(properties); + GetGlobalSiteTagRequest.create = function create(properties) { + return new GetGlobalSiteTagRequest(properties); }; /** - * Encodes the specified ListWebDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsRequest.encode = function encode(message, writer) { + GetGlobalSiteTagRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListWebDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsRequest} message ListWebDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsRequest.decode = function decode(reader, length) { + GetGlobalSiteTagRequest.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.analytics.admin.v1alpha.ListWebDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -9839,126 +9438,108 @@ }; /** - * Decodes a ListWebDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebDataStreamsRequest message. + * Verifies a GetGlobalSiteTagRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebDataStreamsRequest.verify = function verify(message) { + GetGlobalSiteTagRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListWebDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} ListWebDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest */ - ListWebDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) + GetGlobalSiteTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListWebDataStreamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.ListWebDataStreamsRequest} message ListWebDataStreamsRequest + * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebDataStreamsRequest.toObject = function toObject(message, options) { + GetGlobalSiteTagRequest.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; - }; - + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + /** - * Converts this ListWebDataStreamsRequest to JSON. + * Converts this GetGlobalSiteTagRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance * @returns {Object.} JSON object */ - ListWebDataStreamsRequest.prototype.toJSON = function toJSON() { + GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebDataStreamsRequest; + return GetGlobalSiteTagRequest; })(); - v1alpha.ListWebDataStreamsResponse = (function() { + v1alpha.CreateGoogleAdsLinkRequest = (function() { /** - * Properties of a ListWebDataStreamsResponse. + * Properties of a CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListWebDataStreamsResponse - * @property {Array.|null} [webDataStreams] ListWebDataStreamsResponse webDataStreams - * @property {string|null} [nextPageToken] ListWebDataStreamsResponse nextPageToken + * @interface ICreateGoogleAdsLinkRequest + * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink */ /** - * Constructs a new ListWebDataStreamsResponse. + * Constructs a new CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListWebDataStreamsResponse. - * @implements IListWebDataStreamsResponse + * @classdesc Represents a CreateGoogleAdsLinkRequest. + * @implements ICreateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set */ - function ListWebDataStreamsResponse(properties) { - this.webDataStreams = []; + function CreateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9966,91 +9547,88 @@ } /** - * ListWebDataStreamsResponse webDataStreams. - * @member {Array.} webDataStreams - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * CreateGoogleAdsLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance */ - ListWebDataStreamsResponse.prototype.webDataStreams = $util.emptyArray; + CreateGoogleAdsLinkRequest.prototype.parent = ""; /** - * ListWebDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * CreateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance */ - ListWebDataStreamsResponse.prototype.nextPageToken = ""; + CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; /** - * Creates a new ListWebDataStreamsResponse instance using the specified properties. + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance */ - ListWebDataStreamsResponse.create = function create(properties) { - return new ListWebDataStreamsResponse(properties); + CreateGoogleAdsLinkRequest.create = function create(properties) { + return new CreateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified ListWebDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsResponse.encode = function encode(message, writer) { + CreateGoogleAdsLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webDataStreams != null && message.webDataStreams.length) - for (var i = 0; i < message.webDataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListWebDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListWebDataStreamsResponse.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListWebDataStreamsResponse} message ListWebDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsResponse.decode = function decode(reader, length) { + CreateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.ListWebDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.webDataStreams && message.webDataStreams.length)) - message.webDataStreams = []; - message.webDataStreams.push($root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10061,133 +9639,122 @@ }; /** - * Decodes a ListWebDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebDataStreamsResponse message. + * Verifies a CreateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebDataStreamsResponse.verify = function verify(message) { + CreateGoogleAdsLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webDataStreams != null && message.hasOwnProperty("webDataStreams")) { - if (!Array.isArray(message.webDataStreams)) - return "webDataStreams: array expected"; - for (var i = 0; i < message.webDataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStreams[i]); - if (error) - return "webDataStreams." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListWebDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} ListWebDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest */ - ListWebDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(); - if (object.webDataStreams) { - if (!Array.isArray(object.webDataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: array expected"); - message.webDataStreams = []; - for (var i = 0; i < object.webDataStreams.length; ++i) { - if (typeof object.webDataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListWebDataStreamsResponse.webDataStreams: object expected"); - message.webDataStreams[i] = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStreams[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListWebDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListWebDataStreamsResponse} message ListWebDataStreamsResponse + * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebDataStreamsResponse.toObject = function toObject(message, options) { + CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.webDataStreams = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.webDataStreams && message.webDataStreams.length) { - object.webDataStreams = []; - for (var j = 0; j < message.webDataStreams.length; ++j) - object.webDataStreams[j] = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStreams[j], options); + if (options.defaults) { + object.parent = ""; + object.googleAdsLink = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); return object; }; /** - * Converts this ListWebDataStreamsResponse to JSON. + * Converts this CreateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListWebDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - ListWebDataStreamsResponse.prototype.toJSON = function toJSON() { + CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebDataStreamsResponse; + return CreateGoogleAdsLinkRequest; })(); - v1alpha.GetIosAppDataStreamRequest = (function() { + v1alpha.UpdateGoogleAdsLinkRequest = (function() { /** - * Properties of a GetIosAppDataStreamRequest. + * Properties of an UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetIosAppDataStreamRequest - * @property {string|null} [name] GetIosAppDataStreamRequest name + * @interface IUpdateGoogleAdsLinkRequest + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask */ /** - * Constructs a new GetIosAppDataStreamRequest. + * Constructs a new UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetIosAppDataStreamRequest. - * @implements IGetIosAppDataStreamRequest + * @classdesc Represents an UpdateGoogleAdsLinkRequest. + * @implements IUpdateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set */ - function GetIosAppDataStreamRequest(properties) { + function UpdateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10195,75 +9762,88 @@ } /** - * GetIosAppDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * UpdateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @instance + */ + UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + + /** + * UpdateGoogleAdsLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance */ - GetIosAppDataStreamRequest.prototype.name = ""; + UpdateGoogleAdsLinkRequest.prototype.updateMask = null; /** - * Creates a new GetIosAppDataStreamRequest instance using the specified properties. + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance */ - GetIosAppDataStreamRequest.create = function create(properties) { - return new GetIosAppDataStreamRequest(properties); + UpdateGoogleAdsLinkRequest.create = function create(properties) { + return new UpdateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified GetIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIosAppDataStreamRequest.encode = function encode(message, writer) { + UpdateGoogleAdsLinkRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, 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 GetIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest} message GetIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIosAppDataStreamRequest.decode = function decode(reader, length) { + UpdateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10274,107 +9854,126 @@ }; /** - * Decodes a GetIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIosAppDataStreamRequest message. + * Verifies an UpdateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIosAppDataStreamRequest.verify = function verify(message) { + UpdateGoogleAdsLinkRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + 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 a GetIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} GetIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest */ - GetIosAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetIosAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} message GetIosAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIosAppDataStreamRequest.toObject = function toObject(message, options) { + UpdateGoogleAdsLinkRequest.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 (options.defaults) { + object.googleAdsLink = null; + object.updateMask = null; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetIosAppDataStreamRequest to JSON. + * Converts this UpdateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - GetIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIosAppDataStreamRequest; + return UpdateGoogleAdsLinkRequest; })(); - v1alpha.DeleteIosAppDataStreamRequest = (function() { + v1alpha.DeleteGoogleAdsLinkRequest = (function() { /** - * Properties of a DeleteIosAppDataStreamRequest. + * Properties of a DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteIosAppDataStreamRequest - * @property {string|null} [name] DeleteIosAppDataStreamRequest name + * @interface IDeleteGoogleAdsLinkRequest + * @property {string|null} [name] DeleteGoogleAdsLinkRequest name */ /** - * Constructs a new DeleteIosAppDataStreamRequest. + * Constructs a new DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteIosAppDataStreamRequest. - * @implements IDeleteIosAppDataStreamRequest + * @classdesc Represents a DeleteGoogleAdsLinkRequest. + * @implements IDeleteGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set */ - function DeleteIosAppDataStreamRequest(properties) { + function DeleteGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10382,35 +9981,35 @@ } /** - * DeleteIosAppDataStreamRequest name. + * DeleteGoogleAdsLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance */ - DeleteIosAppDataStreamRequest.prototype.name = ""; + DeleteGoogleAdsLinkRequest.prototype.name = ""; /** - * Creates a new DeleteIosAppDataStreamRequest instance using the specified properties. + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance */ - DeleteIosAppDataStreamRequest.create = function create(properties) { - return new DeleteIosAppDataStreamRequest(properties); + DeleteGoogleAdsLinkRequest.create = function create(properties) { + return new DeleteGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified DeleteIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIosAppDataStreamRequest.encode = function encode(message, writer) { + DeleteGoogleAdsLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -10419,33 +10018,33 @@ }; /** - * Encodes the specified DeleteIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIosAppDataStreamRequest.decode = function decode(reader, length) { + DeleteGoogleAdsLinkRequest.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.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10461,30 +10060,30 @@ }; /** - * Decodes a DeleteIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIosAppDataStreamRequest message. + * Verifies a DeleteGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIosAppDataStreamRequest.verify = function verify(message) { + DeleteGoogleAdsLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -10494,32 +10093,32 @@ }; /** - * Creates a DeleteIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} DeleteIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest */ - DeleteIosAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteIosAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} message DeleteIosAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIosAppDataStreamRequest.toObject = function toObject(message, options) { + DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -10531,38 +10130,39 @@ }; /** - * Converts this DeleteIosAppDataStreamRequest to JSON. + * Converts this DeleteGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - DeleteIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIosAppDataStreamRequest; + return DeleteGoogleAdsLinkRequest; })(); - v1alpha.UpdateIosAppDataStreamRequest = (function() { + v1alpha.ListGoogleAdsLinksRequest = (function() { /** - * Properties of an UpdateIosAppDataStreamRequest. + * Properties of a ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateIosAppDataStreamRequest - * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] UpdateIosAppDataStreamRequest iosAppDataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIosAppDataStreamRequest updateMask + * @interface IListGoogleAdsLinksRequest + * @property {string|null} [parent] ListGoogleAdsLinksRequest parent + * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize + * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken */ /** - * Constructs a new UpdateIosAppDataStreamRequest. + * Constructs a new ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateIosAppDataStreamRequest. - * @implements IUpdateIosAppDataStreamRequest + * @classdesc Represents a ListGoogleAdsLinksRequest. + * @implements IListGoogleAdsLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set */ - function UpdateIosAppDataStreamRequest(properties) { + function ListGoogleAdsLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10570,88 +10170,101 @@ } /** - * UpdateIosAppDataStreamRequest iosAppDataStream. - * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * ListGoogleAdsLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.parent = ""; + + /** + * ListGoogleAdsLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance */ - UpdateIosAppDataStreamRequest.prototype.iosAppDataStream = null; + ListGoogleAdsLinksRequest.prototype.pageSize = 0; /** - * UpdateIosAppDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * ListGoogleAdsLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance */ - UpdateIosAppDataStreamRequest.prototype.updateMask = null; + ListGoogleAdsLinksRequest.prototype.pageToken = ""; /** - * Creates a new UpdateIosAppDataStreamRequest instance using the specified properties. + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance */ - UpdateIosAppDataStreamRequest.create = function create(properties) { - return new UpdateIosAppDataStreamRequest(properties); + ListGoogleAdsLinksRequest.create = function create(properties) { + return new ListGoogleAdsLinksRequest(properties); }; /** - * Encodes the specified UpdateIosAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIosAppDataStreamRequest.encode = function encode(message, writer) { + ListGoogleAdsLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateIosAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIosAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIosAppDataStreamRequest.decode = function decode(reader, length) { + ListGoogleAdsLinksRequest.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.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -10662,128 +10275,126 @@ }; /** - * Decodes an UpdateIosAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIosAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIosAppDataStreamRequest message. + * Verifies a ListGoogleAdsLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIosAppDataStreamRequest.verify = function verify(message) { + ListGoogleAdsLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); - if (error) - return "iosAppDataStream." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateIosAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} UpdateIosAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest */ - UpdateIosAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); - if (object.iosAppDataStream != null) { - if (typeof object.iosAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.iosAppDataStream: object expected"); - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + 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 an UpdateIosAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} message UpdateIosAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIosAppDataStreamRequest.toObject = function toObject(message, options) { + ListGoogleAdsLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.iosAppDataStream = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) - object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateIosAppDataStreamRequest to JSON. + * Converts this ListGoogleAdsLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance * @returns {Object.} JSON object */ - UpdateIosAppDataStreamRequest.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIosAppDataStreamRequest; + return ListGoogleAdsLinksRequest; })(); - v1alpha.ListIosAppDataStreamsRequest = (function() { + v1alpha.ListGoogleAdsLinksResponse = (function() { /** - * Properties of a ListIosAppDataStreamsRequest. + * Properties of a ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListIosAppDataStreamsRequest - * @property {string|null} [parent] ListIosAppDataStreamsRequest parent - * @property {number|null} [pageSize] ListIosAppDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListIosAppDataStreamsRequest pageToken + * @interface IListGoogleAdsLinksResponse + * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks + * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken */ /** - * Constructs a new ListIosAppDataStreamsRequest. + * Constructs a new ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListIosAppDataStreamsRequest. - * @implements IListIosAppDataStreamsRequest + * @classdesc Represents a ListGoogleAdsLinksResponse. + * @implements IListGoogleAdsLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set */ - function ListIosAppDataStreamsRequest(properties) { + function ListGoogleAdsLinksResponse(properties) { + this.googleAdsLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10791,101 +10402,91 @@ } /** - * ListIosAppDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - * @instance - */ - ListIosAppDataStreamsRequest.prototype.parent = ""; - - /** - * ListIosAppDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * ListGoogleAdsLinksResponse googleAdsLinks. + * @member {Array.} googleAdsLinks + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance */ - ListIosAppDataStreamsRequest.prototype.pageSize = 0; + ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; /** - * ListIosAppDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * ListGoogleAdsLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance */ - ListIosAppDataStreamsRequest.prototype.pageToken = ""; + ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListIosAppDataStreamsRequest instance using the specified properties. + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance */ - ListIosAppDataStreamsRequest.create = function create(properties) { - return new ListIosAppDataStreamsRequest(properties); + ListGoogleAdsLinksResponse.create = function create(properties) { + return new ListGoogleAdsLinksResponse(properties); }; /** - * Encodes the specified ListIosAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsRequest.encode = function encode(message, writer) { + ListGoogleAdsLinksResponse.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.googleAdsLinks != null && message.googleAdsLinks.length) + for (var i = 0; i < message.googleAdsLinks.length; ++i) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[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 ListIosAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsRequest.decode = function decode(reader, length) { + ListGoogleAdsLinksResponse.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.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -10896,126 +10497,133 @@ }; /** - * Decodes a ListIosAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIosAppDataStreamsRequest message. + * Verifies a ListGoogleAdsLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIosAppDataStreamsRequest.verify = function verify(message) { + ListGoogleAdsLinksResponse.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.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { + if (!Array.isArray(message.googleAdsLinks)) + return "googleAdsLinks: array expected"; + for (var i = 0; i < message.googleAdsLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); + if (error) + return "googleAdsLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIosAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} ListIosAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse */ - ListIosAppDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); - 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 ListIosAppDataStreamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - * @static - * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} message ListIosAppDataStreamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListIosAppDataStreamsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + if (object.googleAdsLinks) { + if (!Array.isArray(object.googleAdsLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); + message.googleAdsLinks = []; + for (var i = 0; i < object.googleAdsLinks.length; ++i) { + if (typeof object.googleAdsLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); + message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); + } } - 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 (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.googleAdsLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.googleAdsLinks && message.googleAdsLinks.length) { + object.googleAdsLinks = []; + for (var j = 0; j < message.googleAdsLinks.length; ++j) + object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListIosAppDataStreamsRequest to JSON. + * Converts this ListGoogleAdsLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance * @returns {Object.} JSON object */ - ListIosAppDataStreamsRequest.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIosAppDataStreamsRequest; + return ListGoogleAdsLinksResponse; })(); - v1alpha.ListIosAppDataStreamsResponse = (function() { + v1alpha.GetDataSharingSettingsRequest = (function() { /** - * Properties of a ListIosAppDataStreamsResponse. + * Properties of a GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListIosAppDataStreamsResponse - * @property {Array.|null} [iosAppDataStreams] ListIosAppDataStreamsResponse iosAppDataStreams - * @property {string|null} [nextPageToken] ListIosAppDataStreamsResponse nextPageToken + * @interface IGetDataSharingSettingsRequest + * @property {string|null} [name] GetDataSharingSettingsRequest name */ /** - * Constructs a new ListIosAppDataStreamsResponse. + * Constructs a new GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListIosAppDataStreamsResponse. - * @implements IListIosAppDataStreamsResponse + * @classdesc Represents a GetDataSharingSettingsRequest. + * @implements IGetDataSharingSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set */ - function ListIosAppDataStreamsResponse(properties) { - this.iosAppDataStreams = []; + function GetDataSharingSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11023,91 +10631,75 @@ } /** - * ListIosAppDataStreamsResponse iosAppDataStreams. - * @member {Array.} iosAppDataStreams - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - * @instance - */ - ListIosAppDataStreamsResponse.prototype.iosAppDataStreams = $util.emptyArray; - - /** - * ListIosAppDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * GetDataSharingSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance */ - ListIosAppDataStreamsResponse.prototype.nextPageToken = ""; + GetDataSharingSettingsRequest.prototype.name = ""; /** - * Creates a new ListIosAppDataStreamsResponse instance using the specified properties. + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance */ - ListIosAppDataStreamsResponse.create = function create(properties) { - return new ListIosAppDataStreamsResponse(properties); + GetDataSharingSettingsRequest.create = function create(properties) { + return new GetDataSharingSettingsRequest(properties); }; /** - * Encodes the specified ListIosAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsResponse.encode = function encode(message, writer) { + GetDataSharingSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.iosAppDataStreams != null && message.iosAppDataStreams.length) - for (var i = 0; i < message.iosAppDataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListIosAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIosAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsResponse.decode = function decode(reader, length) { + GetDataSharingSettingsRequest.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.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.iosAppDataStreams && message.iosAppDataStreams.length)) - message.iosAppDataStreams = []; - message.iosAppDataStreams.push($root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -11118,133 +10710,108 @@ }; /** - * Decodes a ListIosAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIosAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIosAppDataStreamsResponse message. + * Verifies a GetDataSharingSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIosAppDataStreamsResponse.verify = function verify(message) { + GetDataSharingSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.iosAppDataStreams != null && message.hasOwnProperty("iosAppDataStreams")) { - if (!Array.isArray(message.iosAppDataStreams)) - return "iosAppDataStreams: array expected"; - for (var i = 0; i < message.iosAppDataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStreams[i]); - if (error) - return "iosAppDataStreams." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListIosAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} ListIosAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest */ - ListIosAppDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + GetDataSharingSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); - if (object.iosAppDataStreams) { - if (!Array.isArray(object.iosAppDataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: array expected"); - message.iosAppDataStreams = []; - for (var i = 0; i < object.iosAppDataStreams.length; ++i) { - if (typeof object.iosAppDataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.iosAppDataStreams: object expected"); - message.iosAppDataStreams[i] = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStreams[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListIosAppDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} message ListIosAppDataStreamsResponse + * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIosAppDataStreamsResponse.toObject = function toObject(message, options) { + GetDataSharingSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.iosAppDataStreams = []; if (options.defaults) - object.nextPageToken = ""; - if (message.iosAppDataStreams && message.iosAppDataStreams.length) { - object.iosAppDataStreams = []; - for (var j = 0; j < message.iosAppDataStreams.length; ++j) - object.iosAppDataStreams[j] = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStreams[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListIosAppDataStreamsResponse to JSON. + * Converts this GetDataSharingSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance * @returns {Object.} JSON object */ - ListIosAppDataStreamsResponse.prototype.toJSON = function toJSON() { + GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIosAppDataStreamsResponse; + return GetDataSharingSettingsRequest; })(); - v1alpha.GetAndroidAppDataStreamRequest = (function() { + v1alpha.ListAccountSummariesRequest = (function() { /** - * Properties of a GetAndroidAppDataStreamRequest. + * Properties of a ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetAndroidAppDataStreamRequest - * @property {string|null} [name] GetAndroidAppDataStreamRequest name + * @interface IListAccountSummariesRequest + * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize + * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken */ /** - * Constructs a new GetAndroidAppDataStreamRequest. + * Constructs a new ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetAndroidAppDataStreamRequest. - * @implements IGetAndroidAppDataStreamRequest + * @classdesc Represents a ListAccountSummariesRequest. + * @implements IListAccountSummariesRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set */ - function GetAndroidAppDataStreamRequest(properties) { + function ListAccountSummariesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11252,75 +10819,88 @@ } /** - * GetAndroidAppDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * ListAccountSummariesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @instance + */ + ListAccountSummariesRequest.prototype.pageSize = 0; + + /** + * ListAccountSummariesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - GetAndroidAppDataStreamRequest.prototype.name = ""; + ListAccountSummariesRequest.prototype.pageToken = ""; /** - * Creates a new GetAndroidAppDataStreamRequest instance using the specified properties. + * Creates a new ListAccountSummariesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance */ - GetAndroidAppDataStreamRequest.create = function create(properties) { - return new GetAndroidAppDataStreamRequest(properties); + ListAccountSummariesRequest.create = function create(properties) { + return new ListAccountSummariesRequest(properties); }; /** - * Encodes the specified GetAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAndroidAppDataStreamRequest.encode = function encode(message, writer) { + ListAccountSummariesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 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); return writer; }; /** - * Encodes the specified GetAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAndroidAppDataStreamRequest.decode = function decode(reader, length) { + ListAccountSummariesRequest.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.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.pageSize = reader.int32(); + break; + case 2: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -11331,107 +10911,118 @@ }; /** - * Decodes a GetAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAndroidAppDataStreamRequest message. + * Verifies a ListAccountSummariesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAndroidAppDataStreamRequest.verify = function verify(message) { + ListAccountSummariesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a GetAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} GetAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest */ - GetAndroidAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + ListAccountSummariesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); + 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 GetAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} message GetAndroidAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + ListAccountSummariesRequest.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 (options.defaults) { + object.pageSize = 0; + object.pageToken = ""; + } + 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 GetAndroidAppDataStreamRequest to JSON. + * Converts this ListAccountSummariesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance * @returns {Object.} JSON object */ - GetAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + ListAccountSummariesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetAndroidAppDataStreamRequest; + return ListAccountSummariesRequest; })(); - v1alpha.DeleteAndroidAppDataStreamRequest = (function() { + v1alpha.ListAccountSummariesResponse = (function() { /** - * Properties of a DeleteAndroidAppDataStreamRequest. + * Properties of a ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteAndroidAppDataStreamRequest - * @property {string|null} [name] DeleteAndroidAppDataStreamRequest name + * @interface IListAccountSummariesResponse + * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries + * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken */ /** - * Constructs a new DeleteAndroidAppDataStreamRequest. + * Constructs a new ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteAndroidAppDataStreamRequest. - * @implements IDeleteAndroidAppDataStreamRequest + * @classdesc Represents a ListAccountSummariesResponse. + * @implements IListAccountSummariesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set */ - function DeleteAndroidAppDataStreamRequest(properties) { + function ListAccountSummariesResponse(properties) { + this.accountSummaries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11439,75 +11030,91 @@ } /** - * DeleteAndroidAppDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - * @instance + * ListAccountSummariesResponse accountSummaries. + * @member {Array.} accountSummaries + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @instance + */ + ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; + + /** + * ListAccountSummariesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @instance */ - DeleteAndroidAppDataStreamRequest.prototype.name = ""; + ListAccountSummariesResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteAndroidAppDataStreamRequest instance using the specified properties. + * Creates a new ListAccountSummariesResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance */ - DeleteAndroidAppDataStreamRequest.create = function create(properties) { - return new DeleteAndroidAppDataStreamRequest(properties); + ListAccountSummariesResponse.create = function create(properties) { + return new ListAccountSummariesResponse(properties); }; /** - * Encodes the specified DeleteAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAndroidAppDataStreamRequest.encode = function encode(message, writer) { + ListAccountSummariesResponse.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.accountSummaries != null && message.accountSummaries.length) + for (var i = 0; i < message.accountSummaries.length; ++i) + $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[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 DeleteAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteAndroidAppDataStreamRequest.decode = function decode(reader, length) { + ListAccountSummariesResponse.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.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -11518,108 +11125,134 @@ }; /** - * Decodes a DeleteAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteAndroidAppDataStreamRequest message. + * Verifies a ListAccountSummariesResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteAndroidAppDataStreamRequest.verify = function verify(message) { + ListAccountSummariesResponse.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.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { + if (!Array.isArray(message.accountSummaries)) + return "accountSummaries: array expected"; + for (var i = 0; i < message.accountSummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); + if (error) + return "accountSummaries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} DeleteAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse */ - DeleteAndroidAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + ListAccountSummariesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); + if (object.accountSummaries) { + if (!Array.isArray(object.accountSummaries)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); + message.accountSummaries = []; + for (var i = 0; i < object.accountSummaries.length; ++i) { + if (typeof object.accountSummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); + message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} message DeleteAndroidAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + ListAccountSummariesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.accountSummaries = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.accountSummaries && message.accountSummaries.length) { + object.accountSummaries = []; + for (var j = 0; j < message.accountSummaries.length; ++j) + object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteAndroidAppDataStreamRequest to JSON. + * Converts this ListAccountSummariesResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance * @returns {Object.} JSON object */ - DeleteAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + ListAccountSummariesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteAndroidAppDataStreamRequest; + return ListAccountSummariesResponse; })(); - v1alpha.UpdateAndroidAppDataStreamRequest = (function() { + v1alpha.AcknowledgeUserDataCollectionRequest = (function() { /** - * Properties of an UpdateAndroidAppDataStreamRequest. + * Properties of an AcknowledgeUserDataCollectionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateAndroidAppDataStreamRequest - * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] UpdateAndroidAppDataStreamRequest androidAppDataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAndroidAppDataStreamRequest updateMask + * @interface IAcknowledgeUserDataCollectionRequest + * @property {string|null} [property] AcknowledgeUserDataCollectionRequest property + * @property {string|null} [acknowledgement] AcknowledgeUserDataCollectionRequest acknowledgement */ /** - * Constructs a new UpdateAndroidAppDataStreamRequest. + * Constructs a new AcknowledgeUserDataCollectionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateAndroidAppDataStreamRequest. - * @implements IUpdateAndroidAppDataStreamRequest + * @classdesc Represents an AcknowledgeUserDataCollectionRequest. + * @implements IAcknowledgeUserDataCollectionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set */ - function UpdateAndroidAppDataStreamRequest(properties) { + function AcknowledgeUserDataCollectionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11627,88 +11260,88 @@ } /** - * UpdateAndroidAppDataStreamRequest androidAppDataStream. - * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * AcknowledgeUserDataCollectionRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance */ - UpdateAndroidAppDataStreamRequest.prototype.androidAppDataStream = null; + AcknowledgeUserDataCollectionRequest.prototype.property = ""; /** - * UpdateAndroidAppDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * AcknowledgeUserDataCollectionRequest acknowledgement. + * @member {string} acknowledgement + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance */ - UpdateAndroidAppDataStreamRequest.prototype.updateMask = null; + AcknowledgeUserDataCollectionRequest.prototype.acknowledgement = ""; /** - * Creates a new UpdateAndroidAppDataStreamRequest instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest instance */ - UpdateAndroidAppDataStreamRequest.create = function create(properties) { - return new UpdateAndroidAppDataStreamRequest(properties); + AcknowledgeUserDataCollectionRequest.create = function create(properties) { + return new AcknowledgeUserDataCollectionRequest(properties); }; /** - * Encodes the specified UpdateAndroidAppDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAndroidAppDataStreamRequest.encode = function encode(message, writer) { + AcknowledgeUserDataCollectionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acknowledgement); return writer; }; /** - * Encodes the specified UpdateAndroidAppDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAndroidAppDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + AcknowledgeUserDataCollectionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAndroidAppDataStreamRequest.decode = function decode(reader, length) { + AcknowledgeUserDataCollectionRequest.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.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); + message.property = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.acknowledgement = reader.string(); break; default: reader.skipType(tag & 7); @@ -11719,128 +11352,115 @@ }; /** - * Decodes an UpdateAndroidAppDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAndroidAppDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + AcknowledgeUserDataCollectionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateAndroidAppDataStreamRequest message. + * Verifies an AcknowledgeUserDataCollectionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateAndroidAppDataStreamRequest.verify = function verify(message) { + AcknowledgeUserDataCollectionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); - if (error) - return "androidAppDataStream." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!$util.isString(message.acknowledgement)) + return "acknowledgement: string expected"; return null; }; /** - * Creates an UpdateAndroidAppDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} UpdateAndroidAppDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest */ - UpdateAndroidAppDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + AcknowledgeUserDataCollectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); - if (object.androidAppDataStream != null) { - if (typeof object.androidAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.androidAppDataStream: object expected"); - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); + if (object.property != null) + message.property = String(object.property); + if (object.acknowledgement != null) + message.acknowledgement = String(object.acknowledgement); return message; }; /** - * Creates a plain object from an UpdateAndroidAppDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} message UpdateAndroidAppDataStreamRequest + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateAndroidAppDataStreamRequest.toObject = function toObject(message, options) { + AcknowledgeUserDataCollectionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.androidAppDataStream = null; - object.updateMask = null; + object.property = ""; + object.acknowledgement = ""; } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) - object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = message.acknowledgement; return object; }; /** - * Converts this UpdateAndroidAppDataStreamRequest to JSON. + * Converts this AcknowledgeUserDataCollectionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance * @returns {Object.} JSON object */ - UpdateAndroidAppDataStreamRequest.prototype.toJSON = function toJSON() { + AcknowledgeUserDataCollectionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateAndroidAppDataStreamRequest; + return AcknowledgeUserDataCollectionRequest; })(); - v1alpha.ListAndroidAppDataStreamsRequest = (function() { + v1alpha.AcknowledgeUserDataCollectionResponse = (function() { /** - * Properties of a ListAndroidAppDataStreamsRequest. + * Properties of an AcknowledgeUserDataCollectionResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListAndroidAppDataStreamsRequest - * @property {string|null} [parent] ListAndroidAppDataStreamsRequest parent - * @property {number|null} [pageSize] ListAndroidAppDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListAndroidAppDataStreamsRequest pageToken + * @interface IAcknowledgeUserDataCollectionResponse */ /** - * Constructs a new ListAndroidAppDataStreamsRequest. + * Constructs a new AcknowledgeUserDataCollectionResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAndroidAppDataStreamsRequest. - * @implements IListAndroidAppDataStreamsRequest + * @classdesc Represents an AcknowledgeUserDataCollectionResponse. + * @implements IAcknowledgeUserDataCollectionResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set */ - function ListAndroidAppDataStreamsRequest(properties) { + function AcknowledgeUserDataCollectionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11848,102 +11468,63 @@ } /** - * ListAndroidAppDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.parent = ""; - - /** - * ListAndroidAppDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListAndroidAppDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - * @instance - */ - ListAndroidAppDataStreamsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListAndroidAppDataStreamsRequest instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse instance */ - ListAndroidAppDataStreamsRequest.create = function create(properties) { - return new ListAndroidAppDataStreamsRequest(properties); + AcknowledgeUserDataCollectionResponse.create = function create(properties) { + return new AcknowledgeUserDataCollectionResponse(properties); }; /** - * Encodes the specified ListAndroidAppDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsRequest.encode = function encode(message, writer) { + AcknowledgeUserDataCollectionResponse.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 ListAndroidAppDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AcknowledgeUserDataCollectionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsRequest.decode = function decode(reader, length) { + AcknowledgeUserDataCollectionResponse.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.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); 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; @@ -11953,126 +11534,105 @@ }; /** - * Decodes a ListAndroidAppDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + AcknowledgeUserDataCollectionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAndroidAppDataStreamsRequest message. + * Verifies an AcknowledgeUserDataCollectionResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAndroidAppDataStreamsRequest.verify = function verify(message) { + AcknowledgeUserDataCollectionResponse.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 ListAndroidAppDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} ListAndroidAppDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse */ - ListAndroidAppDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + AcknowledgeUserDataCollectionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); - 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; + return new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); }; /** - * Creates a plain object from a ListAndroidAppDataStreamsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} message ListAndroidAppDataStreamsRequest + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAndroidAppDataStreamsRequest.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; + AcknowledgeUserDataCollectionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ListAndroidAppDataStreamsRequest to JSON. + * Converts this AcknowledgeUserDataCollectionResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @instance * @returns {Object.} JSON object */ - ListAndroidAppDataStreamsRequest.prototype.toJSON = function toJSON() { + AcknowledgeUserDataCollectionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAndroidAppDataStreamsRequest; + return AcknowledgeUserDataCollectionResponse; })(); - v1alpha.ListAndroidAppDataStreamsResponse = (function() { + v1alpha.SearchChangeHistoryEventsRequest = (function() { /** - * Properties of a ListAndroidAppDataStreamsResponse. + * Properties of a SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAndroidAppDataStreamsResponse - * @property {Array.|null} [androidAppDataStreams] ListAndroidAppDataStreamsResponse androidAppDataStreams - * @property {string|null} [nextPageToken] ListAndroidAppDataStreamsResponse nextPageToken + * @interface ISearchChangeHistoryEventsRequest + * @property {string|null} [account] SearchChangeHistoryEventsRequest account + * @property {string|null} [property] SearchChangeHistoryEventsRequest property + * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType + * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action + * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail + * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime + * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime + * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize + * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken */ /** - * Constructs a new ListAndroidAppDataStreamsResponse. + * Constructs a new SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAndroidAppDataStreamsResponse. - * @implements IListAndroidAppDataStreamsResponse + * @classdesc Represents a SearchChangeHistoryEventsRequest. + * @implements ISearchChangeHistoryEventsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set */ - function ListAndroidAppDataStreamsResponse(properties) { - this.androidAppDataStreams = []; + function SearchChangeHistoryEventsRequest(properties) { + this.resourceType = []; + this.action = []; + this.actorEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12080,91 +11640,204 @@ } /** - * ListAndroidAppDataStreamsResponse androidAppDataStreams. - * @member {Array.} androidAppDataStreams - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * SearchChangeHistoryEventsRequest account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - ListAndroidAppDataStreamsResponse.prototype.androidAppDataStreams = $util.emptyArray; + SearchChangeHistoryEventsRequest.prototype.account = ""; /** - * ListAndroidAppDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * SearchChangeHistoryEventsRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.property = ""; + + /** + * SearchChangeHistoryEventsRequest resourceType. + * @member {Array.} resourceType + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest action. + * @member {Array.} action + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest actorEmail. + * @member {Array.} actorEmail + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest earliestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; + + /** + * SearchChangeHistoryEventsRequest latestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; + + /** + * SearchChangeHistoryEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.pageSize = 0; + + /** + * SearchChangeHistoryEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - ListAndroidAppDataStreamsResponse.prototype.nextPageToken = ""; + SearchChangeHistoryEventsRequest.prototype.pageToken = ""; /** - * Creates a new ListAndroidAppDataStreamsResponse instance using the specified properties. + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance */ - ListAndroidAppDataStreamsResponse.create = function create(properties) { - return new ListAndroidAppDataStreamsResponse(properties); + SearchChangeHistoryEventsRequest.create = function create(properties) { + return new SearchChangeHistoryEventsRequest(properties); }; /** - * Encodes the specified ListAndroidAppDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsResponse.encode = function encode(message, writer) { + SearchChangeHistoryEventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.androidAppDataStreams != null && message.androidAppDataStreams.length) - for (var i = 0; i < message.androidAppDataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); + if (message.resourceType != null && message.resourceType.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.resourceType.length; ++i) + writer.int32(message.resourceType[i]); + writer.ldelim(); + } + if (message.action != null && message.action.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.action.length; ++i) + writer.int32(message.action[i]); + writer.ldelim(); + } + if (message.actorEmail != null && message.actorEmail.length) + for (var i = 0; i < message.actorEmail.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); + if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); return writer; }; /** - * Encodes the specified ListAndroidAppDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAndroidAppDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsResponse.decode = function decode(reader, length) { + SearchChangeHistoryEventsRequest.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.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.androidAppDataStreams && message.androidAppDataStreams.length)) - message.androidAppDataStreams = []; - message.androidAppDataStreams.push($root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32())); + message.account = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.property = reader.string(); + break; + case 3: + if (!(message.resourceType && message.resourceType.length)) + message.resourceType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.resourceType.push(reader.int32()); + } else + message.resourceType.push(reader.int32()); + break; + case 4: + if (!(message.action && message.action.length)) + message.action = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.action.push(reader.int32()); + } else + message.action.push(reader.int32()); + break; + case 5: + if (!(message.actorEmail && message.actorEmail.length)) + message.actorEmail = []; + message.actorEmail.push(reader.string()); + break; + case 6: + message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.pageSize = reader.int32(); + break; + case 9: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -12175,134 +11848,322 @@ }; /** - * Decodes a ListAndroidAppDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAndroidAppDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAndroidAppDataStreamsResponse message. + * Verifies a SearchChangeHistoryEventsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAndroidAppDataStreamsResponse.verify = function verify(message) { + SearchChangeHistoryEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.androidAppDataStreams != null && message.hasOwnProperty("androidAppDataStreams")) { - if (!Array.isArray(message.androidAppDataStreams)) - return "androidAppDataStreams: array expected"; - for (var i = 0; i < message.androidAppDataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStreams[i]); - if (error) - return "androidAppDataStreams." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListAndroidAppDataStreamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} ListAndroidAppDataStreamsResponse - */ - ListAndroidAppDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) { + if (!Array.isArray(message.resourceType)) + return "resourceType: array expected"; + for (var i = 0; i < message.resourceType.length; ++i) + switch (message.resourceType[i]) { + default: + return "resourceType: enum value[] expected"; + case 0: + case 1: + case 2: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 18: + break; + } + } + if (message.action != null && message.hasOwnProperty("action")) { + if (!Array.isArray(message.action)) + return "action: array expected"; + for (var i = 0; i < message.action.length; ++i) + switch (message.action[i]) { + default: + return "action: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { + if (!Array.isArray(message.actorEmail)) + return "actorEmail: array expected"; + for (var i = 0; i < message.actorEmail.length; ++i) + if (!$util.isString(message.actorEmail[i])) + return "actorEmail: string[] expected"; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); + if (error) + return "earliestChangeTime." + error; + } + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); + if (error) + return "latestChangeTime." + error; + } + 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 SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + */ + SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); - if (object.androidAppDataStreams) { - if (!Array.isArray(object.androidAppDataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: array expected"); - message.androidAppDataStreams = []; - for (var i = 0; i < object.androidAppDataStreams.length; ++i) { - if (typeof object.androidAppDataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.androidAppDataStreams: object expected"); - message.androidAppDataStreams[i] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStreams[i]); - } + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + if (object.account != null) + message.account = String(object.account); + if (object.property != null) + message.property = String(object.property); + if (object.resourceType) { + if (!Array.isArray(object.resourceType)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.resourceType: array expected"); + message.resourceType = []; + for (var i = 0; i < object.resourceType.length; ++i) + switch (object.resourceType[i]) { + default: + case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType[i] = 0; + break; + case "ACCOUNT": + case 1: + message.resourceType[i] = 1; + break; + case "PROPERTY": + case 2: + message.resourceType[i] = 2; + break; + case "FIREBASE_LINK": + case 6: + message.resourceType[i] = 6; + break; + case "GOOGLE_ADS_LINK": + case 7: + message.resourceType[i] = 7; + break; + case "GOOGLE_SIGNALS_SETTINGS": + case 8: + message.resourceType[i] = 8; + break; + case "CONVERSION_EVENT": + case 9: + message.resourceType[i] = 9; + break; + case "MEASUREMENT_PROTOCOL_SECRET": + case 10: + message.resourceType[i] = 10; + break; + case "CUSTOM_DIMENSION": + case 11: + message.resourceType[i] = 11; + break; + case "CUSTOM_METRIC": + case 12: + message.resourceType[i] = 12; + break; + case "DATA_RETENTION_SETTINGS": + case 13: + message.resourceType[i] = 13; + break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK": + case 14: + message.resourceType[i] = 14; + break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": + case 15: + message.resourceType[i] = 15; + break; + case "DATA_STREAM": + case 18: + message.resourceType[i] = 18; + break; + } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.action) { + if (!Array.isArray(object.action)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.action: array expected"); + message.action = []; + for (var i = 0; i < object.action.length; ++i) + switch (object.action[i]) { + default: + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action[i] = 0; + break; + case "CREATED": + case 1: + message.action[i] = 1; + break; + case "UPDATED": + case 2: + message.action[i] = 2; + break; + case "DELETED": + case 3: + message.action[i] = 3; + break; + } + } + if (object.actorEmail) { + if (!Array.isArray(object.actorEmail)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.actorEmail: array expected"); + message.actorEmail = []; + for (var i = 0; i < object.actorEmail.length; ++i) + message.actorEmail[i] = String(object.actorEmail[i]); + } + if (object.earliestChangeTime != null) { + if (typeof object.earliestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); + message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); + } + if (object.latestChangeTime != null) { + if (typeof object.latestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); + message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); + } + 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 ListAndroidAppDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} message ListAndroidAppDataStreamsResponse + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAndroidAppDataStreamsResponse.toObject = function toObject(message, options) { + SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.androidAppDataStreams = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.androidAppDataStreams && message.androidAppDataStreams.length) { - object.androidAppDataStreams = []; - for (var j = 0; j < message.androidAppDataStreams.length; ++j) - object.androidAppDataStreams[j] = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStreams[j], options); + if (options.arrays || options.defaults) { + object.resourceType = []; + object.action = []; + object.actorEmail = []; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (options.defaults) { + object.account = ""; + object.property = ""; + object.earliestChangeTime = null; + object.latestChangeTime = null; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.resourceType && message.resourceType.length) { + object.resourceType = []; + for (var j = 0; j < message.resourceType.length; ++j) + object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; + } + if (message.action && message.action.length) { + object.action = []; + for (var j = 0; j < message.action.length; ++j) + object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; + } + if (message.actorEmail && message.actorEmail.length) { + object.actorEmail = []; + for (var j = 0; j < message.actorEmail.length; ++j) + object.actorEmail[j] = message.actorEmail[j]; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) + object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) + object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); + 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 ListAndroidAppDataStreamsResponse to JSON. + * Converts this SearchChangeHistoryEventsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance * @returns {Object.} JSON object */ - ListAndroidAppDataStreamsResponse.prototype.toJSON = function toJSON() { + SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAndroidAppDataStreamsResponse; + return SearchChangeHistoryEventsRequest; })(); - v1alpha.CreateFirebaseLinkRequest = (function() { + v1alpha.SearchChangeHistoryEventsResponse = (function() { /** - * Properties of a CreateFirebaseLinkRequest. + * Properties of a SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @interface ICreateFirebaseLinkRequest - * @property {string|null} [parent] CreateFirebaseLinkRequest parent - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink + * @interface ISearchChangeHistoryEventsResponse + * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents + * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken */ /** - * Constructs a new CreateFirebaseLinkRequest. + * Constructs a new SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateFirebaseLinkRequest. - * @implements ICreateFirebaseLinkRequest + * @classdesc Represents a SearchChangeHistoryEventsResponse. + * @implements ISearchChangeHistoryEventsResponse * @constructor - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set */ - function CreateFirebaseLinkRequest(properties) { + function SearchChangeHistoryEventsResponse(properties) { + this.changeHistoryEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12310,88 +12171,91 @@ } /** - * CreateFirebaseLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * SearchChangeHistoryEventsResponse changeHistoryEvents. + * @member {Array.} changeHistoryEvents + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - CreateFirebaseLinkRequest.prototype.parent = ""; + SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; /** - * CreateFirebaseLinkRequest firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * SearchChangeHistoryEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - CreateFirebaseLinkRequest.prototype.firebaseLink = null; + SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance */ - CreateFirebaseLinkRequest.create = function create(properties) { - return new CreateFirebaseLinkRequest(properties); + SearchChangeHistoryEventsResponse.create = function create(properties) { + return new SearchChangeHistoryEventsResponse(properties); }; /** - * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encode = function encode(message, writer) { + SearchChangeHistoryEventsResponse.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.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) + for (var i = 0; i < message.changeHistoryEvents.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.encode(message.changeHistoryEvents[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 CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decode = function decode(reader, length) { + SearchChangeHistoryEventsResponse.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.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) + message.changeHistoryEvents = []; + message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); break; case 2: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -12402,121 +12266,133 @@ }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFirebaseLinkRequest message. + * Verifies a SearchChangeHistoryEventsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFirebaseLinkRequest.verify = function verify(message) { + SearchChangeHistoryEventsResponse.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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; + if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { + if (!Array.isArray(message.changeHistoryEvents)) + return "changeHistoryEvents: array expected"; + for (var i = 0; i < message.changeHistoryEvents.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); + if (error) + return "changeHistoryEvents." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse */ - CreateFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + if (object.changeHistoryEvents) { + if (!Array.isArray(object.changeHistoryEvents)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); + message.changeHistoryEvents = []; + for (var i = 0; i < object.changeHistoryEvents.length; ++i) { + if (typeof object.changeHistoryEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); + message.changeHistoryEvents[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFirebaseLinkRequest.toObject = function toObject(message, options) { + SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.firebaseLink = null; + if (options.arrays || options.defaults) + object.changeHistoryEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.changeHistoryEvents && message.changeHistoryEvents.length) { + object.changeHistoryEvents = []; + for (var j = 0; j < message.changeHistoryEvents.length; ++j) + object.changeHistoryEvents[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateFirebaseLinkRequest to JSON. + * Converts this SearchChangeHistoryEventsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance * @returns {Object.} JSON object */ - CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFirebaseLinkRequest; + return SearchChangeHistoryEventsResponse; })(); - v1alpha.DeleteFirebaseLinkRequest = (function() { + v1alpha.GetMeasurementProtocolSecretRequest = (function() { /** - * Properties of a DeleteFirebaseLinkRequest. + * Properties of a GetMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteFirebaseLinkRequest - * @property {string|null} [name] DeleteFirebaseLinkRequest name + * @interface IGetMeasurementProtocolSecretRequest + * @property {string|null} [name] GetMeasurementProtocolSecretRequest name */ /** - * Constructs a new DeleteFirebaseLinkRequest. + * Constructs a new GetMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteFirebaseLinkRequest. - * @implements IDeleteFirebaseLinkRequest + * @classdesc Represents a GetMeasurementProtocolSecretRequest. + * @implements IGetMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function DeleteFirebaseLinkRequest(properties) { + function GetMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12524,35 +12400,35 @@ } /** - * DeleteFirebaseLinkRequest name. + * GetMeasurementProtocolSecretRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @instance */ - DeleteFirebaseLinkRequest.prototype.name = ""; + GetMeasurementProtocolSecretRequest.prototype.name = ""; /** - * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest instance */ - DeleteFirebaseLinkRequest.create = function create(properties) { - return new DeleteFirebaseLinkRequest(properties); + GetMeasurementProtocolSecretRequest.create = function create(properties) { + return new GetMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encode = function encode(message, writer) { + GetMeasurementProtocolSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -12561,33 +12437,33 @@ }; /** - * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decode = function decode(reader, length) { + GetMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12603,30 +12479,30 @@ }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + GetMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFirebaseLinkRequest message. + * Verifies a GetMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFirebaseLinkRequest.verify = function verify(message) { + GetMeasurementProtocolSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -12636,32 +12512,32 @@ }; /** - * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest */ - DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + GetMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { + GetMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -12673,39 +12549,38 @@ }; /** - * Converts this DeleteFirebaseLinkRequest to JSON. + * Converts this GetMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { + GetMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteFirebaseLinkRequest; + return GetMeasurementProtocolSecretRequest; })(); - v1alpha.ListFirebaseLinksRequest = (function() { + v1alpha.CreateMeasurementProtocolSecretRequest = (function() { /** - * Properties of a ListFirebaseLinksRequest. + * Properties of a CreateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksRequest - * @property {string|null} [parent] ListFirebaseLinksRequest parent - * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize - * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken + * @interface ICreateMeasurementProtocolSecretRequest + * @property {string|null} [parent] CreateMeasurementProtocolSecretRequest parent + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] CreateMeasurementProtocolSecretRequest measurementProtocolSecret */ /** - * Constructs a new ListFirebaseLinksRequest. + * Constructs a new CreateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksRequest. - * @implements IListFirebaseLinksRequest + * @classdesc Represents a CreateMeasurementProtocolSecretRequest. + * @implements ICreateMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function ListFirebaseLinksRequest(properties) { + function CreateMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12713,90 +12588,80 @@ } /** - * ListFirebaseLinksRequest parent. + * CreateMeasurementProtocolSecretRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest - * @instance - */ - ListFirebaseLinksRequest.prototype.parent = ""; - - /** - * ListFirebaseLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance */ - ListFirebaseLinksRequest.prototype.pageSize = 0; + CreateMeasurementProtocolSecretRequest.prototype.parent = ""; /** - * ListFirebaseLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * CreateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance */ - ListFirebaseLinksRequest.prototype.pageToken = ""; + CreateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; /** - * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest instance */ - ListFirebaseLinksRequest.create = function create(properties) { - return new ListFirebaseLinksRequest(properties); + CreateMeasurementProtocolSecretRequest.create = function create(properties) { + return new CreateMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encode = function encode(message, writer) { + CreateMeasurementProtocolSecretRequest.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.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decode = function decode(reader, length) { + CreateMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12804,10 +12669,7 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12818,126 +12680,121 @@ }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { + CreateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksRequest message. + * Verifies a CreateMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksRequest.verify = function verify(message) { + CreateMeasurementProtocolSecretRequest.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.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; + } return null; }; /** - * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest */ - ListFirebaseLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + CreateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + var message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); 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.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } return message; }; /** - * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest + * @param {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksRequest.toObject = function toObject(message, options) { + CreateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.measurementProtocolSecret = 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.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); return object; }; /** - * Converts this ListFirebaseLinksRequest to JSON. + * Converts this CreateMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { + CreateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksRequest; + return CreateMeasurementProtocolSecretRequest; })(); - v1alpha.ListFirebaseLinksResponse = (function() { + v1alpha.DeleteMeasurementProtocolSecretRequest = (function() { /** - * Properties of a ListFirebaseLinksResponse. + * Properties of a DeleteMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksResponse - * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks - * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken + * @interface IDeleteMeasurementProtocolSecretRequest + * @property {string|null} [name] DeleteMeasurementProtocolSecretRequest name */ /** - * Constructs a new ListFirebaseLinksResponse. + * Constructs a new DeleteMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksResponse. - * @implements IListFirebaseLinksResponse + * @classdesc Represents a DeleteMeasurementProtocolSecretRequest. + * @implements IDeleteMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function ListFirebaseLinksResponse(properties) { - this.firebaseLinks = []; + function DeleteMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12945,91 +12802,75 @@ } /** - * ListFirebaseLinksResponse firebaseLinks. - * @member {Array.} firebaseLinks - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse - * @instance - */ - ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; - - /** - * ListFirebaseLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * DeleteMeasurementProtocolSecretRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @instance */ - ListFirebaseLinksResponse.prototype.nextPageToken = ""; + DeleteMeasurementProtocolSecretRequest.prototype.name = ""; /** - * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest instance */ - ListFirebaseLinksResponse.create = function create(properties) { - return new ListFirebaseLinksResponse(properties); + DeleteMeasurementProtocolSecretRequest.create = function create(properties) { + return new DeleteMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encode = function encode(message, writer) { + DeleteMeasurementProtocolSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.firebaseLinks != null && message.firebaseLinks.length) - for (var i = 0; i < message.firebaseLinks.length; ++i) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decode = function decode(reader, length) { + DeleteMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.firebaseLinks && message.firebaseLinks.length)) - message.firebaseLinks = []; - message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -13040,133 +12881,108 @@ }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksResponse message. + * Verifies a DeleteMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksResponse.verify = function verify(message) { + DeleteMeasurementProtocolSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { - if (!Array.isArray(message.firebaseLinks)) - return "firebaseLinks: array expected"; - for (var i = 0; i < message.firebaseLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); - if (error) - return "firebaseLinks." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest */ - ListFirebaseLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + DeleteMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); - if (object.firebaseLinks) { - if (!Array.isArray(object.firebaseLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); - message.firebaseLinks = []; - for (var i = 0; i < object.firebaseLinks.length; ++i) { - if (typeof object.firebaseLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); - message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse + * @param {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksResponse.toObject = function toObject(message, options) { + DeleteMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.firebaseLinks = []; if (options.defaults) - object.nextPageToken = ""; - if (message.firebaseLinks && message.firebaseLinks.length) { - object.firebaseLinks = []; - for (var j = 0; j < message.firebaseLinks.length; ++j) - object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListFirebaseLinksResponse to JSON. + * Converts this DeleteMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { + DeleteMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksResponse; + return DeleteMeasurementProtocolSecretRequest; })(); - v1alpha.GetGlobalSiteTagRequest = (function() { + v1alpha.UpdateMeasurementProtocolSecretRequest = (function() { /** - * Properties of a GetGlobalSiteTagRequest. + * Properties of an UpdateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetGlobalSiteTagRequest - * @property {string|null} [name] GetGlobalSiteTagRequest name + * @interface IUpdateMeasurementProtocolSecretRequest + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] UpdateMeasurementProtocolSecretRequest measurementProtocolSecret + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMeasurementProtocolSecretRequest updateMask */ /** - * Constructs a new GetGlobalSiteTagRequest. + * Constructs a new UpdateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetGlobalSiteTagRequest. - * @implements IGetGlobalSiteTagRequest + * @classdesc Represents an UpdateMeasurementProtocolSecretRequest. + * @implements IUpdateMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function GetGlobalSiteTagRequest(properties) { + function UpdateMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13174,75 +12990,88 @@ } /** - * GetGlobalSiteTagRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @instance */ - GetGlobalSiteTagRequest.prototype.name = ""; + UpdateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; /** - * Creates a new GetGlobalSiteTagRequest instance using the specified properties. + * UpdateMeasurementProtocolSecretRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @instance + */ + UpdateMeasurementProtocolSecretRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest instance */ - GetGlobalSiteTagRequest.create = function create(properties) { - return new GetGlobalSiteTagRequest(properties); + UpdateMeasurementProtocolSecretRequest.create = function create(properties) { + return new UpdateMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encode = function encode(message, writer) { + UpdateMeasurementProtocolSecretRequest.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.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, 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 GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decode = function decode(reader, length) { + UpdateMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13253,108 +13082,128 @@ }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGlobalSiteTagRequest message. + * Verifies an UpdateMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGlobalSiteTagRequest.verify = function verify(message) { + UpdateMeasurementProtocolSecretRequest.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.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + 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 a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest */ - GetGlobalSiteTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + UpdateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest + * @param {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGlobalSiteTagRequest.toObject = function toObject(message, options) { + UpdateMeasurementProtocolSecretRequest.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 (options.defaults) { + object.measurementProtocolSecret = null; + object.updateMask = null; + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetGlobalSiteTagRequest to JSON. + * Converts this UpdateMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { + UpdateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetGlobalSiteTagRequest; + return UpdateMeasurementProtocolSecretRequest; })(); - v1alpha.CreateGoogleAdsLinkRequest = (function() { + v1alpha.ListMeasurementProtocolSecretsRequest = (function() { /** - * Properties of a CreateGoogleAdsLinkRequest. + * Properties of a ListMeasurementProtocolSecretsRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateGoogleAdsLinkRequest - * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink + * @interface IListMeasurementProtocolSecretsRequest + * @property {string|null} [parent] ListMeasurementProtocolSecretsRequest parent + * @property {number|null} [pageSize] ListMeasurementProtocolSecretsRequest pageSize + * @property {string|null} [pageToken] ListMeasurementProtocolSecretsRequest pageToken */ /** - * Constructs a new CreateGoogleAdsLinkRequest. + * Constructs a new ListMeasurementProtocolSecretsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateGoogleAdsLinkRequest. - * @implements ICreateGoogleAdsLinkRequest + * @classdesc Represents a ListMeasurementProtocolSecretsRequest. + * @implements IListMeasurementProtocolSecretsRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set */ - function CreateGoogleAdsLinkRequest(properties) { + function ListMeasurementProtocolSecretsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13362,80 +13211,90 @@ } /** - * CreateGoogleAdsLinkRequest parent. + * ListMeasurementProtocolSecretsRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance */ - CreateGoogleAdsLinkRequest.prototype.parent = ""; + ListMeasurementProtocolSecretsRequest.prototype.parent = ""; /** - * CreateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * ListMeasurementProtocolSecretsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance */ - CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + ListMeasurementProtocolSecretsRequest.prototype.pageSize = 0; /** - * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * ListMeasurementProtocolSecretsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @instance + */ + ListMeasurementProtocolSecretsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest instance */ - CreateGoogleAdsLinkRequest.create = function create(properties) { - return new CreateGoogleAdsLinkRequest(properties); + ListMeasurementProtocolSecretsRequest.create = function create(properties) { + return new ListMeasurementProtocolSecretsRequest(properties); }; /** - * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encode = function encode(message, writer) { + ListMeasurementProtocolSecretsRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMeasurementProtocolSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decode = function decode(reader, length) { + ListMeasurementProtocolSecretsRequest.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.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13443,7 +13302,10 @@ message.parent = reader.string(); break; case 2: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -13454,122 +13316,126 @@ }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListMeasurementProtocolSecretsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateGoogleAdsLinkRequest message. + * Verifies a ListMeasurementProtocolSecretsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateGoogleAdsLinkRequest.verify = function verify(message) { + ListMeasurementProtocolSecretsRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } + 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 CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest */ - CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + ListMeasurementProtocolSecretsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } + 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 CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + ListMeasurementProtocolSecretsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.googleAdsLink = null; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + 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 CreateGoogleAdsLinkRequest to JSON. + * Converts this ListMeasurementProtocolSecretsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance * @returns {Object.} JSON object */ - CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + ListMeasurementProtocolSecretsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateGoogleAdsLinkRequest; + return ListMeasurementProtocolSecretsRequest; })(); - v1alpha.UpdateGoogleAdsLinkRequest = (function() { + v1alpha.ListMeasurementProtocolSecretsResponse = (function() { /** - * Properties of an UpdateGoogleAdsLinkRequest. + * Properties of a ListMeasurementProtocolSecretsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateGoogleAdsLinkRequest - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask + * @interface IListMeasurementProtocolSecretsResponse + * @property {Array.|null} [measurementProtocolSecrets] ListMeasurementProtocolSecretsResponse measurementProtocolSecrets + * @property {string|null} [nextPageToken] ListMeasurementProtocolSecretsResponse nextPageToken */ /** - * Constructs a new UpdateGoogleAdsLinkRequest. + * Constructs a new ListMeasurementProtocolSecretsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateGoogleAdsLinkRequest. - * @implements IUpdateGoogleAdsLinkRequest + * @classdesc Represents a ListMeasurementProtocolSecretsResponse. + * @implements IListMeasurementProtocolSecretsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set */ - function UpdateGoogleAdsLinkRequest(properties) { + function ListMeasurementProtocolSecretsResponse(properties) { + this.measurementProtocolSecrets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13577,88 +13443,91 @@ } /** - * UpdateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. + * @member {Array.} measurementProtocolSecrets + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance */ - UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + ListMeasurementProtocolSecretsResponse.prototype.measurementProtocolSecrets = $util.emptyArray; /** - * UpdateGoogleAdsLinkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * ListMeasurementProtocolSecretsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance */ - UpdateGoogleAdsLinkRequest.prototype.updateMask = null; + ListMeasurementProtocolSecretsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse instance */ - UpdateGoogleAdsLinkRequest.create = function create(properties) { - return new UpdateGoogleAdsLinkRequest(properties); + ListMeasurementProtocolSecretsResponse.create = function create(properties) { + return new ListMeasurementProtocolSecretsResponse(properties); }; /** - * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encode = function encode(message, writer) { + ListMeasurementProtocolSecretsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.measurementProtocolSecrets != null && message.measurementProtocolSecrets.length) + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecrets[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 UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMeasurementProtocolSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decode = function decode(reader, length) { + ListMeasurementProtocolSecretsResponse.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.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) + message.measurementProtocolSecrets = []; + message.measurementProtocolSecrets.push($root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -13669,126 +13538,133 @@ }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListMeasurementProtocolSecretsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateGoogleAdsLinkRequest message. + * Verifies a ListMeasurementProtocolSecretsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateGoogleAdsLinkRequest.verify = function verify(message) { + ListMeasurementProtocolSecretsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.measurementProtocolSecrets != null && message.hasOwnProperty("measurementProtocolSecrets")) { + if (!Array.isArray(message.measurementProtocolSecrets)) + return "measurementProtocolSecrets: array expected"; + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecrets[i]); + if (error) + return "measurementProtocolSecrets." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse */ - UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + ListMeasurementProtocolSecretsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + if (object.measurementProtocolSecrets) { + if (!Array.isArray(object.measurementProtocolSecrets)) + throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: array expected"); + message.measurementProtocolSecrets = []; + for (var i = 0; i < object.measurementProtocolSecrets.length; ++i) { + if (typeof object.measurementProtocolSecrets[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: object expected"); + message.measurementProtocolSecrets[i] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecrets[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + ListMeasurementProtocolSecretsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.googleAdsLink = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.measurementProtocolSecrets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.measurementProtocolSecrets && message.measurementProtocolSecrets.length) { + object.measurementProtocolSecrets = []; + for (var j = 0; j < message.measurementProtocolSecrets.length; ++j) + object.measurementProtocolSecrets[j] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecrets[j], options); } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateGoogleAdsLinkRequest to JSON. + * Converts this ListMeasurementProtocolSecretsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance * @returns {Object.} JSON object */ - UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + ListMeasurementProtocolSecretsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateGoogleAdsLinkRequest; + return ListMeasurementProtocolSecretsResponse; })(); - v1alpha.DeleteGoogleAdsLinkRequest = (function() { + v1alpha.GetGoogleSignalsSettingsRequest = (function() { /** - * Properties of a DeleteGoogleAdsLinkRequest. + * Properties of a GetGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteGoogleAdsLinkRequest - * @property {string|null} [name] DeleteGoogleAdsLinkRequest name + * @interface IGetGoogleSignalsSettingsRequest + * @property {string|null} [name] GetGoogleSignalsSettingsRequest name */ /** - * Constructs a new DeleteGoogleAdsLinkRequest. + * Constructs a new GetGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteGoogleAdsLinkRequest. - * @implements IDeleteGoogleAdsLinkRequest + * @classdesc Represents a GetGoogleSignalsSettingsRequest. + * @implements IGetGoogleSignalsSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set */ - function DeleteGoogleAdsLinkRequest(properties) { + function GetGoogleSignalsSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13796,35 +13672,35 @@ } /** - * DeleteGoogleAdsLinkRequest name. + * GetGoogleSignalsSettingsRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @instance */ - DeleteGoogleAdsLinkRequest.prototype.name = ""; + GetGoogleSignalsSettingsRequest.prototype.name = ""; /** - * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest instance */ - DeleteGoogleAdsLinkRequest.create = function create(properties) { - return new DeleteGoogleAdsLinkRequest(properties); + GetGoogleSignalsSettingsRequest.create = function create(properties) { + return new GetGoogleSignalsSettingsRequest(properties); }; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encode = function encode(message, writer) { + GetGoogleSignalsSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -13833,33 +13709,33 @@ }; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decode = function decode(reader, length) { + GetGoogleSignalsSettingsRequest.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.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13875,30 +13751,30 @@ }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + GetGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteGoogleAdsLinkRequest message. + * Verifies a GetGoogleSignalsSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteGoogleAdsLinkRequest.verify = function verify(message) { + GetGoogleSignalsSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -13908,32 +13784,32 @@ }; /** - * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest */ - DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + GetGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { + GetGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -13945,39 +13821,38 @@ }; /** - * Converts this DeleteGoogleAdsLinkRequest to JSON. + * Converts this GetGoogleSignalsSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @instance * @returns {Object.} JSON object */ - DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + GetGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteGoogleAdsLinkRequest; + return GetGoogleSignalsSettingsRequest; })(); - v1alpha.ListGoogleAdsLinksRequest = (function() { + v1alpha.UpdateGoogleSignalsSettingsRequest = (function() { /** - * Properties of a ListGoogleAdsLinksRequest. + * Properties of an UpdateGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksRequest - * @property {string|null} [parent] ListGoogleAdsLinksRequest parent - * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize - * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken + * @interface IUpdateGoogleSignalsSettingsRequest + * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] UpdateGoogleSignalsSettingsRequest googleSignalsSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleSignalsSettingsRequest updateMask */ /** - * Constructs a new ListGoogleAdsLinksRequest. + * Constructs a new UpdateGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksRequest. - * @implements IListGoogleAdsLinksRequest + * @classdesc Represents an UpdateGoogleSignalsSettingsRequest. + * @implements IUpdateGoogleSignalsSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set */ - function ListGoogleAdsLinksRequest(properties) { + function UpdateGoogleSignalsSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13985,101 +13860,88 @@ } /** - * ListGoogleAdsLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest - * @instance - */ - ListGoogleAdsLinksRequest.prototype.parent = ""; - - /** - * ListGoogleAdsLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * UpdateGoogleSignalsSettingsRequest googleSignalsSettings. + * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance */ - ListGoogleAdsLinksRequest.prototype.pageSize = 0; + UpdateGoogleSignalsSettingsRequest.prototype.googleSignalsSettings = null; /** - * ListGoogleAdsLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * UpdateGoogleSignalsSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance */ - ListGoogleAdsLinksRequest.prototype.pageToken = ""; + UpdateGoogleSignalsSettingsRequest.prototype.updateMask = null; /** - * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest instance */ - ListGoogleAdsLinksRequest.create = function create(properties) { - return new ListGoogleAdsLinksRequest(properties); + UpdateGoogleSignalsSettingsRequest.create = function create(properties) { + return new UpdateGoogleSignalsSettingsRequest(properties); }; /** - * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encode = function encode(message, writer) { + UpdateGoogleSignalsSettingsRequest.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.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) + $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, 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 ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decode = function decode(reader, length) { + UpdateGoogleSignalsSettingsRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -14090,126 +13952,127 @@ }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksRequest message. + * Verifies an UpdateGoogleSignalsSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksRequest.verify = function verify(message) { + UpdateGoogleSignalsSettingsRequest.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.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); + if (error) + return "googleSignalsSettings." + 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 a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest */ - ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + UpdateGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + if (object.googleSignalsSettings != null) { + if (typeof object.googleSignalsSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.googleSignalsSettings: object expected"); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest + * @param {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksRequest.toObject = function toObject(message, options) { + UpdateGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.googleSignalsSettings = null; + object.updateMask = 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.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) + object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListGoogleAdsLinksRequest to JSON. + * Converts this UpdateGoogleSignalsSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { + UpdateGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksRequest; + return UpdateGoogleSignalsSettingsRequest; })(); - v1alpha.ListGoogleAdsLinksResponse = (function() { + v1alpha.CreateConversionEventRequest = (function() { /** - * Properties of a ListGoogleAdsLinksResponse. + * Properties of a CreateConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksResponse - * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks - * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken + * @interface ICreateConversionEventRequest + * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] CreateConversionEventRequest conversionEvent + * @property {string|null} [parent] CreateConversionEventRequest parent */ /** - * Constructs a new ListGoogleAdsLinksResponse. + * Constructs a new CreateConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksResponse. - * @implements IListGoogleAdsLinksResponse + * @classdesc Represents a CreateConversionEventRequest. + * @implements ICreateConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set */ - function ListGoogleAdsLinksResponse(properties) { - this.googleAdsLinks = []; + function CreateConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14217,91 +14080,88 @@ } /** - * ListGoogleAdsLinksResponse googleAdsLinks. - * @member {Array.} googleAdsLinks - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * CreateConversionEventRequest conversionEvent. + * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance */ - ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; + CreateConversionEventRequest.prototype.conversionEvent = null; /** - * ListGoogleAdsLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * CreateConversionEventRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance */ - ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; + CreateConversionEventRequest.prototype.parent = ""; /** - * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * Creates a new CreateConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest instance */ - ListGoogleAdsLinksResponse.create = function create(properties) { - return new ListGoogleAdsLinksResponse(properties); + CreateConversionEventRequest.create = function create(properties) { + return new CreateConversionEventRequest(properties); }; /** - * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encode = function encode(message, writer) { + CreateConversionEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLinks != null && message.googleAdsLinks.length) - for (var i = 0; i < message.googleAdsLinks.length; ++i) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); return writer; }; /** - * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decode = function decode(reader, length) { + CreateConversionEventRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.googleAdsLinks && message.googleAdsLinks.length)) - message.googleAdsLinks = []; - message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -14312,133 +14172,121 @@ }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { + CreateConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksResponse message. + * Verifies a CreateConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksResponse.verify = function verify(message) { + CreateConversionEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { - if (!Array.isArray(message.googleAdsLinks)) - return "googleAdsLinks: array expected"; - for (var i = 0; i < message.googleAdsLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); - if (error) - return "googleAdsLinks." + error; - } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest */ - ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + CreateConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); - if (object.googleAdsLinks) { - if (!Array.isArray(object.googleAdsLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); - message.googleAdsLinks = []; - for (var i = 0; i < object.googleAdsLinks.length; ++i) { - if (typeof object.googleAdsLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); - message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateConversionEventRequest.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse + * @param {google.analytics.admin.v1alpha.CreateConversionEventRequest} message CreateConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { + CreateConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.googleAdsLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.googleAdsLinks && message.googleAdsLinks.length) { - object.googleAdsLinks = []; - for (var j = 0; j < message.googleAdsLinks.length; ++j) - object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + if (options.defaults) { + object.conversionEvent = null; + object.parent = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) + object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this ListGoogleAdsLinksResponse to JSON. + * Converts this CreateConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { + CreateConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksResponse; + return CreateConversionEventRequest; })(); - v1alpha.GetDataSharingSettingsRequest = (function() { + v1alpha.GetConversionEventRequest = (function() { /** - * Properties of a GetDataSharingSettingsRequest. + * Properties of a GetConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataSharingSettingsRequest - * @property {string|null} [name] GetDataSharingSettingsRequest name + * @interface IGetConversionEventRequest + * @property {string|null} [name] GetConversionEventRequest name */ /** - * Constructs a new GetDataSharingSettingsRequest. + * Constructs a new GetConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataSharingSettingsRequest. - * @implements IGetDataSharingSettingsRequest + * @classdesc Represents a GetConversionEventRequest. + * @implements IGetConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set */ - function GetDataSharingSettingsRequest(properties) { + function GetConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14446,35 +14294,35 @@ } /** - * GetDataSharingSettingsRequest name. + * GetConversionEventRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @instance */ - GetDataSharingSettingsRequest.prototype.name = ""; + GetConversionEventRequest.prototype.name = ""; /** - * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * Creates a new GetConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest instance */ - GetDataSharingSettingsRequest.create = function create(properties) { - return new GetDataSharingSettingsRequest(properties); + GetConversionEventRequest.create = function create(properties) { + return new GetConversionEventRequest(properties); }; /** - * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encode = function encode(message, writer) { + GetConversionEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -14483,33 +14331,33 @@ }; /** - * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * Decodes a GetConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decode = function decode(reader, length) { + GetConversionEventRequest.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.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14525,30 +14373,30 @@ }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + GetConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataSharingSettingsRequest message. + * Verifies a GetConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataSharingSettingsRequest.verify = function verify(message) { + GetConversionEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -14558,32 +14406,32 @@ }; /** - * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest */ - GetDataSharingSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + GetConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest + * @param {google.analytics.admin.v1alpha.GetConversionEventRequest} message GetConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataSharingSettingsRequest.toObject = function toObject(message, options) { + GetConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -14595,38 +14443,37 @@ }; /** - * Converts this GetDataSharingSettingsRequest to JSON. + * Converts this GetConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @instance * @returns {Object.} JSON object */ - GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { + GetConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDataSharingSettingsRequest; + return GetConversionEventRequest; })(); - v1alpha.ListAccountSummariesRequest = (function() { + v1alpha.DeleteConversionEventRequest = (function() { /** - * Properties of a ListAccountSummariesRequest. + * Properties of a DeleteConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesRequest - * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize - * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken + * @interface IDeleteConversionEventRequest + * @property {string|null} [name] DeleteConversionEventRequest name */ /** - * Constructs a new ListAccountSummariesRequest. + * Constructs a new DeleteConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesRequest. - * @implements IListAccountSummariesRequest + * @classdesc Represents a DeleteConversionEventRequest. + * @implements IDeleteConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set */ - function ListAccountSummariesRequest(properties) { + function DeleteConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14634,88 +14481,75 @@ } /** - * ListAccountSummariesRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest - * @instance - */ - ListAccountSummariesRequest.prototype.pageSize = 0; - - /** - * ListAccountSummariesRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * DeleteConversionEventRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @instance */ - ListAccountSummariesRequest.prototype.pageToken = ""; + DeleteConversionEventRequest.prototype.name = ""; /** - * Creates a new ListAccountSummariesRequest instance using the specified properties. + * Creates a new DeleteConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest instance */ - ListAccountSummariesRequest.create = function create(properties) { - return new ListAccountSummariesRequest(properties); + DeleteConversionEventRequest.create = function create(properties) { + return new DeleteConversionEventRequest(properties); }; /** - * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encode = function encode(message, writer) { + DeleteConversionEventRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decode = function decode(reader, length) { + DeleteConversionEventRequest.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.analytics.admin.v1alpha.ListAccountSummariesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pageSize = reader.int32(); - break; - case 2: - message.pageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -14726,118 +14560,109 @@ }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesRequest message. + * Verifies a DeleteConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesRequest.verify = function verify(message) { + DeleteConversionEventRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest */ - ListAccountSummariesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) + DeleteConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest + * @param {google.analytics.admin.v1alpha.DeleteConversionEventRequest} message DeleteConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesRequest.toObject = function toObject(message, options) { + DeleteConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pageSize = 0; - object.pageToken = ""; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListAccountSummariesRequest to JSON. + * Converts this DeleteConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @instance * @returns {Object.} JSON object */ - ListAccountSummariesRequest.prototype.toJSON = function toJSON() { + DeleteConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesRequest; + return DeleteConversionEventRequest; })(); - v1alpha.ListAccountSummariesResponse = (function() { + v1alpha.ListConversionEventsRequest = (function() { /** - * Properties of a ListAccountSummariesResponse. + * Properties of a ListConversionEventsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesResponse - * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries - * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken + * @interface IListConversionEventsRequest + * @property {string|null} [parent] ListConversionEventsRequest parent + * @property {number|null} [pageSize] ListConversionEventsRequest pageSize + * @property {string|null} [pageToken] ListConversionEventsRequest pageToken */ /** - * Constructs a new ListAccountSummariesResponse. + * Constructs a new ListConversionEventsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesResponse. - * @implements IListAccountSummariesResponse + * @classdesc Represents a ListConversionEventsRequest. + * @implements IListConversionEventsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set */ - function ListAccountSummariesResponse(properties) { - this.accountSummaries = []; + function ListConversionEventsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14845,91 +14670,101 @@ } /** - * ListAccountSummariesResponse accountSummaries. - * @member {Array.} accountSummaries - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * ListConversionEventsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance */ - ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; + ListConversionEventsRequest.prototype.parent = ""; /** - * ListAccountSummariesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * ListConversionEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance */ - ListAccountSummariesResponse.prototype.nextPageToken = ""; + ListConversionEventsRequest.prototype.pageSize = 0; /** - * Creates a new ListAccountSummariesResponse instance using the specified properties. + * ListConversionEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @instance + */ + ListConversionEventsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListConversionEventsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest instance */ - ListAccountSummariesResponse.create = function create(properties) { - return new ListAccountSummariesResponse(properties); + ListConversionEventsRequest.create = function create(properties) { + return new ListConversionEventsRequest(properties); }; /** - * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encode = function encode(message, writer) { + ListConversionEventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.accountSummaries != null && message.accountSummaries.length) - for (var i = 0; i < message.accountSummaries.length; ++i) - $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.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 ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListConversionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decode = function decode(reader, length) { + ListConversionEventsRequest.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.analytics.admin.v1alpha.ListAccountSummariesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.accountSummaries && message.accountSummaries.length)) - message.accountSummaries = []; - message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -14940,134 +14775,126 @@ }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { + ListConversionEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesResponse message. + * Verifies a ListConversionEventsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesResponse.verify = function verify(message) { + ListConversionEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { - if (!Array.isArray(message.accountSummaries)) - return "accountSummaries: array expected"; - for (var i = 0; i < message.accountSummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); - if (error) - return "accountSummaries." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string 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 ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest */ - ListAccountSummariesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) + ListConversionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); - if (object.accountSummaries) { - if (!Array.isArray(object.accountSummaries)) - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); - message.accountSummaries = []; - for (var i = 0; i < object.accountSummaries.length; ++i) { - if (typeof object.accountSummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); - message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); + 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 ListAccountSummariesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse + * @param {google.analytics.admin.v1alpha.ListConversionEventsRequest} message ListConversionEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesResponse.toObject = function toObject(message, options) { + ListConversionEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.accountSummaries = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.accountSummaries && message.accountSummaries.length) { - object.accountSummaries = []; - for (var j = 0; j < message.accountSummaries.length; ++j) - object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListAccountSummariesResponse to JSON. + * Converts this ListConversionEventsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance * @returns {Object.} JSON object */ - ListAccountSummariesResponse.prototype.toJSON = function toJSON() { + ListConversionEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesResponse; + return ListConversionEventsRequest; })(); - v1alpha.AcknowledgeUserDataCollectionRequest = (function() { + v1alpha.ListConversionEventsResponse = (function() { /** - * Properties of an AcknowledgeUserDataCollectionRequest. + * Properties of a ListConversionEventsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAcknowledgeUserDataCollectionRequest - * @property {string|null} [property] AcknowledgeUserDataCollectionRequest property - * @property {string|null} [acknowledgement] AcknowledgeUserDataCollectionRequest acknowledgement + * @interface IListConversionEventsResponse + * @property {Array.|null} [conversionEvents] ListConversionEventsResponse conversionEvents + * @property {string|null} [nextPageToken] ListConversionEventsResponse nextPageToken */ /** - * Constructs a new AcknowledgeUserDataCollectionRequest. + * Constructs a new ListConversionEventsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AcknowledgeUserDataCollectionRequest. - * @implements IAcknowledgeUserDataCollectionRequest + * @classdesc Represents a ListConversionEventsResponse. + * @implements IListConversionEventsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set */ - function AcknowledgeUserDataCollectionRequest(properties) { + function ListConversionEventsResponse(properties) { + this.conversionEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15075,88 +14902,91 @@ } /** - * AcknowledgeUserDataCollectionRequest property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * ListConversionEventsResponse conversionEvents. + * @member {Array.} conversionEvents + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance */ - AcknowledgeUserDataCollectionRequest.prototype.property = ""; + ListConversionEventsResponse.prototype.conversionEvents = $util.emptyArray; /** - * AcknowledgeUserDataCollectionRequest acknowledgement. - * @member {string} acknowledgement - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * ListConversionEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance */ - AcknowledgeUserDataCollectionRequest.prototype.acknowledgement = ""; + ListConversionEventsResponse.prototype.nextPageToken = ""; /** - * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. + * Creates a new ListConversionEventsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse instance */ - AcknowledgeUserDataCollectionRequest.create = function create(properties) { - return new AcknowledgeUserDataCollectionRequest(properties); + ListConversionEventsResponse.create = function create(properties) { + return new ListConversionEventsResponse(properties); }; /** - * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionRequest.encode = function encode(message, writer) { + ListConversionEventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.acknowledgement); + if (message.conversionEvents != null && message.conversionEvents.length) + for (var i = 0; i < message.conversionEvents.length; ++i) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvents[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 AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListConversionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionRequest.decode = function decode(reader, length) { + ListConversionEventsResponse.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.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.property = reader.string(); + if (!(message.conversionEvents && message.conversionEvents.length)) + message.conversionEvents = []; + message.conversionEvents.push($root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32())); break; case 2: - message.acknowledgement = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15167,115 +14997,133 @@ }; /** - * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionRequest.decodeDelimited = function decodeDelimited(reader) { + ListConversionEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcknowledgeUserDataCollectionRequest message. + * Verifies a ListConversionEventsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcknowledgeUserDataCollectionRequest.verify = function verify(message) { + ListConversionEventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!$util.isString(message.acknowledgement)) - return "acknowledgement: string expected"; + if (message.conversionEvents != null && message.hasOwnProperty("conversionEvents")) { + if (!Array.isArray(message.conversionEvents)) + return "conversionEvents: array expected"; + for (var i = 0; i < message.conversionEvents.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvents[i]); + if (error) + return "conversionEvents." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse */ - AcknowledgeUserDataCollectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + ListConversionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); - if (object.property != null) - message.property = String(object.property); - if (object.acknowledgement != null) - message.acknowledgement = String(object.acknowledgement); + var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); + if (object.conversionEvents) { + if (!Array.isArray(object.conversionEvents)) + throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: array expected"); + message.conversionEvents = []; + for (var i = 0; i < object.conversionEvents.length; ++i) { + if (typeof object.conversionEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: object expected"); + message.conversionEvents[i] = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvents[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest + * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} message ListConversionEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcknowledgeUserDataCollectionRequest.toObject = function toObject(message, options) { + ListConversionEventsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.property = ""; - object.acknowledgement = ""; + if (options.arrays || options.defaults) + object.conversionEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.conversionEvents && message.conversionEvents.length) { + object.conversionEvents = []; + for (var j = 0; j < message.conversionEvents.length; ++j) + object.conversionEvents[j] = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvents[j], options); } - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = message.acknowledgement; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this AcknowledgeUserDataCollectionRequest to JSON. + * Converts this ListConversionEventsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance * @returns {Object.} JSON object */ - AcknowledgeUserDataCollectionRequest.prototype.toJSON = function toJSON() { + ListConversionEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AcknowledgeUserDataCollectionRequest; + return ListConversionEventsResponse; })(); - v1alpha.AcknowledgeUserDataCollectionResponse = (function() { + v1alpha.GetDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of an AcknowledgeUserDataCollectionResponse. + * Properties of a GetDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAcknowledgeUserDataCollectionResponse + * @interface IGetDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkRequest name */ /** - * Constructs a new AcknowledgeUserDataCollectionResponse. + * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AcknowledgeUserDataCollectionResponse. - * @implements IAcknowledgeUserDataCollectionResponse + * @classdesc Represents a GetDisplayVideo360AdvertiserLinkRequest. + * @implements IGetDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function AcknowledgeUserDataCollectionResponse(properties) { + function GetDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15283,63 +15131,76 @@ } /** - * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. + * GetDisplayVideo360AdvertiserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @instance + */ + GetDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; + + /** + * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest instance */ - AcknowledgeUserDataCollectionResponse.create = function create(properties) { - return new AcknowledgeUserDataCollectionResponse(properties); + GetDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new GetDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionResponse.encode = function encode(message, writer) { + GetDisplayVideo360AdvertiserLinkRequest.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 AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionResponse.decode = function decode(reader, length) { + GetDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -15349,105 +15210,109 @@ }; /** - * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionResponse.decodeDelimited = function decodeDelimited(reader) { + GetDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcknowledgeUserDataCollectionResponse message. + * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcknowledgeUserDataCollectionResponse.verify = function verify(message) { + GetDisplayVideo360AdvertiserLinkRequest.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 an AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest */ - AcknowledgeUserDataCollectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + GetDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) return object; - return new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); + var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse + * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcknowledgeUserDataCollectionResponse.toObject = function toObject() { - return {}; + GetDisplayVideo360AdvertiserLinkRequest.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 AcknowledgeUserDataCollectionResponse to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - AcknowledgeUserDataCollectionResponse.prototype.toJSON = function toJSON() { + GetDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AcknowledgeUserDataCollectionResponse; + return GetDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.SearchChangeHistoryEventsRequest = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinksRequest = (function() { /** - * Properties of a SearchChangeHistoryEventsRequest. + * Properties of a ListDisplayVideo360AdvertiserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface ISearchChangeHistoryEventsRequest - * @property {string|null} [account] SearchChangeHistoryEventsRequest account - * @property {string|null} [property] SearchChangeHistoryEventsRequest property - * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType - * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action - * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail - * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime - * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime - * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize - * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken + * @interface IListDisplayVideo360AdvertiserLinksRequest + * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinksRequest parent + * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinksRequest pageSize + * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinksRequest pageToken */ /** - * Constructs a new SearchChangeHistoryEventsRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a SearchChangeHistoryEventsRequest. - * @implements ISearchChangeHistoryEventsRequest + * @classdesc Represents a ListDisplayVideo360AdvertiserLinksRequest. + * @implements IListDisplayVideo360AdvertiserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set */ - function SearchChangeHistoryEventsRequest(properties) { - this.resourceType = []; - this.action = []; - this.actorEmail = []; + function ListDisplayVideo360AdvertiserLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15455,204 +15320,101 @@ } /** - * SearchChangeHistoryEventsRequest account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.account = ""; - - /** - * SearchChangeHistoryEventsRequest property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.property = ""; - - /** - * SearchChangeHistoryEventsRequest resourceType. - * @member {Array.} resourceType - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest action. - * @member {Array.} action - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest actorEmail. - * @member {Array.} actorEmail - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest earliestChangeTime. - * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; - - /** - * SearchChangeHistoryEventsRequest latestChangeTime. - * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * ListDisplayVideo360AdvertiserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance */ - SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; + ListDisplayVideo360AdvertiserLinksRequest.prototype.parent = ""; /** - * SearchChangeHistoryEventsRequest pageSize. + * ListDisplayVideo360AdvertiserLinksRequest pageSize. * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance */ - SearchChangeHistoryEventsRequest.prototype.pageSize = 0; + ListDisplayVideo360AdvertiserLinksRequest.prototype.pageSize = 0; /** - * SearchChangeHistoryEventsRequest pageToken. + * ListDisplayVideo360AdvertiserLinksRequest pageToken. * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance */ - SearchChangeHistoryEventsRequest.prototype.pageToken = ""; + ListDisplayVideo360AdvertiserLinksRequest.prototype.pageToken = ""; /** - * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest instance */ - SearchChangeHistoryEventsRequest.create = function create(properties) { - return new SearchChangeHistoryEventsRequest(properties); + ListDisplayVideo360AdvertiserLinksRequest.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinksRequest(properties); }; /** - * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsRequest.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); - if (message.resourceType != null && message.resourceType.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (var i = 0; i < message.resourceType.length; ++i) - writer.int32(message.resourceType[i]); - writer.ldelim(); - } - if (message.action != null && message.action.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (var i = 0; i < message.action.length; ++i) - writer.int32(message.action[i]); - writer.ldelim(); - } - if (message.actorEmail != null && message.actorEmail.length) - for (var i = 0; i < message.actorEmail.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); - if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) - $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) - $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + 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 8, wireType 0 =*/64).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsRequest.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinksRequest.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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.account = reader.string(); + message.parent = reader.string(); break; case 2: - message.property = reader.string(); + message.pageSize = reader.int32(); break; case 3: - if (!(message.resourceType && message.resourceType.length)) - message.resourceType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.resourceType.push(reader.int32()); - } else - message.resourceType.push(reader.int32()); - break; - case 4: - if (!(message.action && message.action.length)) - message.action = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.action.push(reader.int32()); - } else - message.action.push(reader.int32()); - break; - case 5: - if (!(message.actorEmail && message.actorEmail.length)) - message.actorEmail = []; - message.actorEmail.push(reader.string()); - break; - case 6: - message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.pageSize = reader.int32(); - break; - case 9: - message.pageToken = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15663,95 +15425,35 @@ }; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchChangeHistoryEventsRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchChangeHistoryEventsRequest.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.account != null && message.hasOwnProperty("account")) - if (!$util.isString(message.account)) - return "account: string expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) { - if (!Array.isArray(message.resourceType)) - return "resourceType: array expected"; - for (var i = 0; i < message.resourceType.length; ++i) - switch (message.resourceType[i]) { - default: - return "resourceType: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - break; - } - } - if (message.action != null && message.hasOwnProperty("action")) { - if (!Array.isArray(message.action)) - return "action: array expected"; - for (var i = 0; i < message.action.length; ++i) - switch (message.action[i]) { - default: - return "action: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { - if (!Array.isArray(message.actorEmail)) - return "actorEmail: array expected"; - for (var i = 0; i < message.actorEmail.length; ++i) - if (!$util.isString(message.actorEmail[i])) - return "actorEmail: string[] expected"; - } - if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); - if (error) - return "earliestChangeTime." + error; - } - if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); - if (error) - return "latestChangeTime." + error; - } + 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"; @@ -15762,136 +15464,19 @@ }; /** - * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest */ - SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + ListDisplayVideo360AdvertiserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); - if (object.account != null) - message.account = String(object.account); - if (object.property != null) - message.property = String(object.property); - if (object.resourceType) { - if (!Array.isArray(object.resourceType)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.resourceType: array expected"); - message.resourceType = []; - for (var i = 0; i < object.resourceType.length; ++i) - switch (object.resourceType[i]) { - default: - case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": - case 0: - message.resourceType[i] = 0; - break; - case "ACCOUNT": - case 1: - message.resourceType[i] = 1; - break; - case "PROPERTY": - case 2: - message.resourceType[i] = 2; - break; - case "WEB_DATA_STREAM": - case 3: - message.resourceType[i] = 3; - break; - case "ANDROID_APP_DATA_STREAM": - case 4: - message.resourceType[i] = 4; - break; - case "IOS_APP_DATA_STREAM": - case 5: - message.resourceType[i] = 5; - break; - case "FIREBASE_LINK": - case 6: - message.resourceType[i] = 6; - break; - case "GOOGLE_ADS_LINK": - case 7: - message.resourceType[i] = 7; - break; - case "GOOGLE_SIGNALS_SETTINGS": - case 8: - message.resourceType[i] = 8; - break; - case "CONVERSION_EVENT": - case 9: - message.resourceType[i] = 9; - break; - case "MEASUREMENT_PROTOCOL_SECRET": - case 10: - message.resourceType[i] = 10; - break; - case "CUSTOM_DIMENSION": - case 11: - message.resourceType[i] = 11; - break; - case "CUSTOM_METRIC": - case 12: - message.resourceType[i] = 12; - break; - case "DATA_RETENTION_SETTINGS": - case 13: - message.resourceType[i] = 13; - break; - case "DISPLAY_VIDEO_360_ADVERTISER_LINK": - case 14: - message.resourceType[i] = 14; - break; - case "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": - case 15: - message.resourceType[i] = 15; - break; - } - } - if (object.action) { - if (!Array.isArray(object.action)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.action: array expected"); - message.action = []; - for (var i = 0; i < object.action.length; ++i) - switch (object.action[i]) { - default: - case "ACTION_TYPE_UNSPECIFIED": - case 0: - message.action[i] = 0; - break; - case "CREATED": - case 1: - message.action[i] = 1; - break; - case "UPDATED": - case 2: - message.action[i] = 2; - break; - case "DELETED": - case 3: - message.action[i] = 3; - break; - } - } - if (object.actorEmail) { - if (!Array.isArray(object.actorEmail)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.actorEmail: array expected"); - message.actorEmail = []; - for (var i = 0; i < object.actorEmail.length; ++i) - message.actorEmail[i] = String(object.actorEmail[i]); - } - if (object.earliestChangeTime != null) { - if (typeof object.earliestChangeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); - message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); - } - if (object.latestChangeTime != null) { - if (typeof object.latestChangeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); - message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); - } + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -15900,54 +15485,25 @@ }; /** - * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.resourceType = []; - object.action = []; - object.actorEmail = []; - } if (options.defaults) { - object.account = ""; - object.property = ""; - object.earliestChangeTime = null; - object.latestChangeTime = null; + object.parent = ""; object.pageSize = 0; object.pageToken = ""; } - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.resourceType && message.resourceType.length) { - object.resourceType = []; - for (var j = 0; j < message.resourceType.length; ++j) - object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; - } - if (message.action && message.action.length) { - object.action = []; - for (var j = 0; j < message.action.length; ++j) - object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; - } - if (message.actorEmail && message.actorEmail.length) { - object.actorEmail = []; - for (var j = 0; j < message.actorEmail.length; ++j) - object.actorEmail[j] = message.actorEmail[j]; - } - if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) - object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); - if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) - object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); + 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")) @@ -15956,39 +15512,39 @@ }; /** - * Converts this SearchChangeHistoryEventsRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance * @returns {Object.} JSON object */ - SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchChangeHistoryEventsRequest; + return ListDisplayVideo360AdvertiserLinksRequest; })(); - v1alpha.SearchChangeHistoryEventsResponse = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinksResponse = (function() { /** - * Properties of a SearchChangeHistoryEventsResponse. + * Properties of a ListDisplayVideo360AdvertiserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface ISearchChangeHistoryEventsResponse - * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents - * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken + * @interface IListDisplayVideo360AdvertiserLinksResponse + * @property {Array.|null} [displayVideo_360AdvertiserLinks] ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks + * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinksResponse nextPageToken */ /** - * Constructs a new SearchChangeHistoryEventsResponse. + * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a SearchChangeHistoryEventsResponse. - * @implements ISearchChangeHistoryEventsResponse + * @classdesc Represents a ListDisplayVideo360AdvertiserLinksResponse. + * @implements IListDisplayVideo360AdvertiserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set */ - function SearchChangeHistoryEventsResponse(properties) { - this.changeHistoryEvents = []; + function ListDisplayVideo360AdvertiserLinksResponse(properties) { + this.displayVideo_360AdvertiserLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15996,88 +15552,88 @@ } /** - * SearchChangeHistoryEventsResponse changeHistoryEvents. - * @member {Array.} changeHistoryEvents - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. + * @member {Array.} displayVideo_360AdvertiserLinks + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance */ - SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; + ListDisplayVideo360AdvertiserLinksResponse.prototype.displayVideo_360AdvertiserLinks = $util.emptyArray; /** - * SearchChangeHistoryEventsResponse nextPageToken. + * ListDisplayVideo360AdvertiserLinksResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance */ - SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; + ListDisplayVideo360AdvertiserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse instance */ - SearchChangeHistoryEventsResponse.create = function create(properties) { - return new SearchChangeHistoryEventsResponse(properties); + ListDisplayVideo360AdvertiserLinksResponse.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinksResponse(properties); }; /** - * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsResponse.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) - for (var i = 0; i < message.changeHistoryEvents.length; ++i) - $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.encode(message.changeHistoryEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.displayVideo_360AdvertiserLinks != null && message.displayVideo_360AdvertiserLinks.length) + for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLinks[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 SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsResponse.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinksResponse.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.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) - message.changeHistoryEvents = []; - message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); + if (!(message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length)) + message.displayVideo_360AdvertiserLinks = []; + message.displayVideo_360AdvertiserLinks.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -16091,39 +15647,39 @@ }; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchChangeHistoryEventsResponse message. + * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchChangeHistoryEventsResponse.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { - if (!Array.isArray(message.changeHistoryEvents)) - return "changeHistoryEvents: array expected"; - for (var i = 0; i < message.changeHistoryEvents.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); + if (message.displayVideo_360AdvertiserLinks != null && message.hasOwnProperty("displayVideo_360AdvertiserLinks")) { + if (!Array.isArray(message.displayVideo_360AdvertiserLinks)) + return "displayVideo_360AdvertiserLinks: array expected"; + for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLinks[i]); if (error) - return "changeHistoryEvents." + error; + return "displayVideo_360AdvertiserLinks." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -16133,25 +15689,25 @@ }; /** - * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse */ - SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + ListDisplayVideo360AdvertiserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); - if (object.changeHistoryEvents) { - if (!Array.isArray(object.changeHistoryEvents)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); - message.changeHistoryEvents = []; - for (var i = 0; i < object.changeHistoryEvents.length; ++i) { - if (typeof object.changeHistoryEvents[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); - message.changeHistoryEvents[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); + if (object.displayVideo_360AdvertiserLinks) { + if (!Array.isArray(object.displayVideo_360AdvertiserLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: array expected"); + message.displayVideo_360AdvertiserLinks = []; + for (var i = 0; i < object.displayVideo_360AdvertiserLinks.length; ++i) { + if (typeof object.displayVideo_360AdvertiserLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: object expected"); + message.displayVideo_360AdvertiserLinks[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLinks[i]); } } if (object.nextPageToken != null) @@ -16160,26 +15716,26 @@ }; /** - * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.changeHistoryEvents = []; + object.displayVideo_360AdvertiserLinks = []; if (options.defaults) object.nextPageToken = ""; - if (message.changeHistoryEvents && message.changeHistoryEvents.length) { - object.changeHistoryEvents = []; - for (var j = 0; j < message.changeHistoryEvents.length; ++j) - object.changeHistoryEvents[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); + if (message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length) { + object.displayVideo_360AdvertiserLinks = []; + for (var j = 0; j < message.displayVideo_360AdvertiserLinks.length; ++j) + object.displayVideo_360AdvertiserLinks[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLinks[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -16187,37 +15743,38 @@ }; /** - * Converts this SearchChangeHistoryEventsResponse to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance * @returns {Object.} JSON object */ - SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchChangeHistoryEventsResponse; + return ListDisplayVideo360AdvertiserLinksResponse; })(); - v1alpha.GetMeasurementProtocolSecretRequest = (function() { + v1alpha.CreateDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of a GetMeasurementProtocolSecretRequest. + * Properties of a CreateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetMeasurementProtocolSecretRequest - * @property {string|null} [name] GetMeasurementProtocolSecretRequest name + * @interface ICreateDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkRequest parent + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ /** - * Constructs a new GetMeasurementProtocolSecretRequest. + * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetMeasurementProtocolSecretRequest. - * @implements IGetMeasurementProtocolSecretRequest + * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkRequest. + * @implements ICreateDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function GetMeasurementProtocolSecretRequest(properties) { + function CreateDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16225,75 +15782,88 @@ } /** - * GetMeasurementProtocolSecretRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * CreateDisplayVideo360AdvertiserLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @instance */ - GetMeasurementProtocolSecretRequest.prototype.name = ""; + CreateDisplayVideo360AdvertiserLinkRequest.prototype.parent = ""; /** - * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. + * CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @instance + */ + CreateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; + + /** + * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest instance */ - GetMeasurementProtocolSecretRequest.create = function create(properties) { - return new GetMeasurementProtocolSecretRequest(properties); + CreateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new CreateDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + CreateDisplayVideo360AdvertiserLinkRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + CreateDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -16304,108 +15874,121 @@ }; /** - * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + CreateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMeasurementProtocolSecretRequest message. + * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMeasurementProtocolSecretRequest.verify = function verify(message) { + CreateDisplayVideo360AdvertiserLinkRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + error; + } return null; }; /** - * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest */ - GetMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + CreateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } return message; }; /** - * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + CreateDisplayVideo360AdvertiserLinkRequest.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 (options.defaults) { + object.parent = ""; + object.displayVideo_360AdvertiserLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); return object; }; /** - * Converts this GetMeasurementProtocolSecretRequest to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - GetMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + CreateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetMeasurementProtocolSecretRequest; + return CreateDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.CreateMeasurementProtocolSecretRequest = (function() { + v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of a CreateMeasurementProtocolSecretRequest. + * Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateMeasurementProtocolSecretRequest - * @property {string|null} [parent] CreateMeasurementProtocolSecretRequest parent - * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] CreateMeasurementProtocolSecretRequest measurementProtocolSecret + * @interface IDeleteDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkRequest name */ /** - * Constructs a new CreateMeasurementProtocolSecretRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateMeasurementProtocolSecretRequest. - * @implements ICreateMeasurementProtocolSecretRequest + * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkRequest. + * @implements IDeleteDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function CreateMeasurementProtocolSecretRequest(properties) { + function DeleteDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16413,88 +15996,75 @@ } /** - * CreateMeasurementProtocolSecretRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest - * @instance - */ - CreateMeasurementProtocolSecretRequest.prototype.parent = ""; - - /** - * CreateMeasurementProtocolSecretRequest measurementProtocolSecret. - * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * DeleteDisplayVideo360AdvertiserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @instance */ - CreateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; + DeleteDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; /** - * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest instance */ - CreateMeasurementProtocolSecretRequest.create = function create(properties) { - return new CreateMeasurementProtocolSecretRequest(properties); + DeleteDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new DeleteDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + DeleteDisplayVideo360AdvertiserLinkRequest.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.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + DeleteDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -16505,121 +16075,108 @@ }; /** - * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMeasurementProtocolSecretRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMeasurementProtocolSecretRequest.verify = function verify(message) { + DeleteDisplayVideo360AdvertiserLinkRequest.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.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); - if (error) - return "measurementProtocolSecret." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest */ - CreateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + DeleteDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.measurementProtocolSecret != null) { - if (typeof object.measurementProtocolSecret !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); - } + var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + DeleteDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.measurementProtocolSecret = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) - object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateMeasurementProtocolSecretRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - CreateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + DeleteDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateMeasurementProtocolSecretRequest; + return DeleteDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.DeleteMeasurementProtocolSecretRequest = (function() { + v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of a DeleteMeasurementProtocolSecretRequest. + * Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteMeasurementProtocolSecretRequest - * @property {string|null} [name] DeleteMeasurementProtocolSecretRequest name - */ - + * @interface IUpdateDisplayVideo360AdvertiserLinkRequest + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDisplayVideo360AdvertiserLinkRequest updateMask + */ + /** - * Constructs a new DeleteMeasurementProtocolSecretRequest. + * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteMeasurementProtocolSecretRequest. - * @implements IDeleteMeasurementProtocolSecretRequest + * @classdesc Represents an UpdateDisplayVideo360AdvertiserLinkRequest. + * @implements IUpdateDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function DeleteMeasurementProtocolSecretRequest(properties) { + function UpdateDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16627,75 +16184,88 @@ } /** - * DeleteMeasurementProtocolSecretRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @instance */ - DeleteMeasurementProtocolSecretRequest.prototype.name = ""; + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; /** - * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. + * UpdateDisplayVideo360AdvertiserLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @instance + */ + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest instance */ - DeleteMeasurementProtocolSecretRequest.create = function create(properties) { - return new DeleteMeasurementProtocolSecretRequest(properties); + UpdateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new UpdateDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + UpdateDisplayVideo360AdvertiserLinkRequest.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.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, 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 DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + UpdateDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -16706,108 +16276,126 @@ }; /** - * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteMeasurementProtocolSecretRequest message. + * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteMeasurementProtocolSecretRequest.verify = function verify(message) { + UpdateDisplayVideo360AdvertiserLinkRequest.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.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + 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 a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest */ - DeleteMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + UpdateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + UpdateDisplayVideo360AdvertiserLinkRequest.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 (options.defaults) { + object.displayVideo_360AdvertiserLink = null; + object.updateMask = null; + } + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this DeleteMeasurementProtocolSecretRequest to JSON. + * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest * @instance * @returns {Object.} JSON object */ - DeleteMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteMeasurementProtocolSecretRequest; + return UpdateDisplayVideo360AdvertiserLinkRequest; })(); - v1alpha.UpdateMeasurementProtocolSecretRequest = (function() { + v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of an UpdateMeasurementProtocolSecretRequest. + * Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateMeasurementProtocolSecretRequest - * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] UpdateMeasurementProtocolSecretRequest measurementProtocolSecret - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMeasurementProtocolSecretRequest updateMask + * @interface IGetDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new UpdateMeasurementProtocolSecretRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateMeasurementProtocolSecretRequest. - * @implements IUpdateMeasurementProtocolSecretRequest + * @classdesc Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IGetDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function UpdateMeasurementProtocolSecretRequest(properties) { + function GetDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16815,88 +16403,75 @@ } /** - * UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. - * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest - * @instance - */ - UpdateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; - - /** - * UpdateMeasurementProtocolSecretRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * GetDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - UpdateMeasurementProtocolSecretRequest.prototype.updateMask = null; + GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest instance */ - UpdateMeasurementProtocolSecretRequest.create = function create(properties) { - return new UpdateMeasurementProtocolSecretRequest(properties); + GetDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new GetDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + GetDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + GetDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -16907,128 +16482,109 @@ }; /** - * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + GetDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateMeasurementProtocolSecretRequest message. + * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateMeasurementProtocolSecretRequest.verify = function verify(message) { + GetDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); - if (error) - return "measurementProtocolSecret." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest */ - UpdateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + GetDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); - if (object.measurementProtocolSecret != null) { - if (typeof object.measurementProtocolSecret !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + GetDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.measurementProtocolSecret = null; - object.updateMask = null; - } - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) - object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateMeasurementProtocolSecretRequest to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - UpdateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateMeasurementProtocolSecretRequest; + return GetDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.ListMeasurementProtocolSecretsRequest = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest = (function() { /** - * Properties of a ListMeasurementProtocolSecretsRequest. + * Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListMeasurementProtocolSecretsRequest - * @property {string|null} [parent] ListMeasurementProtocolSecretsRequest parent - * @property {number|null} [pageSize] ListMeasurementProtocolSecretsRequest pageSize - * @property {string|null} [pageToken] ListMeasurementProtocolSecretsRequest pageToken + * @interface IListDisplayVideo360AdvertiserLinkProposalsRequest + * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinkProposalsRequest parent + * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize + * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken */ /** - * Constructs a new ListMeasurementProtocolSecretsRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListMeasurementProtocolSecretsRequest. - * @implements IListMeasurementProtocolSecretsRequest + * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. + * @implements IListDisplayVideo360AdvertiserLinkProposalsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set */ - function ListMeasurementProtocolSecretsRequest(properties) { + function ListDisplayVideo360AdvertiserLinkProposalsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17036,51 +16592,51 @@ } /** - * ListMeasurementProtocolSecretsRequest parent. + * ListDisplayVideo360AdvertiserLinkProposalsRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @instance */ - ListMeasurementProtocolSecretsRequest.prototype.parent = ""; + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.parent = ""; /** - * ListMeasurementProtocolSecretsRequest pageSize. + * ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @instance */ - ListMeasurementProtocolSecretsRequest.prototype.pageSize = 0; + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageSize = 0; /** - * ListMeasurementProtocolSecretsRequest pageToken. + * ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @instance */ - ListMeasurementProtocolSecretsRequest.prototype.pageToken = ""; + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageToken = ""; /** - * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest instance */ - ListMeasurementProtocolSecretsRequest.create = function create(properties) { - return new ListMeasurementProtocolSecretsRequest(properties); + ListDisplayVideo360AdvertiserLinkProposalsRequest.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinkProposalsRequest(properties); }; /** - * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsRequest.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -17093,33 +16649,33 @@ }; /** - * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsRequest.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.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.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17141,30 +16697,30 @@ }; /** - * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsRequest.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMeasurementProtocolSecretsRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMeasurementProtocolSecretsRequest.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -17180,17 +16736,17 @@ }; /** - * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest */ - ListMeasurementProtocolSecretsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + ListDisplayVideo360AdvertiserLinkProposalsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -17201,15 +16757,15 @@ }; /** - * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @static - * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMeasurementProtocolSecretsRequest.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinkProposalsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -17228,39 +16784,39 @@ }; /** - * Converts this ListMeasurementProtocolSecretsRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest * @instance * @returns {Object.} JSON object */ - ListMeasurementProtocolSecretsRequest.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListMeasurementProtocolSecretsRequest; + return ListDisplayVideo360AdvertiserLinkProposalsRequest; })(); - v1alpha.ListMeasurementProtocolSecretsResponse = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse = (function() { /** - * Properties of a ListMeasurementProtocolSecretsResponse. + * Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListMeasurementProtocolSecretsResponse - * @property {Array.|null} [measurementProtocolSecrets] ListMeasurementProtocolSecretsResponse measurementProtocolSecrets - * @property {string|null} [nextPageToken] ListMeasurementProtocolSecretsResponse nextPageToken + * @interface IListDisplayVideo360AdvertiserLinkProposalsResponse + * @property {Array.|null} [displayVideo_360AdvertiserLinkProposals] ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals + * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken */ /** - * Constructs a new ListMeasurementProtocolSecretsResponse. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListMeasurementProtocolSecretsResponse. - * @implements IListMeasurementProtocolSecretsResponse + * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. + * @implements IListDisplayVideo360AdvertiserLinkProposalsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set */ - function ListMeasurementProtocolSecretsResponse(properties) { - this.measurementProtocolSecrets = []; + function ListDisplayVideo360AdvertiserLinkProposalsResponse(properties) { + this.displayVideo_360AdvertiserLinkProposals = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17268,88 +16824,88 @@ } /** - * ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. - * @member {Array.} measurementProtocolSecrets - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. + * @member {Array.} displayVideo_360AdvertiserLinkProposals + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @instance */ - ListMeasurementProtocolSecretsResponse.prototype.measurementProtocolSecrets = $util.emptyArray; + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.displayVideo_360AdvertiserLinkProposals = $util.emptyArray; /** - * ListMeasurementProtocolSecretsResponse nextPageToken. + * ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @instance */ - ListMeasurementProtocolSecretsResponse.prototype.nextPageToken = ""; + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse instance */ - ListMeasurementProtocolSecretsResponse.create = function create(properties) { - return new ListMeasurementProtocolSecretsResponse(properties); + ListDisplayVideo360AdvertiserLinkProposalsResponse.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinkProposalsResponse(properties); }; /** - * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsResponse.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.measurementProtocolSecrets != null && message.measurementProtocolSecrets.length) - for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecrets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.displayVideo_360AdvertiserLinkProposals != null && message.displayVideo_360AdvertiserLinkProposals.length) + for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposals[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 ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsResponse.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.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.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) - message.measurementProtocolSecrets = []; - message.measurementProtocolSecrets.push($root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32())); + if (!(message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length)) + message.displayVideo_360AdvertiserLinkProposals = []; + message.displayVideo_360AdvertiserLinkProposals.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -17363,39 +16919,39 @@ }; /** - * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMeasurementProtocolSecretsResponse message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMeasurementProtocolSecretsResponse.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.measurementProtocolSecrets != null && message.hasOwnProperty("measurementProtocolSecrets")) { - if (!Array.isArray(message.measurementProtocolSecrets)) - return "measurementProtocolSecrets: array expected"; - for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecrets[i]); + if (message.displayVideo_360AdvertiserLinkProposals != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposals")) { + if (!Array.isArray(message.displayVideo_360AdvertiserLinkProposals)) + return "displayVideo_360AdvertiserLinkProposals: array expected"; + for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposals[i]); if (error) - return "measurementProtocolSecrets." + error; + return "displayVideo_360AdvertiserLinkProposals." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -17405,25 +16961,25 @@ }; /** - * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse */ - ListMeasurementProtocolSecretsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + ListDisplayVideo360AdvertiserLinkProposalsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); - if (object.measurementProtocolSecrets) { - if (!Array.isArray(object.measurementProtocolSecrets)) - throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: array expected"); - message.measurementProtocolSecrets = []; - for (var i = 0; i < object.measurementProtocolSecrets.length; ++i) { - if (typeof object.measurementProtocolSecrets[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: object expected"); - message.measurementProtocolSecrets[i] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecrets[i]); + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + if (object.displayVideo_360AdvertiserLinkProposals) { + if (!Array.isArray(object.displayVideo_360AdvertiserLinkProposals)) + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: array expected"); + message.displayVideo_360AdvertiserLinkProposals = []; + for (var i = 0; i < object.displayVideo_360AdvertiserLinkProposals.length; ++i) { + if (typeof object.displayVideo_360AdvertiserLinkProposals[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: object expected"); + message.displayVideo_360AdvertiserLinkProposals[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposals[i]); } } if (object.nextPageToken != null) @@ -17432,26 +16988,26 @@ }; /** - * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @static - * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMeasurementProtocolSecretsResponse.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinkProposalsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.measurementProtocolSecrets = []; + object.displayVideo_360AdvertiserLinkProposals = []; if (options.defaults) object.nextPageToken = ""; - if (message.measurementProtocolSecrets && message.measurementProtocolSecrets.length) { - object.measurementProtocolSecrets = []; - for (var j = 0; j < message.measurementProtocolSecrets.length; ++j) - object.measurementProtocolSecrets[j] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecrets[j], options); + if (message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length) { + object.displayVideo_360AdvertiserLinkProposals = []; + for (var j = 0; j < message.displayVideo_360AdvertiserLinkProposals.length; ++j) + object.displayVideo_360AdvertiserLinkProposals[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposals[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -17459,37 +17015,38 @@ }; /** - * Converts this ListMeasurementProtocolSecretsResponse to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse * @instance * @returns {Object.} JSON object */ - ListMeasurementProtocolSecretsResponse.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListMeasurementProtocolSecretsResponse; + return ListDisplayVideo360AdvertiserLinkProposalsResponse; })(); - v1alpha.GetGoogleSignalsSettingsRequest = (function() { + v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of a GetGoogleSignalsSettingsRequest. + * Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetGoogleSignalsSettingsRequest - * @property {string|null} [name] GetGoogleSignalsSettingsRequest name + * @interface ICreateDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkProposalRequest parent + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal */ /** - * Constructs a new GetGoogleSignalsSettingsRequest. + * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetGoogleSignalsSettingsRequest. - * @implements IGetGoogleSignalsSettingsRequest + * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. + * @implements ICreateDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function GetGoogleSignalsSettingsRequest(properties) { + function CreateDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17497,75 +17054,88 @@ } /** - * GetGoogleSignalsSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * CreateDisplayVideo360AdvertiserLinkProposalRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - GetGoogleSignalsSettingsRequest.prototype.name = ""; + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.parent = ""; /** - * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. + * CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @instance + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.displayVideo_360AdvertiserLinkProposal = null; + + /** + * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest instance */ - GetGoogleSignalsSettingsRequest.create = function create(properties) { - return new GetGoogleSignalsSettingsRequest(properties); + CreateDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new CreateDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGoogleSignalsSettingsRequest.encode = function encode(message, writer) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGoogleSignalsSettingsRequest.decode = function decode(reader, length) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17576,108 +17146,121 @@ }; /** - * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGoogleSignalsSettingsRequest message. + * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGoogleSignalsSettingsRequest.verify = function verify(message) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); + if (error) + return "displayVideo_360AdvertiserLinkProposal." + error; + } return null; }; /** - * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest */ - GetGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + CreateDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayVideo_360AdvertiserLinkProposal != null) { + if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.displayVideo_360AdvertiserLinkProposal: object expected"); + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); + } return message; }; /** - * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest + * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { + CreateDisplayVideo360AdvertiserLinkProposalRequest.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 (options.defaults) { + object.parent = ""; + object.displayVideo_360AdvertiserLinkProposal = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) + object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); return object; }; /** - * Converts this GetGoogleSignalsSettingsRequest to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - GetGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetGoogleSignalsSettingsRequest; + return CreateDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.UpdateGoogleSignalsSettingsRequest = (function() { + v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of an UpdateGoogleSignalsSettingsRequest. + * Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateGoogleSignalsSettingsRequest - * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] UpdateGoogleSignalsSettingsRequest googleSignalsSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleSignalsSettingsRequest updateMask + * @interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new UpdateGoogleSignalsSettingsRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateGoogleSignalsSettingsRequest. - * @implements IUpdateGoogleSignalsSettingsRequest + * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function UpdateGoogleSignalsSettingsRequest(properties) { + function DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17685,88 +17268,75 @@ } /** - * UpdateGoogleSignalsSettingsRequest googleSignalsSettings. - * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest - * @instance - */ - UpdateGoogleSignalsSettingsRequest.prototype.googleSignalsSettings = null; - - /** - * UpdateGoogleSignalsSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * DeleteDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - UpdateGoogleSignalsSettingsRequest.prototype.updateMask = null; + DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest instance */ - UpdateGoogleSignalsSettingsRequest.create = function create(properties) { - return new UpdateGoogleSignalsSettingsRequest(properties); + DeleteDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleSignalsSettingsRequest.encode = function encode(message, writer) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) - $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleSignalsSettingsRequest.decode = function decode(reader, length) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -17777,127 +17347,107 @@ }; /** - * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateGoogleSignalsSettingsRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateGoogleSignalsSettingsRequest.verify = function verify(message) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { - var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); - if (error) - return "googleSignalsSettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest */ - UpdateGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + DeleteDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); - if (object.googleSignalsSettings != null) { - if (typeof object.googleSignalsSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.googleSignalsSettings: object expected"); - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest + * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.googleSignalsSettings = null; - object.updateMask = null; - } - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) - object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateGoogleSignalsSettingsRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - UpdateGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { + DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateGoogleSignalsSettingsRequest; + return DeleteDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.CreateConversionEventRequest = (function() { + v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of a CreateConversionEventRequest. + * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateConversionEventRequest - * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] CreateConversionEventRequest conversionEvent - * @property {string|null} [parent] CreateConversionEventRequest parent + * @interface IApproveDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] ApproveDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new CreateConversionEventRequest. + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateConversionEventRequest. - * @implements ICreateConversionEventRequest + * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IApproveDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function CreateConversionEventRequest(properties) { + function ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17905,88 +17455,75 @@ } /** - * CreateConversionEventRequest conversionEvent. - * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest - * @instance - */ - CreateConversionEventRequest.prototype.conversionEvent = null; - - /** - * CreateConversionEventRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * ApproveDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - CreateConversionEventRequest.prototype.parent = ""; + ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new CreateConversionEventRequest instance using the specified properties. + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest instance */ - CreateConversionEventRequest.create = function create(properties) { - return new CreateConversionEventRequest(properties); + ApproveDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateConversionEventRequest.encode = function encode(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) - $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateConversionEventRequest message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateConversionEventRequest.decode = function decode(reader, length) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.CreateConversionEventRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -17997,121 +17534,107 @@ }; /** - * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateConversionEventRequest message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateConversionEventRequest.verify = function verify(message) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { - var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); - if (error) - return "conversionEvent." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest */ - CreateConversionEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateConversionEventRequest) + ApproveDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); - if (object.conversionEvent != null) { - if (typeof object.conversionEvent !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateConversionEventRequest.conversionEvent: object expected"); - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); - } - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.CreateConversionEventRequest} message CreateConversionEventRequest + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateConversionEventRequest.toObject = function toObject(message, options) { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.conversionEvent = null; - object.parent = ""; - } - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) - object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateConversionEventRequest to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - CreateConversionEventRequest.prototype.toJSON = function toJSON() { + ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateConversionEventRequest; + return ApproveDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.GetConversionEventRequest = (function() { + v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse = (function() { /** - * Properties of a GetConversionEventRequest. + * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. * @memberof google.analytics.admin.v1alpha - * @interface IGetConversionEventRequest - * @property {string|null} [name] GetConversionEventRequest name + * @interface IApproveDisplayVideo360AdvertiserLinkProposalResponse + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink */ /** - * Constructs a new GetConversionEventRequest. + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetConversionEventRequest. - * @implements IGetConversionEventRequest + * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @implements IApproveDisplayVideo360AdvertiserLinkProposalResponse * @constructor - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set */ - function GetConversionEventRequest(properties) { + function ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18119,75 +17642,75 @@ } /** - * GetConversionEventRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @instance */ - GetConversionEventRequest.prototype.name = ""; + ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.displayVideo_360AdvertiserLink = null; /** - * Creates a new GetConversionEventRequest instance using the specified properties. + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse instance */ - GetConversionEventRequest.create = function create(properties) { - return new GetConversionEventRequest(properties); + ApproveDisplayVideo360AdvertiserLinkProposalResponse.create = function create(properties) { + return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties); }; /** - * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetConversionEventRequest.encode = function encode(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.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.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetConversionEventRequest message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetConversionEventRequest.decode = function decode(reader, length) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.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.analytics.admin.v1alpha.GetConversionEventRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18198,107 +17721,112 @@ }; /** - * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetConversionEventRequest message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetConversionEventRequest.verify = function verify(message) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.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.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + error; + } return null; }; /** - * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse */ - GetConversionEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetConversionEventRequest) + ApproveDisplayVideo360AdvertiserLinkProposalResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } return message; }; /** - * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @static - * @param {google.analytics.admin.v1alpha.GetConversionEventRequest} message GetConversionEventRequest + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetConversionEventRequest.toObject = function toObject(message, options) { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.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; + object.displayVideo_360AdvertiserLink = null; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); return object; }; /** - * Converts this GetConversionEventRequest to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse * @instance * @returns {Object.} JSON object */ - GetConversionEventRequest.prototype.toJSON = function toJSON() { + ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetConversionEventRequest; + return ApproveDisplayVideo360AdvertiserLinkProposalResponse; })(); - v1alpha.DeleteConversionEventRequest = (function() { + v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest = (function() { /** - * Properties of a DeleteConversionEventRequest. + * Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteConversionEventRequest - * @property {string|null} [name] DeleteConversionEventRequest name + * @interface ICancelDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] CancelDisplayVideo360AdvertiserLinkProposalRequest name */ /** - * Constructs a new DeleteConversionEventRequest. + * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteConversionEventRequest. - * @implements IDeleteConversionEventRequest + * @classdesc Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. + * @implements ICancelDisplayVideo360AdvertiserLinkProposalRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set */ - function DeleteConversionEventRequest(properties) { + function CancelDisplayVideo360AdvertiserLinkProposalRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18306,35 +17834,35 @@ } /** - * DeleteConversionEventRequest name. + * CancelDisplayVideo360AdvertiserLinkProposalRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @instance */ - DeleteConversionEventRequest.prototype.name = ""; + CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; /** - * Creates a new DeleteConversionEventRequest instance using the specified properties. + * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest instance + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest instance */ - DeleteConversionEventRequest.create = function create(properties) { - return new DeleteConversionEventRequest(properties); + CancelDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new CancelDisplayVideo360AdvertiserLinkProposalRequest(properties); }; /** - * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteConversionEventRequest.encode = function encode(message, writer) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -18343,33 +17871,33 @@ }; /** - * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteConversionEventRequest.decode = function decode(reader, length) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.DeleteConversionEventRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18385,30 +17913,30 @@ }; /** - * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteConversionEventRequest message. + * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteConversionEventRequest.verify = function verify(message) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -18418,32 +17946,32 @@ }; /** - * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest */ - DeleteConversionEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest) + CancelDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); + var message = new $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteConversionEventRequest} message DeleteConversionEventRequest + * @param {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteConversionEventRequest.toObject = function toObject(message, options) { + CancelDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18455,39 +17983,38 @@ }; /** - * Converts this DeleteConversionEventRequest to JSON. + * Converts this CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest * @instance * @returns {Object.} JSON object */ - DeleteConversionEventRequest.prototype.toJSON = function toJSON() { + CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteConversionEventRequest; + return CancelDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.ListConversionEventsRequest = (function() { + v1alpha.CreateCustomDimensionRequest = (function() { /** - * Properties of a ListConversionEventsRequest. + * Properties of a CreateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListConversionEventsRequest - * @property {string|null} [parent] ListConversionEventsRequest parent - * @property {number|null} [pageSize] ListConversionEventsRequest pageSize - * @property {string|null} [pageToken] ListConversionEventsRequest pageToken + * @interface ICreateCustomDimensionRequest + * @property {string|null} [parent] CreateCustomDimensionRequest parent + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension */ /** - * Constructs a new ListConversionEventsRequest. + * Constructs a new CreateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListConversionEventsRequest. - * @implements IListConversionEventsRequest + * @classdesc Represents a CreateCustomDimensionRequest. + * @implements ICreateCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set */ - function ListConversionEventsRequest(properties) { + function CreateCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18495,90 +18022,80 @@ } /** - * ListConversionEventsRequest parent. + * CreateCustomDimensionRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest - * @instance - */ - ListConversionEventsRequest.prototype.parent = ""; - - /** - * ListConversionEventsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance */ - ListConversionEventsRequest.prototype.pageSize = 0; + CreateCustomDimensionRequest.prototype.parent = ""; /** - * ListConversionEventsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * CreateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance */ - ListConversionEventsRequest.prototype.pageToken = ""; + CreateCustomDimensionRequest.prototype.customDimension = null; /** - * Creates a new ListConversionEventsRequest instance using the specified properties. + * Creates a new CreateCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest instance + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance */ - ListConversionEventsRequest.create = function create(properties) { - return new ListConversionEventsRequest(properties); + CreateCustomDimensionRequest.create = function create(properties) { + return new CreateCustomDimensionRequest(properties); }; /** - * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsRequest.encode = function encode(message, writer) { + CreateCustomDimensionRequest.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.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListConversionEventsRequest message from the specified reader or buffer. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsRequest.decode = function decode(reader, length) { + CreateCustomDimensionRequest.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.analytics.admin.v1alpha.ListConversionEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18586,10 +18103,7 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18600,126 +18114,122 @@ }; /** - * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListConversionEventsRequest message. + * Verifies a CreateCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListConversionEventsRequest.verify = function verify(message) { + CreateCustomDimensionRequest.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.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } return null; }; /** - * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest */ - ListConversionEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsRequest) + CreateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); + var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); 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.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } return message; }; /** - * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ListConversionEventsRequest} message ListConversionEventsRequest + * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListConversionEventsRequest.toObject = function toObject(message, options) { + CreateCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.customDimension = 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.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); return object; }; /** - * Converts this ListConversionEventsRequest to JSON. + * Converts this CreateCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - ListConversionEventsRequest.prototype.toJSON = function toJSON() { + CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListConversionEventsRequest; + return CreateCustomDimensionRequest; })(); - v1alpha.ListConversionEventsResponse = (function() { + v1alpha.UpdateCustomDimensionRequest = (function() { /** - * Properties of a ListConversionEventsResponse. + * Properties of an UpdateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListConversionEventsResponse - * @property {Array.|null} [conversionEvents] ListConversionEventsResponse conversionEvents - * @property {string|null} [nextPageToken] ListConversionEventsResponse nextPageToken + * @interface IUpdateCustomDimensionRequest + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask */ /** - * Constructs a new ListConversionEventsResponse. + * Constructs a new UpdateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListConversionEventsResponse. - * @implements IListConversionEventsResponse + * @classdesc Represents an UpdateCustomDimensionRequest. + * @implements IUpdateCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set */ - function ListConversionEventsResponse(properties) { - this.conversionEvents = []; + function UpdateCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18727,91 +18237,88 @@ } /** - * ListConversionEventsResponse conversionEvents. - * @member {Array.} conversionEvents - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * UpdateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance */ - ListConversionEventsResponse.prototype.conversionEvents = $util.emptyArray; + UpdateCustomDimensionRequest.prototype.customDimension = null; /** - * ListConversionEventsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * UpdateCustomDimensionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance */ - ListConversionEventsResponse.prototype.nextPageToken = ""; + UpdateCustomDimensionRequest.prototype.updateMask = null; /** - * Creates a new ListConversionEventsResponse instance using the specified properties. + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance */ - ListConversionEventsResponse.create = function create(properties) { - return new ListConversionEventsResponse(properties); + UpdateCustomDimensionRequest.create = function create(properties) { + return new UpdateCustomDimensionRequest(properties); }; /** - * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsResponse.encode = function encode(message, writer) { + UpdateCustomDimensionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.conversionEvents != null && message.conversionEvents.length) - for (var i = 0; i < message.conversionEvents.length; ++i) - $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, 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 ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListConversionEventsResponse message from the specified reader or buffer. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsResponse.decode = function decode(reader, length) { + UpdateCustomDimensionRequest.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.analytics.admin.v1alpha.ListConversionEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.conversionEvents && message.conversionEvents.length)) - message.conversionEvents = []; - message.conversionEvents.push($root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32())); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18822,133 +18329,128 @@ }; /** - * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListConversionEventsResponse message. + * Verifies an UpdateCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListConversionEventsResponse.verify = function verify(message) { + UpdateCustomDimensionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.conversionEvents != null && message.hasOwnProperty("conversionEvents")) { - if (!Array.isArray(message.conversionEvents)) - return "conversionEvents: array expected"; - for (var i = 0; i < message.conversionEvents.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvents[i]); - if (error) - return "conversionEvents." + error; - } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest */ - ListConversionEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsResponse) + UpdateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); - if (object.conversionEvents) { - if (!Array.isArray(object.conversionEvents)) - throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: array expected"); - message.conversionEvents = []; - for (var i = 0; i < object.conversionEvents.length; ++i) { - if (typeof object.conversionEvents[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: object expected"); - message.conversionEvents[i] = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvents[i]); - } + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} message ListConversionEventsResponse + * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListConversionEventsResponse.toObject = function toObject(message, options) { + UpdateCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.conversionEvents = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.conversionEvents && message.conversionEvents.length) { - object.conversionEvents = []; - for (var j = 0; j < message.conversionEvents.length; ++j) - object.conversionEvents[j] = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvents[j], options); + if (options.defaults) { + object.customDimension = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListConversionEventsResponse to JSON. + * Converts this UpdateCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - ListConversionEventsResponse.prototype.toJSON = function toJSON() { + UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListConversionEventsResponse; + return UpdateCustomDimensionRequest; })(); - v1alpha.GetDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.ListCustomDimensionsRequest = (function() { /** - * Properties of a GetDisplayVideo360AdvertiserLinkRequest. + * Properties of a ListCustomDimensionsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDisplayVideo360AdvertiserLinkRequest - * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkRequest name + * @interface IListCustomDimensionsRequest + * @property {string|null} [parent] ListCustomDimensionsRequest parent + * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize + * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken */ /** - * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. + * Constructs a new ListCustomDimensionsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDisplayVideo360AdvertiserLinkRequest. - * @implements IGetDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents a ListCustomDimensionsRequest. + * @implements IListCustomDimensionsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set */ - function GetDisplayVideo360AdvertiserLinkRequest(properties) { + function ListCustomDimensionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18956,75 +18458,101 @@ } /** - * GetDisplayVideo360AdvertiserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * ListCustomDimensionsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance */ - GetDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; + ListCustomDimensionsRequest.prototype.parent = ""; /** - * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * ListCustomDimensionsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageSize = 0; + + /** + * ListCustomDimensionsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomDimensionsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance */ - GetDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new GetDisplayVideo360AdvertiserLinkRequest(properties); + ListCustomDimensionsRequest.create = function create(properties) { + return new ListCustomDimensionsRequest(properties); }; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + ListCustomDimensionsRequest.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.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 GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + ListCustomDimensionsRequest.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.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19035,109 +18563,126 @@ }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. + * Verifies a ListCustomDimensionsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + ListCustomDimensionsRequest.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; + 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 GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest */ - GetDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + ListCustomDimensionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + 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 GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + ListCustomDimensionsRequest.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 (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 GetDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this ListCustomDimensionsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance * @returns {Object.} JSON object */ - GetDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDisplayVideo360AdvertiserLinkRequest; + return ListCustomDimensionsRequest; })(); - v1alpha.ListDisplayVideo360AdvertiserLinksRequest = (function() { + v1alpha.ListCustomDimensionsResponse = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinksRequest. + * Properties of a ListCustomDimensionsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinksRequest - * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinksRequest parent - * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinksRequest pageSize - * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinksRequest pageToken + * @interface IListCustomDimensionsResponse + * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions + * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. + * Constructs a new ListCustomDimensionsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinksRequest. - * @implements IListDisplayVideo360AdvertiserLinksRequest + * @classdesc Represents a ListCustomDimensionsResponse. + * @implements IListCustomDimensionsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinksRequest(properties) { + function ListCustomDimensionsResponse(properties) { + this.customDimensions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19145,101 +18690,91 @@ } /** - * ListDisplayVideo360AdvertiserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest - * @instance - */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.parent = ""; - - /** - * ListDisplayVideo360AdvertiserLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * ListCustomDimensionsResponse customDimensions. + * @member {Array.} customDimensions + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.pageSize = 0; + ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; /** - * ListDisplayVideo360AdvertiserLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * ListCustomDimensionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.pageToken = ""; + ListCustomDimensionsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. + * Creates a new ListCustomDimensionsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance */ - ListDisplayVideo360AdvertiserLinksRequest.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinksRequest(properties); + ListCustomDimensionsResponse.create = function create(properties) { + return new ListCustomDimensionsResponse(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksRequest.encode = function encode(message, writer) { + ListCustomDimensionsResponse.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.customDimensions != null && message.customDimensions.length) + for (var i = 0; i < message.customDimensions.length; ++i) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[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 ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksRequest.decode = function decode(reader, length) { + ListCustomDimensionsResponse.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19250,126 +18785,133 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. + * Verifies a ListCustomDimensionsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinksRequest.verify = function verify(message) { + ListCustomDimensionsResponse.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.customDimensions != null && message.hasOwnProperty("customDimensions")) { + if (!Array.isArray(message.customDimensions)) + return "customDimensions: array expected"; + for (var i = 0; i < message.customDimensions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); + if (error) + return "customDimensions." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse */ - ListDisplayVideo360AdvertiserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + ListCustomDimensionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + if (object.customDimensions) { + if (!Array.isArray(object.customDimensions)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); + message.customDimensions = []; + for (var i = 0; i < object.customDimensions.length; ++i) { + if (typeof object.customDimensions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); + message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinksRequest.toObject = function toObject(message, options) { + ListCustomDimensionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.customDimensions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customDimensions && message.customDimensions.length) { + object.customDimensions = []; + for (var j = 0; j < message.customDimensions.length; ++j) + object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); } - 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. + * Converts this ListCustomDimensionsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.toJSON = function toJSON() { + ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinksRequest; + return ListCustomDimensionsResponse; })(); - v1alpha.ListDisplayVideo360AdvertiserLinksResponse = (function() { + v1alpha.ArchiveCustomDimensionRequest = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinksResponse. + * Properties of an ArchiveCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinksResponse - * @property {Array.|null} [displayVideo_360AdvertiserLinks] ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks - * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinksResponse nextPageToken + * @interface IArchiveCustomDimensionRequest + * @property {string|null} [name] ArchiveCustomDimensionRequest name */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. + * Constructs a new ArchiveCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinksResponse. - * @implements IListDisplayVideo360AdvertiserLinksResponse + * @classdesc Represents an ArchiveCustomDimensionRequest. + * @implements IArchiveCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinksResponse(properties) { - this.displayVideo_360AdvertiserLinks = []; + function ArchiveCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19377,91 +18919,75 @@ } /** - * ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. - * @member {Array.} displayVideo_360AdvertiserLinks - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse - * @instance - */ - ListDisplayVideo360AdvertiserLinksResponse.prototype.displayVideo_360AdvertiserLinks = $util.emptyArray; - - /** - * ListDisplayVideo360AdvertiserLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * ArchiveCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @instance */ - ListDisplayVideo360AdvertiserLinksResponse.prototype.nextPageToken = ""; + ArchiveCustomDimensionRequest.prototype.name = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance */ - ListDisplayVideo360AdvertiserLinksResponse.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinksResponse(properties); + ArchiveCustomDimensionRequest.create = function create(properties) { + return new ArchiveCustomDimensionRequest(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksResponse.encode = function encode(message, writer) { + ArchiveCustomDimensionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLinks != null && message.displayVideo_360AdvertiserLinks.length) - for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksResponse.decode = function decode(reader, length) { + ArchiveCustomDimensionRequest.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length)) - message.displayVideo_360AdvertiserLinks = []; - message.displayVideo_360AdvertiserLinks.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -19472,134 +18998,107 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. + * Verifies an ArchiveCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinksResponse.verify = function verify(message) { + ArchiveCustomDimensionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLinks != null && message.hasOwnProperty("displayVideo_360AdvertiserLinks")) { - if (!Array.isArray(message.displayVideo_360AdvertiserLinks)) - return "displayVideo_360AdvertiserLinks: array expected"; - for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLinks[i]); - if (error) - return "displayVideo_360AdvertiserLinks." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest */ - ListDisplayVideo360AdvertiserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); - if (object.displayVideo_360AdvertiserLinks) { - if (!Array.isArray(object.displayVideo_360AdvertiserLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: array expected"); - message.displayVideo_360AdvertiserLinks = []; - for (var i = 0; i < object.displayVideo_360AdvertiserLinks.length; ++i) { - if (typeof object.displayVideo_360AdvertiserLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: object expected"); - message.displayVideo_360AdvertiserLinks[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLinks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse + * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinksResponse.toObject = function toObject(message, options) { + ArchiveCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.displayVideo_360AdvertiserLinks = []; if (options.defaults) - object.nextPageToken = ""; - if (message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length) { - object.displayVideo_360AdvertiserLinks = []; - for (var j = 0; j < message.displayVideo_360AdvertiserLinks.length; ++j) - object.displayVideo_360AdvertiserLinks[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLinks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. + * Converts this ArchiveCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinksResponse.prototype.toJSON = function toJSON() { + ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinksResponse; + return ArchiveCustomDimensionRequest; })(); - v1alpha.CreateDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.GetCustomDimensionRequest = (function() { /** - * Properties of a CreateDisplayVideo360AdvertiserLinkRequest. + * Properties of a GetCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateDisplayVideo360AdvertiserLinkRequest - * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkRequest parent - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink + * @interface IGetCustomDimensionRequest + * @property {string|null} [name] GetCustomDimensionRequest name */ /** - * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. + * Constructs a new GetCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkRequest. - * @implements ICreateDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents a GetCustomDimensionRequest. + * @implements IGetCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set */ - function CreateDisplayVideo360AdvertiserLinkRequest(properties) { + function GetCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19607,88 +19106,75 @@ } /** - * CreateDisplayVideo360AdvertiserLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest - * @instance - */ - CreateDisplayVideo360AdvertiserLinkRequest.prototype.parent = ""; - - /** - * CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * GetCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @instance */ - CreateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; + GetCustomDimensionRequest.prototype.name = ""; /** - * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new GetCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance */ - CreateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new CreateDisplayVideo360AdvertiserLinkRequest(properties); + GetCustomDimensionRequest.create = function create(properties) { + return new GetCustomDimensionRequest(properties); }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + GetCustomDimensionRequest.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.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + GetCustomDimensionRequest.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.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -19699,121 +19185,108 @@ }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. + * Verifies a GetCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + GetCustomDimensionRequest.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.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); - if (error) - return "displayVideo_360AdvertiserLink." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest */ - CreateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + GetCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayVideo_360AdvertiserLink != null) { - if (typeof object.displayVideo_360AdvertiserLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); - } + var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + GetCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.displayVideo_360AdvertiserLink = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) - object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this GetCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - CreateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + GetCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDisplayVideo360AdvertiserLinkRequest; + return GetCustomDimensionRequest; })(); - v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.CreateCustomMetricRequest = (function() { /** - * Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. + * Properties of a CreateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteDisplayVideo360AdvertiserLinkRequest - * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkRequest name + * @interface ICreateCustomMetricRequest + * @property {string|null} [parent] CreateCustomMetricRequest parent + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric */ /** - * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. + * Constructs a new CreateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkRequest. - * @implements IDeleteDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents a CreateCustomMetricRequest. + * @implements ICreateCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set */ - function DeleteDisplayVideo360AdvertiserLinkRequest(properties) { + function CreateCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19821,75 +19294,88 @@ } /** - * DeleteDisplayVideo360AdvertiserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * CreateCustomMetricRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @instance */ - DeleteDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; + CreateCustomMetricRequest.prototype.parent = ""; /** - * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * CreateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.customMetric = null; + + /** + * Creates a new CreateCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance */ - DeleteDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new DeleteDisplayVideo360AdvertiserLinkRequest(properties); + CreateCustomMetricRequest.create = function create(properties) { + return new CreateCustomMetricRequest(properties); }; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + CreateCustomMetricRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + CreateCustomMetricRequest.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.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -19900,108 +19386,122 @@ }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. + * Verifies a CreateCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + CreateCustomMetricRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } return null; }; /** - * Creates a DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest */ - DeleteDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + CreateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } return message; }; /** - * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + CreateCustomMetricRequest.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 (options.defaults) { + object.parent = ""; + object.customMetric = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); return object; }; /** - * Converts this DeleteDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this CreateCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @instance * @returns {Object.} JSON object */ - DeleteDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + CreateCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDisplayVideo360AdvertiserLinkRequest; + return CreateCustomMetricRequest; })(); - v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.UpdateCustomMetricRequest = (function() { /** - * Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. + * Properties of an UpdateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDisplayVideo360AdvertiserLinkRequest - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDisplayVideo360AdvertiserLinkRequest updateMask + * @interface IUpdateCustomMetricRequest + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask */ /** - * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. + * Constructs a new UpdateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDisplayVideo360AdvertiserLinkRequest. - * @implements IUpdateDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents an UpdateCustomMetricRequest. + * @implements IUpdateCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set */ - function UpdateDisplayVideo360AdvertiserLinkRequest(properties) { + function UpdateCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20009,85 +19509,85 @@ } /** - * UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * UpdateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance */ - UpdateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; + UpdateCustomMetricRequest.prototype.customMetric = null; /** - * UpdateDisplayVideo360AdvertiserLinkRequest updateMask. + * UpdateCustomMetricRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance */ - UpdateDisplayVideo360AdvertiserLinkRequest.prototype.updateMask = null; + UpdateCustomMetricRequest.prototype.updateMask = null; /** - * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new UpdateCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance */ - UpdateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new UpdateDisplayVideo360AdvertiserLinkRequest(properties); + UpdateCustomMetricRequest.create = function create(properties) { + return new UpdateCustomMetricRequest(properties); }; /** - * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + UpdateCustomMetricRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, 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 UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + UpdateCustomMetricRequest.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.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); @@ -20101,36 +19601,36 @@ }; /** - * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. + * Verifies an UpdateCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + UpdateCustomMetricRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); if (error) - return "displayVideo_360AdvertiserLink." + error; + return "customMetric." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -20141,86 +19641,88 @@ }; /** - * Creates an UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest */ - UpdateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + UpdateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); - if (object.displayVideo_360AdvertiserLink != null) { - if (typeof object.displayVideo_360AdvertiserLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.updateMask: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + UpdateCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.displayVideo_360AdvertiserLink = null; + object.customMetric = null; object.updateMask = null; } - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) - object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this UpdateCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance * @returns {Object.} JSON object */ - UpdateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateDisplayVideo360AdvertiserLinkRequest; + return UpdateCustomMetricRequest; })(); - v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.ListCustomMetricsRequest = (function() { /** - * Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a ListCustomMetricsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkProposalRequest name + * @interface IListCustomMetricsRequest + * @property {string|null} [parent] ListCustomMetricsRequest parent + * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize + * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken */ /** - * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new ListCustomMetricsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. - * @implements IGetDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a ListCustomMetricsRequest. + * @implements IListCustomMetricsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set */ - function GetDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function ListCustomMetricsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20228,75 +19730,101 @@ } /** - * GetDisplayVideo360AdvertiserLinkProposalRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * ListCustomMetricsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance */ - GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + ListCustomMetricsRequest.prototype.parent = ""; /** - * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * ListCustomMetricsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageSize = 0; + + /** + * ListCustomMetricsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance */ - GetDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new GetDisplayVideo360AdvertiserLinkProposalRequest(properties); + ListCustomMetricsRequest.create = function create(properties) { + return new ListCustomMetricsRequest(properties); }; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + ListCustomMetricsRequest.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.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 GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + ListCustomMetricsRequest.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.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20307,109 +19835,126 @@ }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a ListCustomMetricsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + ListCustomMetricsRequest.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.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 GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest */ - GetDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + ListCustomMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + 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 GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + ListCustomMetricsRequest.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 (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 GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this ListCustomMetricsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance * @returns {Object.} JSON object */ - GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + ListCustomMetricsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDisplayVideo360AdvertiserLinkProposalRequest; + return ListCustomMetricsRequest; })(); - v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest = (function() { + v1alpha.ListCustomMetricsResponse = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. + * Properties of a ListCustomMetricsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinkProposalsRequest - * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinkProposalsRequest parent - * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize - * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken + * @interface IListCustomMetricsResponse + * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics + * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. + * Constructs a new ListCustomMetricsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. - * @implements IListDisplayVideo360AdvertiserLinkProposalsRequest + * @classdesc Represents a ListCustomMetricsResponse. + * @implements IListCustomMetricsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinkProposalsRequest(properties) { + function ListCustomMetricsResponse(properties) { + this.customMetrics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20417,101 +19962,91 @@ } /** - * ListDisplayVideo360AdvertiserLinkProposalsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest - * @instance - */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.parent = ""; - - /** - * ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * ListCustomMetricsResponse customMetrics. + * @member {Array.} customMetrics + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageSize = 0; + ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; /** - * ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * ListCustomMetricsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageToken = ""; + ListCustomMetricsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. + * Creates a new ListCustomMetricsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinkProposalsRequest(properties); + ListCustomMetricsResponse.create = function create(properties) { + return new ListCustomMetricsResponse(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.encode = function encode(message, writer) { + ListCustomMetricsResponse.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.customMetrics != null && message.customMetrics.length) + for (var i = 0; i < message.customMetrics.length; ++i) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[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 ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.decode = function decode(reader, length) { + ListCustomMetricsResponse.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20522,126 +20057,133 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. + * Verifies a ListCustomMetricsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.verify = function verify(message) { + ListCustomMetricsResponse.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.customMetrics != null && message.hasOwnProperty("customMetrics")) { + if (!Array.isArray(message.customMetrics)) + return "customMetrics: array expected"; + for (var i = 0; i < message.customMetrics.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); + if (error) + return "customMetrics." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + ListCustomMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + if (object.customMetrics) { + if (!Array.isArray(object.customMetrics)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); + message.customMetrics = []; + for (var i = 0; i < object.customMetrics.length; ++i) { + if (typeof object.customMetrics[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); + message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest + * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.toObject = function toObject(message, options) { + ListCustomMetricsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.customMetrics = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customMetrics && message.customMetrics.length) { + object.customMetrics = []; + for (var j = 0; j < message.customMetrics.length; ++j) + object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); } - 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. + * Converts this ListCustomMetricsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.toJSON = function toJSON() { + ListCustomMetricsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinkProposalsRequest; + return ListCustomMetricsResponse; })(); - v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse = (function() { + v1alpha.ArchiveCustomMetricRequest = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. + * Properties of an ArchiveCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinkProposalsResponse - * @property {Array.|null} [displayVideo_360AdvertiserLinkProposals] ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals - * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken + * @interface IArchiveCustomMetricRequest + * @property {string|null} [name] ArchiveCustomMetricRequest name */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. + * Constructs a new ArchiveCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. - * @implements IListDisplayVideo360AdvertiserLinkProposalsResponse + * @classdesc Represents an ArchiveCustomMetricRequest. + * @implements IArchiveCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinkProposalsResponse(properties) { - this.displayVideo_360AdvertiserLinkProposals = []; + function ArchiveCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20649,91 +20191,75 @@ } /** - * ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. - * @member {Array.} displayVideo_360AdvertiserLinkProposals - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse - * @instance - */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.displayVideo_360AdvertiserLinkProposals = $util.emptyArray; - - /** - * ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * ArchiveCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.nextPageToken = ""; + ArchiveCustomMetricRequest.prototype.name = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinkProposalsResponse(properties); + ArchiveCustomMetricRequest.create = function create(properties) { + return new ArchiveCustomMetricRequest(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.encode = function encode(message, writer) { + ArchiveCustomMetricRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLinkProposals != null && message.displayVideo_360AdvertiserLinkProposals.length) - for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.decode = function decode(reader, length) { + ArchiveCustomMetricRequest.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length)) - message.displayVideo_360AdvertiserLinkProposals = []; - message.displayVideo_360AdvertiserLinkProposals.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -20744,134 +20270,107 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.decodeDelimited = function decodeDelimited(reader) { + ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. + * Verifies an ArchiveCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.verify = function verify(message) { + ArchiveCustomMetricRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLinkProposals != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposals")) { - if (!Array.isArray(message.displayVideo_360AdvertiserLinkProposals)) - return "displayVideo_360AdvertiserLinkProposals: array expected"; - for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposals[i]); - if (error) - return "displayVideo_360AdvertiserLinkProposals." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + ArchiveCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); - if (object.displayVideo_360AdvertiserLinkProposals) { - if (!Array.isArray(object.displayVideo_360AdvertiserLinkProposals)) - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: array expected"); - message.displayVideo_360AdvertiserLinkProposals = []; - for (var i = 0; i < object.displayVideo_360AdvertiserLinkProposals.length; ++i) { - if (typeof object.displayVideo_360AdvertiserLinkProposals[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: object expected"); - message.displayVideo_360AdvertiserLinkProposals[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposals[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse + * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.toObject = function toObject(message, options) { + ArchiveCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.displayVideo_360AdvertiserLinkProposals = []; if (options.defaults) - object.nextPageToken = ""; - if (message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length) { - object.displayVideo_360AdvertiserLinkProposals = []; - for (var j = 0; j < message.displayVideo_360AdvertiserLinkProposals.length; ++j) - object.displayVideo_360AdvertiserLinkProposals[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposals[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. + * Converts this ArchiveCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.toJSON = function toJSON() { + ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinkProposalsResponse; + return ArchiveCustomMetricRequest; })(); - v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.GetCustomMetricRequest = (function() { /** - * Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a GetCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkProposalRequest parent - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal + * @interface IGetCustomMetricRequest + * @property {string|null} [name] GetCustomMetricRequest name */ /** - * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new GetCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. - * @implements ICreateDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a GetCustomMetricRequest. + * @implements IGetCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set */ - function CreateDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function GetCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20879,88 +20378,75 @@ } /** - * CreateDisplayVideo360AdvertiserLinkProposalRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest - * @instance - */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.parent = ""; - - /** - * CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * GetCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @instance */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.displayVideo_360AdvertiserLinkProposal = null; + GetCustomMetricRequest.prototype.name = ""; /** - * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new GetCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new CreateDisplayVideo360AdvertiserLinkProposalRequest(properties); + GetCustomMetricRequest.create = function create(properties) { + return new GetCustomMetricRequest(properties); }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + GetCustomMetricRequest.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.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + GetCustomMetricRequest.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.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -20971,121 +20457,107 @@ }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a GetCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + GetCustomMetricRequest.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.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); - if (error) - return "displayVideo_360AdvertiserLinkProposal." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + GetCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayVideo_360AdvertiserLinkProposal != null) { - if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.displayVideo_360AdvertiserLinkProposal: object expected"); - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); - } + var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + GetCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.displayVideo_360AdvertiserLinkProposal = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) - object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this GetCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @instance * @returns {Object.} JSON object */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + GetCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDisplayVideo360AdvertiserLinkProposalRequest; + return GetCustomMetricRequest; })(); - v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.GetDataRetentionSettingsRequest = (function() { /** - * Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a GetDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkProposalRequest name + * @interface IGetDataRetentionSettingsRequest + * @property {string|null} [name] GetDataRetentionSettingsRequest name */ /** - * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new GetDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. - * @implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a GetDataRetentionSettingsRequest. + * @implements IGetDataRetentionSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set */ - function DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function GetDataRetentionSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21093,35 +20565,35 @@ } /** - * DeleteDisplayVideo360AdvertiserLinkProposalRequest name. + * GetDataRetentionSettingsRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @instance */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + GetDataRetentionSettingsRequest.prototype.name = ""; /** - * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties); + GetDataRetentionSettingsRequest.create = function create(properties) { + return new GetDataRetentionSettingsRequest(properties); }; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + GetDataRetentionSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -21130,33 +20602,33 @@ }; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + GetDataRetentionSettingsRequest.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.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21172,30 +20644,30 @@ }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a GetDataRetentionSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + GetDataRetentionSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -21205,32 +20677,32 @@ }; /** - * Creates a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + GetDataRetentionSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21242,37 +20714,38 @@ }; /** - * Converts this DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this GetDataRetentionSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @instance * @returns {Object.} JSON object */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDisplayVideo360AdvertiserLinkProposalRequest; + return GetDataRetentionSettingsRequest; })(); - v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.UpdateDataRetentionSettingsRequest = (function() { /** - * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of an UpdateDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IApproveDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] ApproveDisplayVideo360AdvertiserLinkProposalRequest name + * @interface IUpdateDataRetentionSettingsRequest + * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask */ /** - * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new UpdateDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. - * @implements IApproveDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents an UpdateDataRetentionSettingsRequest. + * @implements IUpdateDataRetentionSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set */ - function ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function UpdateDataRetentionSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21280,77 +20753,90 @@ } /** - * ApproveDisplayVideo360AdvertiserLinkProposalRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * UpdateDataRetentionSettingsRequest dataRetentionSettings. + * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @instance */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; /** - * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * UpdateDataRetentionSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @instance + */ + UpdateDataRetentionSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties); + UpdateDataRetentionSettingsRequest.create = function create(properties) { + return new UpdateDataRetentionSettingsRequest(properties); }; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + UpdateDataRetentionSettingsRequest.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.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, 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 ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + UpdateDataRetentionSettingsRequest.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.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); break; - default: + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: reader.skipType(tag & 7); break; } @@ -21359,107 +20845,127 @@ }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies an UpdateDataRetentionSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + UpdateDataRetentionSettingsRequest.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.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + 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 ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + UpdateDataRetentionSettingsRequest.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 (options.defaults) { + object.dataRetentionSettings = null; + object.updateMask = null; + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) + object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this UpdateDataRetentionSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @instance * @returns {Object.} JSON object */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApproveDisplayVideo360AdvertiserLinkProposalRequest; + return UpdateDataRetentionSettingsRequest; })(); - v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse = (function() { + v1alpha.CreateDataStreamRequest = (function() { /** - * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * Properties of a CreateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IApproveDisplayVideo360AdvertiserLinkProposalResponse - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink + * @interface ICreateDataStreamRequest + * @property {string|null} [parent] CreateDataStreamRequest parent + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream */ /** - * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * Constructs a new CreateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. - * @implements IApproveDisplayVideo360AdvertiserLinkProposalResponse + * @classdesc Represents a CreateDataStreamRequest. + * @implements ICreateDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set */ - function ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties) { + function CreateDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21467,75 +20973,88 @@ } /** - * ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * CreateDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @instance */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.displayVideo_360AdvertiserLink = null; + CreateDataStreamRequest.prototype.parent = ""; /** - * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. + * CreateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @instance + */ + CreateDataStreamRequest.prototype.dataStream = null; + + /** + * Creates a new CreateDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse instance + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest instance */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.create = function create(properties) { - return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties); + CreateDataStreamRequest.create = function create(properties) { + return new CreateDataStreamRequest(properties); }; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.encode = function encode(message, writer) { + CreateDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.decode = function decode(reader, length) { + CreateDataStreamRequest.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.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + case 2: + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21546,112 +21065,121 @@ }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.decodeDelimited = function decodeDelimited(reader) { + CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. + * Verifies a CreateDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify = function verify(message) { + CreateDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); if (error) - return "displayVideo_360AdvertiserLink." + error; + return "dataStream." + error; } return null; }; /** - * Creates an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + CreateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - if (object.displayVideo_360AdvertiserLink != null) { - if (typeof object.displayVideo_360AdvertiserLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.displayVideo_360AdvertiserLink: object expected"); - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + var message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); } return message; }; /** - * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @param {google.analytics.admin.v1alpha.CreateDataStreamRequest} message CreateDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.toObject = function toObject(message, options) { + CreateDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.displayVideo_360AdvertiserLink = null; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) - object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (options.defaults) { + object.parent = ""; + object.dataStream = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); return object; }; /** - * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. + * Converts this CreateDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @instance * @returns {Object.} JSON object */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.toJSON = function toJSON() { + CreateDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApproveDisplayVideo360AdvertiserLinkProposalResponse; + return CreateDataStreamRequest; })(); - v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.DeleteDataStreamRequest = (function() { /** - * Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a DeleteDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICancelDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] CancelDisplayVideo360AdvertiserLinkProposalRequest name + * @interface IDeleteDataStreamRequest + * @property {string|null} [name] DeleteDataStreamRequest name */ /** - * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new DeleteDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. - * @implements ICancelDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a DeleteDataStreamRequest. + * @implements IDeleteDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set */ - function CancelDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function DeleteDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21659,35 +21187,35 @@ } /** - * CancelDisplayVideo360AdvertiserLinkProposalRequest name. + * DeleteDataStreamRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @instance */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + DeleteDataStreamRequest.prototype.name = ""; /** - * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new DeleteDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest instance */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new CancelDisplayVideo360AdvertiserLinkProposalRequest(properties); + DeleteDataStreamRequest.create = function create(properties) { + return new DeleteDataStreamRequest(properties); }; /** - * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + DeleteDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -21696,33 +21224,33 @@ }; /** - * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + DeleteDataStreamRequest.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.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21738,30 +21266,30 @@ }; /** - * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a DeleteDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + DeleteDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -21771,32 +21299,32 @@ }; /** - * Creates a CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + DeleteDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.DeleteDataStreamRequest} message DeleteDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + DeleteDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21808,38 +21336,38 @@ }; /** - * Converts this CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this DeleteDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @instance * @returns {Object.} JSON object */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + DeleteDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelDisplayVideo360AdvertiserLinkProposalRequest; + return DeleteDataStreamRequest; })(); - v1alpha.CreateCustomDimensionRequest = (function() { + v1alpha.UpdateDataStreamRequest = (function() { /** - * Properties of a CreateCustomDimensionRequest. + * Properties of an UpdateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomDimensionRequest - * @property {string|null} [parent] CreateCustomDimensionRequest parent - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension + * @interface IUpdateDataStreamRequest + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask */ /** - * Constructs a new CreateCustomDimensionRequest. + * Constructs a new UpdateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomDimensionRequest. - * @implements ICreateCustomDimensionRequest + * @classdesc Represents an UpdateDataStreamRequest. + * @implements IUpdateDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set */ - function CreateCustomDimensionRequest(properties) { + function UpdateDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21847,88 +21375,88 @@ } /** - * CreateCustomDimensionRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * UpdateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance */ - CreateCustomDimensionRequest.prototype.parent = ""; + UpdateDataStreamRequest.prototype.dataStream = null; /** - * CreateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * UpdateDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance */ - CreateCustomDimensionRequest.prototype.customDimension = null; + UpdateDataStreamRequest.prototype.updateMask = null; /** - * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * Creates a new UpdateDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest instance */ - CreateCustomDimensionRequest.create = function create(properties) { - return new CreateCustomDimensionRequest(properties); + UpdateDataStreamRequest.create = function create(properties) { + return new UpdateDataStreamRequest(properties); }; /** - * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encode = function encode(message, writer) { + UpdateDataStreamRequest.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.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, 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 CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decode = function decode(reader, length) { + UpdateDataStreamRequest.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.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); break; case 2: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21939,122 +21467,128 @@ }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomDimensionRequest message. + * Verifies an UpdateDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomDimensionRequest.verify = function verify(message) { + UpdateDataStreamRequest.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.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); if (error) - return "customDimension." + error; + return "dataStream." + 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 a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest */ - CreateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + UpdateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + var message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.UpdateDataStreamRequest} message UpdateDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomDimensionRequest.toObject = function toObject(message, options) { + UpdateDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.customDimension = null; + object.dataStream = null; + object.updateMask = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this CreateCustomDimensionRequest to JSON. + * Converts this UpdateDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance * @returns {Object.} JSON object */ - CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { + UpdateDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateCustomDimensionRequest; + return UpdateDataStreamRequest; })(); - v1alpha.UpdateCustomDimensionRequest = (function() { + v1alpha.ListDataStreamsRequest = (function() { /** - * Properties of an UpdateCustomDimensionRequest. + * Properties of a ListDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomDimensionRequest - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask + * @interface IListDataStreamsRequest + * @property {string|null} [parent] ListDataStreamsRequest parent + * @property {number|null} [pageSize] ListDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListDataStreamsRequest pageToken */ /** - * Constructs a new UpdateCustomDimensionRequest. + * Constructs a new ListDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomDimensionRequest. - * @implements IUpdateCustomDimensionRequest + * @classdesc Represents a ListDataStreamsRequest. + * @implements IListDataStreamsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set */ - function UpdateCustomDimensionRequest(properties) { + function ListDataStreamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22062,88 +21596,101 @@ } /** - * UpdateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * ListDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance */ - UpdateCustomDimensionRequest.prototype.customDimension = null; + ListDataStreamsRequest.prototype.parent = ""; /** - * UpdateCustomDimensionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * ListDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance */ - UpdateCustomDimensionRequest.prototype.updateMask = null; + ListDataStreamsRequest.prototype.pageSize = 0; /** - * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * ListDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDataStreamsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest instance */ - UpdateCustomDimensionRequest.create = function create(properties) { - return new UpdateCustomDimensionRequest(properties); + ListDataStreamsRequest.create = function create(properties) { + return new ListDataStreamsRequest(properties); }; /** - * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encode = function encode(message, writer) { + ListDataStreamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decode = function decode(reader, length) { + ListDataStreamsRequest.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.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -22154,128 +21701,126 @@ }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCustomDimensionRequest message. + * Verifies a ListDataStreamsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCustomDimensionRequest.verify = function verify(message) { + ListDataStreamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest */ - UpdateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + ListDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); + 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 an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.ListDataStreamsRequest} message ListDataStreamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCustomDimensionRequest.toObject = function toObject(message, options) { + ListDataStreamsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.customDimension = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateCustomDimensionRequest to JSON. + * Converts this ListDataStreamsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance * @returns {Object.} JSON object */ - UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { + ListDataStreamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateCustomDimensionRequest; + return ListDataStreamsRequest; })(); - v1alpha.ListCustomDimensionsRequest = (function() { + v1alpha.ListDataStreamsResponse = (function() { /** - * Properties of a ListCustomDimensionsRequest. + * Properties of a ListDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsRequest - * @property {string|null} [parent] ListCustomDimensionsRequest parent - * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize - * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken + * @interface IListDataStreamsResponse + * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams + * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken */ /** - * Constructs a new ListCustomDimensionsRequest. + * Constructs a new ListDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsRequest. - * @implements IListCustomDimensionsRequest + * @classdesc Represents a ListDataStreamsResponse. + * @implements IListDataStreamsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set */ - function ListCustomDimensionsRequest(properties) { + function ListDataStreamsResponse(properties) { + this.dataStreams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22283,4934 +21828,228 @@ } /** - * ListCustomDimensionsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @instance - */ - ListCustomDimensionsRequest.prototype.parent = ""; - - /** - * ListCustomDimensionsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * ListDataStreamsResponse dataStreams. + * @member {Array.} dataStreams + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance */ - ListCustomDimensionsRequest.prototype.pageSize = 0; + ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; /** - * ListCustomDimensionsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * ListDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance */ - ListCustomDimensionsRequest.prototype.pageToken = ""; + ListDataStreamsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * Creates a new ListDataStreamsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse instance */ - ListCustomDimensionsRequest.create = function create(properties) { - return new ListCustomDimensionsRequest(properties); + ListDataStreamsResponse.create = function create(properties) { + return new ListDataStreamsResponse(properties); }; - /** - * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomDimensionsRequest.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.analytics.admin.v1alpha.ListCustomDimensionsRequest(); - 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 ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListCustomDimensionsRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest - */ - ListCustomDimensionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); - 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 ListCustomDimensionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListCustomDimensionsRequest.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 ListCustomDimensionsRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @instance - * @returns {Object.} JSON object - */ - ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListCustomDimensionsRequest; - })(); - - v1alpha.ListCustomDimensionsResponse = (function() { - - /** - * Properties of a ListCustomDimensionsResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsResponse - * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions - * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken - */ - - /** - * Constructs a new ListCustomDimensionsResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsResponse. - * @implements IListCustomDimensionsResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set - */ - function ListCustomDimensionsResponse(properties) { - this.customDimensions = []; - 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]]; - } - - /** - * ListCustomDimensionsResponse customDimensions. - * @member {Array.} customDimensions - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @instance - */ - ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; - - /** - * ListCustomDimensionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @instance - */ - ListCustomDimensionsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListCustomDimensionsResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance - */ - ListCustomDimensionsResponse.create = function create(properties) { - return new ListCustomDimensionsResponse(properties); - }; - - /** - * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomDimensionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.customDimensions != null && message.customDimensions.length) - for (var i = 0; i < message.customDimensions.length; ++i) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[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 ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomDimensionsResponse.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.analytics.admin.v1alpha.ListCustomDimensionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.customDimensions && message.customDimensions.length)) - message.customDimensions = []; - message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListCustomDimensionsResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListCustomDimensionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { - if (!Array.isArray(message.customDimensions)) - return "customDimensions: array expected"; - for (var i = 0; i < message.customDimensions.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); - if (error) - return "customDimensions." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse - */ - ListCustomDimensionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); - if (object.customDimensions) { - if (!Array.isArray(object.customDimensions)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); - message.customDimensions = []; - for (var i = 0; i < object.customDimensions.length; ++i) { - if (typeof object.customDimensions[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); - message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListCustomDimensionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.customDimensions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customDimensions && message.customDimensions.length) { - object.customDimensions = []; - for (var j = 0; j < message.customDimensions.length; ++j) - object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListCustomDimensionsResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse - * @instance - * @returns {Object.} JSON object - */ - ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListCustomDimensionsResponse; - })(); - - v1alpha.ArchiveCustomDimensionRequest = (function() { - - /** - * Properties of an ArchiveCustomDimensionRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomDimensionRequest - * @property {string|null} [name] ArchiveCustomDimensionRequest name - */ - - /** - * Constructs a new ArchiveCustomDimensionRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomDimensionRequest. - * @implements IArchiveCustomDimensionRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set - */ - function ArchiveCustomDimensionRequest(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]]; - } - - /** - * ArchiveCustomDimensionRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @instance - */ - ArchiveCustomDimensionRequest.prototype.name = ""; - - /** - * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance - */ - ArchiveCustomDimensionRequest.create = function create(properties) { - return new ArchiveCustomDimensionRequest(properties); - }; - - /** - * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArchiveCustomDimensionRequest.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.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); - 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 an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ArchiveCustomDimensionRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArchiveCustomDimensionRequest.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 an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest - */ - ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - * @instance - * @returns {Object.} JSON object - */ - ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ArchiveCustomDimensionRequest; - })(); - - v1alpha.GetCustomDimensionRequest = (function() { - - /** - * Properties of a GetCustomDimensionRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomDimensionRequest - * @property {string|null} [name] GetCustomDimensionRequest name - */ - - /** - * Constructs a new GetCustomDimensionRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomDimensionRequest. - * @implements IGetCustomDimensionRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set - */ - function GetCustomDimensionRequest(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]]; - } - - /** - * GetCustomDimensionRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @instance - */ - GetCustomDimensionRequest.prototype.name = ""; - - /** - * Creates a new GetCustomDimensionRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance - */ - GetCustomDimensionRequest.create = function create(properties) { - return new GetCustomDimensionRequest(properties); - }; - - /** - * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetCustomDimensionRequest.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 GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetCustomDimensionRequest.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.analytics.admin.v1alpha.GetCustomDimensionRequest(); - 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 GetCustomDimensionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetCustomDimensionRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetCustomDimensionRequest.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 GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest - */ - GetCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @static - * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetCustomDimensionRequest.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 GetCustomDimensionRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest - * @instance - * @returns {Object.} JSON object - */ - GetCustomDimensionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetCustomDimensionRequest; - })(); - - v1alpha.CreateCustomMetricRequest = (function() { - - /** - * Properties of a CreateCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomMetricRequest - * @property {string|null} [parent] CreateCustomMetricRequest parent - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric - */ - - /** - * Constructs a new CreateCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomMetricRequest. - * @implements ICreateCustomMetricRequest - * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set - */ - function CreateCustomMetricRequest(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]]; - } - - /** - * CreateCustomMetricRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @instance - */ - CreateCustomMetricRequest.prototype.parent = ""; - - /** - * CreateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @instance - */ - CreateCustomMetricRequest.prototype.customMetric = null; - - /** - * Creates a new CreateCustomMetricRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance - */ - CreateCustomMetricRequest.create = function create(properties) { - return new CreateCustomMetricRequest(properties); - }; - - /** - * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateCustomMetricRequest.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.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateCustomMetricRequest.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.analytics.admin.v1alpha.CreateCustomMetricRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateCustomMetricRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateCustomMetricRequest.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.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + error; - } - return null; - }; - - /** - * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest - */ - CreateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } - return message; - }; - - /** - * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateCustomMetricRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.customMetric = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); - return object; - }; - - /** - * Converts this CreateCustomMetricRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest - * @instance - * @returns {Object.} JSON object - */ - CreateCustomMetricRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateCustomMetricRequest; - })(); - - v1alpha.UpdateCustomMetricRequest = (function() { - - /** - * Properties of an UpdateCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomMetricRequest - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask - */ - - /** - * Constructs a new UpdateCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomMetricRequest. - * @implements IUpdateCustomMetricRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set - */ - function UpdateCustomMetricRequest(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]]; - } - - /** - * UpdateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @instance - */ - UpdateCustomMetricRequest.prototype.customMetric = null; - - /** - * UpdateCustomMetricRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @instance - */ - UpdateCustomMetricRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateCustomMetricRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance - */ - UpdateCustomMetricRequest.create = function create(properties) { - return new UpdateCustomMetricRequest(properties); - }; - - /** - * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateCustomMetricRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, 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 UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateCustomMetricRequest.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.analytics.admin.v1alpha.UpdateCustomMetricRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.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 UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateCustomMetricRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateCustomMetricRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest - */ - UpdateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; - - /** - * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateCustomMetricRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.customMetric = null; - object.updateMask = null; - } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; - - /** - * Converts this UpdateCustomMetricRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateCustomMetricRequest; - })(); - - v1alpha.ListCustomMetricsRequest = (function() { - - /** - * Properties of a ListCustomMetricsRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsRequest - * @property {string|null} [parent] ListCustomMetricsRequest parent - * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize - * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken - */ - - /** - * Constructs a new ListCustomMetricsRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsRequest. - * @implements IListCustomMetricsRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set - */ - function ListCustomMetricsRequest(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]]; - } - - /** - * ListCustomMetricsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @instance - */ - ListCustomMetricsRequest.prototype.parent = ""; - - /** - * ListCustomMetricsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @instance - */ - ListCustomMetricsRequest.prototype.pageSize = 0; - - /** - * ListCustomMetricsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @instance - */ - ListCustomMetricsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListCustomMetricsRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance - */ - ListCustomMetricsRequest.create = function create(properties) { - return new ListCustomMetricsRequest(properties); - }; - - /** - * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomMetricsRequest.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 ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomMetricsRequest.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.analytics.admin.v1alpha.ListCustomMetricsRequest(); - 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 ListCustomMetricsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListCustomMetricsRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListCustomMetricsRequest.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 ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest - */ - ListCustomMetricsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); - 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 ListCustomMetricsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListCustomMetricsRequest.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 ListCustomMetricsRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @instance - * @returns {Object.} JSON object - */ - ListCustomMetricsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListCustomMetricsRequest; - })(); - - v1alpha.ListCustomMetricsResponse = (function() { - - /** - * Properties of a ListCustomMetricsResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsResponse - * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics - * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken - */ - - /** - * Constructs a new ListCustomMetricsResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsResponse. - * @implements IListCustomMetricsResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set - */ - function ListCustomMetricsResponse(properties) { - this.customMetrics = []; - 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]]; - } - - /** - * ListCustomMetricsResponse customMetrics. - * @member {Array.} customMetrics - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @instance - */ - ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; - - /** - * ListCustomMetricsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @instance - */ - ListCustomMetricsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListCustomMetricsResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance - */ - ListCustomMetricsResponse.create = function create(properties) { - return new ListCustomMetricsResponse(properties); - }; - - /** - * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomMetricsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.customMetrics != null && message.customMetrics.length) - for (var i = 0; i < message.customMetrics.length; ++i) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[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 ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomMetricsResponse.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.analytics.admin.v1alpha.ListCustomMetricsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.customMetrics && message.customMetrics.length)) - message.customMetrics = []; - message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListCustomMetricsResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListCustomMetricsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { - if (!Array.isArray(message.customMetrics)) - return "customMetrics: array expected"; - for (var i = 0; i < message.customMetrics.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); - if (error) - return "customMetrics." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse - */ - ListCustomMetricsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); - if (object.customMetrics) { - if (!Array.isArray(object.customMetrics)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); - message.customMetrics = []; - for (var i = 0; i < object.customMetrics.length; ++i) { - if (typeof object.customMetrics[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); - message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListCustomMetricsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.customMetrics = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customMetrics && message.customMetrics.length) { - object.customMetrics = []; - for (var j = 0; j < message.customMetrics.length; ++j) - object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListCustomMetricsResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse - * @instance - * @returns {Object.} JSON object - */ - ListCustomMetricsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListCustomMetricsResponse; - })(); - - v1alpha.ArchiveCustomMetricRequest = (function() { - - /** - * Properties of an ArchiveCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomMetricRequest - * @property {string|null} [name] ArchiveCustomMetricRequest name - */ - - /** - * Constructs a new ArchiveCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomMetricRequest. - * @implements IArchiveCustomMetricRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set - */ - function ArchiveCustomMetricRequest(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]]; - } - - /** - * ArchiveCustomMetricRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @instance - */ - ArchiveCustomMetricRequest.prototype.name = ""; - - /** - * Creates a new ArchiveCustomMetricRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance - */ - ArchiveCustomMetricRequest.create = function create(properties) { - return new ArchiveCustomMetricRequest(properties); - }; - - /** - * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArchiveCustomMetricRequest.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.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); - 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 an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ArchiveCustomMetricRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArchiveCustomMetricRequest.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 an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest - */ - ArchiveCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @instance - * @returns {Object.} JSON object - */ - ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ArchiveCustomMetricRequest; - })(); - - v1alpha.GetCustomMetricRequest = (function() { - - /** - * Properties of a GetCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomMetricRequest - * @property {string|null} [name] GetCustomMetricRequest name - */ - - /** - * Constructs a new GetCustomMetricRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomMetricRequest. - * @implements IGetCustomMetricRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set - */ - function GetCustomMetricRequest(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]]; - } - - /** - * GetCustomMetricRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @instance - */ - GetCustomMetricRequest.prototype.name = ""; - - /** - * Creates a new GetCustomMetricRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance - */ - GetCustomMetricRequest.create = function create(properties) { - return new GetCustomMetricRequest(properties); - }; - - /** - * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetCustomMetricRequest.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 GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetCustomMetricRequest.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.analytics.admin.v1alpha.GetCustomMetricRequest(); - 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 GetCustomMetricRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetCustomMetricRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetCustomMetricRequest.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 GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest - */ - GetCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetCustomMetricRequest.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 GetCustomMetricRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest - * @instance - * @returns {Object.} JSON object - */ - GetCustomMetricRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetCustomMetricRequest; - })(); - - v1alpha.GetDataRetentionSettingsRequest = (function() { - - /** - * Properties of a GetDataRetentionSettingsRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetDataRetentionSettingsRequest - * @property {string|null} [name] GetDataRetentionSettingsRequest name - */ - - /** - * Constructs a new GetDataRetentionSettingsRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataRetentionSettingsRequest. - * @implements IGetDataRetentionSettingsRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set - */ - function GetDataRetentionSettingsRequest(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]]; - } - - /** - * GetDataRetentionSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @instance - */ - GetDataRetentionSettingsRequest.prototype.name = ""; - - /** - * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance - */ - GetDataRetentionSettingsRequest.create = function create(properties) { - return new GetDataRetentionSettingsRequest(properties); - }; - - /** - * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataRetentionSettingsRequest.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.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); - 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 GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetDataRetentionSettingsRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest - */ - GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @instance - * @returns {Object.} JSON object - */ - GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetDataRetentionSettingsRequest; - })(); - - v1alpha.UpdateDataRetentionSettingsRequest = (function() { - - /** - * Properties of an UpdateDataRetentionSettingsRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDataRetentionSettingsRequest - * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask - */ - - /** - * Constructs a new UpdateDataRetentionSettingsRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDataRetentionSettingsRequest. - * @implements IUpdateDataRetentionSettingsRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set - */ - function UpdateDataRetentionSettingsRequest(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]]; - } - - /** - * UpdateDataRetentionSettingsRequest dataRetentionSettings. - * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @instance - */ - UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; - - /** - * UpdateDataRetentionSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @instance - */ - UpdateDataRetentionSettingsRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance - */ - UpdateDataRetentionSettingsRequest.create = function create(properties) { - return new UpdateDataRetentionSettingsRequest(properties); - }; - - /** - * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateDataRetentionSettingsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) - $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, 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 UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateDataRetentionSettingsRequest.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.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.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 UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateDataRetentionSettingsRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateDataRetentionSettingsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { - var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); - if (error) - return "dataRetentionSettings." + 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 UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest - */ - UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); - if (object.dataRetentionSettings != null) { - if (typeof object.dataRetentionSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; - - /** - * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateDataRetentionSettingsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dataRetentionSettings = null; - object.updateMask = null; - } - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) - object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; - - /** - * Converts this UpdateDataRetentionSettingsRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateDataRetentionSettingsRequest; - })(); - - v1alpha.CreateDataStreamRequest = (function() { - - /** - * Properties of a CreateDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @interface ICreateDataStreamRequest - * @property {string|null} [parent] CreateDataStreamRequest parent - * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream - */ - - /** - * Constructs a new CreateDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateDataStreamRequest. - * @implements ICreateDataStreamRequest - * @constructor - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set - */ - function CreateDataStreamRequest(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]]; - } - - /** - * CreateDataStreamRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @instance - */ - CreateDataStreamRequest.prototype.parent = ""; - - /** - * CreateDataStreamRequest dataStream. - * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @instance - */ - CreateDataStreamRequest.prototype.dataStream = null; - - /** - * Creates a new CreateDataStreamRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest instance - */ - CreateDataStreamRequest.create = function create(properties) { - return new CreateDataStreamRequest(properties); - }; - - /** - * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDataStreamRequest.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.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDataStreamRequest.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.analytics.admin.v1alpha.CreateDataStreamRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateDataStreamRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDataStreamRequest.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.dataStream != null && message.hasOwnProperty("dataStream")) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); - if (error) - return "dataStream." + error; - } - return null; - }; - - /** - * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest - */ - CreateDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateDataStreamRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.dataStream != null) { - if (typeof object.dataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateDataStreamRequest.dataStream: object expected"); - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); - } - return message; - }; - - /** - * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.CreateDataStreamRequest} message CreateDataStreamRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateDataStreamRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataStream = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.dataStream != null && message.hasOwnProperty("dataStream")) - object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); - return object; - }; - - /** - * Converts this CreateDataStreamRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @instance - * @returns {Object.} JSON object - */ - CreateDataStreamRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateDataStreamRequest; - })(); - - v1alpha.DeleteDataStreamRequest = (function() { - - /** - * Properties of a DeleteDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IDeleteDataStreamRequest - * @property {string|null} [name] DeleteDataStreamRequest name - */ - - /** - * Constructs a new DeleteDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteDataStreamRequest. - * @implements IDeleteDataStreamRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set - */ - function DeleteDataStreamRequest(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]]; - } - - /** - * DeleteDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @instance - */ - DeleteDataStreamRequest.prototype.name = ""; - - /** - * Creates a new DeleteDataStreamRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest instance - */ - DeleteDataStreamRequest.create = function create(properties) { - return new DeleteDataStreamRequest(properties); - }; - - /** - * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteDataStreamRequest.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 DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteDataStreamRequest.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.analytics.admin.v1alpha.DeleteDataStreamRequest(); - 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 DeleteDataStreamRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteDataStreamRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteDataStreamRequest.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 DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest - */ - DeleteDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.DeleteDataStreamRequest} message DeleteDataStreamRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteDataStreamRequest.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 DeleteDataStreamRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteDataStreamRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteDataStreamRequest; - })(); - - v1alpha.UpdateDataStreamRequest = (function() { - - /** - * Properties of an UpdateDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDataStreamRequest - * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask - */ - - /** - * Constructs a new UpdateDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDataStreamRequest. - * @implements IUpdateDataStreamRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set - */ - function UpdateDataStreamRequest(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]]; - } - - /** - * UpdateDataStreamRequest dataStream. - * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @instance - */ - UpdateDataStreamRequest.prototype.dataStream = null; - - /** - * UpdateDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @instance - */ - UpdateDataStreamRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateDataStreamRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest instance - */ - UpdateDataStreamRequest.create = function create(properties) { - return new UpdateDataStreamRequest(properties); - }; - - /** - * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateDataStreamRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, 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 UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateDataStreamRequest.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.analytics.admin.v1alpha.UpdateDataStreamRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.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 UpdateDataStreamRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateDataStreamRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateDataStreamRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataStream != null && message.hasOwnProperty("dataStream")) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); - if (error) - return "dataStream." + 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 UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest - */ - UpdateDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); - if (object.dataStream != null) { - if (typeof object.dataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.dataStream: object expected"); - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; - - /** - * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.UpdateDataStreamRequest} message UpdateDataStreamRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateDataStreamRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dataStream = null; - object.updateMask = null; - } - if (message.dataStream != null && message.hasOwnProperty("dataStream")) - object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; - - /** - * Converts this UpdateDataStreamRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateDataStreamRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateDataStreamRequest; - })(); - - v1alpha.ListDataStreamsRequest = (function() { - - /** - * Properties of a ListDataStreamsRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IListDataStreamsRequest - * @property {string|null} [parent] ListDataStreamsRequest parent - * @property {number|null} [pageSize] ListDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListDataStreamsRequest pageToken - */ - - /** - * Constructs a new ListDataStreamsRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDataStreamsRequest. - * @implements IListDataStreamsRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set - */ - function ListDataStreamsRequest(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]]; - } - - /** - * ListDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @instance - */ - ListDataStreamsRequest.prototype.parent = ""; - - /** - * ListDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @instance - */ - ListDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @instance - */ - ListDataStreamsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListDataStreamsRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest instance - */ - ListDataStreamsRequest.create = function create(properties) { - return new ListDataStreamsRequest(properties); - }; - - /** - * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListDataStreamsRequest.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 ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListDataStreamsRequest.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.analytics.admin.v1alpha.ListDataStreamsRequest(); - 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 ListDataStreamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListDataStreamsRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListDataStreamsRequest.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 ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest - */ - ListDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); - 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 ListDataStreamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @static - * @param {google.analytics.admin.v1alpha.ListDataStreamsRequest} message ListDataStreamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListDataStreamsRequest.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 ListDataStreamsRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @instance - * @returns {Object.} JSON object - */ - ListDataStreamsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListDataStreamsRequest; - })(); - - v1alpha.ListDataStreamsResponse = (function() { - - /** - * Properties of a ListDataStreamsResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IListDataStreamsResponse - * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams - * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken - */ - - /** - * Constructs a new ListDataStreamsResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDataStreamsResponse. - * @implements IListDataStreamsResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set - */ - function ListDataStreamsResponse(properties) { - this.dataStreams = []; - 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]]; - } - - /** - * ListDataStreamsResponse dataStreams. - * @member {Array.} dataStreams - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @instance - */ - ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; - - /** - * ListDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @instance - */ - ListDataStreamsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListDataStreamsResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse instance - */ - ListDataStreamsResponse.create = function create(properties) { - return new ListDataStreamsResponse(properties); - }; - - /** - * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListDataStreamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataStreams != null && message.dataStreams.length) - for (var i = 0; i < message.dataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStreams[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 ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListDataStreamsResponse.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.analytics.admin.v1alpha.ListDataStreamsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.dataStreams && message.dataStreams.length)) - message.dataStreams = []; - message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListDataStreamsResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListDataStreamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { - if (!Array.isArray(message.dataStreams)) - return "dataStreams: array expected"; - for (var i = 0; i < message.dataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStreams[i]); - if (error) - return "dataStreams." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse - */ - ListDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); - if (object.dataStreams) { - if (!Array.isArray(object.dataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: array expected"); - message.dataStreams = []; - for (var i = 0; i < object.dataStreams.length; ++i) { - if (typeof object.dataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: object expected"); - message.dataStreams[i] = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStreams[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @static - * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} message ListDataStreamsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListDataStreamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.dataStreams = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.dataStreams && message.dataStreams.length) { - object.dataStreams = []; - for (var j = 0; j < message.dataStreams.length; ++j) - object.dataStreams[j] = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStreams[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListDataStreamsResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @instance - * @returns {Object.} JSON object - */ - ListDataStreamsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListDataStreamsResponse; - })(); - - v1alpha.GetDataStreamRequest = (function() { - - /** - * Properties of a GetDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetDataStreamRequest - * @property {string|null} [name] GetDataStreamRequest name - */ - - /** - * Constructs a new GetDataStreamRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataStreamRequest. - * @implements IGetDataStreamRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set - */ - function GetDataStreamRequest(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]]; - } - - /** - * GetDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @instance - */ - GetDataStreamRequest.prototype.name = ""; - - /** - * Creates a new GetDataStreamRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest instance - */ - GetDataStreamRequest.create = function create(properties) { - return new GetDataStreamRequest(properties); - }; - - /** - * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataStreamRequest.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 GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataStreamRequest.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.analytics.admin.v1alpha.GetDataStreamRequest(); - 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 GetDataStreamRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetDataStreamRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDataStreamRequest.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 GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest - */ - GetDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataStreamRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @static - * @param {google.analytics.admin.v1alpha.GetDataStreamRequest} message GetDataStreamRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetDataStreamRequest.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 GetDataStreamRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest - * @instance - * @returns {Object.} JSON object - */ - GetDataStreamRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetDataStreamRequest; - })(); - - /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory - * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); - - /** - * ServiceLevel enum. - * @name google.analytics.admin.v1alpha.ServiceLevel - * @enum {number} - * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value - * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value - * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value - */ - v1alpha.ServiceLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; - values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; - return values; - })(); - - /** - * ActorType enum. - * @name google.analytics.admin.v1alpha.ActorType - * @enum {number} - * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value - * @property {number} SUPPORT=3 SUPPORT value - */ - v1alpha.ActorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - values[valuesById[3] = "SUPPORT"] = 3; - return values; - })(); - - /** - * ActionType enum. - * @name google.analytics.admin.v1alpha.ActionType - * @enum {number} - * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value - * @property {number} CREATED=1 CREATED value - * @property {number} UPDATED=2 UPDATED value - * @property {number} DELETED=3 DELETED value - */ - v1alpha.ActionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATED"] = 1; - values[valuesById[2] = "UPDATED"] = 2; - values[valuesById[3] = "DELETED"] = 3; - return values; - })(); - - /** - * ChangeHistoryResourceType enum. - * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType - * @enum {number} - * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value - * @property {number} ACCOUNT=1 ACCOUNT value - * @property {number} PROPERTY=2 PROPERTY value - * @property {number} WEB_DATA_STREAM=3 WEB_DATA_STREAM value - * @property {number} ANDROID_APP_DATA_STREAM=4 ANDROID_APP_DATA_STREAM value - * @property {number} IOS_APP_DATA_STREAM=5 IOS_APP_DATA_STREAM value - * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value - * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value - * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value - * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value - * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value - * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value - * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value - * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value - * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK=14 DISPLAY_VIDEO_360_ADVERTISER_LINK value - * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL=15 DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL value - */ - v1alpha.ChangeHistoryResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACCOUNT"] = 1; - values[valuesById[2] = "PROPERTY"] = 2; - values[valuesById[3] = "WEB_DATA_STREAM"] = 3; - values[valuesById[4] = "ANDROID_APP_DATA_STREAM"] = 4; - values[valuesById[5] = "IOS_APP_DATA_STREAM"] = 5; - values[valuesById[6] = "FIREBASE_LINK"] = 6; - values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; - values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; - values[valuesById[9] = "CONVERSION_EVENT"] = 9; - values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; - values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; - values[valuesById[12] = "CUSTOM_METRIC"] = 12; - values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; - values[valuesById[14] = "DISPLAY_VIDEO_360_ADVERTISER_LINK"] = 14; - values[valuesById[15] = "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"] = 15; - return values; - })(); - - /** - * GoogleSignalsState enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsState - * @enum {number} - * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value - * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value - */ - v1alpha.GoogleSignalsState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; - values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; - return values; - })(); - - /** - * GoogleSignalsConsent enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsConsent - * @enum {number} - * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value - * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value - */ - v1alpha.GoogleSignalsConsent = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; - values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; - values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; - return values; - })(); - - /** - * LinkProposalInitiatingProduct enum. - * @name google.analytics.admin.v1alpha.LinkProposalInitiatingProduct - * @enum {number} - * @property {number} LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED=0 LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED value - * @property {number} GOOGLE_ANALYTICS=1 GOOGLE_ANALYTICS value - * @property {number} LINKED_PRODUCT=2 LINKED_PRODUCT value - */ - v1alpha.LinkProposalInitiatingProduct = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_ANALYTICS"] = 1; - values[valuesById[2] = "LINKED_PRODUCT"] = 2; - return values; - })(); - - /** - * LinkProposalState enum. - * @name google.analytics.admin.v1alpha.LinkProposalState - * @enum {number} - * @property {number} LINK_PROPOSAL_STATE_UNSPECIFIED=0 LINK_PROPOSAL_STATE_UNSPECIFIED value - * @property {number} AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS=1 AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS value - * @property {number} AWAITING_REVIEW_FROM_LINKED_PRODUCT=2 AWAITING_REVIEW_FROM_LINKED_PRODUCT value - * @property {number} WITHDRAWN=3 WITHDRAWN value - * @property {number} DECLINED=4 DECLINED value - * @property {number} EXPIRED=5 EXPIRED value - * @property {number} OBSOLETE=6 OBSOLETE value - */ - v1alpha.LinkProposalState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LINK_PROPOSAL_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS"] = 1; - values[valuesById[2] = "AWAITING_REVIEW_FROM_LINKED_PRODUCT"] = 2; - values[valuesById[3] = "WITHDRAWN"] = 3; - values[valuesById[4] = "DECLINED"] = 4; - values[valuesById[5] = "EXPIRED"] = 5; - values[valuesById[6] = "OBSOLETE"] = 6; - return values; - })(); - - v1alpha.Account = (function() { - - /** - * Properties of an Account. - * @memberof google.analytics.admin.v1alpha - * @interface IAccount - * @property {string|null} [name] Account name - * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime - * @property {string|null} [displayName] Account displayName - * @property {string|null} [regionCode] Account regionCode - * @property {boolean|null} [deleted] Account deleted - */ - - /** - * Constructs a new Account. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Account. - * @implements IAccount - * @constructor - * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.name = ""; - - /** - * Account createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.createTime = null; - - /** - * Account updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.updateTime = null; - - /** - * Account displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.displayName = ""; - - /** - * Account regionCode. - * @member {string} regionCode - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.regionCode = ""; - - /** - * Account deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Account - * @instance - */ - Account.prototype.deleted = false; - - /** - * Creates a new Account instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.Account - * @static - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Account} Account instance - */ - Account.create = function create(properties) { - return new Account(properties); - }; - - /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.Account - * @static - * @param {google.analytics.admin.v1alpha.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.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); - return writer; - }; - - /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Account - * @static - * @param {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.displayName = reader.string(); - break; - case 5: - message.regionCode = reader.string(); - break; - case 6: - message.deleted = reader.bool(); - 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.analytics.admin.v1alpha.Account - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - if (!$util.isString(message.regionCode)) - return "regionCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; - return null; - }; - - /** - * Creates an Account message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.Account - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Account} Account - */ - Account.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Account) - return object; - var message = new $root.google.analytics.admin.v1alpha.Account(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.regionCode != null) - message.regionCode = String(object.regionCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); - return message; - }; - - /** - * Creates a plain object from an Account message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.Account - * @static - * @param {google.analytics.admin.v1alpha.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 = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.regionCode = ""; - object.deleted = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - object.regionCode = message.regionCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; - return object; - }; - - /** - * Converts this Account to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.Account - * @instance - * @returns {Object.} JSON object - */ - Account.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Account; - })(); - - v1alpha.Property = (function() { - - /** - * Properties of a Property. - * @memberof google.analytics.admin.v1alpha - * @interface IProperty - * @property {string|null} [name] Property name - * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime - * @property {string|null} [parent] Property parent - * @property {string|null} [displayName] Property displayName - * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory - * @property {string|null} [timeZone] Property timeZone - * @property {string|null} [currencyCode] Property currencyCode - * @property {google.analytics.admin.v1alpha.ServiceLevel|null} [serviceLevel] Property serviceLevel - * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime - * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime - * @property {string|null} [account] Property account - */ - - /** - * Constructs a new Property. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a Property. - * @implements IProperty - * @constructor - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - */ - function Property(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]]; - } - - /** - * Property name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.name = ""; - - /** - * Property createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.createTime = null; - - /** - * Property updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.updateTime = null; - - /** - * Property parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.parent = ""; - - /** - * Property displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.displayName = ""; - - /** - * Property industryCategory. - * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.industryCategory = 0; - - /** - * Property timeZone. - * @member {string} timeZone - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.timeZone = ""; - - /** - * Property currencyCode. - * @member {string} currencyCode - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.currencyCode = ""; - - /** - * Property serviceLevel. - * @member {google.analytics.admin.v1alpha.ServiceLevel} serviceLevel - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.serviceLevel = 0; - - /** - * Property deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.deleteTime = null; - - /** - * Property expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.expireTime = null; - - /** - * Property account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.account = ""; - - /** - * Creates a new Property instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Property} Property instance - */ - Property.create = function create(properties) { - return new Property(properties); - }; - - /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Property.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); - if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); - if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); - if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.account); - return writer; - }; - - /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Property.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Property message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Property} Property - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Property.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.analytics.admin.v1alpha.Property(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; - case 5: - message.displayName = reader.string(); - break; - case 6: - message.industryCategory = reader.int32(); - break; - case 7: - message.timeZone = reader.string(); - break; - case 8: - message.currencyCode = reader.string(); - break; - case 10: - message.serviceLevel = reader.int32(); - break; - case 11: - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 13: - message.account = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Property message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Property} Property - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Property.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Property message. - * @function verify - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Property.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - switch (message.industryCategory) { - default: - return "industryCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - break; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - if (!$util.isString(message.currencyCode)) - return "currencyCode: string expected"; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - switch (message.serviceLevel) { - default: - return "serviceLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); - if (error) - return "deleteTime." + error; - } - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } - if (message.account != null && message.hasOwnProperty("account")) - if (!$util.isString(message.account)) - return "account: string expected"; - return null; - }; - - /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Property} Property - */ - Property.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Property) - return object; - var message = new $root.google.analytics.admin.v1alpha.Property(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.industryCategory) { - case "INDUSTRY_CATEGORY_UNSPECIFIED": - case 0: - message.industryCategory = 0; - break; - case "AUTOMOTIVE": - case 1: - message.industryCategory = 1; - break; - case "BUSINESS_AND_INDUSTRIAL_MARKETS": - case 2: - message.industryCategory = 2; - break; - case "FINANCE": - case 3: - message.industryCategory = 3; - break; - case "HEALTHCARE": - case 4: - message.industryCategory = 4; - break; - case "TECHNOLOGY": - case 5: - message.industryCategory = 5; - break; - case "TRAVEL": - case 6: - message.industryCategory = 6; - break; - case "OTHER": - case 7: - message.industryCategory = 7; - break; - case "ARTS_AND_ENTERTAINMENT": - case 8: - message.industryCategory = 8; - break; - case "BEAUTY_AND_FITNESS": - case 9: - message.industryCategory = 9; - break; - case "BOOKS_AND_LITERATURE": - case 10: - message.industryCategory = 10; - break; - case "FOOD_AND_DRINK": - case 11: - message.industryCategory = 11; - break; - case "GAMES": - case 12: - message.industryCategory = 12; - break; - case "HOBBIES_AND_LEISURE": - case 13: - message.industryCategory = 13; - break; - case "HOME_AND_GARDEN": - case 14: - message.industryCategory = 14; - break; - case "INTERNET_AND_TELECOM": - case 15: - message.industryCategory = 15; - break; - case "LAW_AND_GOVERNMENT": - case 16: - message.industryCategory = 16; - break; - case "NEWS": - case 17: - message.industryCategory = 17; - break; - case "ONLINE_COMMUNITIES": - case 18: - message.industryCategory = 18; - break; - case "PEOPLE_AND_SOCIETY": - case 19: - message.industryCategory = 19; - break; - case "PETS_AND_ANIMALS": - case 20: - message.industryCategory = 20; - break; - case "REAL_ESTATE": - case 21: - message.industryCategory = 21; - break; - case "REFERENCE": - case 22: - message.industryCategory = 22; - break; - case "SCIENCE": - case 23: - message.industryCategory = 23; - break; - case "SPORTS": - case 24: - message.industryCategory = 24; - break; - case "JOBS_AND_EDUCATION": - case 25: - message.industryCategory = 25; - break; - case "SHOPPING": - case 26: - message.industryCategory = 26; - break; - } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.currencyCode != null) - message.currencyCode = String(object.currencyCode); - switch (object.serviceLevel) { - case "SERVICE_LEVEL_UNSPECIFIED": - case 0: - message.serviceLevel = 0; - break; - case "GOOGLE_ANALYTICS_STANDARD": - case 1: - message.serviceLevel = 1; - break; - case "GOOGLE_ANALYTICS_360": - case 2: - message.serviceLevel = 2; - break; + /** + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataStreams != null && message.dataStreams.length) + for (var i = 0; i < message.dataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStreams[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 ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsResponse.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.analytics.admin.v1alpha.ListDataStreamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.dataStreams && message.dataStreams.length)) + message.dataStreams = []; + message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + return message; + }; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataStreamsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataStreamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { + if (!Array.isArray(message.dataStreams)) + return "dataStreams: array expected"; + for (var i = 0; i < message.dataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStreams[i]); + if (error) + return "dataStreams." + error; + } } - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + */ + ListDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); + if (object.dataStreams) { + if (!Array.isArray(object.dataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: array expected"); + message.dataStreams = []; + for (var i = 0; i < object.dataStreams.length; ++i) { + if (typeof object.dataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: object expected"); + message.dataStreams[i] = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStreams[i]); + } } - if (object.account != null) - message.account = String(object.account); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.Property} message Property + * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} message ListDataStreamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Property.toObject = function toObject(message, options) { + ListDataStreamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.parent = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; - object.timeZone = ""; - object.currencyCode = ""; - object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; - object.deleteTime = null; - object.expireTime = null; - object.account = ""; + if (options.arrays || options.defaults) + object.dataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.dataStreams && message.dataStreams.length) { + object.dataStreams = []; + for (var j = 0; j < message.dataStreams.length; ++j) + object.dataStreams[j] = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStreams[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - object.currencyCode = message.currencyCode; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this Property to JSON. + * Converts this ListDataStreamsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Property + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance * @returns {Object.} JSON object */ - Property.prototype.toJSON = function toJSON() { + ListDataStreamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Property; + return ListDataStreamsResponse; })(); - v1alpha.AndroidAppDataStream = (function() { + v1alpha.GetDataStreamRequest = (function() { /** - * Properties of an AndroidAppDataStream. + * Properties of a GetDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAndroidAppDataStream - * @property {string|null} [name] AndroidAppDataStream name - * @property {string|null} [firebaseAppId] AndroidAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] AndroidAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] AndroidAppDataStream updateTime - * @property {string|null} [packageName] AndroidAppDataStream packageName - * @property {string|null} [displayName] AndroidAppDataStream displayName + * @interface IGetDataStreamRequest + * @property {string|null} [name] GetDataStreamRequest name */ /** - * Constructs a new AndroidAppDataStream. + * Constructs a new GetDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AndroidAppDataStream. - * @implements IAndroidAppDataStream + * @classdesc Represents a GetDataStreamRequest. + * @implements IGetDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set */ - function AndroidAppDataStream(properties) { + function GetDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27218,141 +22057,76 @@ } /** - * AndroidAppDataStream name. + * GetDataStreamRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.name = ""; - - /** - * AndroidAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.firebaseAppId = ""; - - /** - * AndroidAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.createTime = null; - - /** - * AndroidAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.updateTime = null; - - /** - * AndroidAppDataStream packageName. - * @member {string} packageName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - */ - AndroidAppDataStream.prototype.packageName = ""; - - /** - * AndroidAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @instance */ - AndroidAppDataStream.prototype.displayName = ""; + GetDataStreamRequest.prototype.name = ""; /** - * Creates a new AndroidAppDataStream instance using the specified properties. + * Creates a new GetDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream instance + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest instance */ - AndroidAppDataStream.create = function create(properties) { - return new AndroidAppDataStream(properties); + GetDataStreamRequest.create = function create(properties) { + return new GetDataStreamRequest(properties); }; /** - * Encodes the specified AndroidAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encode = function encode(message, writer) { + GetDataStreamRequest.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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.packageName); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); return writer; }; /** - * Encodes the specified AndroidAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AndroidAppDataStream.verify|verify} messages. + * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IAndroidAppDataStream} message AndroidAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer. + * Decodes a GetDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decode = function decode(reader, length) { + GetDataStreamRequest.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.analytics.admin.v1alpha.AndroidAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.packageName = reader.string(); - break; - case 6: - message.displayName = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -27362,163 +22136,338 @@ }; /** - * Decodes an AndroidAppDataStream message from the specified reader or buffer, length delimited. + * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppDataStream.decodeDelimited = function decodeDelimited(reader) { + GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AndroidAppDataStream message. + * Verifies a GetDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AndroidAppDataStream.verify = function verify(message) { + GetDataStreamRequest.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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.packageName != null && message.hasOwnProperty("packageName")) - if (!$util.isString(message.packageName)) - return "packageName: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; return null; }; /** - * Creates an AndroidAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AndroidAppDataStream} AndroidAppDataStream + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest */ - AndroidAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AndroidAppDataStream) + GetDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AndroidAppDataStream(); + var message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); if (object.name != null) message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AndroidAppDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.packageName != null) - message.packageName = String(object.packageName); - if (object.displayName != null) - message.displayName = String(object.displayName); return message; }; - /** - * Creates a plain object from an AndroidAppDataStream message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @static - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} message AndroidAppDataStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AndroidAppDataStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.firebaseAppId = ""; - object.createTime = null; - object.updateTime = null; - object.packageName = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.packageName != null && message.hasOwnProperty("packageName")) - object.packageName = message.packageName; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - return object; - }; + /** + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.GetDataStreamRequest} message GetDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataStreamRequest.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 GetDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataStreamRequest; + })(); + + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + + /** + * ServiceLevel enum. + * @name google.analytics.admin.v1alpha.ServiceLevel + * @enum {number} + * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value + * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value + */ + v1alpha.ServiceLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; + values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; + return values; + })(); + + /** + * ActorType enum. + * @name google.analytics.admin.v1alpha.ActorType + * @enum {number} + * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} SUPPORT=3 SUPPORT value + */ + v1alpha.ActorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "SUPPORT"] = 3; + return values; + })(); + + /** + * ActionType enum. + * @name google.analytics.admin.v1alpha.ActionType + * @enum {number} + * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value + * @property {number} CREATED=1 CREATED value + * @property {number} UPDATED=2 UPDATED value + * @property {number} DELETED=3 DELETED value + */ + v1alpha.ActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "UPDATED"] = 2; + values[valuesById[3] = "DELETED"] = 3; + return values; + })(); + + /** + * ChangeHistoryResourceType enum. + * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType + * @enum {number} + * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} ACCOUNT=1 ACCOUNT value + * @property {number} PROPERTY=2 PROPERTY value + * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value + * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value + * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value + * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value + * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value + * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value + * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value + * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK=14 DISPLAY_VIDEO_360_ADVERTISER_LINK value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL=15 DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL value + * @property {number} DATA_STREAM=18 DATA_STREAM value + */ + v1alpha.ChangeHistoryResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACCOUNT"] = 1; + values[valuesById[2] = "PROPERTY"] = 2; + values[valuesById[6] = "FIREBASE_LINK"] = 6; + values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; + values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; + values[valuesById[9] = "CONVERSION_EVENT"] = 9; + values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; + values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; + values[valuesById[12] = "CUSTOM_METRIC"] = 12; + values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; + values[valuesById[14] = "DISPLAY_VIDEO_360_ADVERTISER_LINK"] = 14; + values[valuesById[15] = "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"] = 15; + values[valuesById[18] = "DATA_STREAM"] = 18; + return values; + })(); + + /** + * GoogleSignalsState enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsState + * @enum {number} + * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value + * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value + */ + v1alpha.GoogleSignalsState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; + values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; + return values; + })(); + + /** + * GoogleSignalsConsent enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsConsent + * @enum {number} + * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value + * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value + */ + v1alpha.GoogleSignalsConsent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; + values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; + values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; + return values; + })(); - /** - * Converts this AndroidAppDataStream to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AndroidAppDataStream - * @instance - * @returns {Object.} JSON object - */ - AndroidAppDataStream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * LinkProposalInitiatingProduct enum. + * @name google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + * @enum {number} + * @property {number} LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED=0 LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS=1 GOOGLE_ANALYTICS value + * @property {number} LINKED_PRODUCT=2 LINKED_PRODUCT value + */ + v1alpha.LinkProposalInitiatingProduct = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "LINKED_PRODUCT"] = 2; + return values; + })(); - return AndroidAppDataStream; + /** + * LinkProposalState enum. + * @name google.analytics.admin.v1alpha.LinkProposalState + * @enum {number} + * @property {number} LINK_PROPOSAL_STATE_UNSPECIFIED=0 LINK_PROPOSAL_STATE_UNSPECIFIED value + * @property {number} AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS=1 AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS value + * @property {number} AWAITING_REVIEW_FROM_LINKED_PRODUCT=2 AWAITING_REVIEW_FROM_LINKED_PRODUCT value + * @property {number} WITHDRAWN=3 WITHDRAWN value + * @property {number} DECLINED=4 DECLINED value + * @property {number} EXPIRED=5 EXPIRED value + * @property {number} OBSOLETE=6 OBSOLETE value + */ + v1alpha.LinkProposalState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "AWAITING_REVIEW_FROM_LINKED_PRODUCT"] = 2; + values[valuesById[3] = "WITHDRAWN"] = 3; + values[valuesById[4] = "DECLINED"] = 4; + values[valuesById[5] = "EXPIRED"] = 5; + values[valuesById[6] = "OBSOLETE"] = 6; + return values; })(); - v1alpha.IosAppDataStream = (function() { + v1alpha.Account = (function() { /** - * Properties of an IosAppDataStream. + * Properties of an Account. * @memberof google.analytics.admin.v1alpha - * @interface IIosAppDataStream - * @property {string|null} [name] IosAppDataStream name - * @property {string|null} [firebaseAppId] IosAppDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] IosAppDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IosAppDataStream updateTime - * @property {string|null} [bundleId] IosAppDataStream bundleId - * @property {string|null} [displayName] IosAppDataStream displayName + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [regionCode] Account regionCode + * @property {boolean|null} [deleted] Account deleted */ /** - * Constructs a new IosAppDataStream. + * Constructs a new Account. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an IosAppDataStream. - * @implements IIosAppDataStream + * @classdesc Represents an Account. + * @implements IAccount * @constructor - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set */ - function IosAppDataStream(properties) { + function Account(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27526,120 +22475,120 @@ } /** - * IosAppDataStream name. + * Account name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - IosAppDataStream.prototype.name = ""; + Account.prototype.name = ""; /** - * IosAppDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - IosAppDataStream.prototype.firebaseAppId = ""; + Account.prototype.createTime = null; /** - * IosAppDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - IosAppDataStream.prototype.createTime = null; + Account.prototype.updateTime = null; /** - * IosAppDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - IosAppDataStream.prototype.updateTime = null; + Account.prototype.displayName = ""; /** - * IosAppDataStream bundleId. - * @member {string} bundleId - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * Account regionCode. + * @member {string} regionCode + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - IosAppDataStream.prototype.bundleId = ""; + Account.prototype.regionCode = ""; /** - * IosAppDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - IosAppDataStream.prototype.displayName = ""; + Account.prototype.deleted = false; /** - * Creates a new IosAppDataStream instance using the specified properties. + * Creates a new Account instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream instance + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance */ - IosAppDataStream.create = function create(properties) { - return new IosAppDataStream(properties); + Account.create = function create(properties) { + return new Account(properties); }; /** - * Encodes the specified IosAppDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encode = function encode(message, 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.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bundleId); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayName); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); return writer; }; /** - * Encodes the specified IosAppDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.IosAppDataStream.verify|verify} messages. + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IIosAppDataStream} message IosAppDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IosAppDataStream.encodeDelimited = function encodeDelimited(message, writer) { + Account.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer. + * Decodes an Account message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.IosAppDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Account(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27647,19 +22596,19 @@ message.name = reader.string(); break; case 2: - message.firebaseAppId = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; case 5: - message.bundleId = reader.string(); + message.regionCode = reader.string(); break; case 6: - message.displayName = reader.string(); + message.deleted = reader.bool(); break; default: reader.skipType(tag & 7); @@ -27670,38 +22619,35 @@ }; /** - * Decodes an IosAppDataStream message from the specified reader or buffer, length delimited. + * Decodes an Account message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IosAppDataStream.decodeDelimited = function decodeDelimited(reader) { + Account.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IosAppDataStream message. + * Verifies an Account message. * @function verify - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IosAppDataStream.verify = function verify(message) { + 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.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) @@ -27712,122 +22658,130 @@ if (error) return "updateTime." + error; } - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - if (!$util.isString(message.bundleId)) - return "bundleId: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; return null; }; /** - * Creates an IosAppDataStream message from a plain object. Also converts values to their respective internal types. + * Creates an Account message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.IosAppDataStream} IosAppDataStream + * @returns {google.analytics.admin.v1alpha.Account} Account */ - IosAppDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.IosAppDataStream) + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) return object; - var message = new $root.google.analytics.admin.v1alpha.IosAppDataStream(); + var message = new $root.google.analytics.admin.v1alpha.Account(); if (object.name != null) message.name = String(object.name); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.createTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.IosAppDataStream.updateTime: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.bundleId != null) - message.bundleId = String(object.bundleId); if (object.displayName != null) message.displayName = String(object.displayName); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); return message; }; /** - * Creates a plain object from an IosAppDataStream message. Also converts values to other types if specified. + * Creates a plain object from an Account message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IosAppDataStream} message IosAppDataStream + * @param {google.analytics.admin.v1alpha.Account} message Account * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IosAppDataStream.toObject = function toObject(message, options) { + Account.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.firebaseAppId = ""; object.createTime = null; object.updateTime = null; - object.bundleId = ""; object.displayName = ""; + object.regionCode = ""; + object.deleted = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - object.bundleId = message.bundleId; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; return object; }; /** - * Converts this IosAppDataStream to JSON. + * Converts this Account to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.IosAppDataStream + * @memberof google.analytics.admin.v1alpha.Account * @instance * @returns {Object.} JSON object */ - IosAppDataStream.prototype.toJSON = function toJSON() { + Account.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IosAppDataStream; + return Account; })(); - v1alpha.WebDataStream = (function() { + v1alpha.Property = (function() { /** - * Properties of a WebDataStream. + * Properties of a Property. * @memberof google.analytics.admin.v1alpha - * @interface IWebDataStream - * @property {string|null} [name] WebDataStream name - * @property {string|null} [measurementId] WebDataStream measurementId - * @property {string|null} [firebaseAppId] WebDataStream firebaseAppId - * @property {google.protobuf.ITimestamp|null} [createTime] WebDataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] WebDataStream updateTime - * @property {string|null} [defaultUri] WebDataStream defaultUri - * @property {string|null} [displayName] WebDataStream displayName + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {google.analytics.admin.v1alpha.ServiceLevel|null} [serviceLevel] Property serviceLevel + * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + * @property {string|null} [account] Property account */ /** - * Constructs a new WebDataStream. + * Constructs a new Property. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a WebDataStream. - * @implements IWebDataStream + * @classdesc Represents a Property. + * @implements IProperty * @constructor - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set */ - function WebDataStream(properties) { + function Property(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27835,153 +22789,218 @@ } /** - * WebDataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.WebDataStream + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.name = ""; + + /** + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.createTime = null; + + /** + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.updateTime = null; + + /** + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.parent = ""; + + /** + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.displayName = ""; + + /** + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - WebDataStream.prototype.name = ""; + Property.prototype.industryCategory = 0; /** - * WebDataStream measurementId. - * @member {string} measurementId - * @memberof google.analytics.admin.v1alpha.WebDataStream + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - WebDataStream.prototype.measurementId = ""; + Property.prototype.timeZone = ""; /** - * WebDataStream firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.WebDataStream + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - WebDataStream.prototype.firebaseAppId = ""; + Property.prototype.currencyCode = ""; /** - * WebDataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.WebDataStream + * Property serviceLevel. + * @member {google.analytics.admin.v1alpha.ServiceLevel} serviceLevel + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - WebDataStream.prototype.createTime = null; + Property.prototype.serviceLevel = 0; /** - * WebDataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.WebDataStream + * Property deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - WebDataStream.prototype.updateTime = null; + Property.prototype.deleteTime = null; /** - * WebDataStream defaultUri. - * @member {string} defaultUri - * @memberof google.analytics.admin.v1alpha.WebDataStream + * Property expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - WebDataStream.prototype.defaultUri = ""; + Property.prototype.expireTime = null; /** - * WebDataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.WebDataStream + * Property account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - WebDataStream.prototype.displayName = ""; + Property.prototype.account = ""; /** - * Creates a new WebDataStream instance using the specified properties. + * Creates a new Property instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream instance + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance */ - WebDataStream.create = function create(properties) { - return new WebDataStream(properties); + Property.create = function create(properties) { + return new Property(properties); }; /** - * Encodes the specified WebDataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encode = function encode(message, writer) { + Property.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.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.measurementId); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.firebaseAppId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.defaultUri); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.account); return writer; }; /** - * Encodes the specified WebDataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.WebDataStream.verify|verify} messages. + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IWebDataStream} message WebDataStream message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebDataStream.encodeDelimited = function encodeDelimited(message, writer) { + Property.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebDataStream message from the specified reader or buffer. + * Decodes a Property message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decode = function decode(reader, length) { + Property.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.analytics.admin.v1alpha.WebDataStream(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Property(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.measurementId = reader.string(); - break; case 3: - message.firebaseAppId = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); break; case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; case 6: - message.defaultUri = reader.string(); + message.industryCategory = reader.int32(); break; case 7: - message.displayName = reader.string(); + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 10: + message.serviceLevel = reader.int32(); + break; + case 11: + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 13: + message.account = reader.string(); break; default: reader.skipType(tag & 7); @@ -27992,146 +23011,352 @@ }; /** - * Decodes a WebDataStream message from the specified reader or buffer, length delimited. + * Decodes a Property message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebDataStream.decodeDelimited = function decodeDelimited(reader) { + Property.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebDataStream message. + * Verifies a Property message. * @function verify - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebDataStream.verify = function verify(message) { + Property.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.measurementId != null && message.hasOwnProperty("measurementId")) - if (!$util.isString(message.measurementId)) - return "measurementId: string expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) return "createTime." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + switch (message.serviceLevel) { + default: + return "serviceLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + return null; + }; + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.Property} Property + */ + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) + return object; + var message = new $root.google.analytics.admin.v1alpha.Property(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": + case 0: + message.industryCategory = 0; + break; + case "AUTOMOTIVE": + case 1: + message.industryCategory = 1; + break; + case "BUSINESS_AND_INDUSTRIAL_MARKETS": + case 2: + message.industryCategory = 2; + break; + case "FINANCE": + case 3: + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; + break; + } + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + switch (object.serviceLevel) { + case "SERVICE_LEVEL_UNSPECIFIED": + case 0: + message.serviceLevel = 0; + break; + case "GOOGLE_ANALYTICS_STANDARD": + case 1: + message.serviceLevel = 1; + break; + case "GOOGLE_ANALYTICS_360": + case 2: + message.serviceLevel = 2; + break; } - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - if (!$util.isString(message.defaultUri)) - return "defaultUri: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - return null; - }; - - /** - * Creates a WebDataStream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.WebDataStream - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.WebDataStream} WebDataStream - */ - WebDataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.WebDataStream) - return object; - var message = new $root.google.analytics.admin.v1alpha.WebDataStream(); - if (object.name != null) - message.name = String(object.name); - if (object.measurementId != null) - message.measurementId = String(object.measurementId); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.WebDataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); } - if (object.defaultUri != null) - message.defaultUri = String(object.defaultUri); - if (object.displayName != null) - message.displayName = String(object.displayName); + if (object.account != null) + message.account = String(object.account); return message; }; /** - * Creates a plain object from a WebDataStream message. Also converts values to other types if specified. + * Creates a plain object from a Property message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.WebDataStream} message WebDataStream + * @param {google.analytics.admin.v1alpha.Property} message Property * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebDataStream.toObject = function toObject(message, options) { + Property.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.measurementId = ""; - object.firebaseAppId = ""; + object.parent = ""; object.createTime = null; object.updateTime = null; - object.defaultUri = ""; object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; + object.deleteTime = null; + object.expireTime = null; + object.account = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - object.measurementId = message.measurementId; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - object.defaultUri = message.defaultUri; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; return object; }; /** - * Converts this WebDataStream to JSON. + * Converts this Property to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.WebDataStream + * @memberof google.analytics.admin.v1alpha.Property * @instance * @returns {Object.} JSON object */ - WebDataStream.prototype.toJSON = function toJSON() { + Property.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WebDataStream; + return Property; })(); v1alpha.DataStream = (function() { @@ -32203,9 +27428,6 @@ * @interface IChangeHistoryResource * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property - * @property {google.analytics.admin.v1alpha.IWebDataStream|null} [webDataStream] ChangeHistoryResource webDataStream - * @property {google.analytics.admin.v1alpha.IAndroidAppDataStream|null} [androidAppDataStream] ChangeHistoryResource androidAppDataStream - * @property {google.analytics.admin.v1alpha.IIosAppDataStream|null} [iosAppDataStream] ChangeHistoryResource iosAppDataStream * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] ChangeHistoryResource googleSignalsSettings @@ -32216,6 +27438,7 @@ * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] ChangeHistoryResource customDimension * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] ChangeHistoryResource customMetric * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] ChangeHistoryResource dataRetentionSettings + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] ChangeHistoryResource dataStream */ /** @@ -32249,30 +27472,6 @@ */ ChangeHistoryResource.prototype.property = null; - /** - * ChangeHistoryResource webDataStream. - * @member {google.analytics.admin.v1alpha.IWebDataStream|null|undefined} webDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.webDataStream = null; - - /** - * ChangeHistoryResource androidAppDataStream. - * @member {google.analytics.admin.v1alpha.IAndroidAppDataStream|null|undefined} androidAppDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.androidAppDataStream = null; - - /** - * ChangeHistoryResource iosAppDataStream. - * @member {google.analytics.admin.v1alpha.IIosAppDataStream|null|undefined} iosAppDataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.iosAppDataStream = null; - /** * ChangeHistoryResource firebaseLink. * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink @@ -32353,17 +27552,25 @@ */ ChangeHistoryResource.prototype.dataRetentionSettings = null; + /** + * ChangeHistoryResource dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.dataStream = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * ChangeHistoryResource resource. - * @member {"account"|"property"|"webDataStream"|"androidAppDataStream"|"iosAppDataStream"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|undefined} resource + * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"|undefined} resource * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource * @instance */ Object.defineProperty(ChangeHistoryResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["account", "property", "webDataStream", "androidAppDataStream", "iosAppDataStream", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings"]), + get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings", "dataStream"]), set: $util.oneOfSetter($oneOfFields) }); @@ -32395,12 +27602,6 @@ $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.property != null && Object.hasOwnProperty.call(message, "property")) $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.webDataStream != null && Object.hasOwnProperty.call(message, "webDataStream")) - $root.google.analytics.admin.v1alpha.WebDataStream.encode(message.webDataStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.androidAppDataStream != null && Object.hasOwnProperty.call(message, "androidAppDataStream")) - $root.google.analytics.admin.v1alpha.AndroidAppDataStream.encode(message.androidAppDataStream, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.iosAppDataStream != null && Object.hasOwnProperty.call(message, "iosAppDataStream")) - $root.google.analytics.admin.v1alpha.IosAppDataStream.encode(message.iosAppDataStream, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) @@ -32421,6 +27622,8 @@ $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); return writer; }; @@ -32461,15 +27664,6 @@ case 2: message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); break; - case 3: - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.decode(reader, reader.uint32()); - break; - case 4: - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.decode(reader, reader.uint32()); - break; - case 5: - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.decode(reader, reader.uint32()); - break; case 6: message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); break; @@ -32500,6 +27694,9 @@ case 15: message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); break; + case 18: + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -32554,36 +27751,6 @@ return "property." + error; } } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.WebDataStream.verify(message.webDataStream); - if (error) - return "webDataStream." + error; - } - } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.verify(message.androidAppDataStream); - if (error) - return "androidAppDataStream." + error; - } - } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.IosAppDataStream.verify(message.iosAppDataStream); - if (error) - return "iosAppDataStream." + error; - } - } if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { if (properties.resource === 1) return "resource: multiple values"; @@ -32684,6 +27851,16 @@ return "dataRetentionSettings." + error; } } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + error; + } + } return null; }; @@ -32709,21 +27886,6 @@ throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); } - if (object.webDataStream != null) { - if (typeof object.webDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.webDataStream: object expected"); - message.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.fromObject(object.webDataStream); - } - if (object.androidAppDataStream != null) { - if (typeof object.androidAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.androidAppDataStream: object expected"); - message.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.fromObject(object.androidAppDataStream); - } - if (object.iosAppDataStream != null) { - if (typeof object.iosAppDataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.iosAppDataStream: object expected"); - message.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.fromObject(object.iosAppDataStream); - } if (object.firebaseLink != null) { if (typeof object.firebaseLink !== "object") throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); @@ -32774,6 +27936,11 @@ throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataRetentionSettings: object expected"); message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); } + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + } return message; }; @@ -32800,21 +27967,6 @@ if (options.oneofs) object.resource = "property"; } - if (message.webDataStream != null && message.hasOwnProperty("webDataStream")) { - object.webDataStream = $root.google.analytics.admin.v1alpha.WebDataStream.toObject(message.webDataStream, options); - if (options.oneofs) - object.resource = "webDataStream"; - } - if (message.androidAppDataStream != null && message.hasOwnProperty("androidAppDataStream")) { - object.androidAppDataStream = $root.google.analytics.admin.v1alpha.AndroidAppDataStream.toObject(message.androidAppDataStream, options); - if (options.oneofs) - object.resource = "androidAppDataStream"; - } - if (message.iosAppDataStream != null && message.hasOwnProperty("iosAppDataStream")) { - object.iosAppDataStream = $root.google.analytics.admin.v1alpha.IosAppDataStream.toObject(message.iosAppDataStream, options); - if (options.oneofs) - object.resource = "iosAppDataStream"; - } if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); if (options.oneofs) @@ -32865,6 +28017,11 @@ if (options.oneofs) object.resource = "dataRetentionSettings"; } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + if (options.oneofs) + object.resource = "dataStream"; + } return object; }; @@ -34741,6 +29898,7 @@ * @property {string|null} [description] CustomMetric description * @property {google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|null} [measurementUnit] CustomMetric measurementUnit * @property {google.analytics.admin.v1alpha.CustomMetric.MetricScope|null} [scope] CustomMetric scope + * @property {Array.|null} [restrictedMetricType] CustomMetric restrictedMetricType */ /** @@ -34752,6 +29910,7 @@ * @param {google.analytics.admin.v1alpha.ICustomMetric=} [properties] Properties to set */ function CustomMetric(properties) { + this.restrictedMetricType = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34806,6 +29965,14 @@ */ CustomMetric.prototype.scope = 0; + /** + * CustomMetric restrictedMetricType. + * @member {Array.} restrictedMetricType + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @instance + */ + CustomMetric.prototype.restrictedMetricType = $util.emptyArray; + /** * Creates a new CustomMetric instance using the specified properties. * @function create @@ -34842,6 +30009,12 @@ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.measurementUnit); if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scope); + if (message.restrictedMetricType != null && message.restrictedMetricType.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.restrictedMetricType.length; ++i) + writer.int32(message.restrictedMetricType[i]); + writer.ldelim(); + } return writer; }; @@ -34894,6 +30067,16 @@ case 6: message.scope = reader.int32(); break; + case 8: + if (!(message.restrictedMetricType && message.restrictedMetricType.length)) + message.restrictedMetricType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.restrictedMetricType.push(reader.int32()); + } else + message.restrictedMetricType.push(reader.int32()); + break; default: reader.skipType(tag & 7); break; @@ -34966,6 +30149,19 @@ case 1: break; } + if (message.restrictedMetricType != null && message.hasOwnProperty("restrictedMetricType")) { + if (!Array.isArray(message.restrictedMetricType)) + return "restrictedMetricType: array expected"; + for (var i = 0; i < message.restrictedMetricType.length; ++i) + switch (message.restrictedMetricType[i]) { + default: + return "restrictedMetricType: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } + } return null; }; @@ -35045,6 +30241,27 @@ message.scope = 1; break; } + if (object.restrictedMetricType) { + if (!Array.isArray(object.restrictedMetricType)) + throw TypeError(".google.analytics.admin.v1alpha.CustomMetric.restrictedMetricType: array expected"); + message.restrictedMetricType = []; + for (var i = 0; i < object.restrictedMetricType.length; ++i) + switch (object.restrictedMetricType[i]) { + default: + case "RESTRICTED_METRIC_TYPE_UNSPECIFIED": + case 0: + message.restrictedMetricType[i] = 0; + break; + case "COST_DATA": + case 1: + message.restrictedMetricType[i] = 1; + break; + case "REVENUE_DATA": + case 2: + message.restrictedMetricType[i] = 2; + break; + } + } return message; }; @@ -35061,6 +30278,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.restrictedMetricType = []; if (options.defaults) { object.name = ""; object.parameterName = ""; @@ -35081,6 +30300,11 @@ object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; if (message.scope != null && message.hasOwnProperty("scope")) object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] : message.scope; + if (message.restrictedMetricType && message.restrictedMetricType.length) { + object.restrictedMetricType = []; + for (var j = 0; j < message.restrictedMetricType.length; ++j) + object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; + } return object; }; @@ -35141,6 +30365,22 @@ return values; })(); + /** + * RestrictedMetricType enum. + * @name google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + * @enum {number} + * @property {number} RESTRICTED_METRIC_TYPE_UNSPECIFIED=0 RESTRICTED_METRIC_TYPE_UNSPECIFIED value + * @property {number} COST_DATA=1 COST_DATA value + * @property {number} REVENUE_DATA=2 REVENUE_DATA value + */ + CustomMetric.RestrictedMetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESTRICTED_METRIC_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "COST_DATA"] = 1; + values[valuesById[2] = "REVENUE_DATA"] = 2; + return values; + })(); + return CustomMetric; })(); diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 90dcaa4fe6d..299f271af8f 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -434,248 +434,6 @@ } ] }, - "GetWebDataStream": { - "requestType": "GetWebDataStreamRequest", - "responseType": "WebDataStream", - "options": { - "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1alpha/{name=properties/*/webDataStreams/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "DeleteWebDataStream": { - "requestType": "DeleteWebDataStreamRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v1alpha/{name=properties/*/webDataStreams/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1alpha/{name=properties/*/webDataStreams/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "UpdateWebDataStream": { - "requestType": "UpdateWebDataStreamRequest", - "responseType": "WebDataStream", - "options": { - "(google.api.http).patch": "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}", - "(google.api.http).body": "web_data_stream", - "(google.api.method_signature)": "web_data_stream,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}", - "body": "web_data_stream" - } - }, - { - "(google.api.method_signature)": "web_data_stream,update_mask" - } - ] - }, - "CreateWebDataStream": { - "requestType": "CreateWebDataStreamRequest", - "responseType": "WebDataStream", - "options": { - "(google.api.http).post": "/v1alpha/{parent=properties/*}/webDataStreams", - "(google.api.http).body": "web_data_stream", - "(google.api.method_signature)": "parent,web_data_stream" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1alpha/{parent=properties/*}/webDataStreams", - "body": "web_data_stream" - } - }, - { - "(google.api.method_signature)": "parent,web_data_stream" - } - ] - }, - "ListWebDataStreams": { - "requestType": "ListWebDataStreamsRequest", - "responseType": "ListWebDataStreamsResponse", - "options": { - "(google.api.http).get": "/v1alpha/{parent=properties/*}/webDataStreams", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1alpha/{parent=properties/*}/webDataStreams" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "GetIosAppDataStream": { - "requestType": "GetIosAppDataStreamRequest", - "responseType": "IosAppDataStream", - "options": { - "(google.api.http).get": "/v1alpha/{name=properties/*/iosAppDataStreams/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "DeleteIosAppDataStream": { - "requestType": "DeleteIosAppDataStreamRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v1alpha/{name=properties/*/iosAppDataStreams/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "UpdateIosAppDataStream": { - "requestType": "UpdateIosAppDataStreamRequest", - "responseType": "IosAppDataStream", - "options": { - "(google.api.http).patch": "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}", - "(google.api.http).body": "ios_app_data_stream", - "(google.api.method_signature)": "ios_app_data_stream,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}", - "body": "ios_app_data_stream" - } - }, - { - "(google.api.method_signature)": "ios_app_data_stream,update_mask" - } - ] - }, - "ListIosAppDataStreams": { - "requestType": "ListIosAppDataStreamsRequest", - "responseType": "ListIosAppDataStreamsResponse", - "options": { - "(google.api.http).get": "/v1alpha/{parent=properties/*}/iosAppDataStreams", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1alpha/{parent=properties/*}/iosAppDataStreams" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "GetAndroidAppDataStream": { - "requestType": "GetAndroidAppDataStreamRequest", - "responseType": "AndroidAppDataStream", - "options": { - "(google.api.http).get": "/v1alpha/{name=properties/*/androidAppDataStreams/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "DeleteAndroidAppDataStream": { - "requestType": "DeleteAndroidAppDataStreamRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "UpdateAndroidAppDataStream": { - "requestType": "UpdateAndroidAppDataStreamRequest", - "responseType": "AndroidAppDataStream", - "options": { - "(google.api.http).patch": "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}", - "(google.api.http).body": "android_app_data_stream", - "(google.api.method_signature)": "android_app_data_stream,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}", - "body": "android_app_data_stream" - } - }, - { - "(google.api.method_signature)": "android_app_data_stream,update_mask" - } - ] - }, - "ListAndroidAppDataStreams": { - "requestType": "ListAndroidAppDataStreamsRequest", - "responseType": "ListAndroidAppDataStreamsResponse", - "options": { - "(google.api.http).get": "/v1alpha/{parent=properties/*}/androidAppDataStreams", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1alpha/{parent=properties/*}/androidAppDataStreams" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, "CreateFirebaseLink": { "requestType": "CreateFirebaseLinkRequest", "responseType": "FirebaseLink", @@ -736,13 +494,13 @@ "requestType": "GetGlobalSiteTagRequest", "responseType": "GlobalSiteTag", "options": { - "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}", + "(google.api.http).get": "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}" + "get": "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}" } }, { @@ -848,22 +606,13 @@ "requestType": "GetMeasurementProtocolSecretRequest", "responseType": "MeasurementProtocolSecret", "options": { - "(google.api.http).get": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", - "(google.api.http).additional_bindings.get": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).get": "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", - "additional_bindings": [ - { - "get": "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - }, - { - "get": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - } - ] + "get": "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" } }, { @@ -875,22 +624,13 @@ "requestType": "ListMeasurementProtocolSecretsRequest", "responseType": "ListMeasurementProtocolSecretsResponse", "options": { - "(google.api.http).get": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", - "(google.api.http).additional_bindings.get": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets", + "(google.api.http).get": "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", - "additional_bindings": [ - { - "get": "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" - }, - { - "get": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" - } - ] + "get": "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" } }, { @@ -902,27 +642,15 @@ "requestType": "CreateMeasurementProtocolSecretRequest", "responseType": "MeasurementProtocolSecret", "options": { - "(google.api.http).post": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", + "(google.api.http).post": "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", "(google.api.http).body": "measurement_protocol_secret", - "(google.api.http).additional_bindings.post": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets", - "(google.api.http).additional_bindings.body": "measurement_protocol_secret", "(google.api.method_signature)": "parent,measurement_protocol_secret" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets", - "body": "measurement_protocol_secret", - "additional_bindings": [ - { - "post": "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets", - "body": "measurement_protocol_secret" - }, - { - "post": "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets", - "body": "measurement_protocol_secret" - } - ] + "post": "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", + "body": "measurement_protocol_secret" } }, { @@ -934,22 +662,13 @@ "requestType": "DeleteMeasurementProtocolSecretRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", - "(google.api.http).additional_bindings.delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).delete": "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", - "additional_bindings": [ - { - "delete": "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - }, - { - "delete": "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - } - ] + "delete": "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" } }, { @@ -961,27 +680,15 @@ "requestType": "UpdateMeasurementProtocolSecretRequest", "responseType": "MeasurementProtocolSecret", "options": { - "(google.api.http).patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", "(google.api.http).body": "measurement_protocol_secret", - "(google.api.http).additional_bindings.patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", - "(google.api.http).additional_bindings.body": "measurement_protocol_secret", "(google.api.method_signature)": "measurement_protocol_secret,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}", - "body": "measurement_protocol_secret", - "additional_bindings": [ - { - "patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}", - "body": "measurement_protocol_secret" - }, - { - "patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}", - "body": "measurement_protocol_secret" - } - ] + "patch": "/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "body": "measurement_protocol_secret" } }, { @@ -1950,341 +1657,89 @@ "CreateUserLinkRequest": { "fields": { "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" - } - }, - "notifyNewUser": { - "type": "bool", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "userLink": { - "type": "UserLink", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "BatchCreateUserLinksRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" - } - }, - "notifyNewUsers": { - "type": "bool", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "requests": { - "rule": "repeated", - "type": "CreateUserLinkRequest", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "BatchCreateUserLinksResponse": { - "fields": { - "userLinks": { - "rule": "repeated", - "type": "UserLink", - "id": 1 - } - } - }, - "UpdateUserLinkRequest": { - "fields": { - "userLink": { - "type": "UserLink", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "BatchUpdateUserLinksRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" - } - }, - "requests": { - "rule": "repeated", - "type": "UpdateUserLinkRequest", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "BatchUpdateUserLinksResponse": { - "fields": { - "userLinks": { - "rule": "repeated", - "type": "UserLink", - "id": 1 - } - } - }, - "DeleteUserLinkRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" - } - } - } - }, - "BatchDeleteUserLinksRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" - } - }, - "requests": { - "rule": "repeated", - "type": "DeleteUserLinkRequest", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetWebDataStreamRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" - } - } - } - }, - "DeleteWebDataStreamRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/WebDataStream" - } - } - } - }, - "UpdateWebDataStreamRequest": { - "fields": { - "webDataStream": { - "type": "WebDataStream", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "CreateWebDataStreamRequest": { - "fields": { - "webDataStream": { - "type": "WebDataStream", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parent": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" - } - } - } - }, - "ListWebDataStreamsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/WebDataStream" - } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListWebDataStreamsResponse": { - "fields": { - "webDataStreams": { - "rule": "repeated", - "type": "WebDataStream", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "GetIosAppDataStreamRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" - } - } - } - }, - "DeleteIosAppDataStreamRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/IosAppDataStream" - } - } - } - }, - "UpdateIosAppDataStreamRequest": { - "fields": { - "iosAppDataStream": { - "type": "IosAppDataStream", + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "notifyNewUser": { + "type": "bool", "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "userLink": { + "type": "UserLink", + "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "ListIosAppDataStreamsRequest": { + "BatchCreateUserLinksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/IosAppDataStream" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" } }, - "pageSize": { - "type": "int32", - "id": 2 + "notifyNewUsers": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, - "pageToken": { - "type": "string", - "id": 3 + "requests": { + "rule": "repeated", + "type": "CreateUserLinkRequest", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListIosAppDataStreamsResponse": { + "BatchCreateUserLinksResponse": { "fields": { - "iosAppDataStreams": { + "userLinks": { "rule": "repeated", - "type": "IosAppDataStream", + "type": "UserLink", "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 } } }, - "GetAndroidAppDataStreamRequest": { + "UpdateUserLinkRequest": { "fields": { - "name": { - "type": "string", + "userLink": { + "type": "UserLink", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "DeleteAndroidAppDataStreamRequest": { + "BatchUpdateUserLinksRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - } - } - }, - "UpdateAndroidAppDataStreamRequest": { - "fields": { - "androidAppDataStream": { - "type": "AndroidAppDataStream", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "requests": { + "rule": "repeated", + "type": "UpdateUserLinkRequest", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -2292,36 +1747,44 @@ } } }, - "ListAndroidAppDataStreamsRequest": { + "BatchUpdateUserLinksResponse": { "fields": { - "parent": { + "userLinks": { + "rule": "repeated", + "type": "UserLink", + "id": 1 + } + } + }, + "DeleteUserLinkRequest": { + "fields": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AndroidAppDataStream" + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/UserLink" } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 } } }, - "ListAndroidAppDataStreamsResponse": { + "BatchDeleteUserLinksRequest": { "fields": { - "androidAppDataStreams": { - "rule": "repeated", - "type": "AndroidAppDataStream", - "id": 1 - }, - "nextPageToken": { + "parent": { "type": "string", - "id": 2 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/UserLink" + } + }, + "requests": { + "rule": "repeated", + "type": "DeleteUserLinkRequest", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -3382,9 +2845,6 @@ "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": 0, "ACCOUNT": 1, "PROPERTY": 2, - "WEB_DATA_STREAM": 3, - "ANDROID_APP_DATA_STREAM": 4, - "IOS_APP_DATA_STREAM": 5, "FIREBASE_LINK": 6, "GOOGLE_ADS_LINK": 7, "GOOGLE_SIGNALS_SETTINGS": 8, @@ -3394,7 +2854,8 @@ "CUSTOM_METRIC": 12, "DATA_RETENTION_SETTINGS": 13, "DISPLAY_VIDEO_360_ADVERTISER_LINK": 14, - "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": 15 + "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": 15, + "DATA_STREAM": 18 } }, "GoogleSignalsState": { @@ -3563,157 +3024,6 @@ } } }, - "AndroidAppDataStream": { - "options": { - "(google.api.resource).type": "analyticsadmin.googleapis.com/AndroidAppDataStream", - "(google.api.resource).pattern": "properties/{property}/androidAppDataStreams/{android_app_data_stream}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "firebaseAppId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "packageName": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "displayName": { - "type": "string", - "id": 6 - } - } - }, - "IosAppDataStream": { - "options": { - "(google.api.resource).type": "analyticsadmin.googleapis.com/IosAppDataStream", - "(google.api.resource).pattern": "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "firebaseAppId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "bundleId": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "displayName": { - "type": "string", - "id": 6 - } - } - }, - "WebDataStream": { - "options": { - "(google.api.resource).type": "analyticsadmin.googleapis.com/WebDataStream", - "(google.api.resource).pattern": "properties/{property}/webDataStreams/{web_data_stream}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "measurementId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "firebaseAppId": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "defaultUri": { - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "displayName": { - "type": "string", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, "DataStream": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/DataStream", @@ -3927,7 +3237,7 @@ "GlobalSiteTag": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/GlobalSiteTag", - "(google.api.resource).pattern": "properties/{property}/globalSiteTag" + "(google.api.resource).pattern": "properties/{property}/dataStreams/{data_stream}/globalSiteTag" }, "fields": { "name": { @@ -4081,7 +3391,7 @@ "MeasurementProtocolSecret": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret", - "(google.api.resource).pattern": "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + "(google.api.resource).pattern": "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" }, "fields": { "name": { @@ -4162,9 +3472,6 @@ "oneof": [ "account", "property", - "webDataStream", - "androidAppDataStream", - "iosAppDataStream", "firebaseLink", "googleAdsLink", "googleSignalsSettings", @@ -4174,7 +3481,8 @@ "measurementProtocolSecret", "customDimension", "customMetric", - "dataRetentionSettings" + "dataRetentionSettings", + "dataStream" ] } }, @@ -4187,18 +3495,6 @@ "type": "Property", "id": 2 }, - "webDataStream": { - "type": "WebDataStream", - "id": 3 - }, - "androidAppDataStream": { - "type": "AndroidAppDataStream", - "id": 4 - }, - "iosAppDataStream": { - "type": "IosAppDataStream", - "id": 5 - }, "firebaseLink": { "type": "FirebaseLink", "id": 6 @@ -4238,6 +3534,10 @@ "dataRetentionSettings": { "type": "DataRetentionSettings", "id": 15 + }, + "dataStream": { + "type": "DataStream", + "id": 18 } } } @@ -4554,6 +3854,14 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "restrictedMetricType": { + "rule": "repeated", + "type": "RestrictedMetricType", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -4577,6 +3885,13 @@ "METRIC_SCOPE_UNSPECIFIED": 0, "EVENT": 1 } + }, + "RestrictedMetricType": { + "values": { + "RESTRICTED_METRIC_TYPE_UNSPECIFIED": 0, + "COST_DATA": 1, + "REVENUE_DATA": 2 + } } } }, diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js index ae7ce6d7af8..0eaa5d77ef6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js @@ -27,9 +27,7 @@ function main(parent, measurementProtocolSecret) { */ /** * Required. The parent resource where this secret will be created. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} + * Format: properties/{property}/dataStreams/{dataStream} */ // const parent = 'abc123' /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js index 740e7c14cd6..6bb0eab99ea 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js @@ -28,9 +28,7 @@ function main(name) { /** * Required. The name of the MeasurementProtocolSecret to delete. * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} */ // const name = 'abc123' diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js index 3b078adf0ff..159694c6730 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js @@ -28,8 +28,8 @@ function main(name) { /** * Required. The name of the site tag to lookup. * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/456/globalSiteTag" + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" */ // const name = 'abc123' diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js index e6f2a052714..c8fd3d4c3c7 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js @@ -28,9 +28,7 @@ function main(name) { /** * Required. The name of the measurement protocol secret to lookup. * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} */ // const name = 'abc123' diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js index 73367dd8255..60896d44b13 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js @@ -27,10 +27,8 @@ function main(parent) { */ /** * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets */ // const parent = 'abc123' /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js index 5596bf43c36..90205277431 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js @@ -28,13 +28,16 @@ function main(filter) { /** * Required. An expression for filtering the results of the request. * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or * `firebase_project:`(The id or number of the linked firebase project). * Some examples of filters: * ``` * | Filter | Description | * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | * | firebase_project:project-id | The firebase project with id: project-id. | * | firebase_project:123 | The firebase project with number: 123. | * ``` diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index c38c98f451b..0f23bf0f18e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -322,7 +322,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 86, "type": "FULL" } ], @@ -931,566 +931,6 @@ } } }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_async", - "title": "AnalyticsAdminService getWebDataStream Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single WebDataStream", - "canonical": true, - "file": "analytics_admin_service.get_web_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.WebDataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_async", - "title": "AnalyticsAdminService deleteWebDataStream Sample", - "origin": "API_DEFINITION", - "description": " Deletes a web stream on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_web_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteWebDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_async", - "title": "AnalyticsAdminService updateWebDataStream Sample", - "origin": "API_DEFINITION", - "description": " Updates a web stream on a property.", - "canonical": true, - "file": "analytics_admin_service.update_web_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStream", - "async": true, - "parameters": [ - { - "name": "web_data_stream", - "type": ".google.analytics.admin.v1alpha.WebDataStream" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.WebDataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateWebDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_async", - "title": "AnalyticsAdminService createWebDataStream Sample", - "origin": "API_DEFINITION", - "description": " Creates a web stream with the specified location and attributes.", - "canonical": true, - "file": "analytics_admin_service.create_web_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStream", - "async": true, - "parameters": [ - { - "name": "web_data_stream", - "type": ".google.analytics.admin.v1alpha.WebDataStream" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.WebDataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateWebDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateWebDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_async", - "title": "AnalyticsAdminService listWebDataStreams Sample", - "origin": "API_DEFINITION", - "description": " Returns child web data streams under the specified parent property. Web data streams will be excluded if the caller does not have access. Returns an empty list if no relevant web data streams are found.", - "canonical": true, - "file": "analytics_admin_service.list_web_data_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWebDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListWebDataStreamsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListWebDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreams", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_async", - "title": "AnalyticsAdminService getIosAppDataStream Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single IosAppDataStream", - "canonical": true, - "file": "analytics_admin_service.get_ios_app_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIosAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.IosAppDataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetIosAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_async", - "title": "AnalyticsAdminService deleteIosAppDataStream Sample", - "origin": "API_DEFINITION", - "description": " Deletes an iOS app stream on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_ios_app_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIosAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteIosAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteIosAppDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_async", - "title": "AnalyticsAdminService updateIosAppDataStream Sample", - "origin": "API_DEFINITION", - "description": " Updates an iOS app stream on a property.", - "canonical": true, - "file": "analytics_admin_service.update_ios_app_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIosAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStream", - "async": true, - "parameters": [ - { - "name": "ios_app_data_stream", - "type": ".google.analytics.admin.v1alpha.IosAppDataStream" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.IosAppDataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateIosAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateIosAppDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_async", - "title": "AnalyticsAdminService listIosAppDataStreams Sample", - "origin": "API_DEFINITION", - "description": " Returns child iOS app data streams under the specified parent property. iOS app data streams will be excluded if the caller does not have access. Returns an empty list if no relevant iOS app data streams are found.", - "canonical": true, - "file": "analytics_admin_service.list_ios_app_data_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIosAppDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListIosAppDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreams", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_async", - "title": "AnalyticsAdminService getAndroidAppDataStream Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single AndroidAppDataStream", - "canonical": true, - "file": "analytics_admin_service.get_android_app_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAndroidAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AndroidAppDataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAndroidAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_async", - "title": "AnalyticsAdminService deleteAndroidAppDataStream Sample", - "origin": "API_DEFINITION", - "description": " Deletes an android app stream on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_android_app_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAndroidAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteAndroidAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAndroidAppDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_async", - "title": "AnalyticsAdminService updateAndroidAppDataStream Sample", - "origin": "API_DEFINITION", - "description": " Updates an android app stream on a property.", - "canonical": true, - "file": "analytics_admin_service.update_android_app_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAndroidAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStream", - "async": true, - "parameters": [ - { - "name": "android_app_data_stream", - "type": ".google.analytics.admin.v1alpha.AndroidAppDataStream" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AndroidAppDataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateAndroidAppDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAndroidAppDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_async", - "title": "AnalyticsAdminService listAndroidAppDataStreams Sample", - "origin": "API_DEFINITION", - "description": " Returns child android app streams under the specified parent property. Android app streams will be excluded if the caller does not have access. Returns an empty list if no relevant android app streams are found.", - "canonical": true, - "file": "analytics_admin_service.list_android_app_data_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAndroidAppDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAndroidAppDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreams", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, { "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async", "title": "AnalyticsAdminService createFirebaseLink Sample", @@ -1890,7 +1330,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 52, "type": "FULL" } ], @@ -1930,7 +1370,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 67, "type": "FULL" } ], @@ -1978,7 +1418,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 56, "type": "FULL" } ], @@ -2022,7 +1462,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 52, "type": "FULL" } ], diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index e72c26ca711..5ac89596a53 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -174,9 +174,6 @@ export class AnalyticsAdminServiceClient { accountUserLinkPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}/userLinks/{user_link}' ), - androidAppDataStreamPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/androidAppDataStreams/{android_app_data_stream}' - ), conversionEventPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/conversionEvents/{conversion_event}' ), @@ -207,7 +204,7 @@ export class AnalyticsAdminServiceClient { 'properties/{property}/firebaseLinks/{firebase_link}' ), globalSiteTagPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/globalSiteTag' + 'properties/{property}/dataStreams/{data_stream}/globalSiteTag' ), googleAdsLinkPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/googleAdsLinks/{google_ads_link}' @@ -215,11 +212,8 @@ export class AnalyticsAdminServiceClient { googleSignalsSettingsPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/googleSignalsSettings' ), - iosAppDataStreamPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/iosAppDataStreams/{ios_app_data_stream}' - ), measurementProtocolSecretPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}' + 'properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}' ), propertyPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}' @@ -227,9 +221,6 @@ export class AnalyticsAdminServiceClient { propertyUserLinkPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/userLinks/{user_link}' ), - webDataStreamPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/webDataStreams/{web_data_stream}' - ), }; // Some of the methods on this service return "paged" results, @@ -261,21 +252,6 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'userLinks' ), - listWebDataStreams: new this._gaxModule.PageDescriptor( - 'pageToken', - 'nextPageToken', - 'webDataStreams' - ), - listIosAppDataStreams: new this._gaxModule.PageDescriptor( - 'pageToken', - 'nextPageToken', - 'iosAppDataStreams' - ), - listAndroidAppDataStreams: new this._gaxModule.PageDescriptor( - 'pageToken', - 'nextPageToken', - 'androidAppDataStreams' - ), listFirebaseLinks: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -401,19 +377,6 @@ export class AnalyticsAdminServiceClient { 'batchUpdateUserLinks', 'deleteUserLink', 'batchDeleteUserLinks', - 'getWebDataStream', - 'deleteWebDataStream', - 'updateWebDataStream', - 'createWebDataStream', - 'listWebDataStreams', - 'getIosAppDataStream', - 'deleteIosAppDataStream', - 'updateIosAppDataStream', - 'listIosAppDataStreams', - 'getAndroidAppDataStream', - 'deleteAndroidAppDataStream', - 'updateAndroidAppDataStream', - 'listAndroidAppDataStreams', 'createFirebaseLink', 'deleteFirebaseLink', 'listFirebaseLinks', @@ -2118,81 +2081,84 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.batchDeleteUserLinks(request, options, callback); } /** - * Lookup for a single WebDataStream + * Creates a FirebaseLink. + * + * Properties can have at most one FirebaseLink. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the web data stream to lookup. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink + * Required. The Firebase link to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetWebDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async */ - getWebDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + createFirebaseLink( + request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream, + protos.google.analytics.admin.v1alpha.IFirebaseLink, ( - | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest | undefined ), {} | undefined ] >; - getWebDataStream( - request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + createFirebaseLink( + request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest | null | undefined, {} | null | undefined > ): void; - getWebDataStream( - request: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + createFirebaseLink( + request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest | null | undefined, {} | null | undefined > ): void; - getWebDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest, + createFirebaseLink( + request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IFirebaseLink, + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream, + protos.google.analytics.admin.v1alpha.IFirebaseLink, ( - | protos.google.analytics.admin.v1alpha.IGetWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest | undefined ), {} | undefined @@ -2211,20 +2177,19 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.getWebDataStream(request, options, callback); + return this.innerApiCalls.createFirebaseLink(request, options, callback); } /** - * Deletes a web stream on a property. + * Deletes a FirebaseLink on a property * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the web data stream to delete. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2232,57 +2197,57 @@ export class AnalyticsAdminServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteWebDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async */ - deleteWebDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + deleteFirebaseLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest | undefined ), {} | undefined ] >; - deleteWebDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + deleteFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest | null | undefined, {} | null | undefined > ): void; - deleteWebDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + deleteFirebaseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest | null | undefined, {} | null | undefined > ): void; - deleteWebDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest, + deleteFirebaseLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest | null | undefined, {} | null | undefined @@ -2291,7 +2256,7 @@ export class AnalyticsAdminServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IDeleteWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest | undefined ), {} | undefined @@ -2313,87 +2278,86 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.deleteWebDataStream(request, options, callback); + return this.innerApiCalls.deleteFirebaseLink(request, options, callback); } /** - * Updates a web stream on a property. + * Returns the Site Tag for the specified web stream. + * Site Tags are immutable singletons. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream - * Required. The web stream to update. - * The `name` field is used to identify the web stream to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * @param {string} request.name + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The first element of the array is an object representing [GlobalSiteTag]{@link google.analytics.admin.v1alpha.GlobalSiteTag}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateWebDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async */ - updateWebDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + getGlobalSiteTag( + request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream, + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, ( - | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest | undefined ), {} | undefined ] >; - updateWebDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + getGlobalSiteTag( + request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest | null | undefined, {} | null | undefined > ): void; - updateWebDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + getGlobalSiteTag( + request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest | null | undefined, {} | null | undefined > ): void; - updateWebDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest, + getGlobalSiteTag( + request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream, + protos.google.analytics.admin.v1alpha.IGlobalSiteTag, ( - | protos.google.analytics.admin.v1alpha.IUpdateWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest | undefined ), {} | undefined @@ -2412,88 +2376,87 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'web_data_stream.name': request.webDataStream!.name || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.updateWebDataStream(request, options, callback); + return this.innerApiCalls.getGlobalSiteTag(request, options, callback); } /** - * Creates a web stream with the specified location and attributes. + * Creates a GoogleAdsLink. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.WebDataStream} request.webDataStream - * Required. The web stream to create. * @param {string} request.parent - * Required. The parent resource where this web data stream will be created. - * Format: properties/123 + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink + * Required. The GoogleAdsLink to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateWebDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async */ - createWebDataStream( - request?: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + createGoogleAdsLink( + request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, ( - | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest | undefined ), {} | undefined ] >; - createWebDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + createGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): void; - createWebDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + createGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): void; - createWebDataStream( - request?: protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest, + createGoogleAdsLink( + request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IWebDataStream, - | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, ( - | protos.google.analytics.admin.v1alpha.ICreateWebDataStreamRequest + | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest | undefined ), {} | undefined @@ -2515,84 +2478,86 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.createWebDataStream(request, options, callback); + return this.innerApiCalls.createGoogleAdsLink(request, options, callback); } /** - * Lookup for a single IosAppDataStream + * Updates a GoogleAdsLink on a property * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the iOS app data stream to lookup. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink + * The GoogleAdsLink to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetIosAppDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async */ - getIosAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + updateGoogleAdsLink( + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, ( - | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest | undefined ), {} | undefined ] >; - getIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): void; - getIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): void; - getIosAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest, + updateGoogleAdsLink( + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream, + protos.google.analytics.admin.v1alpha.IGoogleAdsLink, ( - | protos.google.analytics.admin.v1alpha.IGetIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest | undefined ), {} | undefined @@ -2611,20 +2576,18 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + 'google_ads_link.name': request.googleAdsLink!.name || '', }); this.initialize(); - return this.innerApiCalls.getIosAppDataStream(request, options, callback); + return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); } /** - * Deletes an iOS app stream on a property. + * Deletes a GoogleAdsLink on a property * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the iOS app data stream to delete. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" + * Required. Example format: properties/1234/googleAdsLinks/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2632,57 +2595,57 @@ export class AnalyticsAdminServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteIosAppDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async */ - deleteIosAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + deleteGoogleAdsLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest | undefined ), {} | undefined ] >; - deleteIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): void; - deleteIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest | null | undefined, {} | null | undefined > ): void; - deleteIosAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest, + deleteGoogleAdsLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest | null | undefined, {} | null | undefined @@ -2691,7 +2654,7 @@ export class AnalyticsAdminServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IDeleteIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest | undefined ), {} | undefined @@ -2713,91 +2676,85 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.deleteIosAppDataStream( - request, - options, - callback - ); + return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); } /** - * Updates an iOS app stream on a property. + * Get data sharing settings on an account. + * Data sharing settings are singletons. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.IosAppDataStream} request.iosAppDataStream - * Required. The iOS app stream to update. - * The `name` field is used to identify the iOS app stream to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The first element of the array is an object representing [DataSharingSettings]{@link google.analytics.admin.v1alpha.DataSharingSettings}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateIosAppDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async */ - updateIosAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + getDataSharingSettings( + request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream, + protos.google.analytics.admin.v1alpha.IDataSharingSettings, ( - | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest | undefined ), {} | undefined ] >; - updateIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + getDataSharingSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest | null | undefined, {} | null | undefined > ): void; - updateIosAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + getDataSharingSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest | null | undefined, {} | null | undefined > ): void; - updateIosAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest, + getDataSharingSettings( + request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IIosAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IDataSharingSettings, + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream, + protos.google.analytics.admin.v1alpha.IDataSharingSettings, ( - | protos.google.analytics.admin.v1alpha.IUpdateIosAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest | undefined ), {} | undefined @@ -2816,91 +2773,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'ios_app_data_stream.name': request.iosAppDataStream!.name || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.updateIosAppDataStream( + return this.innerApiCalls.getDataSharingSettings( request, options, callback ); } /** - * Lookup for a single AndroidAppDataStream + * Lookup for a single "GA4" MeasurementProtocolSecret. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the android app data stream to lookup. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAndroidAppDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async */ - getAndroidAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + getMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, ( - | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | undefined ), {} | undefined ] >; - getAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - getAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - getAndroidAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest, + getMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, ( - | protos.google.analytics.admin.v1alpha.IGetAndroidAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest | undefined ), {} | undefined @@ -2922,88 +2879,89 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.getAndroidAppDataStream( + return this.innerApiCalls.getMeasurementProtocolSecret( request, options, callback ); } /** - * Deletes an android app stream on a property. + * Creates a measurement protocol secret. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the android app data stream to delete. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" + * @param {string} request.parent + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAndroidAppDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async */ - deleteAndroidAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + createMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, ( - | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | undefined ), {} | undefined ] >; - deleteAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - deleteAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - deleteAndroidAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest, + createMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, ( - | protos.google.analytics.admin.v1alpha.IDeleteAndroidAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest | undefined ), {} | undefined @@ -3022,94 +2980,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.deleteAndroidAppDataStream( + return this.innerApiCalls.createMeasurementProtocolSecret( request, options, callback ); } /** - * Updates an android app stream on a property. + * Deletes target MeasurementProtocolSecret. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.AndroidAppDataStream} request.androidAppDataStream - * Required. The android app stream to update. - * The `name` field is used to identify the android app stream to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * @param {string} request.name + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAndroidAppDataStream_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async */ - updateAndroidAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + deleteMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest | undefined ), {} | undefined ] >; - updateAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - updateAndroidAppDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - updateAndroidAppDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest, + deleteMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IUpdateAndroidAppDataStreamRequest + | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest | undefined ), {} | undefined @@ -3128,95 +3083,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'android_app_data_stream.name': - request.androidAppDataStream!.name || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.updateAndroidAppDataStream( + return this.innerApiCalls.deleteMeasurementProtocolSecret( request, options, callback ); } /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. + * Updates a measurement protocol secret. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink - * Required. The Firebase link to create. + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async */ - createFirebaseLink( - request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + updateMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, ( - | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest | undefined ), {} | undefined ] >; - createFirebaseLink( - request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - createFirebaseLink( - request: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): void; - createFirebaseLink( - request?: protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, + updateMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IFirebaseLink, - | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink, + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, ( - | protos.google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest + | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest | undefined ), {} | undefined @@ -3235,86 +3186,102 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + 'measurement_protocol_secret.name': + request.measurementProtocolSecret!.name || '', }); this.initialize(); - return this.innerApiCalls.createFirebaseLink(request, options, callback); + return this.innerApiCalls.updateMeasurementProtocolSecret( + request, + options, + callback + ); } /** - * Deletes a FirebaseLink on a property + * Acknowledges the terms of user data collection for the specified property. + * + * This acknowledgement must be completed (either in the Google Analytics UI + * or via this API) before MeasurementProtocolSecret resources may be created. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 + * @param {string} request.property + * Required. The property for which to acknowledge user data collection. + * @param {string} request.acknowledgement + * Required. An acknowledgement that the caller of this method understands the terms + * of user data collection. + * + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [AcknowledgeUserDataCollectionResponse]{@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async */ - deleteFirebaseLink( - request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + acknowledgeUserDataCollection( + request?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, ( - | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest | undefined ), {} | undefined ] >; - deleteFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + acknowledgeUserDataCollection( + request: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest | null | undefined, {} | null | undefined > ): void; - deleteFirebaseLink( - request: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + acknowledgeUserDataCollection( + request: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest | null | undefined, {} | null | undefined > ): void; - deleteFirebaseLink( - request?: protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, + acknowledgeUserDataCollection( + request?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, ( - | protos.google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest + | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest | undefined ), {} | undefined @@ -3333,89 +3300,90 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + property: request.property || '', }); this.initialize(); - return this.innerApiCalls.deleteFirebaseLink(request, options, callback); + return this.innerApiCalls.acknowledgeUserDataCollection( + request, + options, + callback + ); } /** - * Returns the Site Tag for the specified web stream. - * Site Tags are immutable singletons. + * Lookup for Google Signals settings for a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/456/globalSiteTag" + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GlobalSiteTag]{@link google.analytics.admin.v1alpha.GlobalSiteTag}. + * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async */ - getGlobalSiteTag( - request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + getGoogleSignalsSettings( + request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, ( - | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest | undefined ), {} | undefined ] >; - getGlobalSiteTag( - request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + getGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IGlobalSiteTag, - | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined > ): void; - getGlobalSiteTag( - request: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + getGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IGlobalSiteTag, - | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined > ): void; - getGlobalSiteTag( - request?: protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, + getGoogleSignalsSettings( + request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IGlobalSiteTag, - | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IGlobalSiteTag, - | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGlobalSiteTag, + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, ( - | protos.google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest + | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest | undefined ), {} | undefined @@ -3437,84 +3405,91 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.getGlobalSiteTag(request, options, callback); + return this.innerApiCalls.getGoogleSignalsSettings( + request, + options, + callback + ); } /** - * Creates a GoogleAdsLink. + * Updates Google Signals settings for a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink - * Required. The GoogleAdsLink to create. + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} request.googleSignalsSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async */ - createGoogleAdsLink( - request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + updateGoogleSignalsSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, ( - | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest | undefined ), {} | undefined ] >; - createGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + updateGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined > ): void; - createGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + updateGoogleSignalsSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined > ): void; - createGoogleAdsLink( - request?: protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, + updateGoogleSignalsSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, ( - | protos.google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest + | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest | undefined ), {} | undefined @@ -3533,89 +3508,93 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + 'google_signals_settings.name': + request.googleSignalsSettings!.name || '', }); this.initialize(); - return this.innerApiCalls.createGoogleAdsLink(request, options, callback); + return this.innerApiCalls.updateGoogleSignalsSettings( + request, + options, + callback + ); } /** - * Updates a GoogleAdsLink on a property + * Creates a conversion event with the specified attributes. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink - * The GoogleAdsLink to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * @param {google.analytics.admin.v1alpha.ConversionEvent} request.conversionEvent + * Required. The conversion event to create. + * @param {string} request.parent + * Required. The resource name of the parent property where this conversion event will + * be created. Format: properties/123 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async */ - updateGoogleAdsLink( - request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + createConversionEvent( + request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + protos.google.analytics.admin.v1alpha.IConversionEvent, ( - | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest | undefined ), {} | undefined ] >; - updateGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + createConversionEvent( + request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest | null | undefined, {} | null | undefined > ): void; - updateGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + createConversionEvent( + request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest | null | undefined, {} | null | undefined > ): void; - updateGoogleAdsLink( - request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, + createConversionEvent( + request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink, + protos.google.analytics.admin.v1alpha.IConversionEvent, ( - | protos.google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest + | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest | undefined ), {} | undefined @@ -3634,85 +3613,87 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'google_ads_link.name': request.googleAdsLink!.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); + return this.innerApiCalls.createConversionEvent(request, options, callback); } /** - * Deletes a GoogleAdsLink on a property + * Retrieve a single conversion event. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. Example format: properties/1234/googleAdsLinks/5678 + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async */ - deleteGoogleAdsLink( - request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + getConversionEvent( + request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IConversionEvent, ( - | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest | undefined ), {} | undefined ] >; - deleteGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + getConversionEvent( + request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest | null | undefined, {} | null | undefined > ): void; - deleteGoogleAdsLink( - request: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + getConversionEvent( + request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest | null | undefined, {} | null | undefined > ): void; - deleteGoogleAdsLink( - request?: protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, + getConversionEvent( + request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + protos.google.analytics.admin.v1alpha.IConversionEvent, + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IConversionEvent, ( - | protos.google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest + | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest | undefined ), {} | undefined @@ -3734,85 +3715,84 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); + return this.innerApiCalls.getConversionEvent(request, options, callback); } /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. + * Deletes a conversion event in a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DataSharingSettings]{@link google.analytics.admin.v1alpha.DataSharingSettings}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async */ - getDataSharingSettings( - request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + deleteConversionEvent( + request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDataSharingSettings, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest | undefined ), {} | undefined ] >; - getDataSharingSettings( - request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + deleteConversionEvent( + request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IDataSharingSettings, - | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest | null | undefined, {} | null | undefined > ): void; - getDataSharingSettings( - request: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + deleteConversionEvent( + request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IDataSharingSettings, - | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest | null | undefined, {} | null | undefined > ): void; - getDataSharingSettings( - request?: protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, + deleteConversionEvent( + request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IDataSharingSettings, - | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IDataSharingSettings, - | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDataSharingSettings, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest + | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest | undefined ), {} | undefined @@ -3834,90 +3814,83 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.getDataSharingSettings( - request, - options, - callback - ); + return this.innerApiCalls.deleteConversionEvent(request, options, callback); } /** - * Lookup for a single "GA4" MeasurementProtocolSecret. + * Look up a single DisplayVideo360AdvertiserLink * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. + * Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async */ - getMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, + getDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - getMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, + getDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - getMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, + getDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - getMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, + getDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -3939,91 +3912,92 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.getMeasurementProtocolSecret( + return this.innerApiCalls.getDisplayVideo360AdvertiserLink( request, options, callback ); } /** - * Creates a measurement protocol secret. + * Creates a DisplayVideo360AdvertiserLink. + * This can only be utilized by users who have proper authorization both on + * the Google Analytics property and on the Display & Video 360 advertiser. + * Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource where this secret will be created. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret - * Required. The measurement protocol secret to create. + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} request.displayVideo_360AdvertiserLink + * Required. The DisplayVideo360AdvertiserLink to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async */ - createMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, + createDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - createMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, + createDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - createMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, + createDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - createMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, + createDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -4045,23 +4019,20 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.createMeasurementProtocolSecret( + return this.innerApiCalls.createDisplayVideo360AdvertiserLink( request, options, callback ); } /** - * Deletes target MeasurementProtocolSecret. + * Deletes a DisplayVideo360AdvertiserLink on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. + * Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4069,57 +4040,57 @@ export class AnalyticsAdminServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async */ - deleteMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + deleteDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - deleteMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + deleteDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - deleteMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + deleteDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - deleteMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, + deleteDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined @@ -4128,7 +4099,7 @@ export class AnalyticsAdminServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -4150,88 +4121,90 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.deleteMeasurementProtocolSecret( + return this.innerApiCalls.deleteDisplayVideo360AdvertiserLink( request, options, callback ); } /** - * Updates a measurement protocol secret. + * Updates a DisplayVideo360AdvertiserLink on a property. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} request.measurementProtocolSecret - * Required. The measurement protocol secret to update. + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} request.displayVideo_360AdvertiserLink + * The DisplayVideo360AdvertiserLink to update * @param {google.protobuf.FieldMask} request.updateMask - * The list of fields to be updated. Omitted fields will not be updated. + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async */ - updateMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + updateDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined ] >; - updateMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + updateDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - updateMeasurementProtocolSecret( - request: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + updateDisplayVideo360AdvertiserLink( + request: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): void; - updateMeasurementProtocolSecret( - request?: protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, + updateDisplayVideo360AdvertiserLink( + request?: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, - | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, ( - | protos.google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest + | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest | undefined ), {} | undefined @@ -4250,102 +4223,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'measurement_protocol_secret.name': - request.measurementProtocolSecret!.name || '', + 'display_video_360_advertiser_link.name': + request.displayVideo_360AdvertiserLink!.name || '', }); this.initialize(); - return this.innerApiCalls.updateMeasurementProtocolSecret( + return this.innerApiCalls.updateDisplayVideo360AdvertiserLink( request, options, callback ); } /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or via this API) before MeasurementProtocolSecret resources may be created. + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. * * @param {Object} request * The request object that will be sent. - * @param {string} request.property - * Required. The property for which to acknowledge user data collection. - * @param {string} request.acknowledgement - * Required. An acknowledgement that the caller of this method understands the terms - * of user data collection. - * - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AcknowledgeUserDataCollectionResponse]{@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse}. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async */ - acknowledgeUserDataCollection( - request?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + getDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - acknowledgeUserDataCollection( - request: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + getDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, - | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - acknowledgeUserDataCollection( - request: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + getDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, - | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - acknowledgeUserDataCollection( - request?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, + getDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, - | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, - | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest + | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -4364,90 +4326,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - property: request.property || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.acknowledgeUserDataCollection( + return this.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal( request, options, callback ); } /** - * Lookup for Google Signals settings for a property. + * Creates a DisplayVideo360AdvertiserLinkProposal. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} request.displayVideo_360AdvertiserLinkProposal + * Required. The DisplayVideo360AdvertiserLinkProposal to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async */ - getGoogleSignalsSettings( - request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + createDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - getGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + createDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - getGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + createDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - getGoogleSignalsSettings( - request?: protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, + createDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest + | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -4466,94 +4429,91 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.getGoogleSignalsSettings( + return this.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal( request, options, callback ); } /** - * Updates Google Signals settings for a property. + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + * This can only be used on cancelled proposals. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} request.googleSignalsSettings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GoogleSignalsSettings]{@link google.analytics.admin.v1alpha.GoogleSignalsSettings}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async */ - updateGoogleSignalsSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + deleteDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - updateGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + deleteDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - updateGoogleSignalsSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + deleteDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - updateGoogleSignalsSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, + deleteDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, - | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest + | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -4572,93 +4532,92 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'google_signals_settings.name': - request.googleSignalsSettings!.name || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.updateGoogleSignalsSettings( + return this.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal( request, options, callback ); } /** - * Creates a conversion event with the specified attributes. + * Approves a DisplayVideo360AdvertiserLinkProposal. + * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + * DisplayVideo360AdvertiserLink will be created. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.ConversionEvent} request.conversionEvent - * Required. The conversion event to create. - * @param {string} request.parent - * Required. The resource name of the parent property where this conversion event will - * be created. Format: properties/123 + * @param {string} request.name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * The first element of the array is an object representing [ApproveDisplayVideo360AdvertiserLinkProposalResponse]{@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async + * @example include:samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async */ - createConversionEvent( - request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + approveDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent, + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, ( - | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - createConversionEvent( - request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + approveDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - createConversionEvent( - request: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + approveDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - createConversionEvent( - request?: protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest, + approveDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent, + protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, ( - | protos.google.analytics.admin.v1alpha.ICreateConversionEventRequest + | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -4677,87 +4636,94 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.createConversionEvent(request, options, callback); + return this.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal( + request, + options, + callback + ); } /** - * Retrieve a single conversion event. + * Cancels a DisplayVideo360AdvertiserLinkProposal. + * Cancelling can mean either: + * - Declining a proposal initiated from Display & Video 360 + * - Withdrawing a proposal initiated from Google Analytics + * After being cancelled, a proposal will eventually be deleted automatically. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async + * @example include:samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async */ - getConversionEvent( - request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + cancelDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined ] >; - getConversionEvent( - request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + cancelDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): void; - getConversionEvent( - request: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + cancelDisplayVideo360AdvertiserLinkProposal( + request: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest - | null + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + | null | undefined, {} | null | undefined > ): void; - getConversionEvent( - request?: protos.google.analytics.admin.v1alpha.IGetConversionEventRequest, + cancelDisplayVideo360AdvertiserLinkProposal( + request?: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IConversionEvent, - | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent, + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, ( - | protos.google.analytics.admin.v1alpha.IGetConversionEventRequest + | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest | undefined ), {} | undefined @@ -4779,84 +4745,88 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.getConversionEvent(request, options, callback); + return this.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal( + request, + options, + callback + ); } /** - * Deletes a conversion event in a property. + * Creates a CustomDimension. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension + * Required. The CustomDimension to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async */ - deleteConversionEvent( - request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + createCustomDimension( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.ICustomDimension, ( - | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest | undefined ), {} | undefined ] >; - deleteConversionEvent( - request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - deleteConversionEvent( - request: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + createCustomDimension( + request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - deleteConversionEvent( - request?: protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest, + createCustomDimension( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.ICustomDimension, ( - | protos.google.analytics.admin.v1alpha.IDeleteConversionEventRequest + | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest | undefined ), {} | undefined @@ -4875,86 +4845,89 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.deleteConversionEvent(request, options, callback); + return this.innerApiCalls.createCustomDimension(request, options, callback); } /** - * Look up a single DisplayVideo360AdvertiserLink + * Updates a CustomDimension on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension + * The CustomDimension to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async */ - getDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, + updateCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + protos.google.analytics.admin.v1alpha.ICustomDimension, ( - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest | undefined ), {} | undefined ] >; - getDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - getDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, + updateCustomDimension( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - getDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, + updateCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + protos.google.analytics.admin.v1alpha.ICustomDimension, ( - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest | undefined ), {} | undefined @@ -4973,95 +4946,86 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + 'custom_dimension.name': request.customDimension!.name || '', }); this.initialize(); - return this.innerApiCalls.getDisplayVideo360AdvertiserLink( - request, - options, - callback - ); + return this.innerApiCalls.updateCustomDimension(request, options, callback); } /** - * Creates a DisplayVideo360AdvertiserLink. - * This can only be utilized by users who have proper authorization both on - * the Google Analytics property and on the Display & Video 360 advertiser. - * Users who do not have access to the Display & Video 360 advertiser should - * instead seek to create a DisplayVideo360LinkProposal. + * Archives a CustomDimension on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} request.displayVideo_360AdvertiserLink - * Required. The DisplayVideo360AdvertiserLink to create. + * @param {string} request.name + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async */ - createDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, + archiveCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest | undefined ), {} | undefined ] >; - createDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - createDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, + archiveCustomDimension( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - createDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, + archiveCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest | undefined ), {} | undefined @@ -5080,90 +5044,90 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.createDisplayVideo360AdvertiserLink( + return this.innerApiCalls.archiveCustomDimension( request, options, callback ); } /** - * Deletes a DisplayVideo360AdvertiserLink on a property. + * Lookup for a single CustomDimension. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async */ - deleteDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, + getCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.ICustomDimension, ( - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest | undefined ), {} | undefined ] >; - deleteDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - deleteDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, + getCustomDimension( + request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest | null | undefined, {} | null | undefined > ): void; - deleteDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, + getCustomDimension( + request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest - | null + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomDimension, + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.ICustomDimension, ( - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest | undefined ), {} | undefined @@ -5185,90 +5149,84 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.deleteDisplayVideo360AdvertiserLink( - request, - options, - callback - ); + return this.innerApiCalls.getCustomDimension(request, options, callback); } /** - * Updates a DisplayVideo360AdvertiserLink on a property. + * Creates a CustomMetric. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} request.displayVideo_360AdvertiserLink - * The DisplayVideo360AdvertiserLink to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric + * Required. The CustomMetric to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async */ - updateDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, + createCustomMetric( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + protos.google.analytics.admin.v1alpha.ICustomMetric, ( - | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest | undefined ), {} | undefined ] >; - updateDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - updateDisplayVideo360AdvertiserLink( - request: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, + createCustomMetric( + request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - updateDisplayVideo360AdvertiserLink( - request?: protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, + createCustomMetric( + request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, - | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, + protos.google.analytics.admin.v1alpha.ICustomMetric, ( - | protos.google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest + | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest | undefined ), {} | undefined @@ -5287,91 +5245,89 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'display_video_360_advertiser_link.name': - request.displayVideo_360AdvertiserLink!.name || '', + parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.updateDisplayVideo360AdvertiserLink( - request, - options, - callback - ); + return this.innerApiCalls.createCustomMetric(request, options, callback); } /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * Updates a CustomMetric on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric + * The CustomMetric to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async */ - getDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, + updateCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + protos.google.analytics.admin.v1alpha.ICustomMetric, ( - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest | undefined ), {} | undefined ] >; - getDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - getDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, + updateCustomMetric( + request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - getDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, + updateCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + protos.google.analytics.admin.v1alpha.ICustomMetric, ( - | protos.google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest | undefined ), {} | undefined @@ -5390,91 +5346,86 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + 'custom_metric.name': request.customMetric!.name || '', }); this.initialize(); - return this.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal( - request, - options, - callback - ); + return this.innerApiCalls.updateCustomMetric(request, options, callback); } /** - * Creates a DisplayVideo360AdvertiserLinkProposal. + * Archives a CustomMetric on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} request.displayVideo_360AdvertiserLinkProposal - * Required. The DisplayVideo360AdvertiserLinkProposal to create. + * @param {string} request.name + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async + * @example include:samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async */ - createDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, + archiveCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest | undefined ), {} | undefined ] >; - createDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - createDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, + archiveCustomMetric( + request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - createDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, + archiveCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest | undefined ), {} | undefined @@ -5493,93 +5444,82 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal( - request, - options, - callback - ); + return this.innerApiCalls.archiveCustomMetric(request, options, callback); } /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - * This can only be used on cancelled proposals. + * Lookup for a single CustomMetric. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async */ - deleteDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, + getCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, - ( - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest - | undefined - ), + protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, {} | undefined ] >; - deleteDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - deleteDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, + getCustomMetric( + request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | null | undefined, {} | null | undefined > ): void; - deleteDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, + getCustomMetric( + request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.ICustomMetric, + | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, - ( - | protos.google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest - | undefined - ), + protos.google.analytics.admin.v1alpha.ICustomMetric, + protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, {} | undefined ] > | void { @@ -5599,89 +5539,85 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal( - request, - options, - callback - ); + return this.innerApiCalls.getCustomMetric(request, options, callback); } /** - * Approves a DisplayVideo360AdvertiserLinkProposal. - * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - * DisplayVideo360AdvertiserLink will be created. + * Returns the singleton data retention settings for this property. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ApproveDisplayVideo360AdvertiserLinkProposalResponse]{@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse}. + * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1alpha.DataRetentionSettings}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async */ - approveDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, + getDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, ( - | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest | undefined ), {} | undefined ] >; - approveDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, + getDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, - | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest | null | undefined, {} | null | undefined > ): void; - approveDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, + getDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, - | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest | null | undefined, {} | null | undefined > ): void; - approveDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, + getDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, - | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, - | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, ( - | protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest | undefined ), {} | undefined @@ -5703,91 +5639,91 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal( + return this.innerApiCalls.getDataRetentionSettings( request, options, callback ); } /** - * Cancels a DisplayVideo360AdvertiserLinkProposal. - * Cancelling can mean either: - * - Declining a proposal initiated from Display & Video 360 - * - Withdrawing a proposal initiated from Google Analytics - * After being cancelled, a proposal will eventually be deleted automatically. + * Updates the singleton data retention settings for this property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} request.dataRetentionSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. + * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1alpha.DataRetentionSettings}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async */ - cancelDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, + updateDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, ( - | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest | undefined ), {} | undefined ] >; - cancelDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, + updateDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest | null | undefined, {} | null | undefined > ): void; - cancelDisplayVideo360AdvertiserLinkProposal( - request: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, + updateDataRetentionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest | null | undefined, {} | null | undefined > ): void; - cancelDisplayVideo360AdvertiserLinkProposal( - request?: protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, + updateDataRetentionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, - | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, + protos.google.analytics.admin.v1alpha.IDataRetentionSettings, ( - | protos.google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest + | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest | undefined ), {} | undefined @@ -5806,91 +5742,92 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + 'data_retention_settings.name': + request.dataRetentionSettings!.name || '', }); this.initialize(); - return this.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal( + return this.innerApiCalls.updateDataRetentionSettings( request, options, callback ); } /** - * Creates a CustomDimension. + * Creates a DataStream. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension - * Required. The CustomDimension to create. + * @param {google.analytics.admin.v1alpha.DataStream} request.dataStream + * Required. The DataStream to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async */ - createCustomDimension( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + createDataStream( + request?: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDataStream, ( - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest | undefined ), {} | undefined ] >; - createCustomDimension( - request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + createDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest | null | undefined, {} | null | undefined > ): void; - createCustomDimension( - request: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + createDataStream( + request: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest | null | undefined, {} | null | undefined > ): void; - createCustomDimension( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, + createDataStream( + request?: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.analytics.admin.v1alpha.IDataStream, ( - | protos.google.analytics.admin.v1alpha.ICreateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest | undefined ), {} | undefined @@ -5912,86 +5849,83 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.createCustomDimension(request, options, callback); + return this.innerApiCalls.createDataStream(request, options, callback); } /** - * Updates a CustomDimension on a property. + * Deletes a DataStream on a property. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension - * The CustomDimension to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * @param {string} request.name + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async */ - updateCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + deleteDataStream( + request?: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest | undefined ), {} | undefined ] >; - updateCustomDimension( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + deleteDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest | null | undefined, {} | null | undefined > ): void; - updateCustomDimension( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + deleteDataStream( + request: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest | null | undefined, {} | null | undefined > ): void; - updateCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, + deleteDataStream( + request?: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, + protos.google.protobuf.IEmpty, ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest | undefined ), {} | undefined @@ -6010,86 +5944,89 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - 'custom_dimension.name': request.customDimension!.name || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.updateCustomDimension(request, options, callback); + return this.innerApiCalls.deleteDataStream(request, options, callback); } /** - * Archives a CustomDimension on a property. + * Updates a DataStream on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 + * @param {google.analytics.admin.v1alpha.DataStream} request.dataStream + * The DataStream to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async + * @example include:samples/generated/v1alpha/analytics_admin_service.update_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async */ - archiveCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + updateDataStream( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDataStream, ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest | undefined ), {} | undefined ] >; - archiveCustomDimension( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + updateDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest | null | undefined, {} | null | undefined > ): void; - archiveCustomDimension( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + updateDataStream( + request: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest | null | undefined, {} | null | undefined > ): void; - archiveCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, + updateDataStream( + request?: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IDataStream, ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest + | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest | undefined ), {} | undefined @@ -6108,92 +6045,82 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - name: request.name || '', + 'data_stream.name': request.dataStream!.name || '', }); this.initialize(); - return this.innerApiCalls.archiveCustomDimension( - request, - options, - callback - ); + return this.innerApiCalls.updateDataStream(request, options, callback); } /** - * Lookup for a single CustomDimension. + * Lookup for a single DataStream. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_stream.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async */ - getCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + getDataStream( + request?: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, - ( - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest - | undefined - ), + protos.google.analytics.admin.v1alpha.IDataStream, + protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | undefined, {} | undefined ] >; - getCustomDimension( - request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + getDataStream( + request: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | null | undefined, {} | null | undefined > ): void; - getCustomDimension( - request: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + getDataStream( + request: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | null | undefined, {} | null | undefined > ): void; - getCustomDimension( - request?: protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest, + getDataStream( + request?: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomDimension, - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest + protos.google.analytics.admin.v1alpha.IDataStream, + | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension, - ( - | protos.google.analytics.admin.v1alpha.IGetCustomDimensionRequest - | undefined - ), + protos.google.analytics.admin.v1alpha.IDataStream, + protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | undefined, {} | undefined ] > | void { @@ -6213,87 +6140,99 @@ export class AnalyticsAdminServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.getCustomDimension(request, options, callback); + return this.innerApiCalls.getDataStream(request, options, callback); } + /** - * Creates a CustomMetric. + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric - * Required. The CustomMetric to create. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async */ - createCustomMetric( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - ( - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest - | undefined - ), - {} | undefined + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse ] >; - createCustomMetric( - request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse | null | undefined, - {} | null | undefined + protos.google.analytics.admin.v1alpha.IAccount > ): void; - createCustomMetric( - request: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse | null | undefined, - {} | null | undefined + protos.google.analytics.admin.v1alpha.IAccount > ): void; - createCustomMetric( - request?: protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest, + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, optionsOrCallback?: | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse | null | undefined, - {} | null | undefined + protos.google.analytics.admin.v1alpha.IAccount >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse | null | undefined, - {} | null | undefined + protos.google.analytics.admin.v1alpha.IAccount > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - ( - | protos.google.analytics.admin.v1alpha.ICreateCustomMetricRequest - | undefined - ), - {} | undefined + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse ] > | void { request = request || {}; @@ -6307,1847 +6246,190 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); this.initialize(); - return this.innerApiCalls.createCustomMetric(request, options, callback); + return this.innerApiCalls.listAccounts(request, options, callback); } + /** - * Updates a CustomMetric on a property. - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric - * The CustomMetric to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async - */ - updateCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest - | undefined - ), - {} | undefined - ] - >; - updateCustomMetric( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateCustomMetric( - request: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - ( - | protos.google.analytics.admin.v1alpha.IUpdateCustomMetricRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - 'custom_metric.name': request.customMetric!.name || '', - }); - this.initialize(); - return this.innerApiCalls.updateCustomMetric(request, options, callback); - } - /** - * Archives a CustomMetric on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async - */ - archiveCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, - options?: CallOptions - ): Promise< - [ - protos.google.protobuf.IEmpty, - ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest - | undefined - ), - {} | undefined - ] - >; - archiveCustomMetric( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, - options: CallOptions, - callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): void; - archiveCustomMetric( - request: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, - callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): void; - archiveCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.protobuf.IEmpty, - ( - | protos.google.analytics.admin.v1alpha.IArchiveCustomMetricRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.archiveCustomMetric(request, options, callback); - } - /** - * Lookup for a single CustomMetric. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async - */ - getCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, - {} | undefined - ] - >; - getCustomMetric( - request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getCustomMetric( - request: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getCustomMetric( - request?: protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.ICustomMetric, - | protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.ICustomMetric, - protos.google.analytics.admin.v1alpha.IGetCustomMetricRequest | undefined, - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.getCustomMetric(request, options, callback); - } - /** - * Returns the singleton data retention settings for this property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1alpha.DataRetentionSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async - */ - getDataRetentionSettings( - request?: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - ( - | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest - | undefined - ), - {} | undefined - ] - >; - getDataRetentionSettings( - request: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getDataRetentionSettings( - request: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getDataRetentionSettings( - request?: protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - ( - | protos.google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.getDataRetentionSettings( - request, - options, - callback - ); - } - /** - * Updates the singleton data retention settings for this property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.DataRetentionSettings} request.dataRetentionSettings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1alpha.DataRetentionSettings}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async - */ - updateDataRetentionSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - ( - | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest - | undefined - ), - {} | undefined - ] - >; - updateDataRetentionSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateDataRetentionSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateDataRetentionSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataRetentionSettings, - ( - | protos.google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - 'data_retention_settings.name': - request.dataRetentionSettings!.name || '', - }); - this.initialize(); - return this.innerApiCalls.updateDataRetentionSettings( - request, - options, - callback - ); - } - /** - * Creates a DataStream. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {google.analytics.admin.v1alpha.DataStream} request.dataStream - * Required. The DataStream to create. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.create_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async - */ - createDataStream( - request?: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataStream, - ( - | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest - | undefined - ), - {} | undefined - ] - >; - createDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - createDataStream( - request: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - createDataStream( - request?: protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataStream, - ( - | protos.google.analytics.admin.v1alpha.ICreateDataStreamRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - this.initialize(); - return this.innerApiCalls.createDataStream(request, options, callback); - } - /** - * Deletes a DataStream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async - */ - deleteDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, - options?: CallOptions - ): Promise< - [ - protos.google.protobuf.IEmpty, - ( - | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest - | undefined - ), - {} | undefined - ] - >; - deleteDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, - options: CallOptions, - callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - deleteDataStream( - request: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, - callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - deleteDataStream( - request?: protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.protobuf.IEmpty, - ( - | protos.google.analytics.admin.v1alpha.IDeleteDataStreamRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.deleteDataStream(request, options, callback); - } - /** - * Updates a DataStream on a property. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.DataStream} request.dataStream - * The DataStream to update - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async - */ - updateDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataStream, - ( - | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest - | undefined - ), - {} | undefined - ] - >; - updateDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateDataStream( - request: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - updateDataStream( - request?: protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataStream, - ( - | protos.google.analytics.admin.v1alpha.IUpdateDataStreamRequest - | undefined - ), - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - 'data_stream.name': request.dataStream!.name || '', - }); - this.initialize(); - return this.innerApiCalls.updateDataStream(request, options, callback); - } - /** - * Lookup for a single DataStream. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_data_stream.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async - */ - getDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataStream, - protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | undefined, - {} | undefined - ] - >; - getDataStream( - request: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, - options: CallOptions, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getDataStream( - request: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, - callback: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): void; - getDataStream( - request?: protos.google.analytics.admin.v1alpha.IGetDataStreamRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.analytics.admin.v1alpha.IDataStream, - | protos.google.analytics.admin.v1alpha.IGetDataStreamRequest - | null - | undefined, - {} | null | undefined - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IDataStream, - protos.google.analytics.admin.v1alpha.IGetDataStreamRequest | undefined, - {} | undefined - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.getDataStream(request, options, callback); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse - ] - >; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccount - > - ): void; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccount - > - ): void; - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - optionsOrCallback?: - | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccount - >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccount - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - this.initialize(); - return this.innerApiCalls.listAccounts(request, options, callback); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Stream} - * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed. Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccountsStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): Transform { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccounts.createStream( - this.innerApiCalls.listAccounts as gax.GaxCall, - request, - callSettings - ); - } - - /** - * Equivalent to `listAccounts`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async - */ - listAccountsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccounts.asyncIterate( - this.innerApiCalls['listAccounts'] as GaxCall, - request as unknown as RequestType, - callSettings - ) as AsyncIterable; - } - /** - * Returns summaries of all accounts accessible by the caller. - * - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - ] - >; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary - > - ): void; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary - > - ): void; - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - optionsOrCallback?: - | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary - >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - this.initialize(); - return this.innerApiCalls.listAccountSummaries(request, options, callback); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Stream} - * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed. Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccountSummariesStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options?: CallOptions - ): Transform { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccountSummaries']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccountSummaries.createStream( - this.innerApiCalls.listAccountSummaries as gax.GaxCall, - request, - callSettings - ); - } - - /** - * Equivalent to `listAccountSummaries`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async - */ - listAccountSummariesAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccountSummaries']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccountSummaries.asyncIterate( - this.innerApiCalls['listAccountSummaries'] as GaxCall, - request as unknown as RequestType, - callSettings - ) as AsyncIterable; - } - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse - ] - >; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IProperty - > - ): void; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IProperty - > - ): void; - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - optionsOrCallback?: - | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IProperty - >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IProperty - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - this.initialize(); - return this.innerApiCalls.listProperties(request, options, callback); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Stream} - * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed. Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listPropertiesStream( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options?: CallOptions - ): Transform { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listProperties']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listProperties.createStream( - this.innerApiCalls.listProperties as gax.GaxCall, - request, - callSettings - ); - } - - /** - * Equivalent to `listProperties`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_properties.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async - */ - listPropertiesAsync( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listProperties']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listProperties.asyncIterate( - this.innerApiCalls['listProperties'] as GaxCall, - request as unknown as RequestType, - callSettings - ) as AsyncIterable; - } - /** - * Lists all user links on an account or property. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: accounts/1234 - * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must - * match the call that provided the page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options?: CallOptions - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse - ] - >; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IUserLink - > - ): void; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IUserLink - > - ): void; - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - optionsOrCallback?: - | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IUserLink - >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse - | null - | undefined, - protos.google.analytics.admin.v1alpha.IUserLink - > - ): Promise< - [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse - ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - this.initialize(); - return this.innerApiCalls.listUserLinks(request, options, callback); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListAccounts` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListAccounts` must * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. + * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listAccountsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAccountsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - const defaultCallSettings = this._defaults['listUserLinks']; + const defaultCallSettings = this._defaults['listAccounts']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.createStream( - this.innerApiCalls.listUserLinks as gax.GaxCall, + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listUserLinks`, but returns an iterable object. + * Equivalent to `listAccounts`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListAccounts` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListAccounts` must * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, + * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_user_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async */ - listUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listAccountsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - const defaultCallSettings = this._defaults['listUserLinks']; + const defaultCallSettings = this._defaults['listAccounts']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.asyncIterate( - this.innerApiCalls['listUserLinks'] as GaxCall, + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all user links on an account or property, including implicit ones - * that come from effective permissions granted by groups or organization - * admin roles. - * - * If a returned user link does not have direct permissions, they cannot - * be removed from the account or property directly with the DeleteUserLink - * command. They have to be removed from the group/etc that gives them - * permissions, which is currently only usable/discoverable in the GA or GMP - * UIs. + * Returns summaries of all accounts accessible by the caller. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListAccountSummaries` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. + * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listAccountSummariesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse ] >; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IAccountSummary > ): void; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IAccountSummary > ): void; - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IAccountSummary >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IAccountSummary > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse ] > | void { request = request || {}; @@ -8161,204 +6443,208 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); this.initialize(); - return this.innerApiCalls.auditUserLinks(request, options, callback); + return this.innerApiCalls.listAccountSummaries(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListAccountSummaries` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. + * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listAccountSummariesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listAccountSummariesStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - const defaultCallSettings = this._defaults['auditUserLinks']; + const defaultCallSettings = this._defaults['listAccountSummaries']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.createStream( - this.innerApiCalls.auditUserLinks as gax.GaxCall, + return this.descriptors.page.listAccountSummaries.createStream( + this.innerApiCalls.listAccountSummaries as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `auditUserLinks`, but returns an iterable object. + * Equivalent to `listAccountSummaries`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListAccountSummaries` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must - * match the call that provided the page token. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, + * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.audit_user_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async */ - auditUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listAccountSummariesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - const defaultCallSettings = this._defaults['auditUserLinks']; + const defaultCallSettings = this._defaults['listAccountSummaries']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.asyncIterate( - this.innerApiCalls['auditUserLinks'] as GaxCall, + return this.descriptors.page.listAccountSummaries.asyncIterate( + this.innerApiCalls['listAccountSummaries'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns child web data streams under the specified parent property. + * Returns child Properties under the specified parent Account. * - * Web data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant web data streams are found. + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "properties/123" + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. + * A page token, received from a previous `ListProperties` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. + * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listWebDataStreamsAsync()` + * We recommend using `listPropertiesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listWebDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream[], - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse ] >; - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IProperty > ): void; - listWebDataStreams( - request: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IProperty > ): void; - listWebDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IProperty >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IWebDataStream + protos.google.analytics.admin.v1alpha.IProperty > ): Promise< [ - protos.google.analytics.admin.v1alpha.IWebDataStream[], - protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListWebDataStreamsResponse + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse ] > | void { request = request || {}; @@ -8372,206 +6658,226 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); this.initialize(); - return this.innerApiCalls.listWebDataStreams(request, options, callback); + return this.innerApiCalls.listProperties(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "properties/123" + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. + * A page token, received from a previous `ListProperties` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream} on 'data' event. + * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listWebDataStreamsAsync()` + * We recommend using `listPropertiesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listWebDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listPropertiesStream( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - const defaultCallSettings = this._defaults['listWebDataStreams']; + const defaultCallSettings = this._defaults['listProperties']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listWebDataStreams.createStream( - this.innerApiCalls.listWebDataStreams as gax.GaxCall, + return this.descriptors.page.listProperties.createStream( + this.innerApiCalls.listProperties as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listWebDataStreams`, but returns an iterable object. + * Equivalent to `listProperties`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "properties/123" + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListWebDataStreams` call. + * A page token, received from a previous `ListProperties` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [WebDataStream]{@link google.analytics.admin.v1alpha.WebDataStream}. The API will be called under the hood as needed, once per the page, + * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListWebDataStreams_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_properties.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async */ - listWebDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListWebDataStreamsRequest, + listPropertiesAsync( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - const defaultCallSettings = this._defaults['listWebDataStreams']; + const defaultCallSettings = this._defaults['listProperties']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listWebDataStreams.asyncIterate( - this.innerApiCalls['listWebDataStreams'] as GaxCall, + return this.descriptors.page.listProperties.asyncIterate( + this.innerApiCalls['listProperties'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns child iOS app data streams under the specified parent property. - * - * iOS app data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant iOS app data streams are found. + * Lists all user links on an account or property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. + * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listIosAppDataStreamsAsync()` + * We recommend using `listUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listIosAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream[], - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse ] >; - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IUserLink > ): void; - listIosAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IUserLink > ): void; - listIosAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IUserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IIosAppDataStream + protos.google.analytics.admin.v1alpha.IUserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IIosAppDataStream[], - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse ] > | void { request = request || {}; @@ -8590,7 +6896,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listIosAppDataStreams(request, options, callback); + return this.innerApiCalls.listUserLinks(request, options, callback); } /** @@ -8598,32 +6904,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream} on 'data' event. + * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listIosAppDataStreamsAsync()` + * We recommend using `listUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listIosAppDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8634,52 +6939,51 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const defaultCallSettings = this._defaults['listIosAppDataStreams']; + const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listIosAppDataStreams.createStream( - this.innerApiCalls.listIosAppDataStreams as gax.GaxCall, + return this.descriptors.page.listUserLinks.createStream( + this.innerApiCalls.listUserLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listIosAppDataStreams`, but returns an iterable object. + * Equivalent to `listUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "properties/123" + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * must match the call that provided the page token. + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [IosAppDataStream]{@link google.analytics.admin.v1alpha.IosAppDataStream}. The API will be called under the hood as needed, once per the page, + * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListIosAppDataStreams_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async */ - listIosAppDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListIosAppDataStreamsRequest, + listUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -8688,105 +6992,107 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const defaultCallSettings = this._defaults['listIosAppDataStreams']; + const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listIosAppDataStreams.asyncIterate( - this.innerApiCalls['listIosAppDataStreams'] as GaxCall, + return this.descriptors.page.listUserLinks.asyncIterate( + this.innerApiCalls['listUserLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns child android app streams under the specified parent property. + * Lists all user links on an account or property, including implicit ones + * that come from effective permissions granted by groups or organization + * admin roles. * - * Android app streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant android app streams are found. + * If a returned user link does not have direct permissions, they cannot + * be removed from the account or property directly with the DeleteUserLink + * command. They have to be removed from the group/etc that gives them + * permissions, which is currently only usable/discoverable in the GA or GMP + * UIs. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. - * - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. + * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAndroidAppDataStreamsAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAndroidAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse ] >; - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): void; - listAndroidAppDataStreams( - request: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): void; - listAndroidAppDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IAuditUserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[], - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsResponse + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse ] > | void { request = request || {}; @@ -8805,11 +7111,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.listAndroidAppDataStreams( - request, - options, - callback - ); + return this.innerApiCalls.auditUserLinks(request, options, callback); } /** @@ -8817,34 +7119,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. - * - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream} on 'data' event. + * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAndroidAppDataStreamsAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAndroidAppDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + auditUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8855,54 +7154,51 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const defaultCallSettings = this._defaults['listAndroidAppDataStreams']; + const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAndroidAppDataStreams.createStream( - this.innerApiCalls.listAndroidAppDataStreams as gax.GaxCall, + return this.descriptors.page.auditUserLinks.createStream( + this.innerApiCalls.auditUserLinks as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listAndroidAppDataStreams`, but returns an iterable object. + * Equivalent to `auditUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "properties/123" + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. - * - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` must match the call that provided the page - * token. + * A page token, received from a previous `AuditUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `AuditUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AndroidAppDataStream]{@link google.analytics.admin.v1alpha.AndroidAppDataStream}. The API will be called under the hood as needed, once per the page, + * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAndroidAppDataStreams_async + * @example include:samples/generated/v1alpha/analytics_admin_service.audit_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async */ - listAndroidAppDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAndroidAppDataStreamsRequest, + auditUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -8911,14 +7207,14 @@ export class AnalyticsAdminServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const defaultCallSettings = this._defaults['listAndroidAppDataStreams']; + const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAndroidAppDataStreams.asyncIterate( - this.innerApiCalls['listAndroidAppDataStreams'] as GaxCall, + return this.descriptors.page.auditUserLinks.asyncIterate( + this.innerApiCalls['auditUserLinks'] as GaxCall, request as unknown as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists FirebaseLinks on a property. @@ -9346,10 +7642,8 @@ export class AnalyticsAdminServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 10 resources will be returned. @@ -9457,10 +7751,8 @@ export class AnalyticsAdminServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 10 resources will be returned. @@ -9513,10 +7805,8 @@ export class AnalyticsAdminServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. * Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 10 resources will be returned. @@ -11178,48 +9468,6 @@ export class AnalyticsAdminServiceClient { ).user_link; } - /** - * Return a fully-qualified androidAppDataStream resource name string. - * - * @param {string} property - * @param {string} android_app_data_stream - * @returns {string} Resource name string. - */ - androidAppDataStreamPath(property: string, androidAppDataStream: string) { - return this.pathTemplates.androidAppDataStreamPathTemplate.render({ - property: property, - android_app_data_stream: androidAppDataStream, - }); - } - - /** - * Parse the property from AndroidAppDataStream resource. - * - * @param {string} androidAppDataStreamName - * A fully-qualified path representing AndroidAppDataStream resource. - * @returns {string} A string representing the property. - */ - matchPropertyFromAndroidAppDataStreamName(androidAppDataStreamName: string) { - return this.pathTemplates.androidAppDataStreamPathTemplate.match( - androidAppDataStreamName - ).property; - } - - /** - * Parse the android_app_data_stream from AndroidAppDataStream resource. - * - * @param {string} androidAppDataStreamName - * A fully-qualified path representing AndroidAppDataStream resource. - * @returns {string} A string representing the android_app_data_stream. - */ - matchAndroidAppDataStreamFromAndroidAppDataStreamName( - androidAppDataStreamName: string - ) { - return this.pathTemplates.androidAppDataStreamPathTemplate.match( - androidAppDataStreamName - ).android_app_data_stream; - } - /** * Return a fully-qualified conversionEvent resource name string. * @@ -11497,11 +9745,13 @@ export class AnalyticsAdminServiceClient { * Return a fully-qualified globalSiteTag resource name string. * * @param {string} property + * @param {string} data_stream * @returns {string} Resource name string. */ - globalSiteTagPath(property: string) { + globalSiteTagPath(property: string, dataStream: string) { return this.pathTemplates.globalSiteTagPathTemplate.render({ property: property, + data_stream: dataStream, }); } @@ -11517,6 +9767,18 @@ export class AnalyticsAdminServiceClient { .property; } + /** + * Parse the data_stream from GlobalSiteTag resource. + * + * @param {string} globalSiteTagName + * A fully-qualified path representing GlobalSiteTag resource. + * @returns {string} A string representing the data_stream. + */ + matchDataStreamFromGlobalSiteTagName(globalSiteTagName: string) { + return this.pathTemplates.globalSiteTagPathTemplate.match(globalSiteTagName) + .data_stream; + } + /** * Return a fully-qualified googleAdsLink resource name string. * @@ -11582,62 +9844,22 @@ export class AnalyticsAdminServiceClient { ).property; } - /** - * Return a fully-qualified iosAppDataStream resource name string. - * - * @param {string} property - * @param {string} ios_app_data_stream - * @returns {string} Resource name string. - */ - iosAppDataStreamPath(property: string, iosAppDataStream: string) { - return this.pathTemplates.iosAppDataStreamPathTemplate.render({ - property: property, - ios_app_data_stream: iosAppDataStream, - }); - } - - /** - * Parse the property from IosAppDataStream resource. - * - * @param {string} iosAppDataStreamName - * A fully-qualified path representing IosAppDataStream resource. - * @returns {string} A string representing the property. - */ - matchPropertyFromIosAppDataStreamName(iosAppDataStreamName: string) { - return this.pathTemplates.iosAppDataStreamPathTemplate.match( - iosAppDataStreamName - ).property; - } - - /** - * Parse the ios_app_data_stream from IosAppDataStream resource. - * - * @param {string} iosAppDataStreamName - * A fully-qualified path representing IosAppDataStream resource. - * @returns {string} A string representing the ios_app_data_stream. - */ - matchIosAppDataStreamFromIosAppDataStreamName(iosAppDataStreamName: string) { - return this.pathTemplates.iosAppDataStreamPathTemplate.match( - iosAppDataStreamName - ).ios_app_data_stream; - } - /** * Return a fully-qualified measurementProtocolSecret resource name string. * * @param {string} property - * @param {string} web_data_stream + * @param {string} data_stream * @param {string} measurement_protocol_secret * @returns {string} Resource name string. */ measurementProtocolSecretPath( property: string, - webDataStream: string, + dataStream: string, measurementProtocolSecret: string ) { return this.pathTemplates.measurementProtocolSecretPathTemplate.render({ property: property, - web_data_stream: webDataStream, + data_stream: dataStream, measurement_protocol_secret: measurementProtocolSecret, }); } @@ -11658,18 +9880,18 @@ export class AnalyticsAdminServiceClient { } /** - * Parse the web_data_stream from MeasurementProtocolSecret resource. + * Parse the data_stream from MeasurementProtocolSecret resource. * * @param {string} measurementProtocolSecretName * A fully-qualified path representing MeasurementProtocolSecret resource. - * @returns {string} A string representing the web_data_stream. + * @returns {string} A string representing the data_stream. */ - matchWebDataStreamFromMeasurementProtocolSecretName( + matchDataStreamFromMeasurementProtocolSecretName( measurementProtocolSecretName: string ) { return this.pathTemplates.measurementProtocolSecretPathTemplate.match( measurementProtocolSecretName - ).web_data_stream; + ).data_stream; } /** @@ -11750,44 +9972,6 @@ export class AnalyticsAdminServiceClient { ).user_link; } - /** - * Return a fully-qualified webDataStream resource name string. - * - * @param {string} property - * @param {string} web_data_stream - * @returns {string} Resource name string. - */ - webDataStreamPath(property: string, webDataStream: string) { - return this.pathTemplates.webDataStreamPathTemplate.render({ - property: property, - web_data_stream: webDataStream, - }); - } - - /** - * Parse the property from WebDataStream resource. - * - * @param {string} webDataStreamName - * A fully-qualified path representing WebDataStream resource. - * @returns {string} A string representing the property. - */ - matchPropertyFromWebDataStreamName(webDataStreamName: string) { - return this.pathTemplates.webDataStreamPathTemplate.match(webDataStreamName) - .property; - } - - /** - * Parse the web_data_stream from WebDataStream resource. - * - * @param {string} webDataStreamName - * A fully-qualified path representing WebDataStream resource. - * @returns {string} A string representing the web_data_stream. - */ - matchWebDataStreamFromWebDataStreamName(webDataStreamName: string) { - return this.pathTemplates.webDataStreamPathTemplate.match(webDataStreamName) - .web_data_stream; - } - /** * Terminate the gRPC channel and close the client. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index ef1db64e88f..24e060da5d1 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -35,28 +35,28 @@ "methods": { "GetAccount": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "ListAccounts": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "DeleteAccount": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "UpdateAccount": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "ProvisionAccountTicket": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "ListAccountSummaries": { "timeout_millis": 60000, @@ -65,183 +65,118 @@ }, "GetProperty": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "ListProperties": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "CreateProperty": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "DeleteProperty": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "UpdateProperty": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "GetUserLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "BatchGetUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "ListUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "AuditUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "CreateUserLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "BatchCreateUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "UpdateUserLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "BatchUpdateUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "DeleteUserLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "BatchDeleteUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetWebDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteWebDataStream": { "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, - "UpdateWebDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateWebDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ListWebDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetIosAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteIosAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateIosAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ListIosAppDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetAndroidAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteAndroidAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateAndroidAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ListAndroidAppDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, "CreateFirebaseLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "DeleteFirebaseLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "ListFirebaseLinks": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "GetGlobalSiteTag": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "CreateGoogleAdsLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "UpdateGoogleAdsLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "DeleteGoogleAdsLink": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "ListGoogleAdsLinks": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, "GetDataSharingSettings": { "timeout_millis": 60000, diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index ce5d5ceee2c..11e2655f52e 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -90,56 +90,6 @@ "batchDeleteUserLinks" ] }, - "GetWebDataStream": { - "methods": [ - "getWebDataStream" - ] - }, - "DeleteWebDataStream": { - "methods": [ - "deleteWebDataStream" - ] - }, - "UpdateWebDataStream": { - "methods": [ - "updateWebDataStream" - ] - }, - "CreateWebDataStream": { - "methods": [ - "createWebDataStream" - ] - }, - "GetIosAppDataStream": { - "methods": [ - "getIosAppDataStream" - ] - }, - "DeleteIosAppDataStream": { - "methods": [ - "deleteIosAppDataStream" - ] - }, - "UpdateIosAppDataStream": { - "methods": [ - "updateIosAppDataStream" - ] - }, - "GetAndroidAppDataStream": { - "methods": [ - "getAndroidAppDataStream" - ] - }, - "DeleteAndroidAppDataStream": { - "methods": [ - "deleteAndroidAppDataStream" - ] - }, - "UpdateAndroidAppDataStream": { - "methods": [ - "updateAndroidAppDataStream" - ] - }, "CreateFirebaseLink": { "methods": [ "createFirebaseLink" @@ -375,27 +325,6 @@ "auditUserLinksAsync" ] }, - "ListWebDataStreams": { - "methods": [ - "listWebDataStreams", - "listWebDataStreamsStream", - "listWebDataStreamsAsync" - ] - }, - "ListIosAppDataStreams": { - "methods": [ - "listIosAppDataStreams", - "listIosAppDataStreamsStream", - "listIosAppDataStreamsAsync" - ] - }, - "ListAndroidAppDataStreams": { - "methods": [ - "listAndroidAppDataStreams", - "listAndroidAppDataStreamsStream", - "listAndroidAppDataStreamsAsync" - ] - }, "ListFirebaseLinks": { "methods": [ "listFirebaseLinks", @@ -551,56 +480,6 @@ "batchDeleteUserLinks" ] }, - "GetWebDataStream": { - "methods": [ - "getWebDataStream" - ] - }, - "DeleteWebDataStream": { - "methods": [ - "deleteWebDataStream" - ] - }, - "UpdateWebDataStream": { - "methods": [ - "updateWebDataStream" - ] - }, - "CreateWebDataStream": { - "methods": [ - "createWebDataStream" - ] - }, - "GetIosAppDataStream": { - "methods": [ - "getIosAppDataStream" - ] - }, - "DeleteIosAppDataStream": { - "methods": [ - "deleteIosAppDataStream" - ] - }, - "UpdateIosAppDataStream": { - "methods": [ - "updateIosAppDataStream" - ] - }, - "GetAndroidAppDataStream": { - "methods": [ - "getAndroidAppDataStream" - ] - }, - "DeleteAndroidAppDataStream": { - "methods": [ - "deleteAndroidAppDataStream" - ] - }, - "UpdateAndroidAppDataStream": { - "methods": [ - "updateAndroidAppDataStream" - ] - }, "CreateFirebaseLink": { "methods": [ "createFirebaseLink" @@ -836,27 +715,6 @@ "auditUserLinksAsync" ] }, - "ListWebDataStreams": { - "methods": [ - "listWebDataStreams", - "listWebDataStreamsStream", - "listWebDataStreamsAsync" - ] - }, - "ListIosAppDataStreams": { - "methods": [ - "listIosAppDataStreams", - "listIosAppDataStreamsStream", - "listIosAppDataStreamsAsync" - ] - }, - "ListAndroidAppDataStreams": { - "methods": [ - "listAndroidAppDataStreams", - "listAndroidAppDataStreamsStream", - "listAndroidAppDataStreamsAsync" - ] - }, "ListFirebaseLinks": { "methods": [ "listFirebaseLinks", diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 5903da47a85..9b88cb8d3b4 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -2286,8 +2286,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('getWebDataStream', () => { - it('invokes getWebDataStream without error', async () => { + describe('createFirebaseLink', () => { + it('invokes createFirebaseLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2295,10 +2295,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -2307,19 +2307,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ); - client.innerApiCalls.getWebDataStream = stubSimpleCall(expectedResponse); - const [response] = await client.getWebDataStream(request); + client.innerApiCalls.createFirebaseLink = + stubSimpleCall(expectedResponse); + const [response] = await client.createFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getWebDataStream as SinonStub) + (client.innerApiCalls.createFirebaseLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getWebDataStream without error using callback', async () => { + it('invokes createFirebaseLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2327,10 +2328,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -2339,16 +2340,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ); - client.innerApiCalls.getWebDataStream = + client.innerApiCalls.createFirebaseLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getWebDataStream( + client.createFirebaseLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IWebDataStream | null + result?: protos.google.analytics.admin.v1alpha.IFirebaseLink | null ) => { if (err) { reject(err); @@ -2361,13 +2362,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getWebDataStream as SinonStub) + (client.innerApiCalls.createFirebaseLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getWebDataStream with error', async () => { + it('invokes createFirebaseLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2375,10 +2376,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -2387,19 +2388,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getWebDataStream = stubSimpleCall( + client.innerApiCalls.createFirebaseLink = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getWebDataStream(request), expectedError); + await assert.rejects(client.createFirebaseLink(request), expectedError); assert( - (client.innerApiCalls.getWebDataStream as SinonStub) + (client.innerApiCalls.createFirebaseLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getWebDataStream with closed client', async () => { + it('invokes createFirebaseLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2407,18 +2408,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getWebDataStream(request), expectedError); + await assert.rejects(client.createFirebaseLink(request), expectedError); }); }); - describe('deleteWebDataStream', () => { - it('invokes deleteWebDataStream without error', async () => { + describe('deleteFirebaseLink', () => { + it('invokes deleteFirebaseLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2426,7 +2427,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -2440,18 +2441,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteWebDataStream = + client.innerApiCalls.deleteFirebaseLink = stubSimpleCall(expectedResponse); - const [response] = await client.deleteWebDataStream(request); + const [response] = await client.deleteFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteWebDataStream as SinonStub) + (client.innerApiCalls.deleteFirebaseLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteWebDataStream without error using callback', async () => { + it('invokes deleteFirebaseLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2459,7 +2460,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -2473,10 +2474,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteWebDataStream = + client.innerApiCalls.deleteFirebaseLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteWebDataStream( + client.deleteFirebaseLink( request, ( err?: Error | null, @@ -2493,13 +2494,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteWebDataStream as SinonStub) + (client.innerApiCalls.deleteFirebaseLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteWebDataStream with error', async () => { + it('invokes deleteFirebaseLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2507,7 +2508,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -2519,19 +2520,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteWebDataStream = stubSimpleCall( + client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteWebDataStream(request), expectedError); + await assert.rejects(client.deleteFirebaseLink(request), expectedError); assert( - (client.innerApiCalls.deleteWebDataStream as SinonStub) + (client.innerApiCalls.deleteFirebaseLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteWebDataStream with closed client', async () => { + it('invokes deleteFirebaseLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2539,18 +2540,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.deleteWebDataStream(request), expectedError); + await assert.rejects(client.deleteFirebaseLink(request), expectedError); }); }); - describe('updateWebDataStream', () => { - it('invokes updateWebDataStream without error', async () => { + describe('getGlobalSiteTag', () => { + it('invokes getGlobalSiteTag without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2558,11 +2559,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.webDataStream = {}; - request.webDataStream.name = ''; - const expectedHeaderRequestParams = 'web_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -2571,20 +2571,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GlobalSiteTag() ); - client.innerApiCalls.updateWebDataStream = - stubSimpleCall(expectedResponse); - const [response] = await client.updateWebDataStream(request); + client.innerApiCalls.getGlobalSiteTag = stubSimpleCall(expectedResponse); + const [response] = await client.getGlobalSiteTag(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateWebDataStream as SinonStub) + (client.innerApiCalls.getGlobalSiteTag as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateWebDataStream without error using callback', async () => { + it('invokes getGlobalSiteTag without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2592,11 +2591,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.webDataStream = {}; - request.webDataStream.name = ''; - const expectedHeaderRequestParams = 'web_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -2605,16 +2603,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GlobalSiteTag() ); - client.innerApiCalls.updateWebDataStream = + client.innerApiCalls.getGlobalSiteTag = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateWebDataStream( + client.getGlobalSiteTag( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IWebDataStream | null + result?: protos.google.analytics.admin.v1alpha.IGlobalSiteTag | null ) => { if (err) { reject(err); @@ -2627,13 +2625,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateWebDataStream as SinonStub) + (client.innerApiCalls.getGlobalSiteTag as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateWebDataStream with error', async () => { + it('invokes getGlobalSiteTag with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2641,11 +2639,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.webDataStream = {}; - request.webDataStream.name = ''; - const expectedHeaderRequestParams = 'web_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -2654,19 +2651,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateWebDataStream = stubSimpleCall( + client.innerApiCalls.getGlobalSiteTag = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updateWebDataStream(request), expectedError); + await assert.rejects(client.getGlobalSiteTag(request), expectedError); assert( - (client.innerApiCalls.updateWebDataStream as SinonStub) + (client.innerApiCalls.getGlobalSiteTag as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateWebDataStream with closed client', async () => { + it('invokes getGlobalSiteTag with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2674,19 +2671,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.webDataStream = {}; - request.webDataStream.name = ''; - const expectedHeaderRequestParams = 'web_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.updateWebDataStream(request), expectedError); + await assert.rejects(client.getGlobalSiteTag(request), expectedError); }); }); - describe('createWebDataStream', () => { - it('invokes createWebDataStream without error', async () => { + describe('createGoogleAdsLink', () => { + it('invokes createGoogleAdsLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2694,7 +2690,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -2706,20 +2702,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.createWebDataStream = + client.innerApiCalls.createGoogleAdsLink = stubSimpleCall(expectedResponse); - const [response] = await client.createWebDataStream(request); + const [response] = await client.createGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createWebDataStream as SinonStub) + (client.innerApiCalls.createGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createWebDataStream without error using callback', async () => { + it('invokes createGoogleAdsLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2727,7 +2723,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -2739,16 +2735,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.createWebDataStream = + client.innerApiCalls.createGoogleAdsLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createWebDataStream( + client.createGoogleAdsLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IWebDataStream | null + result?: protos.google.analytics.admin.v1alpha.IGoogleAdsLink | null ) => { if (err) { reject(err); @@ -2761,13 +2757,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createWebDataStream as SinonStub) + (client.innerApiCalls.createGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createWebDataStream with error', async () => { + it('invokes createGoogleAdsLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2775,7 +2771,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -2787,19 +2783,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createWebDataStream = stubSimpleCall( + client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createWebDataStream(request), expectedError); + await assert.rejects(client.createGoogleAdsLink(request), expectedError); assert( - (client.innerApiCalls.createWebDataStream as SinonStub) + (client.innerApiCalls.createGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createWebDataStream with closed client', async () => { + it('invokes createGoogleAdsLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2807,18 +2803,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateWebDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.createWebDataStream(request), expectedError); + await assert.rejects(client.createGoogleAdsLink(request), expectedError); }); }); - describe('getIosAppDataStream', () => { - it('invokes getIosAppDataStream without error', async () => { + describe('updateGoogleAdsLink', () => { + it('invokes updateGoogleAdsLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2826,10 +2822,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -2838,20 +2835,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.getIosAppDataStream = + client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall(expectedResponse); - const [response] = await client.getIosAppDataStream(request); + const [response] = await client.updateGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getIosAppDataStream as SinonStub) + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getIosAppDataStream without error using callback', async () => { + it('invokes updateGoogleAdsLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2859,10 +2856,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -2871,16 +2869,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); - client.innerApiCalls.getIosAppDataStream = + client.innerApiCalls.updateGoogleAdsLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getIosAppDataStream( + client.updateGoogleAdsLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IIosAppDataStream | null + result?: protos.google.analytics.admin.v1alpha.IGoogleAdsLink | null ) => { if (err) { reject(err); @@ -2893,13 +2891,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getIosAppDataStream as SinonStub) + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getIosAppDataStream with error', async () => { + it('invokes updateGoogleAdsLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2907,10 +2905,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -2919,19 +2918,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getIosAppDataStream = stubSimpleCall( + client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getIosAppDataStream(request), expectedError); + await assert.rejects(client.updateGoogleAdsLink(request), expectedError); assert( - (client.innerApiCalls.getIosAppDataStream as SinonStub) + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getIosAppDataStream with closed client', async () => { + it('invokes updateGoogleAdsLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2939,18 +2938,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getIosAppDataStream(request), expectedError); + await assert.rejects(client.updateGoogleAdsLink(request), expectedError); }); }); - describe('deleteIosAppDataStream', () => { - it('invokes deleteIosAppDataStream without error', async () => { + describe('deleteGoogleAdsLink', () => { + it('invokes deleteGoogleAdsLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2958,7 +2958,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -2972,18 +2972,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteIosAppDataStream = + client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall(expectedResponse); - const [response] = await client.deleteIosAppDataStream(request); + const [response] = await client.deleteGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteIosAppDataStream as SinonStub) + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteIosAppDataStream without error using callback', async () => { + it('invokes deleteGoogleAdsLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2991,7 +2991,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -3005,10 +3005,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteIosAppDataStream = + client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteIosAppDataStream( + client.deleteGoogleAdsLink( request, ( err?: Error | null, @@ -3025,13 +3025,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteIosAppDataStream as SinonStub) + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteIosAppDataStream with error', async () => { + it('invokes deleteGoogleAdsLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3039,7 +3039,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -3051,22 +3051,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteIosAppDataStream = stubSimpleCall( + client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.deleteIosAppDataStream(request), - expectedError - ); + await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); assert( - (client.innerApiCalls.deleteIosAppDataStream as SinonStub) + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteIosAppDataStream with closed client', async () => { + it('invokes deleteGoogleAdsLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3074,21 +3071,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.deleteIosAppDataStream(request), - expectedError - ); + await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); }); }); - describe('updateIosAppDataStream', () => { - it('invokes updateIosAppDataStream without error', async () => { + describe('getDataSharingSettings', () => { + it('invokes getDataSharingSettings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3096,11 +3090,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.iosAppDataStream = {}; - request.iosAppDataStream.name = ''; - const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -3109,20 +3102,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.DataSharingSettings() ); - client.innerApiCalls.updateIosAppDataStream = + client.innerApiCalls.getDataSharingSettings = stubSimpleCall(expectedResponse); - const [response] = await client.updateIosAppDataStream(request); + const [response] = await client.getDataSharingSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateIosAppDataStream as SinonStub) + (client.innerApiCalls.getDataSharingSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateIosAppDataStream without error using callback', async () => { + it('invokes getDataSharingSettings without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3130,11 +3123,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.iosAppDataStream = {}; - request.iosAppDataStream.name = ''; - const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -3143,16 +3135,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.DataSharingSettings() ); - client.innerApiCalls.updateIosAppDataStream = + client.innerApiCalls.getDataSharingSettings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateIosAppDataStream( + client.getDataSharingSettings( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IIosAppDataStream | null + result?: protos.google.analytics.admin.v1alpha.IDataSharingSettings | null ) => { if (err) { reject(err); @@ -3165,13 +3157,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateIosAppDataStream as SinonStub) + (client.innerApiCalls.getDataSharingSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateIosAppDataStream with error', async () => { + it('invokes getDataSharingSettings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3179,11 +3171,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.iosAppDataStream = {}; - request.iosAppDataStream.name = ''; - const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -3192,22 +3183,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateIosAppDataStream = stubSimpleCall( + client.innerApiCalls.getDataSharingSettings = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.updateIosAppDataStream(request), + client.getDataSharingSettings(request), expectedError ); assert( - (client.innerApiCalls.updateIosAppDataStream as SinonStub) + (client.innerApiCalls.getDataSharingSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateIosAppDataStream with closed client', async () => { + it('invokes getDataSharingSettings with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3215,22 +3206,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.iosAppDataStream = {}; - request.iosAppDataStream.name = ''; - const expectedHeaderRequestParams = 'ios_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.updateIosAppDataStream(request), + client.getDataSharingSettings(request), expectedError ); }); }); - describe('getAndroidAppDataStream', () => { - it('invokes getAndroidAppDataStream without error', async () => { + describe('getMeasurementProtocolSecret', () => { + it('invokes getMeasurementProtocolSecret without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3238,7 +3228,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -3250,20 +3240,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); - client.innerApiCalls.getAndroidAppDataStream = + client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCall(expectedResponse); - const [response] = await client.getAndroidAppDataStream(request); + const [response] = await client.getMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getAndroidAppDataStream as SinonStub) + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getAndroidAppDataStream without error using callback', async () => { + it('invokes getMeasurementProtocolSecret without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3271,7 +3261,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -3283,16 +3273,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); - client.innerApiCalls.getAndroidAppDataStream = + client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getAndroidAppDataStream( + client.getMeasurementProtocolSecret( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream | null + result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null ) => { if (err) { reject(err); @@ -3305,13 +3295,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getAndroidAppDataStream as SinonStub) + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getAndroidAppDataStream with error', async () => { + it('invokes getMeasurementProtocolSecret with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3319,7 +3309,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -3331,22 +3321,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getAndroidAppDataStream = stubSimpleCall( + client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getAndroidAppDataStream(request), + client.getMeasurementProtocolSecret(request), expectedError ); assert( - (client.innerApiCalls.getAndroidAppDataStream as SinonStub) + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getAndroidAppDataStream with closed client', async () => { + it('invokes getMeasurementProtocolSecret with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3354,21 +3344,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getAndroidAppDataStream(request), + client.getMeasurementProtocolSecret(request), expectedError ); }); }); - describe('deleteAndroidAppDataStream', () => { - it('invokes deleteAndroidAppDataStream without error', async () => { + describe('createMeasurementProtocolSecret', () => { + it('invokes createMeasurementProtocolSecret without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3376,10 +3366,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -3388,20 +3378,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); - client.innerApiCalls.deleteAndroidAppDataStream = + client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCall(expectedResponse); - const [response] = await client.deleteAndroidAppDataStream(request); + const [response] = await client.createMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteAndroidAppDataStream as SinonStub) + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteAndroidAppDataStream without error using callback', async () => { + it('invokes createMeasurementProtocolSecret without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3409,10 +3399,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -3421,16 +3411,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); - client.innerApiCalls.deleteAndroidAppDataStream = + client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteAndroidAppDataStream( + client.createMeasurementProtocolSecret( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null ) => { if (err) { reject(err); @@ -3443,13 +3433,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteAndroidAppDataStream as SinonStub) + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteAndroidAppDataStream with error', async () => { + it('invokes createMeasurementProtocolSecret with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3457,10 +3447,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -3469,22 +3459,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteAndroidAppDataStream = stubSimpleCall( + client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteAndroidAppDataStream(request), + client.createMeasurementProtocolSecret(request), expectedError ); assert( - (client.innerApiCalls.deleteAndroidAppDataStream as SinonStub) + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteAndroidAppDataStream with closed client', async () => { + it('invokes createMeasurementProtocolSecret with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3492,21 +3482,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.deleteAndroidAppDataStream(request), + client.createMeasurementProtocolSecret(request), expectedError ); }); }); - describe('updateAndroidAppDataStream', () => { - it('invokes updateAndroidAppDataStream without error', async () => { + describe('deleteMeasurementProtocolSecret', () => { + it('invokes deleteMeasurementProtocolSecret without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3514,11 +3504,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.androidAppDataStream = {}; - request.androidAppDataStream.name = ''; - const expectedHeaderRequestParams = 'android_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -3527,20 +3516,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateAndroidAppDataStream = + client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCall(expectedResponse); - const [response] = await client.updateAndroidAppDataStream(request); + const [response] = await client.deleteMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateAndroidAppDataStream as SinonStub) + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateAndroidAppDataStream without error using callback', async () => { + it('invokes deleteMeasurementProtocolSecret without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3548,11 +3537,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.androidAppDataStream = {}; - request.androidAppDataStream.name = ''; - const expectedHeaderRequestParams = 'android_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -3561,16 +3549,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateAndroidAppDataStream = + client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateAndroidAppDataStream( + client.deleteMeasurementProtocolSecret( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -3583,13 +3571,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateAndroidAppDataStream as SinonStub) + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateAndroidAppDataStream with error', async () => { + it('invokes deleteMeasurementProtocolSecret with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3597,11 +3585,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.androidAppDataStream = {}; - request.androidAppDataStream.name = ''; - const expectedHeaderRequestParams = 'android_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -3610,22 +3597,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateAndroidAppDataStream = stubSimpleCall( + client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.updateAndroidAppDataStream(request), + client.deleteMeasurementProtocolSecret(request), expectedError ); assert( - (client.innerApiCalls.updateAndroidAppDataStream as SinonStub) + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateAndroidAppDataStream with closed client', async () => { + it('invokes deleteMeasurementProtocolSecret with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3633,22 +3620,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest() + new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.androidAppDataStream = {}; - request.androidAppDataStream.name = ''; - const expectedHeaderRequestParams = 'android_app_data_stream.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.updateAndroidAppDataStream(request), + client.deleteMeasurementProtocolSecret(request), expectedError ); }); }); - describe('createFirebaseLink', () => { - it('invokes createFirebaseLink without error', async () => { + describe('updateMeasurementProtocolSecret', () => { + it('invokes updateMeasurementProtocolSecret without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3656,10 +3642,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; const expectedOptions = { otherArgs: { headers: { @@ -3668,20 +3655,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); - client.innerApiCalls.createFirebaseLink = + client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCall(expectedResponse); - const [response] = await client.createFirebaseLink(request); + const [response] = await client.updateMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createFirebaseLink without error using callback', async () => { + it('invokes updateMeasurementProtocolSecret without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3689,10 +3676,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; const expectedOptions = { otherArgs: { headers: { @@ -3701,16 +3689,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); - client.innerApiCalls.createFirebaseLink = + client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createFirebaseLink( + client.updateMeasurementProtocolSecret( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IFirebaseLink | null + result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null ) => { if (err) { reject(err); @@ -3723,13 +3711,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createFirebaseLink with error', async () => { + it('invokes updateMeasurementProtocolSecret with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3737,10 +3725,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; const expectedOptions = { otherArgs: { headers: { @@ -3749,19 +3738,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createFirebaseLink = stubSimpleCall( + client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createFirebaseLink(request), expectedError); + await assert.rejects( + client.updateMeasurementProtocolSecret(request), + expectedError + ); assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createFirebaseLink with closed client', async () => { + it('invokes updateMeasurementProtocolSecret with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3769,18 +3761,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.createFirebaseLink(request), expectedError); + await assert.rejects( + client.updateMeasurementProtocolSecret(request), + expectedError + ); }); }); - describe('deleteFirebaseLink', () => { - it('invokes deleteFirebaseLink without error', async () => { + describe('acknowledgeUserDataCollection', () => { + it('invokes acknowledgeUserDataCollection without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3788,10 +3784,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.property = ''; + const expectedHeaderRequestParams = 'property='; const expectedOptions = { otherArgs: { headers: { @@ -3800,20 +3796,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() ); - client.innerApiCalls.deleteFirebaseLink = + client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall(expectedResponse); - const [response] = await client.deleteFirebaseLink(request); + const [response] = await client.acknowledgeUserDataCollection(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteFirebaseLink without error using callback', async () => { + it('invokes acknowledgeUserDataCollection without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3821,10 +3817,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.property = ''; + const expectedHeaderRequestParams = 'property='; const expectedOptions = { otherArgs: { headers: { @@ -3833,16 +3829,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() ); - client.innerApiCalls.deleteFirebaseLink = + client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteFirebaseLink( + client.acknowledgeUserDataCollection( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse | null ) => { if (err) { reject(err); @@ -3855,13 +3851,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteFirebaseLink with error', async () => { + it('invokes acknowledgeUserDataCollection with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3869,10 +3865,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.property = ''; + const expectedHeaderRequestParams = 'property='; const expectedOptions = { otherArgs: { headers: { @@ -3881,19 +3877,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( + client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteFirebaseLink(request), expectedError); + await assert.rejects( + client.acknowledgeUserDataCollection(request), + expectedError + ); assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteFirebaseLink with closed client', async () => { + it('invokes acknowledgeUserDataCollection with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3901,18 +3900,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() + new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.property = ''; + const expectedHeaderRequestParams = 'property='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.deleteFirebaseLink(request), expectedError); + await assert.rejects( + client.acknowledgeUserDataCollection(request), + expectedError + ); }); }); - describe('getGlobalSiteTag', () => { - it('invokes getGlobalSiteTag without error', async () => { + describe('getGoogleSignalsSettings', () => { + it('invokes getGoogleSignalsSettings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3920,7 +3922,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -3932,19 +3934,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GlobalSiteTag() + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); - client.innerApiCalls.getGlobalSiteTag = stubSimpleCall(expectedResponse); - const [response] = await client.getGlobalSiteTag(request); + client.innerApiCalls.getGoogleSignalsSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getGoogleSignalsSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getGlobalSiteTag as SinonStub) + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getGlobalSiteTag without error using callback', async () => { + it('invokes getGoogleSignalsSettings without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -3952,7 +3955,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -3964,16 +3967,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GlobalSiteTag() + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); - client.innerApiCalls.getGlobalSiteTag = + client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getGlobalSiteTag( + client.getGoogleSignalsSettings( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IGlobalSiteTag | null + result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null ) => { if (err) { reject(err); @@ -3986,13 +3989,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getGlobalSiteTag as SinonStub) + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getGlobalSiteTag with error', async () => { + it('invokes getGoogleSignalsSettings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4000,7 +4003,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4012,19 +4015,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getGlobalSiteTag = stubSimpleCall( + client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getGlobalSiteTag(request), expectedError); + await assert.rejects( + client.getGoogleSignalsSettings(request), + expectedError + ); assert( - (client.innerApiCalls.getGlobalSiteTag as SinonStub) + (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getGlobalSiteTag with closed client', async () => { + it('invokes getGoogleSignalsSettings with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4032,18 +4038,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() + new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getGlobalSiteTag(request), expectedError); + await assert.rejects( + client.getGoogleSignalsSettings(request), + expectedError + ); }); }); - describe('createGoogleAdsLink', () => { - it('invokes createGoogleAdsLink without error', async () => { + describe('updateGoogleSignalsSettings', () => { + it('invokes updateGoogleSignalsSettings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4051,10 +4060,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; const expectedOptions = { otherArgs: { headers: { @@ -4063,20 +4073,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); - client.innerApiCalls.createGoogleAdsLink = + client.innerApiCalls.updateGoogleSignalsSettings = stubSimpleCall(expectedResponse); - const [response] = await client.createGoogleAdsLink(request); + const [response] = await client.updateGoogleSignalsSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createGoogleAdsLink without error using callback', async () => { + it('invokes updateGoogleSignalsSettings without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4084,10 +4094,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; const expectedOptions = { otherArgs: { headers: { @@ -4096,16 +4107,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); - client.innerApiCalls.createGoogleAdsLink = + client.innerApiCalls.updateGoogleSignalsSettings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createGoogleAdsLink( + client.updateGoogleSignalsSettings( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IGoogleAdsLink | null + result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null ) => { if (err) { reject(err); @@ -4118,13 +4129,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createGoogleAdsLink with error', async () => { + it('invokes updateGoogleSignalsSettings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4132,10 +4143,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; const expectedOptions = { otherArgs: { headers: { @@ -4144,19 +4156,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( + client.innerApiCalls.updateGoogleSignalsSettings = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createGoogleAdsLink(request), expectedError); + await assert.rejects( + client.updateGoogleSignalsSettings(request), + expectedError + ); assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) + (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createGoogleAdsLink with closed client', async () => { + it('invokes updateGoogleSignalsSettings with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4164,18 +4179,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.googleSignalsSettings = {}; + request.googleSignalsSettings.name = ''; + const expectedHeaderRequestParams = 'google_signals_settings.name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.createGoogleAdsLink(request), expectedError); + await assert.rejects( + client.updateGoogleSignalsSettings(request), + expectedError + ); }); }); - describe('updateGoogleAdsLink', () => { - it('invokes updateGoogleAdsLink without error', async () => { + describe('createConversionEvent', () => { + it('invokes createConversionEvent without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4183,11 +4202,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -4196,20 +4214,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ); - client.innerApiCalls.updateGoogleAdsLink = + client.innerApiCalls.createConversionEvent = stubSimpleCall(expectedResponse); - const [response] = await client.updateGoogleAdsLink(request); + const [response] = await client.createConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + (client.innerApiCalls.createConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateGoogleAdsLink without error using callback', async () => { + it('invokes createConversionEvent without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4217,11 +4235,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -4230,16 +4247,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ); - client.innerApiCalls.updateGoogleAdsLink = + client.innerApiCalls.createConversionEvent = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateGoogleAdsLink( + client.createConversionEvent( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IGoogleAdsLink | null + result?: protos.google.analytics.admin.v1alpha.IConversionEvent | null ) => { if (err) { reject(err); @@ -4252,13 +4269,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + (client.innerApiCalls.createConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateGoogleAdsLink with error', async () => { + it('invokes createConversionEvent with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4266,11 +4283,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -4279,19 +4295,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( + client.innerApiCalls.createConversionEvent = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updateGoogleAdsLink(request), expectedError); + await assert.rejects( + client.createConversionEvent(request), + expectedError + ); assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + (client.innerApiCalls.createConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateGoogleAdsLink with closed client', async () => { + it('invokes createConversionEvent with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4299,19 +4318,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.updateGoogleAdsLink(request), expectedError); + await assert.rejects( + client.createConversionEvent(request), + expectedError + ); }); }); - describe('deleteGoogleAdsLink', () => { - it('invokes deleteGoogleAdsLink without error', async () => { + describe('getConversionEvent', () => { + it('invokes getConversionEvent without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4319,7 +4340,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4331,20 +4352,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ); - client.innerApiCalls.deleteGoogleAdsLink = + client.innerApiCalls.getConversionEvent = stubSimpleCall(expectedResponse); - const [response] = await client.deleteGoogleAdsLink(request); + const [response] = await client.getConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + (client.innerApiCalls.getConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteGoogleAdsLink without error using callback', async () => { + it('invokes getConversionEvent without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4352,7 +4373,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4364,16 +4385,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ); - client.innerApiCalls.deleteGoogleAdsLink = + client.innerApiCalls.getConversionEvent = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteGoogleAdsLink( + client.getConversionEvent( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.IConversionEvent | null ) => { if (err) { reject(err); @@ -4386,13 +4407,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + (client.innerApiCalls.getConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteGoogleAdsLink with error', async () => { + it('invokes getConversionEvent with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4400,7 +4421,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4412,19 +4433,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( + client.innerApiCalls.getConversionEvent = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); + await assert.rejects(client.getConversionEvent(request), expectedError); assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + (client.innerApiCalls.getConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteGoogleAdsLink with closed client', async () => { + it('invokes getConversionEvent with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4432,18 +4453,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() + new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); + await assert.rejects(client.getConversionEvent(request), expectedError); }); }); - describe('getDataSharingSettings', () => { - it('invokes getDataSharingSettings without error', async () => { + describe('deleteConversionEvent', () => { + it('invokes deleteConversionEvent without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4451,7 +4472,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4463,20 +4484,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataSharingSettings() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.getDataSharingSettings = + client.innerApiCalls.deleteConversionEvent = stubSimpleCall(expectedResponse); - const [response] = await client.getDataSharingSettings(request); + const [response] = await client.deleteConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) + (client.innerApiCalls.deleteConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getDataSharingSettings without error using callback', async () => { + it('invokes deleteConversionEvent without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4484,7 +4505,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4496,16 +4517,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataSharingSettings() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.getDataSharingSettings = + client.innerApiCalls.deleteConversionEvent = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getDataSharingSettings( + client.deleteConversionEvent( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataSharingSettings | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -4518,13 +4539,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) + (client.innerApiCalls.deleteConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getDataSharingSettings with error', async () => { + it('invokes deleteConversionEvent with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4532,7 +4553,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4544,22 +4565,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getDataSharingSettings = stubSimpleCall( + client.innerApiCalls.deleteConversionEvent = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getDataSharingSettings(request), + client.deleteConversionEvent(request), expectedError ); assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) + (client.innerApiCalls.deleteConversionEvent as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getDataSharingSettings with closed client', async () => { + it('invokes deleteConversionEvent with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4567,21 +4588,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getDataSharingSettings(request), + client.deleteConversionEvent(request), expectedError ); }); }); - describe('getMeasurementProtocolSecret', () => { - it('invokes getMeasurementProtocolSecret without error', async () => { + describe('getDisplayVideo360AdvertiserLink', () => { + it('invokes getDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4589,7 +4610,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4601,20 +4622,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.getMeasurementProtocolSecret = + client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.getMeasurementProtocolSecret(request); + const [response] = await client.getDisplayVideo360AdvertiserLink(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getMeasurementProtocolSecret without error using callback', async () => { + it('invokes getDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4622,7 +4643,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4634,16 +4655,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.getMeasurementProtocolSecret = + client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getMeasurementProtocolSecret( + client.getDisplayVideo360AdvertiserLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null ) => { if (err) { reject(err); @@ -4656,13 +4677,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getMeasurementProtocolSecret with error', async () => { + it('invokes getDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4670,7 +4691,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4682,22 +4703,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCall( + client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getMeasurementProtocolSecret(request), + client.getDisplayVideo360AdvertiserLink(request), expectedError ); assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getMeasurementProtocolSecret with closed client', async () => { + it('invokes getDisplayVideo360AdvertiserLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4705,21 +4726,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getMeasurementProtocolSecret(request), + client.getDisplayVideo360AdvertiserLink(request), expectedError ); }); }); - describe('createMeasurementProtocolSecret', () => { - it('invokes createMeasurementProtocolSecret without error', async () => { + describe('createDisplayVideo360AdvertiserLink', () => { + it('invokes createDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4727,7 +4748,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -4739,20 +4760,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.createMeasurementProtocolSecret = + client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.createMeasurementProtocolSecret(request); + const [response] = await client.createDisplayVideo360AdvertiserLink( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createMeasurementProtocolSecret without error using callback', async () => { + it('invokes createDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4760,7 +4783,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -4772,16 +4795,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.createMeasurementProtocolSecret = + client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createMeasurementProtocolSecret( + client.createDisplayVideo360AdvertiserLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null ) => { if (err) { reject(err); @@ -4794,13 +4817,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createMeasurementProtocolSecret with error', async () => { + it('invokes createDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4808,7 +4831,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -4820,22 +4843,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCall( + client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.createMeasurementProtocolSecret(request), + client.createDisplayVideo360AdvertiserLink(request), expectedError ); assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createMeasurementProtocolSecret with closed client', async () => { + it('invokes createDisplayVideo360AdvertiserLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4843,21 +4866,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.createMeasurementProtocolSecret(request), + client.createDisplayVideo360AdvertiserLink(request), expectedError ); }); }); - describe('deleteMeasurementProtocolSecret', () => { - it('invokes deleteMeasurementProtocolSecret without error', async () => { + describe('deleteDisplayVideo360AdvertiserLink', () => { + it('invokes deleteDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4865,7 +4888,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4879,18 +4902,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteMeasurementProtocolSecret = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.deleteMeasurementProtocolSecret(request); + const [response] = await client.deleteDisplayVideo360AdvertiserLink( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteMeasurementProtocolSecret without error using callback', async () => { + it('invokes deleteDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4898,7 +4923,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4912,10 +4937,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteMeasurementProtocolSecret = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteMeasurementProtocolSecret( + client.deleteDisplayVideo360AdvertiserLink( request, ( err?: Error | null, @@ -4932,13 +4957,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteMeasurementProtocolSecret with error', async () => { + it('invokes deleteDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4946,7 +4971,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -4958,22 +4983,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCall( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteMeasurementProtocolSecret(request), + client.deleteDisplayVideo360AdvertiserLink(request), expectedError ); assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteMeasurementProtocolSecret with closed client', async () => { + it('invokes deleteDisplayVideo360AdvertiserLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -4981,21 +5006,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.deleteMeasurementProtocolSecret(request), + client.deleteDisplayVideo360AdvertiserLink(request), expectedError ); }); }); - describe('updateMeasurementProtocolSecret', () => { - it('invokes updateMeasurementProtocolSecret without error', async () => { + describe('updateDisplayVideo360AdvertiserLink', () => { + it('invokes updateDisplayVideo360AdvertiserLink without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5003,11 +5028,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -5016,20 +5042,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.updateMeasurementProtocolSecret = + client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCall(expectedResponse); - const [response] = await client.updateMeasurementProtocolSecret(request); + const [response] = await client.updateDisplayVideo360AdvertiserLink( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateMeasurementProtocolSecret without error using callback', async () => { + it('invokes updateDisplayVideo360AdvertiserLink without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5037,11 +5065,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -5050,16 +5079,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); - client.innerApiCalls.updateMeasurementProtocolSecret = + client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateMeasurementProtocolSecret( + client.updateDisplayVideo360AdvertiserLink( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null ) => { if (err) { reject(err); @@ -5072,13 +5101,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateMeasurementProtocolSecret with error', async () => { + it('invokes updateDisplayVideo360AdvertiserLink with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5086,11 +5115,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; const expectedOptions = { otherArgs: { headers: { @@ -5099,22 +5129,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCall( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.updateMeasurementProtocolSecret(request), + client.updateDisplayVideo360AdvertiserLink(request), expectedError ); assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateMeasurementProtocolSecret with closed client', async () => { + it('invokes updateDisplayVideo360AdvertiserLink with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5122,22 +5152,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() + new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + request.displayVideo_360AdvertiserLink = {}; + request.displayVideo_360AdvertiserLink.name = ''; + const expectedHeaderRequestParams = + 'display_video_360_advertiser_link.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.updateMeasurementProtocolSecret(request), + client.updateDisplayVideo360AdvertiserLink(request), expectedError ); }); }); - describe('acknowledgeUserDataCollection', () => { - it('invokes acknowledgeUserDataCollection without error', async () => { + describe('getDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes getDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5145,10 +5176,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5157,20 +5188,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.acknowledgeUserDataCollection = + client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.acknowledgeUserDataCollection(request); + const [response] = await client.getDisplayVideo360AdvertiserLinkProposal( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) + ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes acknowledgeUserDataCollection without error using callback', async () => { + it('invokes getDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5178,10 +5214,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5190,16 +5226,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.acknowledgeUserDataCollection = + client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.acknowledgeUserDataCollection( + client.getDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null ) => { if (err) { reject(err); @@ -5212,13 +5248,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) + ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes acknowledgeUserDataCollection with error', async () => { + it('invokes getDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5226,10 +5265,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5238,22 +5277,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall( - undefined, - expectedError - ); + client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); await assert.rejects( - client.acknowledgeUserDataCollection(request), + client.getDisplayVideo360AdvertiserLinkProposal(request), expectedError ); assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) + ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes acknowledgeUserDataCollection with closed client', async () => { + it('invokes getDisplayVideo360AdvertiserLinkProposal with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5261,21 +5301,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() + new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.acknowledgeUserDataCollection(request), + client.getDisplayVideo360AdvertiserLinkProposal(request), expectedError ); }); }); - describe('getGoogleSignalsSettings', () => { - it('invokes getGoogleSignalsSettings without error', async () => { + describe('createDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes createDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5283,10 +5323,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5295,20 +5335,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.getGoogleSignalsSettings = + client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.getGoogleSignalsSettings(request); + const [response] = + await client.createDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getGoogleSignalsSettings without error using callback', async () => { + it('invokes createDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5316,11 +5360,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { otherArgs: { headers: { 'x-goog-request-params': expectedHeaderRequestParams, @@ -5328,16 +5372,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.getGoogleSignalsSettings = + client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getGoogleSignalsSettings( + client.createDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null ) => { if (err) { reject(err); @@ -5350,13 +5394,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getGoogleSignalsSettings with error', async () => { + it('invokes createDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5364,10 +5411,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5376,22 +5423,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCall( - undefined, - expectedError - ); + client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); await assert.rejects( - client.getGoogleSignalsSettings(request), + client.createDisplayVideo360AdvertiserLinkProposal(request), expectedError ); assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) + ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getGoogleSignalsSettings with closed client', async () => { + it('invokes createDisplayVideo360AdvertiserLinkProposal with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5399,21 +5447,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getGoogleSignalsSettings(request), + client.createDisplayVideo360AdvertiserLinkProposal(request), expectedError ); }); }); - describe('updateGoogleSignalsSettings', () => { - it('invokes updateGoogleSignalsSettings without error', async () => { + describe('deleteDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes deleteDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5421,11 +5469,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5434,20 +5481,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateGoogleSignalsSettings = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.updateGoogleSignalsSettings(request); + const [response] = + await client.deleteDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateGoogleSignalsSettings without error using callback', async () => { + it('invokes deleteDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5455,11 +5506,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5468,16 +5518,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateGoogleSignalsSettings = + client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateGoogleSignalsSettings( + client.deleteDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IGoogleSignalsSettings | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -5490,13 +5540,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateGoogleSignalsSettings with error', async () => { + it('invokes deleteDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5504,11 +5557,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5517,22 +5569,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateGoogleSignalsSettings = stubSimpleCall( - undefined, - expectedError - ); + client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); await assert.rejects( - client.updateGoogleSignalsSettings(request), + client.deleteDisplayVideo360AdvertiserLinkProposal(request), expectedError ); assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) + ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateGoogleSignalsSettings with closed client', async () => { + it('invokes deleteDisplayVideo360AdvertiserLinkProposal with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5540,22 +5593,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() + new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.updateGoogleSignalsSettings(request), + client.deleteDisplayVideo360AdvertiserLinkProposal(request), expectedError ); }); }); - describe('createConversionEvent', () => { - it('invokes createConversionEvent without error', async () => { + describe('approveDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes approveDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5563,10 +5615,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5575,20 +5627,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() ); - client.innerApiCalls.createConversionEvent = + client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.createConversionEvent(request); + const [response] = + await client.approveDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createConversionEvent as SinonStub) + ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createConversionEvent without error using callback', async () => { + it('invokes approveDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5596,10 +5652,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5608,16 +5664,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() ); - client.innerApiCalls.createConversionEvent = + client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createConversionEvent( + client.approveDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IConversionEvent | null + result?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse | null ) => { if (err) { reject(err); @@ -5630,13 +5686,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createConversionEvent as SinonStub) + ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createConversionEvent with error', async () => { + it('invokes approveDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5644,10 +5703,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -5656,22 +5715,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createConversionEvent = stubSimpleCall( - undefined, - expectedError - ); + client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); await assert.rejects( - client.createConversionEvent(request), + client.approveDisplayVideo360AdvertiserLinkProposal(request), expectedError ); assert( - (client.innerApiCalls.createConversionEvent as SinonStub) + ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createConversionEvent with closed client', async () => { + it('invokes approveDisplayVideo360AdvertiserLinkProposal with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5679,21 +5739,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() + new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.createConversionEvent(request), + client.approveDisplayVideo360AdvertiserLinkProposal(request), expectedError ); }); }); - describe('getConversionEvent', () => { - it('invokes getConversionEvent without error', async () => { + describe('cancelDisplayVideo360AdvertiserLinkProposal', () => { + it('invokes cancelDisplayVideo360AdvertiserLinkProposal without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5701,7 +5761,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -5713,20 +5773,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.getConversionEvent = + client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(expectedResponse); - const [response] = await client.getConversionEvent(request); + const [response] = + await client.cancelDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getConversionEvent as SinonStub) + ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getConversionEvent without error using callback', async () => { + it('invokes cancelDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5734,7 +5798,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -5746,16 +5810,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); - client.innerApiCalls.getConversionEvent = + client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getConversionEvent( + client.cancelDisplayVideo360AdvertiserLinkProposal( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IConversionEvent | null + result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null ) => { if (err) { reject(err); @@ -5768,13 +5832,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getConversionEvent as SinonStub) + ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getConversionEvent with error', async () => { + it('invokes cancelDisplayVideo360AdvertiserLinkProposal with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5782,7 +5849,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -5794,19 +5861,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getConversionEvent = stubSimpleCall( - undefined, + client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.cancelDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - await assert.rejects(client.getConversionEvent(request), expectedError); assert( - (client.innerApiCalls.getConversionEvent as SinonStub) + ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getConversionEvent with closed client', async () => { + it('invokes cancelDisplayVideo360AdvertiserLinkProposal with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5814,18 +5885,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getConversionEvent(request), expectedError); - }); + await assert.rejects( + client.cancelDisplayVideo360AdvertiserLinkProposal(request), + expectedError + ); + }); }); - describe('deleteConversionEvent', () => { - it('invokes deleteConversionEvent without error', async () => { + describe('createCustomDimension', () => { + it('invokes createCustomDimension without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5833,10 +5907,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5845,20 +5919,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.CustomDimension() ); - client.innerApiCalls.deleteConversionEvent = + client.innerApiCalls.createCustomDimension = stubSimpleCall(expectedResponse); - const [response] = await client.deleteConversionEvent(request); + const [response] = await client.createCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) + (client.innerApiCalls.createCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteConversionEvent without error using callback', async () => { + it('invokes createCustomDimension without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5866,10 +5940,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5878,16 +5952,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.CustomDimension() ); - client.innerApiCalls.deleteConversionEvent = + client.innerApiCalls.createCustomDimension = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteConversionEvent( + client.createCustomDimension( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null ) => { if (err) { reject(err); @@ -5900,13 +5974,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) + (client.innerApiCalls.createCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteConversionEvent with error', async () => { + it('invokes createCustomDimension with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5914,10 +5988,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -5926,22 +6000,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteConversionEvent = stubSimpleCall( + client.innerApiCalls.createCustomDimension = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteConversionEvent(request), + client.createCustomDimension(request), expectedError ); assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) + (client.innerApiCalls.createCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteConversionEvent with closed client', async () => { + it('invokes createCustomDimension with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5949,21 +6023,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.deleteConversionEvent(request), + client.createCustomDimension(request), expectedError ); }); }); - describe('getDisplayVideo360AdvertiserLink', () => { - it('invokes getDisplayVideo360AdvertiserLink without error', async () => { + describe('updateCustomDimension', () => { + it('invokes updateCustomDimension without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -5971,10 +6045,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; const expectedOptions = { otherArgs: { headers: { @@ -5983,20 +6058,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ); - client.innerApiCalls.getDisplayVideo360AdvertiserLink = + client.innerApiCalls.updateCustomDimension = stubSimpleCall(expectedResponse); - const [response] = await client.getDisplayVideo360AdvertiserLink(request); + const [response] = await client.updateCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.updateCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getDisplayVideo360AdvertiserLink without error using callback', async () => { + it('invokes updateCustomDimension without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6004,10 +6079,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; const expectedOptions = { otherArgs: { headers: { @@ -6016,16 +6092,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ); - client.innerApiCalls.getDisplayVideo360AdvertiserLink = + client.innerApiCalls.updateCustomDimension = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getDisplayVideo360AdvertiserLink( + client.updateCustomDimension( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null ) => { if (err) { reject(err); @@ -6038,13 +6114,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.updateCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getDisplayVideo360AdvertiserLink with error', async () => { + it('invokes updateCustomDimension with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6052,10 +6128,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; const expectedOptions = { otherArgs: { headers: { @@ -6064,22 +6141,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCall( + client.innerApiCalls.updateCustomDimension = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getDisplayVideo360AdvertiserLink(request), + client.updateCustomDimension(request), expectedError ); assert( - (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.updateCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getDisplayVideo360AdvertiserLink with closed client', async () => { + it('invokes updateCustomDimension with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6087,21 +6164,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getDisplayVideo360AdvertiserLink(request), + client.updateCustomDimension(request), expectedError ); }); }); - describe('createDisplayVideo360AdvertiserLink', () => { - it('invokes createDisplayVideo360AdvertiserLink without error', async () => { + describe('archiveCustomDimension', () => { + it('invokes archiveCustomDimension without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6109,10 +6187,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -6121,22 +6199,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.createDisplayVideo360AdvertiserLink = + client.innerApiCalls.archiveCustomDimension = stubSimpleCall(expectedResponse); - const [response] = await client.createDisplayVideo360AdvertiserLink( - request - ); + const [response] = await client.archiveCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.archiveCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createDisplayVideo360AdvertiserLink without error using callback', async () => { + it('invokes archiveCustomDimension without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6144,10 +6220,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -6156,16 +6232,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.createDisplayVideo360AdvertiserLink = + client.innerApiCalls.archiveCustomDimension = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createDisplayVideo360AdvertiserLink( + client.archiveCustomDimension( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -6178,13 +6254,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.archiveCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createDisplayVideo360AdvertiserLink with error', async () => { + it('invokes archiveCustomDimension with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6192,10 +6268,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -6204,22 +6280,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCall( + client.innerApiCalls.archiveCustomDimension = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.createDisplayVideo360AdvertiserLink(request), + client.archiveCustomDimension(request), expectedError ); assert( - (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.archiveCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createDisplayVideo360AdvertiserLink with closed client', async () => { + it('invokes archiveCustomDimension with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6227,21 +6303,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.createDisplayVideo360AdvertiserLink(request), + client.archiveCustomDimension(request), expectedError ); }); }); - describe('deleteDisplayVideo360AdvertiserLink', () => { - it('invokes deleteDisplayVideo360AdvertiserLink without error', async () => { + describe('getCustomDimension', () => { + it('invokes getCustomDimension without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6249,7 +6325,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6261,22 +6337,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.CustomDimension() ); - client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = + client.innerApiCalls.getCustomDimension = stubSimpleCall(expectedResponse); - const [response] = await client.deleteDisplayVideo360AdvertiserLink( - request - ); + const [response] = await client.getCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.getCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteDisplayVideo360AdvertiserLink without error using callback', async () => { + it('invokes getCustomDimension without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6284,7 +6358,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6296,16 +6370,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.CustomDimension() ); - client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = + client.innerApiCalls.getCustomDimension = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteDisplayVideo360AdvertiserLink( + client.getCustomDimension( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null ) => { if (err) { reject(err); @@ -6318,13 +6392,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.getCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteDisplayVideo360AdvertiserLink with error', async () => { + it('invokes getCustomDimension with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6332,7 +6406,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6344,22 +6418,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCall( + client.innerApiCalls.getCustomDimension = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.deleteDisplayVideo360AdvertiserLink(request), - expectedError - ); + await assert.rejects(client.getCustomDimension(request), expectedError); assert( - (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.getCustomDimension as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteDisplayVideo360AdvertiserLink with closed client', async () => { + it('invokes getCustomDimension with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6367,21 +6438,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.deleteDisplayVideo360AdvertiserLink(request), - expectedError - ); + await assert.rejects(client.getCustomDimension(request), expectedError); }); }); - describe('updateDisplayVideo360AdvertiserLink', () => { - it('invokes updateDisplayVideo360AdvertiserLink without error', async () => { + describe('createCustomMetric', () => { + it('invokes createCustomMetric without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6389,12 +6457,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -6403,22 +6469,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomMetric() ); - client.innerApiCalls.updateDisplayVideo360AdvertiserLink = + client.innerApiCalls.createCustomMetric = stubSimpleCall(expectedResponse); - const [response] = await client.updateDisplayVideo360AdvertiserLink( - request - ); + const [response] = await client.createCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.createCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateDisplayVideo360AdvertiserLink without error using callback', async () => { + it('invokes createCustomMetric without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6426,12 +6490,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -6440,16 +6502,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomMetric() ); - client.innerApiCalls.updateDisplayVideo360AdvertiserLink = + client.innerApiCalls.createCustomMetric = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateDisplayVideo360AdvertiserLink( + client.createCustomMetric( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink | null + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null ) => { if (err) { reject(err); @@ -6462,13 +6524,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.createCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateDisplayVideo360AdvertiserLink with error', async () => { + it('invokes createCustomMetric with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6476,12 +6538,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -6490,22 +6550,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCall( + client.innerApiCalls.createCustomMetric = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.updateDisplayVideo360AdvertiserLink(request), - expectedError - ); + await assert.rejects(client.createCustomMetric(request), expectedError); assert( - (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) + (client.innerApiCalls.createCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateDisplayVideo360AdvertiserLink with closed client', async () => { + it('invokes createCustomMetric with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6513,23 +6570,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() + new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.updateDisplayVideo360AdvertiserLink(request), - expectedError - ); + await assert.rejects(client.createCustomMetric(request), expectedError); }); }); - describe('getDisplayVideo360AdvertiserLinkProposal', () => { - it('invokes getDisplayVideo360AdvertiserLinkProposal without error', async () => { + describe('updateCustomMetric', () => { + it('invokes updateCustomMetric without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6537,10 +6589,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; const expectedOptions = { otherArgs: { headers: { @@ -6549,25 +6602,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ); - client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.updateCustomMetric = stubSimpleCall(expectedResponse); - const [response] = await client.getDisplayVideo360AdvertiserLinkProposal( - request - ); + const [response] = await client.updateCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .getDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.updateCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { + it('invokes updateCustomMetric without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6575,10 +6623,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; const expectedOptions = { otherArgs: { headers: { @@ -6587,16 +6636,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ); - client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.updateCustomMetric = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getDisplayVideo360AdvertiserLinkProposal( + client.updateCustomMetric( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null ) => { if (err) { reject(err); @@ -6609,16 +6658,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .getDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.updateCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getDisplayVideo360AdvertiserLinkProposal with error', async () => { + it('invokes updateCustomMetric with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6626,10 +6672,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; const expectedOptions = { otherArgs: { headers: { @@ -6638,23 +6685,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = - stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.getDisplayVideo360AdvertiserLinkProposal(request), + client.innerApiCalls.updateCustomMetric = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.updateCustomMetric(request), expectedError); assert( - ( - client.innerApiCalls - .getDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.updateCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + it('invokes updateCustomMetric with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6662,21 +6705,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getDisplayVideo360AdvertiserLinkProposal(request), - expectedError - ); + await assert.rejects(client.updateCustomMetric(request), expectedError); }); }); - describe('createDisplayVideo360AdvertiserLinkProposal', () => { - it('invokes createDisplayVideo360AdvertiserLinkProposal without error', async () => { + describe('archiveCustomMetric', () => { + it('invokes archiveCustomMetric without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6684,10 +6725,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -6696,24 +6737,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.archiveCustomMetric = stubSimpleCall(expectedResponse); - const [response] = - await client.createDisplayVideo360AdvertiserLinkProposal(request); + const [response] = await client.archiveCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .createDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.archiveCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { + it('invokes archiveCustomMetric without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6721,10 +6758,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -6733,16 +6770,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.archiveCustomMetric = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createDisplayVideo360AdvertiserLinkProposal( + client.archiveCustomMetric( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -6755,16 +6792,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .createDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.archiveCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createDisplayVideo360AdvertiserLinkProposal with error', async () => { + it('invokes archiveCustomMetric with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6772,10 +6806,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -6784,23 +6818,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = - stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.createDisplayVideo360AdvertiserLinkProposal(request), + client.innerApiCalls.archiveCustomMetric = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.archiveCustomMetric(request), expectedError); assert( - ( - client.innerApiCalls - .createDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.archiveCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + it('invokes archiveCustomMetric with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6808,21 +6838,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createDisplayVideo360AdvertiserLinkProposal(request), - expectedError - ); + await assert.rejects(client.archiveCustomMetric(request), expectedError); }); }); - describe('deleteDisplayVideo360AdvertiserLinkProposal', () => { - it('invokes deleteDisplayVideo360AdvertiserLinkProposal without error', async () => { + describe('getCustomMetric', () => { + it('invokes getCustomMetric without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6830,7 +6857,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6842,24 +6869,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.CustomMetric() ); - client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = - stubSimpleCall(expectedResponse); - const [response] = - await client.deleteDisplayVideo360AdvertiserLinkProposal(request); + client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); + const [response] = await client.getCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.getCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { + it('invokes getCustomMetric without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6867,7 +6889,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6879,16 +6901,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.CustomMetric() ); - client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.getCustomMetric = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteDisplayVideo360AdvertiserLinkProposal( + client.getCustomMetric( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null ) => { if (err) { reject(err); @@ -6901,16 +6923,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.getCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes deleteDisplayVideo360AdvertiserLinkProposal with error', async () => { + it('invokes getCustomMetric with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6918,7 +6937,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6930,23 +6949,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = - stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.deleteDisplayVideo360AdvertiserLinkProposal(request), + client.innerApiCalls.getCustomMetric = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.getCustomMetric(request), expectedError); assert( - ( - client.innerApiCalls - .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.getCustomMetric as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes deleteDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + it('invokes getCustomMetric with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6954,21 +6969,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.deleteDisplayVideo360AdvertiserLinkProposal(request), - expectedError - ); + await assert.rejects(client.getCustomMetric(request), expectedError); }); }); - describe('approveDisplayVideo360AdvertiserLinkProposal', () => { - it('invokes approveDisplayVideo360AdvertiserLinkProposal without error', async () => { + describe('getDataRetentionSettings', () => { + it('invokes getDataRetentionSettings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -6976,7 +6988,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -6988,24 +7000,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); - client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.getDataRetentionSettings = stubSimpleCall(expectedResponse); - const [response] = - await client.approveDisplayVideo360AdvertiserLinkProposal(request); + const [response] = await client.getDataRetentionSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .approveDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.getDataRetentionSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes approveDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { + it('invokes getDataRetentionSettings without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7013,7 +7021,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -7025,16 +7033,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); - client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.getDataRetentionSettings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.approveDisplayVideo360AdvertiserLinkProposal( + client.getDataRetentionSettings( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse | null + result?: protos.google.analytics.admin.v1alpha.IDataRetentionSettings | null ) => { if (err) { reject(err); @@ -7047,16 +7055,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .approveDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.getDataRetentionSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes approveDisplayVideo360AdvertiserLinkProposal with error', async () => { + it('invokes getDataRetentionSettings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7064,7 +7069,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -7076,23 +7081,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = - stubSimpleCall(undefined, expectedError); + client.innerApiCalls.getDataRetentionSettings = stubSimpleCall( + undefined, + expectedError + ); await assert.rejects( - client.approveDisplayVideo360AdvertiserLinkProposal(request), + client.getDataRetentionSettings(request), expectedError ); assert( - ( - client.innerApiCalls - .approveDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.getDataRetentionSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes approveDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + it('invokes getDataRetentionSettings with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7100,21 +7104,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.approveDisplayVideo360AdvertiserLinkProposal(request), + client.getDataRetentionSettings(request), expectedError ); }); }); - describe('cancelDisplayVideo360AdvertiserLinkProposal', () => { - it('invokes cancelDisplayVideo360AdvertiserLinkProposal without error', async () => { + describe('updateDataRetentionSettings', () => { + it('invokes updateDataRetentionSettings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7122,10 +7126,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; const expectedOptions = { otherArgs: { headers: { @@ -7134,24 +7139,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); - client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.updateDataRetentionSettings = stubSimpleCall(expectedResponse); - const [response] = - await client.cancelDisplayVideo360AdvertiserLinkProposal(request); + const [response] = await client.updateDataRetentionSettings(request); assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes cancelDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { + it('invokes updateDataRetentionSettings without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7159,10 +7160,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; const expectedOptions = { otherArgs: { headers: { @@ -7171,16 +7173,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); - client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = + client.innerApiCalls.updateDataRetentionSettings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.cancelDisplayVideo360AdvertiserLinkProposal( + client.updateDataRetentionSettings( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal | null + result?: protos.google.analytics.admin.v1alpha.IDataRetentionSettings | null ) => { if (err) { reject(err); @@ -7193,16 +7195,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes cancelDisplayVideo360AdvertiserLinkProposal with error', async () => { + it('invokes updateDataRetentionSettings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7210,10 +7209,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; const expectedOptions = { otherArgs: { headers: { @@ -7222,23 +7222,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = - stubSimpleCall(undefined, expectedError); + client.innerApiCalls.updateDataRetentionSettings = stubSimpleCall( + undefined, + expectedError + ); await assert.rejects( - client.cancelDisplayVideo360AdvertiserLinkProposal(request), + client.updateDataRetentionSettings(request), expectedError ); assert( - ( - client.innerApiCalls - .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub - ) + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes cancelDisplayVideo360AdvertiserLinkProposal with closed client', async () => { + it('invokes updateDataRetentionSettings with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7246,21 +7245,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.cancelDisplayVideo360AdvertiserLinkProposal(request), + client.updateDataRetentionSettings(request), expectedError ); }); }); - describe('createCustomDimension', () => { - it('invokes createCustomDimension without error', async () => { + describe('createDataStream', () => { + it('invokes createDataStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7268,7 +7268,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7280,20 +7280,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ); - client.innerApiCalls.createCustomDimension = - stubSimpleCall(expectedResponse); - const [response] = await client.createCustomDimension(request); + client.innerApiCalls.createDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.createDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomDimension as SinonStub) + (client.innerApiCalls.createDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createCustomDimension without error using callback', async () => { + it('invokes createDataStream without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7301,7 +7300,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7313,16 +7312,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ); - client.innerApiCalls.createCustomDimension = + client.innerApiCalls.createDataStream = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createCustomDimension( + client.createDataStream( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + result?: protos.google.analytics.admin.v1alpha.IDataStream | null ) => { if (err) { reject(err); @@ -7335,13 +7334,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomDimension as SinonStub) + (client.innerApiCalls.createDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createCustomDimension with error', async () => { + it('invokes createDataStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7349,7 +7348,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -7361,22 +7360,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.createCustomDimension = stubSimpleCall( + client.innerApiCalls.createDataStream = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createCustomDimension(request), - expectedError - ); + await assert.rejects(client.createDataStream(request), expectedError); assert( - (client.innerApiCalls.createCustomDimension as SinonStub) + (client.innerApiCalls.createDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createCustomDimension with closed client', async () => { + it('invokes createDataStream with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7384,21 +7380,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createCustomDimension(request), - expectedError - ); + await assert.rejects(client.createDataStream(request), expectedError); }); }); - describe('updateCustomDimension', () => { - it('invokes updateCustomDimension without error', async () => { + describe('deleteDataStream', () => { + it('invokes deleteDataStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7406,11 +7399,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -7419,20 +7411,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateCustomDimension = - stubSimpleCall(expectedResponse); - const [response] = await client.updateCustomDimension(request); + client.innerApiCalls.deleteDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.deleteDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) + (client.innerApiCalls.deleteDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateCustomDimension without error using callback', async () => { + it('invokes deleteDataStream without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7440,11 +7431,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -7453,16 +7443,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.updateCustomDimension = + client.innerApiCalls.deleteDataStream = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateCustomDimension( + client.deleteDataStream( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -7475,13 +7465,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) + (client.innerApiCalls.deleteDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes updateCustomDimension with error', async () => { + it('invokes deleteDataStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7489,11 +7479,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -7502,22 +7491,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.updateCustomDimension = stubSimpleCall( + client.innerApiCalls.deleteDataStream = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.updateCustomDimension(request), - expectedError - ); + await assert.rejects(client.deleteDataStream(request), expectedError); assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) + (client.innerApiCalls.deleteDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes updateCustomDimension with closed client', async () => { + it('invokes deleteDataStream with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7525,22 +7511,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.updateCustomDimension(request), - expectedError - ); + await assert.rejects(client.deleteDataStream(request), expectedError); }); }); - describe('archiveCustomDimension', () => { - it('invokes archiveCustomDimension without error', async () => { + describe('updateDataStream', () => { + it('invokes updateDataStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7548,10 +7530,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; const expectedOptions = { otherArgs: { headers: { @@ -7560,20 +7543,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.DataStream() ); - client.innerApiCalls.archiveCustomDimension = - stubSimpleCall(expectedResponse); - const [response] = await client.archiveCustomDimension(request); + client.innerApiCalls.updateDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.updateDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) + (client.innerApiCalls.updateDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes archiveCustomDimension without error using callback', async () => { + it('invokes updateDataStream without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7581,10 +7563,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; const expectedOptions = { otherArgs: { headers: { @@ -7593,16 +7576,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.analytics.admin.v1alpha.DataStream() ); - client.innerApiCalls.archiveCustomDimension = + client.innerApiCalls.updateDataStream = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.archiveCustomDimension( + client.updateDataStream( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.analytics.admin.v1alpha.IDataStream | null ) => { if (err) { reject(err); @@ -7615,13 +7598,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) + (client.innerApiCalls.updateDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes archiveCustomDimension with error', async () => { + it('invokes updateDataStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7629,10 +7612,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; const expectedOptions = { otherArgs: { headers: { @@ -7641,22 +7625,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.archiveCustomDimension = stubSimpleCall( + client.innerApiCalls.updateDataStream = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.archiveCustomDimension(request), - expectedError - ); + await assert.rejects(client.updateDataStream(request), expectedError); assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) + (client.innerApiCalls.updateDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes archiveCustomDimension with closed client', async () => { + it('invokes updateDataStream with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7664,21 +7645,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.archiveCustomDimension(request), - expectedError - ); + await assert.rejects(client.updateDataStream(request), expectedError); }); }); - describe('getCustomDimension', () => { - it('invokes getCustomDimension without error', async () => { + describe('getDataStream', () => { + it('invokes getDataStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7686,7 +7665,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -7698,20 +7677,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ); - client.innerApiCalls.getCustomDimension = - stubSimpleCall(expectedResponse); - const [response] = await client.getCustomDimension(request); + client.innerApiCalls.getDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.getDataStream(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getCustomDimension as SinonStub) + (client.innerApiCalls.getDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getCustomDimension without error using callback', async () => { + it('invokes getDataStream without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7719,7 +7697,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -7731,16 +7709,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ); - client.innerApiCalls.getCustomDimension = + client.innerApiCalls.getDataStream = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getCustomDimension( + client.getDataStream( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomDimension | null + result?: protos.google.analytics.admin.v1alpha.IDataStream | null ) => { if (err) { reject(err); @@ -7753,13 +7731,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getCustomDimension as SinonStub) + (client.innerApiCalls.getDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes getCustomDimension with error', async () => { + it('invokes getDataStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7767,7 +7745,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -7779,19 +7757,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getCustomDimension = stubSimpleCall( + client.innerApiCalls.getDataStream = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getCustomDimension(request), expectedError); + await assert.rejects(client.getDataStream(request), expectedError); assert( - (client.innerApiCalls.getCustomDimension as SinonStub) + (client.innerApiCalls.getDataStream as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes getCustomDimension with closed client', async () => { + it('invokes getDataStream with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7799,18 +7777,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() + new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getCustomDimension(request), expectedError); + await assert.rejects(client.getDataStream(request), expectedError); }); }); - describe('createCustomMetric', () => { - it('invokes createCustomMetric without error', async () => { + describe('listAccounts', () => { + it('invokes listAccounts without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7818,32 +7796,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - client.innerApiCalls.createCustomMetric = - stubSimpleCall(expectedResponse); - const [response] = await client.createCustomMetric(request); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomMetric as SinonStub) + (client.innerApiCalls.listAccounts as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createCustomMetric without error using callback', async () => { + it('invokes listAccounts without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7851,28 +7828,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - client.innerApiCalls.createCustomMetric = + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createCustomMetric( + client.listAccounts( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null ) => { if (err) { reject(err); @@ -7885,13 +7862,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.createCustomMetric as SinonStub) + (client.innerApiCalls.listAccounts as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes createCustomMetric with error', async () => { + it('invokes listAccounts with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7899,31 +7876,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); - client.innerApiCalls.createCustomMetric = stubSimpleCall( + client.innerApiCalls.listAccounts = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createCustomMetric(request), expectedError); + await assert.rejects(client.listAccounts(request), expectedError); assert( - (client.innerApiCalls.createCustomMetric as SinonStub) + (client.innerApiCalls.listAccounts as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes createCustomMetric with closed client', async () => { + it('invokes listAccountsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7931,2160 +7900,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.createCustomMetric(request), expectedError); - }); - }); - - describe('updateCustomMetric', () => { - it('invokes updateCustomMetric without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() - ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() - ); - client.innerApiCalls.updateCustomMetric = - stubSimpleCall(expectedResponse); - const [response] = await client.updateCustomMetric(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateCustomMetric without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() - ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() - ); - client.innerApiCalls.updateCustomMetric = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.updateCustomMetric( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes updateCustomMetric with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() - ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.updateCustomMetric = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.updateCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateCustomMetric with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() - ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.updateCustomMetric(request), expectedError); - }); - }); - - describe('archiveCustomMetric', () => { - it('invokes archiveCustomMetric without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.innerApiCalls.archiveCustomMetric = - stubSimpleCall(expectedResponse); - const [response] = await client.archiveCustomMetric(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes archiveCustomMetric without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.innerApiCalls.archiveCustomMetric = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.archiveCustomMetric( - request, - ( - err?: Error | null, - result?: protos.google.protobuf.IEmpty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes archiveCustomMetric with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.archiveCustomMetric = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.archiveCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes archiveCustomMetric with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.archiveCustomMetric(request), expectedError); - }); - }); - - describe('getCustomMetric', () => { - it('invokes getCustomMetric without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() - ); - client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); - const [response] = await client.getCustomMetric(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes getCustomMetric without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() - ); - client.innerApiCalls.getCustomMetric = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.getCustomMetric( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.ICustomMetric | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes getCustomMetric with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.getCustomMetric = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.getCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes getCustomMetric with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.getCustomMetric(request), expectedError); - }); - }); - - describe('getDataRetentionSettings', () => { - it('invokes getDataRetentionSettings without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataRetentionSettings() - ); - client.innerApiCalls.getDataRetentionSettings = - stubSimpleCall(expectedResponse); - const [response] = await client.getDataRetentionSettings(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes getDataRetentionSettings without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataRetentionSettings() - ); - client.innerApiCalls.getDataRetentionSettings = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.getDataRetentionSettings( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataRetentionSettings | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes getDataRetentionSettings with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.getDataRetentionSettings = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getDataRetentionSettings(request), - expectedError - ); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes getDataRetentionSettings with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects( - client.getDataRetentionSettings(request), - expectedError - ); - }); - }); - - describe('updateDataRetentionSettings', () => { - it('invokes updateDataRetentionSettings without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() - ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataRetentionSettings() - ); - client.innerApiCalls.updateDataRetentionSettings = - stubSimpleCall(expectedResponse); - const [response] = await client.updateDataRetentionSettings(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateDataRetentionSettings without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() - ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataRetentionSettings() - ); - client.innerApiCalls.updateDataRetentionSettings = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.updateDataRetentionSettings( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataRetentionSettings | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes updateDataRetentionSettings with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() - ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.updateDataRetentionSettings = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.updateDataRetentionSettings(request), - expectedError - ); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateDataRetentionSettings with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() - ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects( - client.updateDataRetentionSettings(request), - expectedError - ); - }); - }); - - describe('createDataStream', () => { - it('invokes createDataStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() - ); - client.innerApiCalls.createDataStream = stubSimpleCall(expectedResponse); - const [response] = await client.createDataStream(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes createDataStream without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() - ); - client.innerApiCalls.createDataStream = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.createDataStream( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataStream | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes createDataStream with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.createDataStream = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.createDataStream(request), expectedError); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes createDataStream with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.createDataStream(request), expectedError); - }); - }); - - describe('deleteDataStream', () => { - it('invokes deleteDataStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.innerApiCalls.deleteDataStream = stubSimpleCall(expectedResponse); - const [response] = await client.deleteDataStream(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes deleteDataStream without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.innerApiCalls.deleteDataStream = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.deleteDataStream( - request, - ( - err?: Error | null, - result?: protos.google.protobuf.IEmpty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes deleteDataStream with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataStream = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.deleteDataStream(request), expectedError); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes deleteDataStream with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.deleteDataStream(request), expectedError); - }); - }); - - describe('updateDataStream', () => { - it('invokes updateDataStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() - ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() - ); - client.innerApiCalls.updateDataStream = stubSimpleCall(expectedResponse); - const [response] = await client.updateDataStream(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateDataStream without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() - ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() - ); - client.innerApiCalls.updateDataStream = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.updateDataStream( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataStream | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes updateDataStream with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() - ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.updateDataStream = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.updateDataStream(request), expectedError); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes updateDataStream with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() - ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.updateDataStream(request), expectedError); - }); - }); - - describe('getDataStream', () => { - it('invokes getDataStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() - ); - client.innerApiCalls.getDataStream = stubSimpleCall(expectedResponse); - const [response] = await client.getDataStream(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes getDataStream without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() - ); - client.innerApiCalls.getDataStream = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.getDataStream( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataStream | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes getDataStream with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.getDataStream = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.getDataStream(request), expectedError); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes getDataStream with closed client', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.getDataStream(request), expectedError); - }); - }); - - describe('listAccounts', () => { - it('invokes listAccounts without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); - const [response] = await client.listAccounts(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listAccounts without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.listAccounts( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAccount[] | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes listAccounts with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedError = new Error('expected'); - client.innerApiCalls.listAccounts = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.listAccounts(request), expectedError); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listAccountsStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.descriptors.page.listAccounts.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAccountsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); - assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) - ); - }); - - it('invokes listAccountsStream with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listAccountsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - await assert.rejects(promise, expectedError); - assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) - ); - }); - - it('uses async iteration with listAccounts without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.descriptors.page.listAccounts.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - const iterable = client.listAccountsAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - - it('uses async iteration with listAccounts with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() - ); - const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountsAsync(request); - await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); - - describe('listAccountSummaries', () => { - it('invokes listAccountSummaries without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - ]; - client.innerApiCalls.listAccountSummaries = - stubSimpleCall(expectedResponse); - const [response] = await client.listAccountSummaries(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listAccountSummaries without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - ]; - client.innerApiCalls.listAccountSummaries = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.listAccountSummaries( - request, - ( - err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IAccountSummary[] - | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes listAccountSummaries with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedError = new Error('expected'); - client.innerApiCalls.listAccountSummaries = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.listAccountSummaries(request), expectedError); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listAccountSummariesStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - ]; - client.descriptors.page.listAccountSummaries.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAccountSummariesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); - assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) - ); - }); - - it('invokes listAccountSummariesStream with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() - ); - const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccountSummariesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - await assert.rejects(promise, expectedError); - assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) - ); - }); - - it('uses async iteration with listAccountSummaries without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() - ), - ]; - client.descriptors.page.listAccountSummaries.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; - const iterable = client.listAccountSummariesAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - - it('uses async iteration with listAccountSummaries with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() - ); - const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountSummariesAsync(request); - await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); - - describe('listProperties', () => { - it('invokes listProperties without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - ]; - client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); - const [response] = await client.listProperties(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listProperties without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - ]; - client.innerApiCalls.listProperties = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.listProperties( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IProperty[] | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes listProperties with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() - ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedError = new Error('expected'); - client.innerApiCalls.listProperties = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.listProperties(request), expectedError); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listPropertiesStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - ]; - client.descriptors.page.listProperties.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listPropertiesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); - assert( - (client.descriptors.page.listProperties.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) - ); - }); - - it('invokes listPropertiesStream with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() - ); - const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listPropertiesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - await assert.rejects(promise, expectedError); - assert( - (client.descriptors.page.listProperties.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) - ); - }); - - it('uses async iteration with listProperties without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() - ), - ]; - client.descriptors.page.listProperties.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - const iterable = client.listPropertiesAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.descriptors.page.listProperties.asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - - it('uses async iteration with listProperties with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() - ); - const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPropertiesAsync(request); - await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.descriptors.page.listProperties.asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); - - describe('listUserLinks', () => { - it('invokes listUserLinks without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() - ), - ]; - client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listUserLinks(request); - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listUserLinks without error using callback', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() - ), - ]; - client.innerApiCalls.listUserLinks = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.listUserLinks( - request, - ( - err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); - }); - - it('invokes listUserLinks with error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.innerApiCalls.listUserLinks = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.listUserLinks(request), expectedError); - assert( - (client.innerApiCalls.listUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes listUserLinksStream without error', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.Account() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.Account() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.Account() ), ]; - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listUserLinksStream(request); + const stream = client.listAccountsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.Account) => { responses.push(response); } ); @@ -10098,19 +7934,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listAccounts.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(client.innerApiCalls.listAccounts, request) ); }); - it('invokes listUserLinksStream with error', async () => { + it('invokes listAccountsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10118,19 +7948,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listUserLinksStream(request); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.Account) => { responses.push(response); } ); @@ -10143,19 +7973,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listAccounts.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(client.innerApiCalls.listAccounts, request) ); }); - it('uses async iteration with listUserLinks without error', async () => { + it('uses async iteration with listAccounts without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10163,44 +7987,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.Account() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.Account() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.Account() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listAccounts.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; - const iterable = client.listUserLinksAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAccounts.asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); - it('uses async iteration with listUserLinks with error', async () => { + it('uses async iteration with listAccounts with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10208,37 +8024,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listAccounts.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listUserLinksAsync(request); + const iterable = client.listAccountsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAccounts.asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); }); - describe('auditUserLinks', () => { - it('invokes auditUserLinks without error', async () => { + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10246,39 +8054,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.auditUserLinks(request); + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listAccountSummaries as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinks without error using callback', async () => { + it('invokes listAccountSummaries without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10286,37 +8087,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.innerApiCalls.auditUserLinks = + client.innerApiCalls.listAccountSummaries = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.auditUserLinks( + client.listAccountSummaries( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | protos.google.analytics.admin.v1alpha.IAccountSummary[] | null ) => { if (err) { @@ -10330,13 +8123,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listAccountSummaries as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes auditUserLinks with error', async () => { + it('invokes listAccountSummaries with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10344,31 +8137,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); - client.innerApiCalls.auditUserLinks = stubSimpleCall( + client.innerApiCalls.listAccountSummaries = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.auditUserLinks(request), expectedError); + await assert.rejects(client.listAccountSummaries(request), expectedError); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listAccountSummaries as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinksStream without error', async () => { + it('invokes listAccountSummariesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10376,30 +8161,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listAccountSummaries.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.auditUserLinksStream(request); + const stream = client.listAccountSummariesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { responses.push(response); } ); @@ -10413,19 +8196,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) - ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(client.innerApiCalls.listAccountSummaries, request) ); }); - it('invokes auditUserLinksStream with error', async () => { + it('invokes listAccountSummariesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10433,20 +8210,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listAccountSummaries.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.auditUserLinksStream(request); + const stream = client.listAccountSummariesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { responses.push(response); } ); @@ -10459,19 +8234,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) - ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(client.innerApiCalls.listAccountSummaries, request) ); }); - it('uses async iteration with auditUserLinks without error', async () => { + it('uses async iteration with listAccountSummaries without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10479,45 +8248,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = []; - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listAccountSummariesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); - it('uses async iteration with auditUserLinks with error', async () => { + it('uses async iteration with listAccountSummaries with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10525,16 +8286,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listAccountSummariesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10542,21 +8301,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); }); - describe('listWebDataStreams', () => { - it('invokes listWebDataStreams without error', async () => { + describe('listProperties', () => { + it('invokes listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10564,40 +8317,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listWebDataStreams = - stubSimpleCall(expectedResponse); - const [response] = await client.listWebDataStreams(request); + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreams without error using callback', async () => { + it('invokes listProperties without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10605,38 +8349,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listWebDataStreams = + client.innerApiCalls.listProperties = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listWebDataStreams( + client.listProperties( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IWebDataStream[] - | null + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null ) => { if (err) { reject(err); @@ -10649,13 +8383,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listWebDataStreams with error', async () => { + it('invokes listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10663,31 +8397,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); - client.innerApiCalls.listWebDataStreams = stubSimpleCall( + client.innerApiCalls.listProperties = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listWebDataStreams(request), expectedError); + await assert.rejects(client.listProperties(request), expectedError); assert( - (client.innerApiCalls.listWebDataStreams as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listWebDataStreamsStream without error', async () => { + it('invokes listPropertiesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10695,30 +8421,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listProperties.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -10732,19 +8455,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('invokes listWebDataStreamsStream with error', async () => { + it('invokes listPropertiesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10752,20 +8469,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.createStream = + client.descriptors.page.listProperties.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listWebDataStreamsStream(request); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.WebDataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.WebDataStream) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -10778,19 +8492,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listWebDataStreams.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listWebDataStreams, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listWebDataStreams.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('uses async iteration with listWebDataStreams without error', async () => { + it('uses async iteration with listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10798,45 +8506,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.WebDataStream() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = - []; - const iterable = client.listWebDataStreamsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); - it('uses async iteration with listWebDataStreams with error', async () => { + it('uses async iteration with listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10844,38 +8543,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListWebDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listWebDataStreams.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listWebDataStreamsAsync(request); + const iterable = client.listPropertiesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IWebDataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listWebDataStreams.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); }); - describe('listIosAppDataStreams', () => { - it('invokes listIosAppDataStreams without error', async () => { + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10883,7 +8573,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10896,27 +8586,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listIosAppDataStreams = - stubSimpleCall(expectedResponse); - const [response] = await client.listIosAppDataStreams(request); + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreams without error using callback', async () => { + it('invokes listUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10924,7 +8613,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10937,25 +8626,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listIosAppDataStreams = + client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listIosAppDataStreams( + client.listUserLinks( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IIosAppDataStream[] - | null + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null ) => { if (err) { reject(err); @@ -10968,13 +8655,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listIosAppDataStreams with error', async () => { + it('invokes listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10982,7 +8669,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10994,22 +8681,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listIosAppDataStreams = stubSimpleCall( + client.innerApiCalls.listUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listIosAppDataStreams(request), - expectedError - ); + await assert.rejects(client.listUserLinks(request), expectedError); assert( - (client.innerApiCalls.listIosAppDataStreams as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listIosAppDataStreamsStream without error', async () => { + it('invokes listUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11017,32 +8701,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -11056,23 +8737,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith(client.innerApiCalls.listUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub + client.descriptors.page.listUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listIosAppDataStreamsStream with error', async () => { + it('invokes listUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11080,22 +8757,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listIosAppDataStreamsStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.IosAppDataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.IosAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -11108,23 +8782,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listIosAppDataStreams, request) + .calledWith(client.innerApiCalls.listUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .createStream as SinonStub + client.descriptors.page.listUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams without error', async () => { + it('uses async iteration with listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11132,47 +8802,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.IosAppDataStream() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = - []; - const iterable = client.listIosAppDataStreamsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listIosAppDataStreams with error', async () => { + it('uses async iteration with listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11180,40 +8847,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listIosAppDataStreams.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listIosAppDataStreamsAsync(request); + const iterable = client.listUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IIosAppDataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listIosAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listAndroidAppDataStreams', () => { - it('invokes listAndroidAppDataStreams without error', async () => { + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11221,7 +8885,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11234,27 +8898,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = - stubSimpleCall(expectedResponse); - const [response] = await client.listAndroidAppDataStreams(request); + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreams without error using callback', async () => { + it('invokes auditUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11262,7 +8925,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11275,24 +8938,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listAndroidAppDataStreams = + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAndroidAppDataStreams( + client.auditUserLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] | null ) => { if (err) { @@ -11306,13 +8969,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAndroidAppDataStreams with error', async () => { + it('invokes auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11320,7 +8983,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11332,22 +8995,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listAndroidAppDataStreams = stubSimpleCall( + client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listAndroidAppDataStreams(request), - expectedError - ); + await assert.rejects(client.auditUserLinks(request), expectedError); assert( - (client.innerApiCalls.listAndroidAppDataStreams as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAndroidAppDataStreamsStream without error', async () => { + it('invokes auditUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11355,32 +9015,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -11394,23 +9052,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub + client.descriptors.page.auditUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listAndroidAppDataStreamsStream with error', async () => { + it('invokes auditUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11418,22 +9072,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAndroidAppDataStreamsStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.AndroidAppDataStream - ) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -11446,23 +9098,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub - ) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAndroidAppDataStreams, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .createStream as SinonStub + client.descriptors.page.auditUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams without error', async () => { + it('uses async iteration with auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11470,47 +9118,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AndroidAppDataStream() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = []; - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listAndroidAppDataStreams with error', async () => { + it('uses async iteration with auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11518,16 +9164,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAndroidAppDataStreams.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAndroidAppDataStreamsAsync(request); + const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAndroidAppDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11535,15 +9181,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listAndroidAppDataStreams - .asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); @@ -14975,72 +12619,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('androidAppDataStream', () => { - const fakePath = '/rendered/path/androidAppDataStream'; - const expectedParameters = { - property: 'propertyValue', - android_app_data_stream: 'androidAppDataStreamValue', - }; - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.androidAppDataStreamPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.androidAppDataStreamPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('androidAppDataStreamPath', () => { - const result = client.androidAppDataStreamPath( - 'propertyValue', - 'androidAppDataStreamValue' - ); - assert.strictEqual(result, fakePath); - assert( - ( - client.pathTemplates.androidAppDataStreamPathTemplate - .render as SinonStub - ) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchPropertyFromAndroidAppDataStreamName', () => { - const result = - client.matchPropertyFromAndroidAppDataStreamName(fakePath); - assert.strictEqual(result, 'propertyValue'); - assert( - ( - client.pathTemplates.androidAppDataStreamPathTemplate - .match as SinonStub - ) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchAndroidAppDataStreamFromAndroidAppDataStreamName', () => { - const result = - client.matchAndroidAppDataStreamFromAndroidAppDataStreamName( - fakePath - ); - assert.strictEqual(result, 'androidAppDataStreamValue'); - assert( - ( - client.pathTemplates.androidAppDataStreamPathTemplate - .match as SinonStub - ) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - describe('conversionEvent', () => { const fakePath = '/rendered/path/conversionEvent'; const expectedParameters = { @@ -15468,6 +13046,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const fakePath = '/rendered/path/globalSiteTag'; const expectedParameters = { property: 'propertyValue', + data_stream: 'dataStreamValue', }; const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ @@ -15483,7 +13062,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .returns(expectedParameters); it('globalSiteTagPath', () => { - const result = client.globalSiteTagPath('propertyValue'); + const result = client.globalSiteTagPath( + 'propertyValue', + 'dataStreamValue' + ); assert.strictEqual(result, fakePath); assert( (client.pathTemplates.globalSiteTagPathTemplate.render as SinonStub) @@ -15501,6 +13083,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(fakePath) ); }); + + it('matchDataStreamFromGlobalSiteTagName', () => { + const result = client.matchDataStreamFromGlobalSiteTagName(fakePath); + assert.strictEqual(result, 'dataStreamValue'); + assert( + (client.pathTemplates.globalSiteTagPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); }); describe('googleAdsLink', () => { @@ -15602,68 +13194,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('iosAppDataStream', () => { - const fakePath = '/rendered/path/iosAppDataStream'; - const expectedParameters = { - property: 'propertyValue', - ios_app_data_stream: 'iosAppDataStreamValue', - }; - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.iosAppDataStreamPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.iosAppDataStreamPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('iosAppDataStreamPath', () => { - const result = client.iosAppDataStreamPath( - 'propertyValue', - 'iosAppDataStreamValue' - ); - assert.strictEqual(result, fakePath); - assert( - ( - client.pathTemplates.iosAppDataStreamPathTemplate - .render as SinonStub - ) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchPropertyFromIosAppDataStreamName', () => { - const result = client.matchPropertyFromIosAppDataStreamName(fakePath); - assert.strictEqual(result, 'propertyValue'); - assert( - (client.pathTemplates.iosAppDataStreamPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchIosAppDataStreamFromIosAppDataStreamName', () => { - const result = - client.matchIosAppDataStreamFromIosAppDataStreamName(fakePath); - assert.strictEqual(result, 'iosAppDataStreamValue'); - assert( - (client.pathTemplates.iosAppDataStreamPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - describe('measurementProtocolSecret', () => { const fakePath = '/rendered/path/measurementProtocolSecret'; const expectedParameters = { property: 'propertyValue', - web_data_stream: 'webDataStreamValue', + data_stream: 'dataStreamValue', measurement_protocol_secret: 'measurementProtocolSecretValue', }; const client = @@ -15682,7 +13217,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { it('measurementProtocolSecretPath', () => { const result = client.measurementProtocolSecretPath( 'propertyValue', - 'webDataStreamValue', + 'dataStreamValue', 'measurementProtocolSecretValue' ); assert.strictEqual(result, fakePath); @@ -15710,10 +13245,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('matchWebDataStreamFromMeasurementProtocolSecretName', () => { + it('matchDataStreamFromMeasurementProtocolSecretName', () => { const result = - client.matchWebDataStreamFromMeasurementProtocolSecretName(fakePath); - assert.strictEqual(result, 'webDataStreamValue'); + client.matchDataStreamFromMeasurementProtocolSecretName(fakePath); + assert.strictEqual(result, 'dataStreamValue'); assert( ( client.pathTemplates.measurementProtocolSecretPathTemplate @@ -15835,58 +13370,5 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); }); - - describe('webDataStream', () => { - const fakePath = '/rendered/path/webDataStream'; - const expectedParameters = { - property: 'propertyValue', - web_data_stream: 'webDataStreamValue', - }; - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.webDataStreamPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.webDataStreamPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('webDataStreamPath', () => { - const result = client.webDataStreamPath( - 'propertyValue', - 'webDataStreamValue' - ); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.webDataStreamPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchPropertyFromWebDataStreamName', () => { - const result = client.matchPropertyFromWebDataStreamName(fakePath); - assert.strictEqual(result, 'propertyValue'); - assert( - (client.pathTemplates.webDataStreamPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchWebDataStreamFromWebDataStreamName', () => { - const result = client.matchWebDataStreamFromWebDataStreamName(fakePath); - assert.strictEqual(result, 'webDataStreamValue'); - assert( - (client.pathTemplates.webDataStreamPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); }); }); From 0596e3c5c7dbad7415575bd1bd4df7c0676e7521 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Mar 2022 10:30:56 -0700 Subject: [PATCH 109/142] chore: update v2.14.2 gapic-generator-typescript (#190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update v2.14.2 gapic-generator-typescript Committer: @summer-ji-eng PiperOrigin-RevId: 434859890 Source-Link: https://github.com/googleapis/googleapis/commit/bc2432d50cba657e95212122e3fa112591b5bec2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/930b673103e92523f8cfed38decd7d3afae8ebe7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTMwYjY3MzEwM2U5MjUyM2Y4Y2ZlZDM4ZGVjZDdkM2FmYWU4ZWJlNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../gapic_analytics_admin_service_v1alpha.ts | 55 ------------------- 1 file changed, 55 deletions(-) diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 9b88cb8d3b4..ceb7c298dd6 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -344,7 +344,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAccount(request), expectedError); @@ -475,7 +474,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteAccount(request), expectedError); @@ -610,7 +608,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.account = {}; request.account.name = ''; - const expectedHeaderRequestParams = 'account.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateAccount(request), expectedError); @@ -853,7 +850,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getProperty(request), expectedError); @@ -1089,7 +1085,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteProperty(request), expectedError); @@ -1224,7 +1219,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.property = {}; request.property.name = ''; - const expectedHeaderRequestParams = 'property.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateProperty(request), expectedError); @@ -1355,7 +1349,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getUserLink(request), expectedError); @@ -1486,7 +1479,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchGetUserLinks(request), expectedError); @@ -1617,7 +1609,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createUserLink(request), expectedError); @@ -1749,7 +1740,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchCreateUserLinks(request), expectedError); @@ -1884,7 +1874,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.userLink = {}; request.userLink.name = ''; - const expectedHeaderRequestParams = 'user_link.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateUserLink(request), expectedError); @@ -2016,7 +2005,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchUpdateUserLinks(request), expectedError); @@ -2147,7 +2135,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteUserLink(request), expectedError); @@ -2279,7 +2266,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchDeleteUserLinks(request), expectedError); @@ -2411,7 +2397,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createFirebaseLink(request), expectedError); @@ -2543,7 +2528,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteFirebaseLink(request), expectedError); @@ -2674,7 +2658,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getGlobalSiteTag(request), expectedError); @@ -2806,7 +2789,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createGoogleAdsLink(request), expectedError); @@ -2942,7 +2924,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.googleAdsLink = {}; request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateGoogleAdsLink(request), expectedError); @@ -3074,7 +3055,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); @@ -3209,7 +3189,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3347,7 +3326,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3485,7 +3463,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3623,7 +3600,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3765,7 +3741,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret = {}; request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3903,7 +3878,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); request.property = ''; - const expectedHeaderRequestParams = 'property='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4041,7 +4015,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4183,7 +4156,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.googleSignalsSettings = {}; request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4321,7 +4293,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4456,7 +4427,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getConversionEvent(request), expectedError); @@ -4591,7 +4561,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4729,7 +4698,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4869,7 +4837,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5009,7 +4976,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5156,8 +5122,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.displayVideo_360AdvertiserLink = {}; request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5304,7 +5268,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5450,7 +5413,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5596,7 +5558,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5742,7 +5703,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5888,7 +5848,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -6026,7 +5985,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -6168,7 +6126,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.customDimension = {}; request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -6306,7 +6263,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -6441,7 +6397,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomDimension(request), expectedError); @@ -6573,7 +6528,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCustomMetric(request), expectedError); @@ -6709,7 +6663,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.customMetric = {}; request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateCustomMetric(request), expectedError); @@ -6841,7 +6794,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.archiveCustomMetric(request), expectedError); @@ -6972,7 +6924,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomMetric(request), expectedError); @@ -7107,7 +7058,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -7249,7 +7199,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings = {}; request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -7383,7 +7332,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createDataStream(request), expectedError); @@ -7514,7 +7462,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteDataStream(request), expectedError); @@ -7649,7 +7596,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.dataStream = {}; request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateDataStream(request), expectedError); @@ -7780,7 +7726,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataStream(request), expectedError); From 8aa33c2a97faf4e9c8347af3bf1af5cd8e7db112 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:53:43 -0400 Subject: [PATCH 110/142] chore(main): release 3.2.0 (#175) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-analytics-admin/CHANGELOG.md | 25 +++++++++++++++++++ packages/google-analytics-admin/package.json | 2 +- .../samples/package.json | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index f938e1aac2e..54ce6001f81 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [3.2.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v3.1.0...v3.2.0) (2022-04-11) + + +### ⚠ BREAKING CHANGES + +* move the `GlobalSiteTag` resource from the property level to the data stream level +* remove WebDataStream, IosAppDataStream, AndroidAppDataStream resources +* remove `GetEnhancedMeasurementSettings`, `UpdateEnhancedMeasurementSettingsRequest`, `UpdateEnhancedMeasurementSettingsRequest` operations from the API + +### Features + +* add `CreateDataStream`, `DeleteDataStream`, `UpdateDataStream`, `ListDataStreams` operations to support the new `DataStream` resource ([33ead79](https://github.com/googleapis/nodejs-analytics-admin/commit/33ead795301a343a80af8f8838c7677679b9f3fe)) +* add `DISPLAY_VIDEO_360_ADVERTISER_LINK`, `DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL` fields to `ChangeHistoryResourceType` enum ([33ead79](https://github.com/googleapis/nodejs-analytics-admin/commit/33ead795301a343a80af8f8838c7677679b9f3fe)) +* add `restricted_metric_type` field to the `CustomMetric` resource ([948d37d](https://github.com/googleapis/nodejs-analytics-admin/commit/948d37d068263595a198006764a5d7d7d6afd884)) +* add the `account` field to the `Property` type docs: update the documentation with a new list of valid values for `UserLink.direct_roles` field ([33ead79](https://github.com/googleapis/nodejs-analytics-admin/commit/33ead795301a343a80af8f8838c7677679b9f3fe)) +* add the `AcknowledgeUserDataCollection` operation which acknowledges the terms of user data collection for the specified property ([#166](https://github.com/googleapis/nodejs-analytics-admin/issues/166)) ([33ead79](https://github.com/googleapis/nodejs-analytics-admin/commit/33ead795301a343a80af8f8838c7677679b9f3fe)) +* add the new resource type `DataStream`, which is planned to eventually replace `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources ([33ead79](https://github.com/googleapis/nodejs-analytics-admin/commit/33ead795301a343a80af8f8838c7677679b9f3fe)) +* move the `GlobalSiteTag` resource from the property level to the data stream level ([948d37d](https://github.com/googleapis/nodejs-analytics-admin/commit/948d37d068263595a198006764a5d7d7d6afd884)) +* remove WebDataStream, IosAppDataStream, AndroidAppDataStream resources ([948d37d](https://github.com/googleapis/nodejs-analytics-admin/commit/948d37d068263595a198006764a5d7d7d6afd884)) + + +### Bug Fixes + +* remove `GetEnhancedMeasurementSettings`, `UpdateEnhancedMeasurementSettingsRequest`, `UpdateEnhancedMeasurementSettingsRequest` operations from the API ([33ead79](https://github.com/googleapis/nodejs-analytics-admin/commit/33ead795301a343a80af8f8838c7677679b9f3fe)) + ## [3.1.0](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.6...v3.1.0) (2021-08-23) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index d4150107358..00ad257c8c1 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.1.0", + "version": "3.2.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index cfedff1c94d..3a24e3aa65f 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.1.0", + "@google-analytics/admin": "^3.2.0", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 9fe92b0fb396e200675a7f9e41cf5ae8b11c8ce4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 18:18:23 +0000 Subject: [PATCH 111/142] build(node): update client library version in samples metadata (#1356) (#197) * build(node): add feat in node post-processor to add client library version number in snippet metadata Co-authored-by: Benjamin E. Coe Source-Link: https://github.com/googleapis/synthtool/commit/d337b88dd1494365183718a2de0b7b4056b6fdfe Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:d106724ad2a96daa1b8d88de101ba50bdb30b8df62ffa0aa2b451d93b4556641 --- ...tadata.google.analytics.admin.v1alpha.json | 6218 ++++++++--------- 1 file changed, 3109 insertions(+), 3109 deletions(-) diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index 0f23bf0f18e..ebe9ea4d021 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -1,3111 +1,3111 @@ { - "clientLibrary": { - "name": "nodejs-admin", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.admin.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async", - "title": "AnalyticsAdminService getAccount Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single Account.", - "canonical": true, - "file": "analytics_admin_service.get_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Account", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async", - "title": "AnalyticsAdminService listAccounts Sample", - "origin": "API_DEFINITION", - "description": " Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: \"trashed\") accounts are excluded by default. Returns an empty list if no relevant accounts are found.", - "canonical": true, - "file": "analytics_admin_service.list_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccounts", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAccountsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAccounts", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async", - "title": "AnalyticsAdminService deleteAccount Sample", - "origin": "API_DEFINITION", - "description": " Marks target Account as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", - "canonical": true, - "file": "analytics_admin_service.delete_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async", - "title": "AnalyticsAdminService updateAccount Sample", - "origin": "API_DEFINITION", - "description": " Updates an account.", - "canonical": true, - "file": "analytics_admin_service.update_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.analytics.admin.v1alpha.Account" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Account", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async", - "title": "AnalyticsAdminService provisionAccountTicket Sample", - "origin": "API_DEFINITION", - "description": " Requests a ticket for creating an account.", - "canonical": true, - "file": "analytics_admin_service.provision_account_ticket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionAccountTicket", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.analytics.admin.v1alpha.Account" - }, - { - "name": "redirect_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ProvisionAccountTicketResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ProvisionAccountTicket", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async", - "title": "AnalyticsAdminService listAccountSummaries Sample", - "origin": "API_DEFINITION", - "description": " Returns summaries of all accounts accessible by the caller.", - "canonical": true, - "file": "analytics_admin_service.list_account_summaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountSummaries", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAccountSummariesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAccountSummaries", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async", - "title": "AnalyticsAdminService getProperty Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single \"GA4\" Property.", - "canonical": true, - "file": "analytics_admin_service.get_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async", - "title": "AnalyticsAdminService listProperties Sample", - "origin": "API_DEFINITION", - "description": " Returns child Properties under the specified parent Account. Only \"GA4\" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", - "canonical": true, - "file": "analytics_admin_service.list_properties.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProperties", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListPropertiesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListProperties", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async", - "title": "AnalyticsAdminService createProperty Sample", - "origin": "API_DEFINITION", - "description": " Creates an \"GA4\" property with the specified location and attributes.", - "canonical": true, - "file": "analytics_admin_service.create_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", - "async": true, - "parameters": [ - { - "name": "property", - "type": ".google.analytics.admin.v1alpha.Property" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async", - "title": "AnalyticsAdminService deleteProperty Sample", - "origin": "API_DEFINITION", - "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.", - "canonical": true, - "file": "analytics_admin_service.delete_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async", - "title": "AnalyticsAdminService updateProperty Sample", - "origin": "API_DEFINITION", - "description": " Updates a property.", - "canonical": true, - "file": "analytics_admin_service.update_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", - "async": true, - "parameters": [ - { - "name": "property", - "type": ".google.analytics.admin.v1alpha.Property" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async", - "title": "AnalyticsAdminService getUserLink Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a user's link to an account or property.", - "canonical": true, - "file": "analytics_admin_service.get_user_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.UserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async", - "title": "AnalyticsAdminService batchGetUserLinks Sample", - "origin": "API_DEFINITION", - "description": " Gets information about multiple users' links to an account or property.", - "canonical": true, - "file": "analytics_admin_service.batch_get_user_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BatchGetUserLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchGetUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async", - "title": "AnalyticsAdminService listUserLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists all user links on an account or property.", - "canonical": true, - "file": "analytics_admin_service.list_user_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListUserLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async", - "title": "AnalyticsAdminService auditUserLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.", - "canonical": true, - "file": "analytics_admin_service.audit_user_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AuditUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AuditUserLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "AuditUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async", - "title": "AnalyticsAdminService createUserLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be unioned with the permissions specified in the new UserLink.", - "canonical": true, - "file": "analytics_admin_service.create_user_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notify_new_user", - "type": "TYPE_BOOL" - }, - { - "name": "user_link", - "type": ".google.analytics.admin.v1alpha.UserLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.UserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async", - "title": "AnalyticsAdminService batchCreateUserLinks Sample", - "origin": "API_DEFINITION", - "description": " Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.", - "canonical": true, - "file": "analytics_admin_service.batch_create_user_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notify_new_users", - "type": "TYPE_BOOL" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchCreateUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async", - "title": "AnalyticsAdminService updateUserLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a user link on an account or property.", - "canonical": true, - "file": "analytics_admin_service.update_user_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLink", - "async": true, - "parameters": [ - { - "name": "user_link", - "type": ".google.analytics.admin.v1alpha.UserLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.UserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async", - "title": "AnalyticsAdminService batchUpdateUserLinks Sample", - "origin": "API_DEFINITION", - "description": " Updates information about multiple users' links to an account or property.", - "canonical": true, - "file": "analytics_admin_service.batch_update_user_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchUpdateUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async", - "title": "AnalyticsAdminService deleteUserLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a user link on an account or property.", - "canonical": true, - "file": "analytics_admin_service.delete_user_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteUserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async", - "title": "AnalyticsAdminService batchDeleteUserLinks Sample", - "origin": "API_DEFINITION", - "description": " Deletes information about multiple users' links to an account or property.", - "canonical": true, - "file": "analytics_admin_service.batch_delete_user_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchDeleteUserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async", - "title": "AnalyticsAdminService createFirebaseLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a FirebaseLink. Properties can have at most one FirebaseLink.", - "canonical": true, - "file": "analytics_admin_service.create_firebase_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firebase_link", - "type": ".google.analytics.admin.v1alpha.FirebaseLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.FirebaseLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async", - "title": "AnalyticsAdminService deleteFirebaseLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a FirebaseLink on a property", - "canonical": true, - "file": "analytics_admin_service.delete_firebase_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async", - "title": "AnalyticsAdminService listFirebaseLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.", - "canonical": true, - "file": "analytics_admin_service.list_firebase_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirebaseLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListFirebaseLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListFirebaseLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async", - "title": "AnalyticsAdminService getGlobalSiteTag Sample", - "origin": "API_DEFINITION", - "description": " Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.", - "canonical": true, - "file": "analytics_admin_service.get_global_site_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlobalSiteTag", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GlobalSiteTag", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetGlobalSiteTag", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async", - "title": "AnalyticsAdminService createGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a GoogleAdsLink.", - "canonical": true, - "file": "analytics_admin_service.create_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "google_ads_link", - "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async", - "title": "AnalyticsAdminService updateGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a GoogleAdsLink on a property", - "canonical": true, - "file": "analytics_admin_service.update_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "google_ads_link", - "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async", - "title": "AnalyticsAdminService deleteGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a GoogleAdsLink on a property", - "canonical": true, - "file": "analytics_admin_service.delete_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async", - "title": "AnalyticsAdminService listGoogleAdsLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists GoogleAdsLinks on a property.", - "canonical": true, - "file": "analytics_admin_service.list_google_ads_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGoogleAdsLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListGoogleAdsLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async", - "title": "AnalyticsAdminService getDataSharingSettings Sample", - "origin": "API_DEFINITION", - "description": " Get data sharing settings on an account. Data sharing settings are singletons.", - "canonical": true, - "file": "analytics_admin_service.get_data_sharing_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSharingSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataSharingSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataSharingSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService getMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single \"GA4\" MeasurementProtocolSecret.", - "canonical": true, - "file": "analytics_admin_service.get_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async", - "title": "AnalyticsAdminService listMeasurementProtocolSecrets Sample", - "origin": "API_DEFINITION", - "description": " Returns child MeasurementProtocolSecrets under the specified parent Property.", - "canonical": true, - "file": "analytics_admin_service.list_measurement_protocol_secrets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMeasurementProtocolSecrets", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListMeasurementProtocolSecrets", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService createMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Creates a measurement protocol secret.", - "canonical": true, - "file": "analytics_admin_service.create_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "measurement_protocol_secret", - "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" - } - ], - "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService deleteMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Deletes target MeasurementProtocolSecret.", - "canonical": true, - "file": "analytics_admin_service.delete_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService updateMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Updates a measurement protocol secret.", - "canonical": true, - "file": "analytics_admin_service.update_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "measurement_protocol_secret", - "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async", - "title": "AnalyticsAdminService acknowledgeUserDataCollection Sample", - "origin": "API_DEFINITION", - "description": " Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or via this API) before MeasurementProtocolSecret resources may be created.", - "canonical": true, - "file": "analytics_admin_service.acknowledge_user_data_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcknowledgeUserDataCollection", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "acknowledgement", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "AcknowledgeUserDataCollection", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } + "clientLibrary": { + "name": "nodejs-admin", + "version": "3.2.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.analytics.admin.v1alpha", + "version": "v1alpha" + } + ] + }, + "snippets": [ + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async", + "title": "AnalyticsAdminService getAccount Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single Account.", + "canonical": true, + "file": "analytics_admin_service.get_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Account", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async", + "title": "AnalyticsAdminService listAccounts Sample", + "origin": "API_DEFINITION", + "description": " Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: \"trashed\") accounts are excluded by default. Returns an empty list if no relevant accounts are found.", + "canonical": true, + "file": "analytics_admin_service.list_accounts.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAccounts", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", + "async": true, + "parameters": [ + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "show_deleted", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListAccountsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAccounts", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async", + "title": "AnalyticsAdminService deleteAccount Sample", + "origin": "API_DEFINITION", + "description": " Marks target Account as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", + "canonical": true, + "file": "analytics_admin_service.delete_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async", + "title": "AnalyticsAdminService updateAccount Sample", + "origin": "API_DEFINITION", + "description": " Updates an account.", + "canonical": true, + "file": "analytics_admin_service.update_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", + "async": true, + "parameters": [ + { + "name": "account", + "type": ".google.analytics.admin.v1alpha.Account" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Account", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateAccount", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async", + "title": "AnalyticsAdminService provisionAccountTicket Sample", + "origin": "API_DEFINITION", + "description": " Requests a ticket for creating an account.", + "canonical": true, + "file": "analytics_admin_service.provision_account_ticket.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ProvisionAccountTicket", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", + "async": true, + "parameters": [ + { + "name": "account", + "type": ".google.analytics.admin.v1alpha.Account" + }, + { + "name": "redirect_uri", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ProvisionAccountTicketResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ProvisionAccountTicket", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async", + "title": "AnalyticsAdminService listAccountSummaries Sample", + "origin": "API_DEFINITION", + "description": " Returns summaries of all accounts accessible by the caller.", + "canonical": true, + "file": "analytics_admin_service.list_account_summaries.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAccountSummaries", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", + "async": true, + "parameters": [ + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListAccountSummariesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAccountSummaries", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async", + "title": "AnalyticsAdminService getProperty Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single \"GA4\" Property.", + "canonical": true, + "file": "analytics_admin_service.get_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async", + "title": "AnalyticsAdminService listProperties Sample", + "origin": "API_DEFINITION", + "description": " Returns child Properties under the specified parent Account. Only \"GA4\" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", + "canonical": true, + "file": "analytics_admin_service.list_properties.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 86, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListProperties", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "show_deleted", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListPropertiesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListProperties", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async", + "title": "AnalyticsAdminService createProperty Sample", + "origin": "API_DEFINITION", + "description": " Creates an \"GA4\" property with the specified location and attributes.", + "canonical": true, + "file": "analytics_admin_service.create_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", + "async": true, + "parameters": [ + { + "name": "property", + "type": ".google.analytics.admin.v1alpha.Property" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async", + "title": "AnalyticsAdminService deleteProperty Sample", + "origin": "API_DEFINITION", + "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.", + "canonical": true, + "file": "analytics_admin_service.delete_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async", + "title": "AnalyticsAdminService updateProperty Sample", + "origin": "API_DEFINITION", + "description": " Updates a property.", + "canonical": true, + "file": "analytics_admin_service.update_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", + "async": true, + "parameters": [ + { + "name": "property", + "type": ".google.analytics.admin.v1alpha.Property" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateProperty", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async", + "title": "AnalyticsAdminService getUserLink Sample", + "origin": "API_DEFINITION", + "description": " Gets information about a user's link to an account or property.", + "canonical": true, + "file": "analytics_admin_service.get_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.UserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async", + "title": "AnalyticsAdminService batchGetUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Gets information about multiple users' links to an account or property.", + "canonical": true, + "file": "analytics_admin_service.batch_get_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchGetUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "names", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.analytics.admin.v1alpha.BatchGetUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchGetUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async", + "title": "AnalyticsAdminService listUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists all user links on an account or property.", + "canonical": true, + "file": "analytics_admin_service.list_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async", + "title": "AnalyticsAdminService auditUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.", + "canonical": true, + "file": "analytics_admin_service.audit_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AuditUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AuditUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "AuditUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async", + "title": "AnalyticsAdminService createUserLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be unioned with the permissions specified in the new UserLink.", + "canonical": true, + "file": "analytics_admin_service.create_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "notify_new_user", + "type": "TYPE_BOOL" + }, + { + "name": "user_link", + "type": ".google.analytics.admin.v1alpha.UserLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.UserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async", + "title": "AnalyticsAdminService batchCreateUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.", + "canonical": true, + "file": "analytics_admin_service.batch_create_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "notify_new_users", + "type": "TYPE_BOOL" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchCreateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async", + "title": "AnalyticsAdminService updateUserLink Sample", + "origin": "API_DEFINITION", + "description": " Updates a user link on an account or property.", + "canonical": true, + "file": "analytics_admin_service.update_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLink", + "async": true, + "parameters": [ + { + "name": "user_link", + "type": ".google.analytics.admin.v1alpha.UserLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.UserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async", + "title": "AnalyticsAdminService batchUpdateUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Updates information about multiple users' links to an account or property.", + "canonical": true, + "file": "analytics_admin_service.batch_update_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchUpdateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchUpdateUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async", + "title": "AnalyticsAdminService deleteUserLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a user link on an account or property.", + "canonical": true, + "file": "analytics_admin_service.delete_user_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteUserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async", + "title": "AnalyticsAdminService batchDeleteUserLinks Sample", + "origin": "API_DEFINITION", + "description": " Deletes information about multiple users' links to an account or property.", + "canonical": true, + "file": "analytics_admin_service.batch_delete_user_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchDeleteUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "BatchDeleteUserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async", + "title": "AnalyticsAdminService createFirebaseLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a FirebaseLink. Properties can have at most one FirebaseLink.", + "canonical": true, + "file": "analytics_admin_service.create_firebase_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "firebase_link", + "type": ".google.analytics.admin.v1alpha.FirebaseLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.FirebaseLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async", + "title": "AnalyticsAdminService deleteFirebaseLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a FirebaseLink on a property", + "canonical": true, + "file": "analytics_admin_service.delete_firebase_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteFirebaseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async", + "title": "AnalyticsAdminService listFirebaseLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.", + "canonical": true, + "file": "analytics_admin_service.list_firebase_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFirebaseLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListFirebaseLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListFirebaseLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async", + "title": "AnalyticsAdminService getGlobalSiteTag Sample", + "origin": "API_DEFINITION", + "description": " Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.", + "canonical": true, + "file": "analytics_admin_service.get_global_site_tag.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGlobalSiteTag", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GlobalSiteTag", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetGlobalSiteTag", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async", + "title": "AnalyticsAdminService createGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a GoogleAdsLink.", + "canonical": true, + "file": "analytics_admin_service.create_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "google_ads_link", + "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async", + "title": "AnalyticsAdminService updateGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Updates a GoogleAdsLink on a property", + "canonical": true, + "file": "analytics_admin_service.update_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "google_ads_link", + "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async", + "title": "AnalyticsAdminService deleteGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a GoogleAdsLink on a property", + "canonical": true, + "file": "analytics_admin_service.delete_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteGoogleAdsLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async", + "title": "AnalyticsAdminService listGoogleAdsLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists GoogleAdsLinks on a property.", + "canonical": true, + "file": "analytics_admin_service.list_google_ads_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGoogleAdsLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListGoogleAdsLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async", + "title": "AnalyticsAdminService getDataSharingSettings Sample", + "origin": "API_DEFINITION", + "description": " Get data sharing settings on an account. Data sharing settings are singletons.", + "canonical": true, + "file": "analytics_admin_service.get_data_sharing_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataSharingSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataSharingSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataSharingSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService getMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single \"GA4\" MeasurementProtocolSecret.", + "canonical": true, + "file": "analytics_admin_service.get_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async", + "title": "AnalyticsAdminService listMeasurementProtocolSecrets Sample", + "origin": "API_DEFINITION", + "description": " Returns child MeasurementProtocolSecrets under the specified parent Property.", + "canonical": true, + "file": "analytics_admin_service.list_measurement_protocol_secrets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListMeasurementProtocolSecrets", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListMeasurementProtocolSecrets", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService createMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Creates a measurement protocol secret.", + "canonical": true, + "file": "analytics_admin_service.create_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "measurement_protocol_secret", + "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" + } + ], + "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService deleteMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Deletes target MeasurementProtocolSecret.", + "canonical": true, + "file": "analytics_admin_service.delete_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService updateMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Updates a measurement protocol secret.", + "canonical": true, + "file": "analytics_admin_service.update_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "measurement_protocol_secret", + "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async", + "title": "AnalyticsAdminService acknowledgeUserDataCollection Sample", + "origin": "API_DEFINITION", + "description": " Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or via this API) before MeasurementProtocolSecret resources may be created.", + "canonical": true, + "file": "analytics_admin_service.acknowledge_user_data_collection.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AcknowledgeUserDataCollection", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", + "async": true, + "parameters": [ + { + "name": "property", + "type": "TYPE_STRING" + }, + { + "name": "acknowledgement", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "AcknowledgeUserDataCollection", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async", + "title": "AnalyticsAdminService searchChangeHistoryEvents Sample", + "origin": "API_DEFINITION", + "description": " Searches through all changes to an account or its children given the specified set of filters.", + "canonical": true, + "file": "analytics_admin_service.search_change_history_events.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SearchChangeHistoryEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", + "async": true, + "parameters": [ + { + "name": "account", + "type": "TYPE_STRING" + }, + { + "name": "property", + "type": "TYPE_STRING" + }, + { + "name": "resource_type", + "type": "TYPE_ENUM[]" + }, + { + "name": "action", + "type": "TYPE_ENUM[]" + }, + { + "name": "actor_email", + "type": "TYPE_STRING[]" + }, + { + "name": "earliest_change_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "latest_change_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "SearchChangeHistoryEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async", + "title": "AnalyticsAdminService getGoogleSignalsSettings Sample", + "origin": "API_DEFINITION", + "description": " Lookup for Google Signals settings for a property.", + "canonical": true, + "file": "analytics_admin_service.get_google_signals_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async", + "title": "AnalyticsAdminService updateGoogleSignalsSettings Sample", + "origin": "API_DEFINITION", + "description": " Updates Google Signals settings for a property.", + "canonical": true, + "file": "analytics_admin_service.update_google_signals_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", + "async": true, + "parameters": [ + { + "name": "google_signals_settings", + "type": ".google.analytics.admin.v1alpha.GoogleSignalsSettings" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateGoogleSignalsSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async", + "title": "AnalyticsAdminService createConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Creates a conversion event with the specified attributes.", + "canonical": true, + "file": "analytics_admin_service.create_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", + "async": true, + "parameters": [ + { + "name": "conversion_event", + "type": ".google.analytics.admin.v1alpha.ConversionEvent" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async", + "title": "AnalyticsAdminService getConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Retrieve a single conversion event.", + "canonical": true, + "file": "analytics_admin_service.get_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async", + "title": "AnalyticsAdminService deleteConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Deletes a conversion event in a property.", + "canonical": true, + "file": "analytics_admin_service.delete_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteConversionEvent", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async", + "title": "AnalyticsAdminService listConversionEvents Sample", + "origin": "API_DEFINITION", + "description": " Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.", + "canonical": true, + "file": "analytics_admin_service.list_conversion_events.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListConversionEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListConversionEventsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListConversionEvents", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Look up a single DisplayVideo360AdvertiserLink", + "canonical": true, + "file": "analytics_admin_service.get_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async", + "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists all DisplayVideo360AdvertiserLinks on a property.", + "canonical": true, + "file": "analytics_admin_service.list_display_video360_advertiser_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDisplayVideo360AdvertiserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListDisplayVideo360AdvertiserLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.", + "canonical": true, + "file": "analytics_admin_service.create_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "display_video_360_advertiser_link", + "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a DisplayVideo360AdvertiserLink on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async", + "title": "AnalyticsAdminService updateDisplayVideo360AdvertiserLink Sample", + "origin": "API_DEFINITION", + "description": " Updates a DisplayVideo360AdvertiserLink on a property.", + "canonical": true, + "file": "analytics_admin_service.update_display_video360_advertiser_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", + "async": true, + "parameters": [ + { + "name": "display_video_360_advertiser_link", + "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDisplayVideo360AdvertiserLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single DisplayVideo360AdvertiserLinkProposal.", + "canonical": true, + "file": "analytics_admin_service.get_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async", + "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinkProposals Sample", + "origin": "API_DEFINITION", + "description": " Lists DisplayVideo360AdvertiserLinkProposals on a property.", + "canonical": true, + "file": "analytics_admin_service.list_display_video360_advertiser_link_proposals.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDisplayVideo360AdvertiserLinkProposals", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListDisplayVideo360AdvertiserLinkProposals", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Creates a DisplayVideo360AdvertiserLinkProposal.", + "canonical": true, + "file": "analytics_admin_service.create_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "display_video_360_advertiser_link_proposal", + "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.", + "canonical": true, + "file": "analytics_admin_service.delete_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService approveDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.", + "canonical": true, + "file": "analytics_admin_service.approve_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async", + "title": "AnalyticsAdminService cancelDisplayVideo360AdvertiserLinkProposal Sample", + "origin": "API_DEFINITION", + "description": " Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.", + "canonical": true, + "file": "analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async", + "title": "AnalyticsAdminService createCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Creates a CustomDimension.", + "canonical": true, + "file": "analytics_admin_service.create_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "custom_dimension", + "type": ".google.analytics.admin.v1alpha.CustomDimension" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async", + "title": "AnalyticsAdminService updateCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Updates a CustomDimension on a property.", + "canonical": true, + "file": "analytics_admin_service.update_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", + "async": true, + "parameters": [ + { + "name": "custom_dimension", + "type": ".google.analytics.admin.v1alpha.CustomDimension" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async", + "title": "AnalyticsAdminService listCustomDimensions Sample", + "origin": "API_DEFINITION", + "description": " Lists CustomDimensions on a property.", + "canonical": true, + "file": "analytics_admin_service.list_custom_dimensions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCustomDimensions", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListCustomDimensionsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListCustomDimensions", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async", + "title": "AnalyticsAdminService archiveCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Archives a CustomDimension on a property.", + "canonical": true, + "file": "analytics_admin_service.archive_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ArchiveCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ArchiveCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async", + "title": "AnalyticsAdminService getCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single CustomDimension.", + "canonical": true, + "file": "analytics_admin_service.get_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetCustomDimension", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async", + "title": "AnalyticsAdminService createCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Creates a CustomMetric.", + "canonical": true, + "file": "analytics_admin_service.create_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "custom_metric", + "type": ".google.analytics.admin.v1alpha.CustomMetric" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async", + "title": "AnalyticsAdminService updateCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Updates a CustomMetric on a property.", + "canonical": true, + "file": "analytics_admin_service.update_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", + "async": true, + "parameters": [ + { + "name": "custom_metric", + "type": ".google.analytics.admin.v1alpha.CustomMetric" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async", + "title": "AnalyticsAdminService listCustomMetrics Sample", + "origin": "API_DEFINITION", + "description": " Lists CustomMetrics on a property.", + "canonical": true, + "file": "analytics_admin_service.list_custom_metrics.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCustomMetrics", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListCustomMetricsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListCustomMetrics", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async", + "title": "AnalyticsAdminService archiveCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Archives a CustomMetric on a property.", + "canonical": true, + "file": "analytics_admin_service.archive_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ArchiveCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ArchiveCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async", + "title": "AnalyticsAdminService getCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single CustomMetric.", + "canonical": true, + "file": "analytics_admin_service.get_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetCustomMetric", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async", + "title": "AnalyticsAdminService getDataRetentionSettings Sample", + "origin": "API_DEFINITION", + "description": " Returns the singleton data retention settings for this property.", + "canonical": true, + "file": "analytics_admin_service.get_data_retention_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async", + "title": "AnalyticsAdminService updateDataRetentionSettings Sample", + "origin": "API_DEFINITION", + "description": " Updates the singleton data retention settings for this property.", + "canonical": true, + "file": "analytics_admin_service.update_data_retention_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", + "async": true, + "parameters": [ + { + "name": "data_retention_settings", + "type": ".google.analytics.admin.v1alpha.DataRetentionSettings" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDataRetentionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async", + "title": "AnalyticsAdminService createDataStream Sample", + "origin": "API_DEFINITION", + "description": " Creates a DataStream.", + "canonical": true, + "file": "analytics_admin_service.create_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "data_stream", + "type": ".google.analytics.admin.v1alpha.DataStream" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async", + "title": "AnalyticsAdminService deleteDataStream Sample", + "origin": "API_DEFINITION", + "description": " Deletes a DataStream on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async", + "title": "AnalyticsAdminService updateDataStream Sample", + "origin": "API_DEFINITION", + "description": " Updates a DataStream on a property.", + "canonical": true, + "file": "analytics_admin_service.update_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", + "async": true, + "parameters": [ + { + "name": "data_stream", + "type": ".google.analytics.admin.v1alpha.DataStream" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async", + "title": "AnalyticsAdminService listDataStreams Sample", + "origin": "API_DEFINITION", + "description": " Lists DataStreams on a property.", + "canonical": true, + "file": "analytics_admin_service.list_data_streams.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListDataStreamsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListDataStreams", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async", + "title": "AnalyticsAdminService getDataStream Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single DataStream.", + "canonical": true, + "file": "analytics_admin_service.get_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataStream", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async", - "title": "AnalyticsAdminService searchChangeHistoryEvents Sample", - "origin": "API_DEFINITION", - "description": " Searches through all changes to an account or its children given the specified set of filters.", - "canonical": true, - "file": "analytics_admin_service.search_change_history_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchChangeHistoryEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_ENUM[]" - }, - { - "name": "action", - "type": "TYPE_ENUM[]" - }, - { - "name": "actor_email", - "type": "TYPE_STRING[]" - }, - { - "name": "earliest_change_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "latest_change_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "SearchChangeHistoryEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async", - "title": "AnalyticsAdminService getGoogleSignalsSettings Sample", - "origin": "API_DEFINITION", - "description": " Lookup for Google Signals settings for a property.", - "canonical": true, - "file": "analytics_admin_service.get_google_signals_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async", - "title": "AnalyticsAdminService updateGoogleSignalsSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates Google Signals settings for a property.", - "canonical": true, - "file": "analytics_admin_service.update_google_signals_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", - "async": true, - "parameters": [ - { - "name": "google_signals_settings", - "type": ".google.analytics.admin.v1alpha.GoogleSignalsSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async", - "title": "AnalyticsAdminService createConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates a conversion event with the specified attributes.", - "canonical": true, - "file": "analytics_admin_service.create_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", - "async": true, - "parameters": [ - { - "name": "conversion_event", - "type": ".google.analytics.admin.v1alpha.ConversionEvent" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async", - "title": "AnalyticsAdminService getConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single conversion event.", - "canonical": true, - "file": "analytics_admin_service.get_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async", - "title": "AnalyticsAdminService deleteConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deletes a conversion event in a property.", - "canonical": true, - "file": "analytics_admin_service.delete_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async", - "title": "AnalyticsAdminService listConversionEvents Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.", - "canonical": true, - "file": "analytics_admin_service.list_conversion_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversionEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListConversionEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListConversionEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Look up a single DisplayVideo360AdvertiserLink", - "canonical": true, - "file": "analytics_admin_service.get_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async", - "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists all DisplayVideo360AdvertiserLinks on a property.", - "canonical": true, - "file": "analytics_admin_service.list_display_video360_advertiser_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDisplayVideo360AdvertiserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListDisplayVideo360AdvertiserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.", - "canonical": true, - "file": "analytics_admin_service.create_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_video_360_advertiser_link", - "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DisplayVideo360AdvertiserLink on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService updateDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a DisplayVideo360AdvertiserLink on a property.", - "canonical": true, - "file": "analytics_admin_service.update_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "display_video_360_advertiser_link", - "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single DisplayVideo360AdvertiserLinkProposal.", - "canonical": true, - "file": "analytics_admin_service.get_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async", - "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinkProposals Sample", - "origin": "API_DEFINITION", - "description": " Lists DisplayVideo360AdvertiserLinkProposals on a property.", - "canonical": true, - "file": "analytics_admin_service.list_display_video360_advertiser_link_proposals.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDisplayVideo360AdvertiserLinkProposals", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListDisplayVideo360AdvertiserLinkProposals", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Creates a DisplayVideo360AdvertiserLinkProposal.", - "canonical": true, - "file": "analytics_admin_service.create_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_video_360_advertiser_link_proposal", - "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.", - "canonical": true, - "file": "analytics_admin_service.delete_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService approveDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.", - "canonical": true, - "file": "analytics_admin_service.approve_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService cancelDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.", - "canonical": true, - "file": "analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async", - "title": "AnalyticsAdminService createCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomDimension.", - "canonical": true, - "file": "analytics_admin_service.create_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_dimension", - "type": ".google.analytics.admin.v1alpha.CustomDimension" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async", - "title": "AnalyticsAdminService updateCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Updates a CustomDimension on a property.", - "canonical": true, - "file": "analytics_admin_service.update_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", - "async": true, - "parameters": [ - { - "name": "custom_dimension", - "type": ".google.analytics.admin.v1alpha.CustomDimension" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async", - "title": "AnalyticsAdminService listCustomDimensions Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomDimensions on a property.", - "canonical": true, - "file": "analytics_admin_service.list_custom_dimensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomDimensions", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListCustomDimensionsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListCustomDimensions", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async", - "title": "AnalyticsAdminService archiveCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Archives a CustomDimension on a property.", - "canonical": true, - "file": "analytics_admin_service.archive_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ArchiveCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ArchiveCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async", - "title": "AnalyticsAdminService getCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single CustomDimension.", - "canonical": true, - "file": "analytics_admin_service.get_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async", - "title": "AnalyticsAdminService createCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomMetric.", - "canonical": true, - "file": "analytics_admin_service.create_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_metric", - "type": ".google.analytics.admin.v1alpha.CustomMetric" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async", - "title": "AnalyticsAdminService updateCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Updates a CustomMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.update_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", - "async": true, - "parameters": [ - { - "name": "custom_metric", - "type": ".google.analytics.admin.v1alpha.CustomMetric" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async", - "title": "AnalyticsAdminService listCustomMetrics Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomMetrics on a property.", - "canonical": true, - "file": "analytics_admin_service.list_custom_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomMetrics", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListCustomMetricsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListCustomMetrics", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async", - "title": "AnalyticsAdminService archiveCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Archives a CustomMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.archive_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ArchiveCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ArchiveCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async", - "title": "AnalyticsAdminService getCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single CustomMetric.", - "canonical": true, - "file": "analytics_admin_service.get_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async", - "title": "AnalyticsAdminService getDataRetentionSettings Sample", - "origin": "API_DEFINITION", - "description": " Returns the singleton data retention settings for this property.", - "canonical": true, - "file": "analytics_admin_service.get_data_retention_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async", - "title": "AnalyticsAdminService updateDataRetentionSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the singleton data retention settings for this property.", - "canonical": true, - "file": "analytics_admin_service.update_data_retention_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", - "async": true, - "parameters": [ - { - "name": "data_retention_settings", - "type": ".google.analytics.admin.v1alpha.DataRetentionSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async", - "title": "AnalyticsAdminService createDataStream Sample", - "origin": "API_DEFINITION", - "description": " Creates a DataStream.", - "canonical": true, - "file": "analytics_admin_service.create_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_stream", - "type": ".google.analytics.admin.v1alpha.DataStream" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async", - "title": "AnalyticsAdminService deleteDataStream Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataStream on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async", - "title": "AnalyticsAdminService updateDataStream Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataStream on a property.", - "canonical": true, - "file": "analytics_admin_service.update_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", - "async": true, - "parameters": [ - { - "name": "data_stream", - "type": ".google.analytics.admin.v1alpha.DataStream" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async", - "title": "AnalyticsAdminService listDataStreams Sample", - "origin": "API_DEFINITION", - "description": " Lists DataStreams on a property.", - "canonical": true, - "file": "analytics_admin_service.list_data_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListDataStreamsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async", - "title": "AnalyticsAdminService getDataStream Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single DataStream.", - "canonical": true, - "file": "analytics_admin_service.get_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - } - ] -} + ] +} \ No newline at end of file From 7de6c02575229d46f11891297e2e38cf9f140d4e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 3 May 2022 02:24:12 +0200 Subject: [PATCH 112/142] chore(deps): update dependency @types/mocha to v9 (#199) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/mocha](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^8.0.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/@types%2fmocha/8.2.3/9.1.1) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/compatibility-slim/8.2.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/confidence-slim/8.2.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 00ad257c8c1..e251c7957b2 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -44,7 +44,7 @@ "server-destroy": "^1.0.1" }, "devDependencies": { - "@types/mocha": "^8.0.0", + "@types/mocha": "^9.0.0", "@types/node": "^16.0.0", "@types/sinon": "^10.0.0", "c8": "^7.2.0", From 58e61548781258434f17e50f4046153d6a84369b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 9 May 2022 17:46:16 +0200 Subject: [PATCH 113/142] chore(deps): update dependency sinon to v14 (#202) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^13.0.0` -> `^14.0.0`](https://renovatebot.com/diffs/npm/sinon/13.0.2/14.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/compatibility-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/confidence-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v14.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#​1400) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v13.0.2...v14.0.0) - [`c2bbd826`](https://togithub.com/sinonjs/sinon/commit/c2bbd82641444eb5b32822489ae40f185afbbf00) Drop node 12 (Morgan Roderick) > And embrace Node 18 > > See https://nodejs.org/en/about/releases/ *Released by Morgan Roderick on 2022-05-07.*
--- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index e251c7957b2..58b619e2a25 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -56,7 +56,7 @@ "mocha": "^8.0.1", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^13.0.0", + "sinon": "^14.0.0", "ts-loader": "^9.0.0", "typescript": "^3.9.6" }, From f70aa90fc3954c5c04872334026f24fe83df4cb8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 13 May 2022 17:16:32 -0400 Subject: [PATCH 114/142] fix: CustomDimension and CustomMetric resource configuration in Analytics Admin API (#204) PiperOrigin-RevId: 448304423 Source-Link: https://github.com/googleapis/googleapis/commit/d018d545db5eeddcd43920d91133629a592b5e57 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6c363eea0f99d00a216a4efc8015e69272ccaa83 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmMzNjNlZWEwZjk5ZDAwYTIxNmE0ZWZjODAxNWU2OTI3MmNjYWE4MyJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../analytics/admin/v1alpha/resources.proto | 4 +- .../google-analytics-admin/protos/protos.json | 4 +- .../v1alpha/analytics_admin_service_client.ts | 37 +++++++++++++++++-- .../gapic_analytics_admin_service_v1alpha.ts | 33 ++++++++++++++++- 4 files changed, 68 insertions(+), 10 deletions(-) diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index cbb624f1a87..d441d107462 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -951,7 +951,7 @@ message GoogleSignalsSettings { message CustomDimension { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomDimension" - pattern: "properties/{property}/customDimensions" + pattern: "properties/{property}/customDimensions/{custom_dimension}" }; // Valid values for the scope of this dimension. @@ -1011,7 +1011,7 @@ message CustomDimension { message CustomMetric { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomMetric" - pattern: "properties/{property}/customMetrics" + pattern: "properties/{property}/customMetrics/{custom_metric}" }; // Possible types of representing the custom metric's value. diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 299f271af8f..1a24bd00d95 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -3751,7 +3751,7 @@ "CustomDimension": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/CustomDimension", - "(google.api.resource).pattern": "properties/{property}/customDimensions" + "(google.api.resource).pattern": "properties/{property}/customDimensions/{custom_dimension}" }, "fields": { "name": { @@ -3810,7 +3810,7 @@ "CustomMetric": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/CustomMetric", - "(google.api.resource).pattern": "properties/{property}/customMetrics" + "(google.api.resource).pattern": "properties/{property}/customMetrics/{custom_metric}" }, "fields": { "name": { diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 5ac89596a53..b3147f5ad69 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -178,10 +178,10 @@ export class AnalyticsAdminServiceClient { 'properties/{property}/conversionEvents/{conversion_event}' ), customDimensionPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/customDimensions' + 'properties/{property}/customDimensions/{custom_dimension}' ), customMetricPathTemplate: new this._gaxModule.PathTemplate( - 'properties/{property}/customMetrics' + 'properties/{property}/customMetrics/{custom_metric}' ), dataRetentionSettingsPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/dataRetentionSettings' @@ -9512,11 +9512,13 @@ export class AnalyticsAdminServiceClient { * Return a fully-qualified customDimension resource name string. * * @param {string} property + * @param {string} custom_dimension * @returns {string} Resource name string. */ - customDimensionPath(property: string) { + customDimensionPath(property: string, customDimension: string) { return this.pathTemplates.customDimensionPathTemplate.render({ property: property, + custom_dimension: customDimension, }); } @@ -9533,15 +9535,30 @@ export class AnalyticsAdminServiceClient { ).property; } + /** + * Parse the custom_dimension from CustomDimension resource. + * + * @param {string} customDimensionName + * A fully-qualified path representing CustomDimension resource. + * @returns {string} A string representing the custom_dimension. + */ + matchCustomDimensionFromCustomDimensionName(customDimensionName: string) { + return this.pathTemplates.customDimensionPathTemplate.match( + customDimensionName + ).custom_dimension; + } + /** * Return a fully-qualified customMetric resource name string. * * @param {string} property + * @param {string} custom_metric * @returns {string} Resource name string. */ - customMetricPath(property: string) { + customMetricPath(property: string, customMetric: string) { return this.pathTemplates.customMetricPathTemplate.render({ property: property, + custom_metric: customMetric, }); } @@ -9557,6 +9574,18 @@ export class AnalyticsAdminServiceClient { .property; } + /** + * Parse the custom_metric from CustomMetric resource. + * + * @param {string} customMetricName + * A fully-qualified path representing CustomMetric resource. + * @returns {string} A string representing the custom_metric. + */ + matchCustomMetricFromCustomMetricName(customMetricName: string) { + return this.pathTemplates.customMetricPathTemplate.match(customMetricName) + .custom_metric; + } + /** * Return a fully-qualified dataRetentionSettings resource name string. * diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index ceb7c298dd6..b723fe3f22a 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -12622,6 +12622,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const fakePath = '/rendered/path/customDimension'; const expectedParameters = { property: 'propertyValue', + custom_dimension: 'customDimensionValue', }; const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ @@ -12637,7 +12638,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .returns(expectedParameters); it('customDimensionPath', () => { - const result = client.customDimensionPath('propertyValue'); + const result = client.customDimensionPath( + 'propertyValue', + 'customDimensionValue' + ); assert.strictEqual(result, fakePath); assert( (client.pathTemplates.customDimensionPathTemplate.render as SinonStub) @@ -12655,12 +12659,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(fakePath) ); }); + + it('matchCustomDimensionFromCustomDimensionName', () => { + const result = + client.matchCustomDimensionFromCustomDimensionName(fakePath); + assert.strictEqual(result, 'customDimensionValue'); + assert( + (client.pathTemplates.customDimensionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); }); describe('customMetric', () => { const fakePath = '/rendered/path/customMetric'; const expectedParameters = { property: 'propertyValue', + custom_metric: 'customMetricValue', }; const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ @@ -12676,7 +12692,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .returns(expectedParameters); it('customMetricPath', () => { - const result = client.customMetricPath('propertyValue'); + const result = client.customMetricPath( + 'propertyValue', + 'customMetricValue' + ); assert.strictEqual(result, fakePath); assert( (client.pathTemplates.customMetricPathTemplate.render as SinonStub) @@ -12694,6 +12713,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .calledWith(fakePath) ); }); + + it('matchCustomMetricFromCustomMetricName', () => { + const result = client.matchCustomMetricFromCustomMetricName(fakePath); + assert.strictEqual(result, 'customMetricValue'); + assert( + (client.pathTemplates.customMetricPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); }); describe('dataRetentionSettings', () => { From 8a5780c1b72f76f40db97b5949ba2a97226e797e Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 13 May 2022 14:20:22 -0700 Subject: [PATCH 115/142] build!: update library to use Node 12 (#205) See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- packages/google-analytics-admin/package.json | 12 ++++++------ packages/google-analytics-admin/samples/package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 58b619e2a25..bb5b768b84b 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -39,8 +39,8 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-auth-library": "^7.0.0", - "google-gax": "^2.24.1", + "google-auth-library": "^8.0.2", + "google-gax": "^3.0.1", "server-destroy": "^1.0.1" }, "devDependencies": { @@ -48,19 +48,19 @@ "@types/node": "^16.0.0", "@types/sinon": "^10.0.0", "c8": "^7.2.0", - "gts": "^3.0.0", + "gts": "^3.1.0", "jsdoc": "^3.6.4", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", "linkinator": "^2.1.1", - "mocha": "^8.0.1", + "mocha": "^9.2.2", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^14.0.0", "ts-loader": "^9.0.0", - "typescript": "^3.9.6" + "typescript": "^4.6.4" }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" } } diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 3a24e3aa65f..8a50d9cfd15 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -5,7 +5,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-analytics-admin", "engines": { - "node": ">=12" + "node": ">=12.0.0" }, "files": [ "*.js" From 641110a1430b441143674e5e0dba8a356e6ce530 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 18 May 2022 10:09:50 -0700 Subject: [PATCH 116/142] chore(main): release 4.0.0 (#206) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 4.0.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-analytics-admin/CHANGELOG.md | 16 ++++++++++++++++ packages/google-analytics-admin/package.json | 2 +- ..._metadata.google.analytics.admin.v1alpha.json | 2 +- .../google-analytics-admin/samples/package.json | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 54ce6001f81..0ff8c9d471e 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [4.0.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v3.2.0...v4.0.0) (2022-05-13) + + +### ⚠ BREAKING CHANGES + +* update library to use Node 12 (#205) + +### Bug Fixes + +* CustomDimension and CustomMetric resource configuration in Analytics Admin API ([#204](https://github.com/googleapis/nodejs-analytics-admin/issues/204)) ([ff521a5](https://github.com/googleapis/nodejs-analytics-admin/commit/ff521a5d7658e8b7a8c8995a8049a074d911a127)) + + +### Build System + +* update library to use Node 12 ([#205](https://github.com/googleapis/nodejs-analytics-admin/issues/205)) ([002c8b7](https://github.com/googleapis/nodejs-analytics-admin/commit/002c8b7ec24b3539378eeeff1ced553780c6aebe)) + ## [3.2.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v3.1.0...v3.2.0) (2022-04-11) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index bb5b768b84b..37b20563a9c 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "3.2.0", + "version": "4.0.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index ebe9ea4d021..07523fbe09e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "3.2.0", + "version": "4.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 8a50d9cfd15..4da7d2f086a 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^3.2.0", + "@google-analytics/admin": "^4.0.0", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From e02e3956f8ea372bdf100cfad45569f7903e2699 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Jun 2022 22:14:14 +0200 Subject: [PATCH 117/142] chore(deps): update dependency jsdoc-region-tag to v2 (#209) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jsdoc-region-tag](https://togithub.com/googleapis/jsdoc-region-tag) | [`^1.0.4` -> `^2.0.0`](https://renovatebot.com/diffs/npm/jsdoc-region-tag/1.3.1/2.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/compatibility-slim/1.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/confidence-slim/1.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/jsdoc-region-tag ### [`v2.0.0`](https://togithub.com/googleapis/jsdoc-region-tag/blob/HEAD/CHANGELOG.md#​200-httpsgithubcomgoogleapisjsdoc-region-tagcomparev131v200-2022-05-20) [Compare Source](https://togithub.com/googleapis/jsdoc-region-tag/compare/v1.3.1...v2.0.0) ##### ⚠ BREAKING CHANGES - update library to use Node 12 ([#​107](https://togithub.com/googleapis/jsdoc-region-tag/issues/107)) ##### Build System - update library to use Node 12 ([#​107](https://togithub.com/googleapis/jsdoc-region-tag/issues/107)) ([5b51796](https://togithub.com/googleapis/jsdoc-region-tag/commit/5b51796771984cf8b978990025f14faa03c19923)) ##### [1.3.1](https://www.github.com/googleapis/jsdoc-region-tag/compare/v1.3.0...v1.3.1) (2021-08-11) ##### Bug Fixes - **build:** migrate to using main branch ([#​79](https://www.togithub.com/googleapis/jsdoc-region-tag/issues/79)) ([5050615](https://www.github.com/googleapis/jsdoc-region-tag/commit/50506150b7758592df5e389c6a5c3d82b3b20881))
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 37b20563a9c..e1e3a9bc01e 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -51,7 +51,7 @@ "gts": "^3.1.0", "jsdoc": "^3.6.4", "jsdoc-fresh": "^1.0.2", - "jsdoc-region-tag": "^1.0.4", + "jsdoc-region-tag": "^2.0.0", "linkinator": "^2.1.1", "mocha": "^9.2.2", "null-loader": "^4.0.0", From cd21d558361526d41b9ae4b72bc5e016bb6c7889 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Jun 2022 22:34:26 +0200 Subject: [PATCH 118/142] chore(deps): update dependency jsdoc-fresh to v2 (#208) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jsdoc-fresh](https://togithub.com/googleapis/jsdoc-fresh) | [`^1.0.2` -> `^2.0.0`](https://renovatebot.com/diffs/npm/jsdoc-fresh/1.1.1/2.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/compatibility-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/confidence-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/jsdoc-fresh ### [`v2.0.0`](https://togithub.com/googleapis/jsdoc-fresh/blob/HEAD/CHANGELOG.md#​200-httpsgithubcomgoogleapisjsdoc-freshcomparev111v200-2022-05-18) [Compare Source](https://togithub.com/googleapis/jsdoc-fresh/compare/v1.1.1...v2.0.0) ##### ⚠ BREAKING CHANGES - update library to use Node 12 ([#​108](https://togithub.com/googleapis/jsdoc-fresh/issues/108)) ##### Build System - update library to use Node 12 ([#​108](https://togithub.com/googleapis/jsdoc-fresh/issues/108)) ([e61c223](https://togithub.com/googleapis/jsdoc-fresh/commit/e61c2238db8900e339e5fe7fb8aea09642290182)) ##### [1.1.1](https://www.github.com/googleapis/jsdoc-fresh/compare/v1.1.0...v1.1.1) (2021-08-11) ##### Bug Fixes - **build:** migrate to using main branch ([#​83](https://www.togithub.com/googleapis/jsdoc-fresh/issues/83)) ([9474adb](https://www.github.com/googleapis/jsdoc-fresh/commit/9474adbf0d559d319ff207397ba2be6b557999ac))
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index e1e3a9bc01e..775a30da205 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -50,7 +50,7 @@ "c8": "^7.2.0", "gts": "^3.1.0", "jsdoc": "^3.6.4", - "jsdoc-fresh": "^1.0.2", + "jsdoc-fresh": "^2.0.0", "jsdoc-region-tag": "^2.0.0", "linkinator": "^2.1.1", "mocha": "^9.2.2", From bb9b4f49acd2b0e658ce6e0cdc8b54f769c936af Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 29 Jun 2022 16:35:03 -0400 Subject: [PATCH 119/142] feat: support regapic LRO (#210) PiperOrigin-RevId: 456946341 Source-Link: https://github.com/googleapis/googleapis/commit/88fd18d9d3b872b3d06a3d9392879f50b5bf3ce5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/accfa371f667439313335c64042b063c1c53102e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWNjZmEzNzFmNjY3NDM5MzEzMzM1YzY0MDQyYjA2M2MxYzUzMTAyZSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../src/v1alpha/analytics_admin_service_client.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index b3147f5ad69..a136a045615 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -70,7 +70,7 @@ export class AnalyticsAdminServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -93,11 +93,10 @@ export class AnalyticsAdminServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. From 0162aa5f52cb40921e236a46641bf39e7132a5a8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 30 Jun 2022 19:06:22 +0000 Subject: [PATCH 120/142] chore(main): release 4.1.0 (#211) :robot: I have created a release *beep* *boop* --- ## [4.1.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v4.0.0...v4.1.0) (2022-06-29) ### Features * support regapic LRO ([#210](https://github.com/googleapis/nodejs-analytics-admin/issues/210)) ([a783ccd](https://github.com/googleapis/nodejs-analytics-admin/commit/a783ccd7c69123b337813c0ee751e292bdb5be5c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- .../snippet_metadata.google.analytics.admin.v1alpha.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 0ff8c9d471e..46115f59141 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.1.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v4.0.0...v4.1.0) (2022-06-29) + + +### Features + +* support regapic LRO ([#210](https://github.com/googleapis/nodejs-analytics-admin/issues/210)) ([a783ccd](https://github.com/googleapis/nodejs-analytics-admin/commit/a783ccd7c69123b337813c0ee751e292bdb5be5c)) + ## [4.0.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v3.2.0...v4.0.0) (2022-05-13) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 775a30da205..4ef3c5f0759 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "4.0.0", + "version": "4.1.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index 07523fbe09e..7f85999b495 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "4.0.0", + "version": "4.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 4da7d2f086a..2ae183ac874 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^4.0.0", + "@google-analytics/admin": "^4.1.0", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 9b6d4c52ab02f7959b7c5c3a37d551f2ceebad16 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 4 Jul 2022 14:48:46 -0400 Subject: [PATCH 121/142] feat: release the Google Analytics Admin API V1 Beta PiperOrigin-RevId: 458479633 Source-Link: https://github.com/googleapis/googleapis/commit/6ef569eaf4fe2d540de4173887698ae3dde4aba9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e37591034b71728fcd61acd61b0be0caa7625c9e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTM3NTkxMDM0YjcxNzI4ZmNkNjFhY2Q2MWIwYmUwY2FhNzYyNWM5ZSJ9 Source-Link: https://github.com/googleapis/googleapis/commit/ae65014049c6eb195741d7efbd0b10bee3f83d4f Source-Link: https://github.com/googleapis/googleapis-gen/commit/b09ede435cce110446d4ab9f62a081b571d37e3f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjA5ZWRlNDM1Y2NlMTEwNDQ2ZDRhYjlmNjJhMDgxYjU3MWQzN2UzZiJ9 Co-authored-by: Owl Bot --- .../admin/v1beta/analytics_admin.proto | 1333 + .../analytics/admin/v1beta/resources.proto | 905 + .../google-analytics-admin/protos/protos.d.ts | 9094 +++++++ .../google-analytics-admin/protos/protos.js | 20949 ++++++++++++++++ .../google-analytics-admin/protos/protos.json | 2695 ++ ...ervice.acknowledge_user_data_collection.js | 69 + ..._admin_service.archive_custom_dimension.js | 59 + ...ics_admin_service.archive_custom_metric.js | 59 + ...s_admin_service.create_conversion_event.js | 64 + ...s_admin_service.create_custom_dimension.js | 63 + ...tics_admin_service.create_custom_metric.js | 63 + ...lytics_admin_service.create_data_stream.js | 63 + ...tics_admin_service.create_firebase_link.js | 64 + ...cs_admin_service.create_google_ads_link.js | 63 + ...vice.create_measurement_protocol_secret.js | 64 + ...analytics_admin_service.create_property.js | 59 + .../analytics_admin_service.delete_account.js | 60 + ...s_admin_service.delete_conversion_event.js | 60 + ...lytics_admin_service.delete_data_stream.js | 59 + ...tics_admin_service.delete_firebase_link.js | 59 + ...cs_admin_service.delete_google_ads_link.js | 58 + ...vice.delete_measurement_protocol_secret.js | 60 + ...analytics_admin_service.delete_property.js | 60 + .../analytics_admin_service.get_account.js | 60 + ...tics_admin_service.get_conversion_event.js | 60 + ...tics_admin_service.get_custom_dimension.js | 59 + ...alytics_admin_service.get_custom_metric.js | 59 + ...min_service.get_data_retention_settings.js | 61 + ...admin_service.get_data_sharing_settings.js | 60 + ...analytics_admin_service.get_data_stream.js | 59 + ...service.get_measurement_protocol_secret.js | 60 + .../analytics_admin_service.get_property.js | 60 + ...cs_admin_service.list_account_summaries.js | 69 + .../analytics_admin_service.list_accounts.js | 75 + ...cs_admin_service.list_conversion_events.js | 74 + ...cs_admin_service.list_custom_dimensions.js | 73 + ...ytics_admin_service.list_custom_metrics.js | 73 + ...alytics_admin_service.list_data_streams.js | 73 + ...ytics_admin_service.list_firebase_links.js | 75 + ...ics_admin_service.list_google_ads_links.js | 73 + ...rvice.list_measurement_protocol_secrets.js | 75 + ...analytics_admin_service.list_properties.js | 94 + ..._admin_service.provision_account_ticket.js | 62 + ...in_service.search_change_history_events.js | 101 + .../analytics_admin_service.update_account.js | 66 + ...s_admin_service.update_custom_dimension.js | 64 + ...tics_admin_service.update_custom_metric.js | 64 + ..._service.update_data_retention_settings.js | 66 + ...lytics_admin_service.update_data_stream.js | 64 + ...cs_admin_service.update_google_ads_link.js | 64 + ...vice.update_measurement_protocol_secret.js | 62 + ...analytics_admin_service.update_property.js | 67 + ...etadata.google.analytics.admin.v1beta.json | 2075 ++ packages/google-analytics-admin/src/index.ts | 5 +- .../v1beta/analytics_admin_service_client.ts | 6834 +++++ ...analytics_admin_service_client_config.json | 274 + .../analytics_admin_service_proto_list.json | 4 + .../src/v1beta/gapic_metadata.json | 537 + .../src/v1beta/index.ts | 19 + .../gapic_analytics_admin_service_v1beta.ts | 8966 +++++++ 60 files changed, 56766 insertions(+), 2 deletions(-) create mode 100644 packages/google-analytics-admin/protos/google/analytics/admin/v1beta/analytics_admin.proto create mode 100644 packages/google-analytics-admin/protos/google/analytics/admin/v1beta/resources.proto create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js create mode 100644 packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json create mode 100644 packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts create mode 100644 packages/google-analytics-admin/src/v1beta/analytics_admin_service_client_config.json create mode 100644 packages/google-analytics-admin/src/v1beta/analytics_admin_service_proto_list.json create mode 100644 packages/google-analytics-admin/src/v1beta/gapic_metadata.json create mode 100644 packages/google-analytics-admin/src/v1beta/index.ts create mode 100644 packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1beta/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1beta/analytics_admin.proto new file mode 100644 index 00000000000..7e80f73628f --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1beta/analytics_admin.proto @@ -0,0 +1,1333 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1beta; + +import "google/analytics/admin/v1beta/resources.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin"; +option java_multiple_files = true; +option java_outer_classname = "AnalyticsAdminProto"; +option java_package = "com.google.analytics.admin.v1beta"; + +// Service Interface for the Analytics Admin API (GA4). +service AnalyticsAdminService { + option (google.api.default_host) = "analyticsadmin.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/analytics.edit," + "https://www.googleapis.com/auth/analytics.readonly"; + + // Lookup for a single Account. + rpc GetAccount(GetAccountRequest) returns (Account) { + option (google.api.http) = { + get: "/v1beta/{name=accounts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns all accounts accessible by the caller. + // + // Note that these accounts might not currently have GA4 properties. + // Soft-deleted (ie: "trashed") accounts are excluded by default. + // Returns an empty list if no relevant accounts are found. + rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) { + option (google.api.http) = { + get: "/v1beta/accounts" + }; + } + + // Marks target Account as soft-deleted (ie: "trashed") and returns it. + // + // This API does not have a method to restore soft-deleted accounts. + // However, they can be restored using the Trash Can UI. + // + // If the accounts are not restored before the expiration time, the account + // and all child resources (eg: Properties, GoogleAdsLinks, Streams, + // UserLinks) will be permanently purged. + // https://support.google.com/analytics/answer/6154772 + // + // Returns an error if the target is not found. + rpc DeleteAccount(DeleteAccountRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=accounts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an account. + rpc UpdateAccount(UpdateAccountRequest) returns (Account) { + option (google.api.http) = { + patch: "/v1beta/{account.name=accounts/*}" + body: "account" + }; + option (google.api.method_signature) = "account,update_mask"; + } + + // Requests a ticket for creating an account. + rpc ProvisionAccountTicket(ProvisionAccountTicketRequest) returns (ProvisionAccountTicketResponse) { + option (google.api.http) = { + post: "/v1beta/accounts:provisionAccountTicket" + body: "*" + }; + } + + // Returns summaries of all accounts accessible by the caller. + rpc ListAccountSummaries(ListAccountSummariesRequest) returns (ListAccountSummariesResponse) { + option (google.api.http) = { + get: "/v1beta/accountSummaries" + }; + } + + // Lookup for a single "GA4" Property. + rpc GetProperty(GetPropertyRequest) returns (Property) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns child Properties under the specified parent Account. + // + // Only "GA4" properties will be returned. + // Properties will be excluded if the caller does not have access. + // Soft-deleted (ie: "trashed") properties are excluded by default. + // Returns an empty list if no relevant properties are found. + rpc ListProperties(ListPropertiesRequest) returns (ListPropertiesResponse) { + option (google.api.http) = { + get: "/v1beta/properties" + }; + } + + // Creates an "GA4" property with the specified location and attributes. + rpc CreateProperty(CreatePropertyRequest) returns (Property) { + option (google.api.http) = { + post: "/v1beta/properties" + body: "property" + }; + option (google.api.method_signature) = "property"; + } + + // Marks target Property as soft-deleted (ie: "trashed") and returns it. + // + // This API does not have a method to restore soft-deleted properties. + // However, they can be restored using the Trash Can UI. + // + // If the properties are not restored before the expiration time, the Property + // and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + // will be permanently purged. + // https://support.google.com/analytics/answer/6154772 + // + // Returns an error if the target is not found, or is not an GA4 Property. + rpc DeleteProperty(DeletePropertyRequest) returns (Property) { + option (google.api.http) = { + delete: "/v1beta/{name=properties/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a property. + rpc UpdateProperty(UpdatePropertyRequest) returns (Property) { + option (google.api.http) = { + patch: "/v1beta/{property.name=properties/*}" + body: "property" + }; + option (google.api.method_signature) = "property,update_mask"; + } + + // Creates a FirebaseLink. + // + // Properties can have at most one FirebaseLink. + rpc CreateFirebaseLink(CreateFirebaseLinkRequest) returns (FirebaseLink) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*}/firebaseLinks" + body: "firebase_link" + }; + option (google.api.method_signature) = "parent,firebase_link"; + } + + // Deletes a FirebaseLink on a property + rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=properties/*/firebaseLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists FirebaseLinks on a property. + // Properties can have at most one FirebaseLink. + rpc ListFirebaseLinks(ListFirebaseLinksRequest) returns (ListFirebaseLinksResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*}/firebaseLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a GoogleAdsLink. + rpc CreateGoogleAdsLink(CreateGoogleAdsLinkRequest) returns (GoogleAdsLink) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*}/googleAdsLinks" + body: "google_ads_link" + }; + option (google.api.method_signature) = "parent,google_ads_link"; + } + + // Updates a GoogleAdsLink on a property + rpc UpdateGoogleAdsLink(UpdateGoogleAdsLinkRequest) returns (GoogleAdsLink) { + option (google.api.http) = { + patch: "/v1beta/{google_ads_link.name=properties/*/googleAdsLinks/*}" + body: "google_ads_link" + }; + option (google.api.method_signature) = "google_ads_link,update_mask"; + } + + // Deletes a GoogleAdsLink on a property + rpc DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=properties/*/googleAdsLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists GoogleAdsLinks on a property. + rpc ListGoogleAdsLinks(ListGoogleAdsLinksRequest) returns (ListGoogleAdsLinksResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*}/googleAdsLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Get data sharing settings on an account. + // Data sharing settings are singletons. + rpc GetDataSharingSettings(GetDataSharingSettingsRequest) returns (DataSharingSettings) { + option (google.api.http) = { + get: "/v1beta/{name=accounts/*/dataSharingSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single "GA4" MeasurementProtocolSecret. + rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns child MeasurementProtocolSecrets under the specified parent + // Property. + rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a measurement protocol secret. + rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + }; + option (google.api.method_signature) = "parent,measurement_protocol_secret"; + } + + // Deletes target MeasurementProtocolSecret. + rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a measurement protocol secret. + rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + patch: "/v1beta/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + }; + option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; + } + + // Acknowledges the terms of user data collection for the specified property. + // + // This acknowledgement must be completed (either in the Google Analytics UI + // or via this API) before MeasurementProtocolSecret resources may be created. + rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) returns (AcknowledgeUserDataCollectionResponse) { + option (google.api.http) = { + post: "/v1beta/{property=properties/*}:acknowledgeUserDataCollection" + body: "*" + }; + } + + // Searches through all changes to an account or its children given the + // specified set of filters. + rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { + option (google.api.http) = { + post: "/v1beta/{account=accounts/*}:searchChangeHistoryEvents" + body: "*" + }; + } + + // Creates a conversion event with the specified attributes. + rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*}/conversionEvents" + body: "conversion_event" + }; + option (google.api.method_signature) = "parent,conversion_event"; + } + + // Retrieve a single conversion event. + rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a conversion event in a property. + rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns a list of conversion events in the specified parent property. + // + // Returns an empty list if no conversion events are found. + rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*}/conversionEvents" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a CustomDimension. + rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*}/customDimensions" + body: "custom_dimension" + }; + option (google.api.method_signature) = "parent,custom_dimension"; + } + + // Updates a CustomDimension on a property. + rpc UpdateCustomDimension(UpdateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + patch: "/v1beta/{custom_dimension.name=properties/*/customDimensions/*}" + body: "custom_dimension" + }; + option (google.api.method_signature) = "custom_dimension,update_mask"; + } + + // Lists CustomDimensions on a property. + rpc ListCustomDimensions(ListCustomDimensionsRequest) returns (ListCustomDimensionsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*}/customDimensions" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomDimension on a property. + rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta/{name=properties/*/customDimensions/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomDimension. + rpc GetCustomDimension(GetCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/customDimensions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a CustomMetric. + rpc CreateCustomMetric(CreateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*}/customMetrics" + body: "custom_metric" + }; + option (google.api.method_signature) = "parent,custom_metric"; + } + + // Updates a CustomMetric on a property. + rpc UpdateCustomMetric(UpdateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + patch: "/v1beta/{custom_metric.name=properties/*/customMetrics/*}" + body: "custom_metric" + }; + option (google.api.method_signature) = "custom_metric,update_mask"; + } + + // Lists CustomMetrics on a property. + rpc ListCustomMetrics(ListCustomMetricsRequest) returns (ListCustomMetricsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*}/customMetrics" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomMetric on a property. + rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta/{name=properties/*/customMetrics/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomMetric. + rpc GetCustomMetric(GetCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/customMetrics/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns the singleton data retention settings for this property. + rpc GetDataRetentionSettings(GetDataRetentionSettingsRequest) returns (DataRetentionSettings) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/dataRetentionSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the singleton data retention settings for this property. + rpc UpdateDataRetentionSettings(UpdateDataRetentionSettingsRequest) returns (DataRetentionSettings) { + option (google.api.http) = { + patch: "/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}" + body: "data_retention_settings" + }; + option (google.api.method_signature) = "data_retention_settings,update_mask"; + } + + // Creates a DataStream. + rpc CreateDataStream(CreateDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*}/dataStreams" + body: "data_stream" + }; + option (google.api.method_signature) = "parent,data_stream"; + } + + // Deletes a DataStream on a property. + rpc DeleteDataStream(DeleteDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=properties/*/dataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a DataStream on a property. + rpc UpdateDataStream(UpdateDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + patch: "/v1beta/{data_stream.name=properties/*/dataStreams/*}" + body: "data_stream" + }; + option (google.api.method_signature) = "data_stream,update_mask"; + } + + // Lists DataStreams on a property. + rpc ListDataStreams(ListDataStreamsRequest) returns (ListDataStreamsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*}/dataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single DataStream. + rpc GetDataStream(GetDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/dataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for GetAccount RPC. +message GetAccountRequest { + // Required. The name of the account to lookup. + // Format: accounts/{account} + // Example: "accounts/100" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; +} + +// Request message for ListAccounts RPC. +message ListAccountsRequest { + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 1; + + // 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; + + // Whether to include soft-deleted (ie: "trashed") Accounts in the + // results. Accounts can be inspected to determine whether they are deleted or + // not. + bool show_deleted = 3; +} + +// Request message for ListAccounts RPC. +message ListAccountsResponse { + // Results that were accessible to the caller. + 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 DeleteAccount RPC. +message DeleteAccountRequest { + // Required. The name of the Account to soft-delete. + // Format: accounts/{account} + // Example: "accounts/100" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; +} + +// Request message for UpdateAccount RPC. +message UpdateAccountRequest { + // Required. The account to update. + // The account's `name` field is used to identify the account. + Account account = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ProvisionAccountTicket RPC. +message ProvisionAccountTicketRequest { + // The account to create. + Account account = 1; + + // Redirect URI where the user will be sent after accepting Terms of Service. + // Must be configured in Developers Console as a Redirect URI + string redirect_uri = 2; +} + +// Response message for ProvisionAccountTicket RPC. +message ProvisionAccountTicketResponse { + // The param to be passed in the ToS link. + string account_ticket_id = 1; +} + +// Request message for GetProperty RPC. +message GetPropertyRequest { + // Required. The name of the property to lookup. + // Format: properties/{property_id} + // Example: "properties/1000" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; +} + +// Request message for ListProperties RPC. +message ListPropertiesRequest { + // Required. An expression for filtering the results of the request. + // Fields eligible for filtering are: + // `parent:`(The resource name of the parent account/property) or + // `ancestor:`(The resource name of the parent account) or + // `firebase_project:`(The id or number of the linked firebase project). + // Some examples of filters: + // + // ``` + // | Filter | Description | + // |-----------------------------|-------------------------------------------| + // | parent:accounts/123 | The account with account id: 123. | + // | parent:properties/123 | The property with property id: 123. | + // | ancestor:accounts/123 | The account with account id: 123. | + // | firebase_project:project-id | The firebase project with id: project-id. | + // | firebase_project:123 | The firebase project with number: 123. | + // ``` + string filter = 1 [(google.api.field_behavior) = REQUIRED]; + + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListProperties` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListProperties` must + // match the call that provided the page token. + string page_token = 3; + + // Whether to include soft-deleted (ie: "trashed") Properties in the + // results. Properties can be inspected to determine whether they are deleted + // or not. + bool show_deleted = 4; +} + +// Response message for ListProperties RPC. +message ListPropertiesResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated Property properties = 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 UpdateProperty RPC. +message UpdatePropertyRequest { + // Required. The property to update. + // The property's `name` field is used to identify the property to be + // updated. + Property property = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for CreateProperty RPC. +message CreatePropertyRequest { + // Required. The property to create. + // Note: the supplied property must specify its parent. + Property property = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteProperty RPC. +message DeletePropertyRequest { + // Required. The name of the Property to soft-delete. + // Format: properties/{property_id} + // Example: "properties/1000" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; +} + +// Request message for CreateFirebaseLink RPC +message CreateFirebaseLinkRequest { + // Required. Format: properties/{property_id} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/FirebaseLink" + } + ]; + + // Required. The Firebase link to create. + FirebaseLink firebase_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteFirebaseLink RPC +message DeleteFirebaseLinkRequest { + // Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + // Example: properties/1234/firebaseLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/FirebaseLink" + } + ]; +} + +// Request message for ListFirebaseLinks RPC +message ListFirebaseLinksRequest { + // Required. Format: properties/{property_id} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/FirebaseLink" + } + ]; + + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListFirebaseLinks` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListProperties` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListFirebaseLinks RPC +message ListFirebaseLinksResponse { + // List of FirebaseLinks. This will have at most one value. + repeated FirebaseLink firebase_links = 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. + // Currently, Google Analytics supports only one FirebaseLink per property, + // so this will never be populated. + string next_page_token = 2; +} + +// Request message for CreateGoogleAdsLink RPC +message CreateGoogleAdsLinkRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" + } + ]; + + // Required. The GoogleAdsLink to create. + GoogleAdsLink google_ads_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateGoogleAdsLink RPC +message UpdateGoogleAdsLinkRequest { + // The GoogleAdsLink to update + GoogleAdsLink google_ads_link = 1; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteGoogleAdsLink RPC. +message DeleteGoogleAdsLinkRequest { + // Required. Example format: properties/1234/googleAdsLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/GoogleAdsLink" + } + ]; +} + +// Request message for ListGoogleAdsLinks RPC. +message ListGoogleAdsLinksRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListGoogleAdsLinks` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListGoogleAdsLinks` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListGoogleAdsLinks RPC. +message ListGoogleAdsLinksResponse { + // List of GoogleAdsLinks. + repeated GoogleAdsLink google_ads_links = 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 GetDataSharingSettings RPC. +message GetDataSharingSettingsRequest { + // Required. The name of the settings to lookup. + // Format: accounts/{account}/dataSharingSettings + // Example: "accounts/1000/dataSharingSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataSharingSettings" + } + ]; +} + +// Request message for ListAccountSummaries RPC. +message ListAccountSummariesRequest { + // The maximum number of AccountSummary resources to return. The service may + // return fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 1; + + // A page token, received from a previous `ListAccountSummaries` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListAccountSummaries` + // must match the call that provided the page token. + string page_token = 2; +} + +// Response message for ListAccountSummaries RPC. +message ListAccountSummariesResponse { + // Account summaries of all accounts the caller has access to. + repeated AccountSummary account_summaries = 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 AcknowledgeUserDataCollection RPC. +message AcknowledgeUserDataCollectionRequest { + // Required. The property for which to acknowledge user data collection. + string property = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Required. An acknowledgement that the caller of this method understands the terms + // of user data collection. + // + // This field must contain the exact value: + // "I acknowledge that I have the necessary privacy disclosures and rights + // from my end users for the collection and processing of their data, + // including the association of such data with the visitation information + // Google Analytics collects from my site and/or app property." + string acknowledgement = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for AcknowledgeUserDataCollection RPC. +message AcknowledgeUserDataCollectionResponse { + +} + +// Request message for SearchChangeHistoryEvents RPC. +message SearchChangeHistoryEventsRequest { + // Required. The account resource for which to return change history resources. + string account = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; + + // Optional. Resource name for a child property. If set, only return changes + // made to this property or its child resources. + string property = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Optional. If set, only return changes if they are for a resource that matches at + // least one of these types. + repeated ChangeHistoryResourceType resource_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes that match one or more of these types of + // actions. + repeated ActionType action = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes if they are made by a user in this list. + repeated string actor_email = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made after this time (inclusive). + google.protobuf.Timestamp earliest_change_time = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made before this time (inclusive). + google.protobuf.Timestamp latest_change_time = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of ChangeHistoryEvent items to return. + // The service may return fewer than this value, even if there are additional + // pages. If unspecified, at most 50 items will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `SearchChangeHistoryEvents` must match the call that + // provided the page token. + string page_token = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for SearchAccounts RPC. +message SearchChangeHistoryEventsResponse { + // Results that were accessible to the caller. + repeated ChangeHistoryEvent change_history_events = 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 GetMeasurementProtocolSecret RPC. +message GetMeasurementProtocolSecretRequest { + // Required. The name of the measurement protocol secret to lookup. + // Format: + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for CreateMeasurementProtocolSecret RPC +message CreateMeasurementProtocolSecretRequest { + // Required. The parent resource where this secret will be created. + // Format: properties/{property}/dataStreams/{dataStream} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // Required. The measurement protocol secret to create. + MeasurementProtocolSecret measurement_protocol_secret = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteMeasurementProtocolSecret RPC +message DeleteMeasurementProtocolSecretRequest { + // Required. The name of the MeasurementProtocolSecret to delete. + // Format: + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for UpdateMeasurementProtocolSecret RPC +message UpdateMeasurementProtocolSecretRequest { + // Required. The measurement protocol secret to update. + MeasurementProtocolSecret measurement_protocol_secret = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsRequest { + // Required. The resource name of the parent stream. + // Format: + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 10 resources will be returned. + // The maximum value is 10. Higher values will be coerced to the maximum. + int32 page_size = 2; + + // A page token, received from a previous `ListMeasurementProtocolSecrets` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListMeasurementProtocolSecrets` must match + // the call that provided the page token. + string page_token = 3; +} + +// Response message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsResponse { + // A list of secrets for the parent stream specified in the request. + repeated MeasurementProtocolSecret measurement_protocol_secrets = 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 CreateConversionEvent RPC +message CreateConversionEventRequest { + // Required. The conversion event to create. + ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the parent property where this conversion event will + // be created. Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for GetConversionEvent RPC +message GetConversionEventRequest { + // Required. The resource name of the conversion event to retrieve. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for DeleteConversionEvent RPC +message DeleteConversionEventRequest { + // Required. The resource name of the conversion event to delete. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for ListConversionEvents RPC +message ListConversionEventsRequest { + // Required. The resource name of the parent property. + // Example: 'properties/123' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListConversionEvents` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListConversionEvents` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListConversionEvents RPC. +message ListConversionEventsResponse { + // The requested conversion events + repeated ConversionEvent conversion_events = 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 CreateCustomDimension RPC. +message CreateCustomDimensionRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // Required. The CustomDimension to create. + CustomDimension custom_dimension = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomDimension RPC. +message UpdateCustomDimensionRequest { + // The CustomDimension to update + CustomDimension custom_dimension = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListCustomDimensions RPC. +message ListCustomDimensionsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListCustomDimensions` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomDimensions` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomDimensions RPC. +message ListCustomDimensionsResponse { + // List of CustomDimensions. + repeated CustomDimension custom_dimensions = 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 ArchiveCustomDimension RPC. +message ArchiveCustomDimensionRequest { + // Required. The name of the CustomDimension to archive. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for GetCustomDimension RPC. +message GetCustomDimensionRequest { + // Required. The name of the CustomDimension to get. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for CreateCustomMetric RPC. +message CreateCustomMetricRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // Required. The CustomMetric to create. + CustomMetric custom_metric = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomMetric RPC. +message UpdateCustomMetricRequest { + // The CustomMetric to update + CustomMetric custom_metric = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListCustomMetrics RPC. +message ListCustomMetricsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListCustomMetrics` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomMetrics` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomMetrics RPC. +message ListCustomMetricsResponse { + // List of CustomMetrics. + repeated CustomMetric custom_metrics = 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 ArchiveCustomMetric RPC. +message ArchiveCustomMetricRequest { + // Required. The name of the CustomMetric to archive. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} + +// Request message for GetCustomMetric RPC. +message GetCustomMetricRequest { + // Required. The name of the CustomMetric to get. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} + +// Request message for GetDataRetentionSettings RPC. +message GetDataRetentionSettingsRequest { + // Required. The name of the settings to lookup. + // Format: + // properties/{property}/dataRetentionSettings + // Example: "properties/1000/dataRetentionSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataRetentionSettings" + } + ]; +} + +// Request message for UpdateDataRetentionSettings RPC. +message UpdateDataRetentionSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + DataRetentionSettings data_retention_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for CreateDataStream RPC. +message CreateDataStreamRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DataStream" + } + ]; + + // Required. The DataStream to create. + DataStream data_stream = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteDataStream RPC. +message DeleteDataStreamRequest { + // Required. The name of the DataStream to delete. + // Example format: properties/1234/dataStreams/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataStream" + } + ]; +} + +// Request message for UpdateDataStream RPC. +message UpdateDataStreamRequest { + // The DataStream to update + DataStream data_stream = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListDataStreams RPC. +message ListDataStreamsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DataStream" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListDataStreams` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDataStreams` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListDataStreams RPC. +message ListDataStreamsResponse { + // List of DataStreams. + repeated DataStream data_streams = 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 GetDataStream RPC. +message GetDataStreamRequest { + // Required. The name of the DataStream to get. + // Example format: properties/1234/dataStreams/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataStream" + } + ]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1beta/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1beta/resources.proto new file mode 100644 index 00000000000..2a7010305a2 --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1beta/resources.proto @@ -0,0 +1,905 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin"; +option java_multiple_files = true; +option java_outer_classname = "ResourcesProto"; +option java_package = "com.google.analytics.admin.v1beta"; + +// The category selected for this property, used for industry benchmarking. +enum IndustryCategory { + // Industry category unspecified + INDUSTRY_CATEGORY_UNSPECIFIED = 0; + + // Automotive + AUTOMOTIVE = 1; + + // Business and industrial markets + BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + + // Finance + FINANCE = 3; + + // Healthcare + HEALTHCARE = 4; + + // Technology + TECHNOLOGY = 5; + + // Travel + TRAVEL = 6; + + // Other + OTHER = 7; + + // Arts and entertainment + ARTS_AND_ENTERTAINMENT = 8; + + // Beauty and fitness + BEAUTY_AND_FITNESS = 9; + + // Books and literature + BOOKS_AND_LITERATURE = 10; + + // Food and drink + FOOD_AND_DRINK = 11; + + // Games + GAMES = 12; + + // Hobbies and leisure + HOBBIES_AND_LEISURE = 13; + + // Home and garden + HOME_AND_GARDEN = 14; + + // Internet and telecom + INTERNET_AND_TELECOM = 15; + + // Law and government + LAW_AND_GOVERNMENT = 16; + + // News + NEWS = 17; + + // Online communities + ONLINE_COMMUNITIES = 18; + + // People and society + PEOPLE_AND_SOCIETY = 19; + + // Pets and animals + PETS_AND_ANIMALS = 20; + + // Real estate + REAL_ESTATE = 21; + + // Reference + REFERENCE = 22; + + // Science + SCIENCE = 23; + + // Sports + SPORTS = 24; + + // Jobs and education + JOBS_AND_EDUCATION = 25; + + // Shopping + SHOPPING = 26; +} + +// Various levels of service for Google Analytics. +enum ServiceLevel { + // Service level not specified or invalid. + SERVICE_LEVEL_UNSPECIFIED = 0; + + // The standard version of Google Analytics. + GOOGLE_ANALYTICS_STANDARD = 1; + + // The paid, premium version of Google Analytics. + GOOGLE_ANALYTICS_360 = 2; +} + +// Different kinds of actors that can make changes to Google Analytics +// resources. +enum ActorType { + // Unknown or unspecified actor type. + ACTOR_TYPE_UNSPECIFIED = 0; + + // Changes made by the user specified in actor_email. + USER = 1; + + // Changes made by the Google Analytics system. + SYSTEM = 2; + + // Changes made by Google Analytics support team staff. + SUPPORT = 3; +} + +// Types of actions that may change a resource. +enum ActionType { + // Action type unknown or not specified. + ACTION_TYPE_UNSPECIFIED = 0; + + // Resource was created in this change. + CREATED = 1; + + // Resource was updated in this change. + UPDATED = 2; + + // Resource was deleted in this change. + DELETED = 3; +} + +// Types of resources whose changes may be returned from change history. +enum ChangeHistoryResourceType { + // Resource type unknown or not specified. + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Account resource + ACCOUNT = 1; + + // Property resource + PROPERTY = 2; + + // FirebaseLink resource + FIREBASE_LINK = 6; + + // GoogleAdsLink resource + GOOGLE_ADS_LINK = 7; + + // GoogleSignalsSettings resource + GOOGLE_SIGNALS_SETTINGS = 8; + + // ConversionEvent resource + CONVERSION_EVENT = 9; + + // MeasurementProtocolSecret resource + MEASUREMENT_PROTOCOL_SECRET = 10; + + // DataRetentionSettings resource + DATA_RETENTION_SETTINGS = 13; + + // DisplayVideo360AdvertiserLink resource + DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + + // DisplayVideo360AdvertiserLinkProposal resource + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + + // DataStream resource + DATA_STREAM = 18; + + // AttributionSettings resource + ATTRIBUTION_SETTINGS = 20; +} + +// Types of Property resources. +enum PropertyType { + // Unknown or unspecified property type + PROPERTY_TYPE_UNSPECIFIED = 0; + + // Ordinary GA4 property + PROPERTY_TYPE_ORDINARY = 1; + + // GA4 subproperty + PROPERTY_TYPE_SUBPROPERTY = 2; + + // GA4 rollup property + PROPERTY_TYPE_ROLLUP = 3; +} + +// A resource message representing a Google Analytics account. +message Account { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/Account" + pattern: "accounts/{account}" + }; + + // Output only. Resource name of this account. + // Format: accounts/{account} + // Example: "accounts/100" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this account was originally created. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when account payload fields were last updated. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Human-readable display name for this account. + string display_name = 4 [(google.api.field_behavior) = REQUIRED]; + + // Country of business. Must be a Unicode CLDR region code. + string region_code = 5; + + // Output only. Indicates whether this Account is soft-deleted or not. Deleted + // accounts are excluded from List results unless specifically requested. + bool deleted = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource message representing a Google Analytics GA4 property. +message Property { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/Property" + pattern: "properties/{property}" + }; + + // Output only. Resource name of this property. + // Format: properties/{property_id} + // Example: "properties/1000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The property type for this Property resource. When creating a property, if + // the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be + // implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created + // via Google Analytics Admin API. + PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when the entity was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when entity payload fields were last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Resource name of this property's logical parent. + // + // Note: The Property-Moving UI can be used to change the parent. + // Format: accounts/{account}, properties/{property} + // Example: "accounts/100", "properties/101" + string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. Human-readable display name for this property. + // + // The max allowed display name length is 100 UTF-16 code units. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Industry associated with this property + // Example: AUTOMOTIVE, FOOD_AND_DRINK + IndustryCategory industry_category = 6; + + // Required. Reporting Time Zone, used as the day boundary for reports, regardless of + // where the data originates. If the time zone honors DST, Analytics will + // automatically adjust for the changes. + // + // NOTE: Changing the time zone only affects data going forward, and is not + // applied retroactively. + // + // Format: https://www.iana.org/time-zones + // Example: "America/Los_Angeles" + string time_zone = 7 [(google.api.field_behavior) = REQUIRED]; + + // The currency type used in reports involving monetary values. + // + // + // Format: https://en.wikipedia.org/wiki/ISO_4217 + // Examples: "USD", "EUR", "JPY" + string currency_code = 8; + + // Output only. The Google Analytics service level that applies to this property. + ServiceLevel service_level = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, the time at which this property was trashed. If not set, then this + // property is not currently in the trash can. + google.protobuf.Timestamp delete_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, the time at which this trashed property will be permanently + // deleted. If not set, then this property is not currently in the trash can + // and is not slated to be deleted. + google.protobuf.Timestamp expire_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The resource name of the parent account + // Format: accounts/{account_id} + // Example: "accounts/123" + string account = 13 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; +} + +// A resource message representing a data stream. +message DataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataStream" + pattern: "properties/{property}/dataStreams/{data_stream}" + }; + + // Data specific to web streams. + message WebStreamData { + // Output only. Analytics "Measurement ID", without the "G-" prefix. + // Example: "G-1A2BCD345E" would just be "1A2BCD345E" + string measurement_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the corresponding web app in Firebase, if any. + // This ID can change if the web app is deleted and recreated. + string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Domain name of the web app being measured, or empty. + // Example: "http://www.google.com", "https://www.google.com" + string default_uri = 3 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Data specific to Android app streams. + message AndroidAppStreamData { + // Output only. ID of the corresponding Android app in Firebase, if any. + // This ID can change if the Android app is deleted and recreated. + string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The package name for the app being measured. + // Example: "com.example.myandroidapp" + string package_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Data specific to iOS app streams. + message IosAppStreamData { + // Output only. ID of the corresponding iOS app in Firebase, if any. + // This ID can change if the iOS app is deleted and recreated. + string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The Apple App Store Bundle ID for the app + // Example: "com.example.myiosapp" + string bundle_id = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + } + + // The type of the data stream. + enum DataStreamType { + // Type unknown or not specified. + DATA_STREAM_TYPE_UNSPECIFIED = 0; + + // Web data stream. + WEB_DATA_STREAM = 1; + + // Android app data stream. + ANDROID_APP_DATA_STREAM = 2; + + // iOS app data stream. + IOS_APP_DATA_STREAM = 3; + } + + // Data for specific data stream types. The message that will be + // set corresponds to the type of this stream. + oneof stream_data { + // Data specific to web streams. Must be populated if type is + // WEB_DATA_STREAM. + WebStreamData web_stream_data = 6; + + // Data specific to Android app streams. Must be populated if type is + // ANDROID_APP_DATA_STREAM. + AndroidAppStreamData android_app_stream_data = 7; + + // Data specific to iOS app streams. Must be populated if type is + // IOS_APP_DATA_STREAM. + IosAppStreamData ios_app_stream_data = 8; + } + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/dataStreams/{stream_id} + // Example: "properties/1000/dataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The type of this DataStream resource. + DataStreamType type = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Human-readable display name for the Data Stream. + // + // Required for web data streams. + // + // The max allowed display name length is 255 UTF-16 code units. + string display_name = 3; + + // Output only. Time when this stream was originally created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when stream payload fields were last updated. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A link between a GA4 property and a Firebase project. +message FirebaseLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/FirebaseLink" + pattern: "properties/{property}/firebaseLinks/{firebase_link}" + }; + + // Output only. Example format: properties/1234/firebaseLinks/5678 + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Firebase project resource name. When creating a FirebaseLink, you may + // provide this resource name using either a project number or project ID. + // Once this resource has been created, returned FirebaseLinks will always + // have a project_name that contains a project number. + // + // Format: 'projects/{project number}' + // Example: 'projects/1234' + string project = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when this FirebaseLink was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A link between a GA4 property and a Google Ads account. +message GoogleAdsLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/GoogleAdsLink" + pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" + }; + + // Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + // + // Note: googleAdsLinkId is not the Google Ads customer ID. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Google Ads customer ID. + string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. If true, this link is for a Google Ads manager account. + bool can_manage_clients = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Enable personalized advertising features with this integration. + // Automatically publish my Google Analytics audience lists and Google + // Analytics remarketing events/parameters to the linked Google Ads account. + // If this field is not set on create/update, it will be defaulted to true. + google.protobuf.BoolValue ads_personalization_enabled = 5; + + // Output only. Time when this link was originally created. + google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this link was last updated. + google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the user that created the link. + // An empty string will be returned if the email address can't be retrieved. + string creator_email_address = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource message representing data sharing settings of a Google Analytics +// account. +message DataSharingSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataSharingSettings" + pattern: "accounts/{account}/dataSharingSettings" + }; + + // Output only. Resource name. + // Format: accounts/{account}/dataSharingSettings + // Example: "accounts/1000/dataSharingSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Allows Google support to access the data in order to help troubleshoot + // issues. + bool sharing_with_google_support_enabled = 2; + + // Allows Google sales teams that are assigned to the customer to access the + // data in order to suggest configuration changes to improve results. + // Sales team restrictions still apply when enabled. + bool sharing_with_google_assigned_sales_enabled = 3; + + // Allows any of Google sales to access the data in order to suggest + // configuration changes to improve results. + bool sharing_with_google_any_sales_enabled = 4; + + // Allows Google to use the data to improve other Google products or services. + bool sharing_with_google_products_enabled = 5; + + // Allows Google to share the data anonymously in aggregate form with others. + bool sharing_with_others_enabled = 6; +} + +// A virtual resource representing an overview of an account and +// all its child GA4 properties. +message AccountSummary { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AccountSummary" + pattern: "accountSummaries/{account_summary}" + }; + + // Resource name for this account summary. + // Format: accountSummaries/{account_id} + // Example: "accountSummaries/1000" + string name = 1; + + // Resource name of account referred to by this account summary + // Format: accounts/{account_id} + // Example: "accounts/1000" + string account = 2 [(google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + }]; + + // Display name for the account referred to in this account summary. + string display_name = 3; + + // List of summaries for child accounts of this account. + repeated PropertySummary property_summaries = 4; +} + +// A virtual resource representing metadata for a GA4 property. +message PropertySummary { + // Resource name of property referred to by this property summary + // Format: properties/{property_id} + // Example: "properties/1000" + string property = 1 [(google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + }]; + + // Display name for the property referred to in this property summary. + string display_name = 2; + + // The property's property type. + PropertyType property_type = 3; + + // Resource name of this property's logical parent. + // + // Note: The Property-Moving UI can be used to change the parent. + // Format: accounts/{account}, properties/{property} + // Example: "accounts/100", "properties/200" + string parent = 4; +} + +// A secret value used for sending hits to Measurement Protocol. +message MeasurementProtocolSecret { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + }; + + // Output only. Resource name of this secret. This secret may be a child of any type of + // stream. + // Format: + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Human-readable display name for this secret. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The measurement protocol secret value. Pass this value to the api_secret + // field of the Measurement Protocol API when sending hits to this + // secret's parent property. + string secret_value = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A set of changes within a Google Analytics account or its child properties +// that resulted from the same cause. Common causes would be updates made in the +// Google Analytics UI, changes from customer support, or automatic Google +// Analytics system changes. +message ChangeHistoryEvent { + // ID of this change history event. This ID is unique across Google Analytics. + string id = 1; + + // Time when change was made. + google.protobuf.Timestamp change_time = 2; + + // The type of actor that made this change. + ActorType actor_type = 3; + + // Email address of the Google account that made the change. This will be a + // valid email address if the actor field is set to USER, and empty otherwise. + // Google accounts that have been deleted will cause an error. + string user_actor_email = 4; + + // If true, then the list of changes returned was filtered, and does not + // represent all changes that occurred in this event. + bool changes_filtered = 5; + + // A list of changes made in this change history event that fit the filters + // specified in SearchChangeHistoryEventsRequest. + repeated ChangeHistoryChange changes = 6; +} + +// A description of a change to a single Google Analytics resource. +message ChangeHistoryChange { + // A snapshot of a resource as before or after the result of a change in + // change history. + message ChangeHistoryResource { + oneof resource { + // A snapshot of an Account resource in change history. + Account account = 1; + + // A snapshot of a Property resource in change history. + Property property = 2; + + // A snapshot of a FirebaseLink resource in change history. + FirebaseLink firebase_link = 6; + + // A snapshot of a GoogleAdsLink resource in change history. + GoogleAdsLink google_ads_link = 7; + + // A snapshot of a ConversionEvent resource in change history. + ConversionEvent conversion_event = 11; + + // A snapshot of a MeasurementProtocolSecret resource in change history. + MeasurementProtocolSecret measurement_protocol_secret = 12; + + // A snapshot of a data retention settings resource in change history. + DataRetentionSettings data_retention_settings = 15; + + // A snapshot of a DataStream resource in change history. + DataStream data_stream = 18; + } + } + + // Resource name of the resource whose changes are described by this entry. + string resource = 1; + + // The type of action that changed this resource. + ActionType action = 2; + + // Resource contents from before the change was made. If this resource was + // created in this change, this field will be missing. + ChangeHistoryResource resource_before_change = 3; + + // Resource contents from after the change was made. If this resource was + // deleted in this change, this field will be missing. + ChangeHistoryResource resource_after_change = 4; +} + +// A conversion event in a Google Analytics property. +message ConversionEvent { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + pattern: "properties/{property}/conversionEvents/{conversion_event}" + }; + + // Output only. Resource name of this conversion event. + // Format: properties/{property}/conversionEvents/{conversion_event} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The event name for this conversion event. + // Examples: 'click', 'purchase' + string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when this conversion event was created in the property. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, this event can currently be deleted via DeleteConversionEvent. + bool deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set to true, this conversion event refers to a custom event. If set to + // false, this conversion event refers to a default event in GA. Default + // events typically have special meaning in GA. Default events are usually + // created for you by the GA system, but in some cases can be created by + // property admins. Custom events count towards the maximum number of + // custom conversion events that may be created per property. + bool custom = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A definition for a CustomDimension. +message CustomDimension { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + pattern: "properties/{property}/customDimensions/{custom_dimension}" + }; + + // Valid values for the scope of this dimension. + enum DimensionScope { + // Scope unknown or not specified. + DIMENSION_SCOPE_UNSPECIFIED = 0; + + // Dimension scoped to an event. + EVENT = 1; + + // Dimension scoped to a user. + USER = 2; + } + + // Output only. Resource name for this CustomDimension resource. + // Format: properties/{property}/customDimensions/{customDimension} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging parameter name for this custom dimension. + // + // If this is a user-scoped dimension, then this is the user property name. + // If this is an event-scoped dimension, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore characters, starting with a + // letter. Max length of 24 characters for user-scoped dimensions, 40 + // characters for event-scoped dimensions. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom dimension as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. Max length of 150 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The scope of this dimension. + DimensionScope scope = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If set to true, sets this dimension as NPA and excludes it from ads + // personalization. + // + // This is currently only supported by user-scoped custom dimensions. + bool disallow_ads_personalization = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A definition for a custom metric. +message CustomMetric { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + pattern: "properties/{property}/customMetrics/{custom_metric}" + }; + + // Possible types of representing the custom metric's value. + // + // Currency representation may change in the future, requiring a breaking API + // change. + enum MeasurementUnit { + // MeasurementUnit unspecified or missing. + MEASUREMENT_UNIT_UNSPECIFIED = 0; + + // This metric uses default units. + STANDARD = 1; + + // This metric measures a currency. + CURRENCY = 2; + + // This metric measures feet. + FEET = 3; + + // This metric measures meters. + METERS = 4; + + // This metric measures kilometers. + KILOMETERS = 5; + + // This metric measures miles. + MILES = 6; + + // This metric measures milliseconds. + MILLISECONDS = 7; + + // This metric measures seconds. + SECONDS = 8; + + // This metric measures minutes. + MINUTES = 9; + + // This metric measures hours. + HOURS = 10; + } + + // The scope of this metric. + enum MetricScope { + // Scope unknown or not specified. + METRIC_SCOPE_UNSPECIFIED = 0; + + // Metric scoped to an event. + EVENT = 1; + } + + // Labels that mark the data in this custom metric as data that should be + // restricted to specific users. + enum RestrictedMetricType { + // Type unknown or unspecified. + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + + // Metric reports cost data. + COST_DATA = 1; + + // Metric reports revenue data. + REVENUE_DATA = 2; + } + + // Output only. Resource name for this CustomMetric resource. + // Format: properties/{property}/customMetrics/{customMetric} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging name for this custom metric. + // + // If this is an event-scoped metric, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore charactes, starting with a + // letter. Max length of 40 characters for event-scoped metrics. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom metric as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. + // Max length of 150 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The type for the custom metric's value. + MeasurementUnit measurement_unit = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. The scope of this custom metric. + MetricScope scope = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Types of restricted data that this metric may contain. Required for metrics + // with CURRENCY measurement unit. Must be empty for metrics with a + // non-CURRENCY measurement unit. + repeated RestrictedMetricType restricted_metric_type = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings values for data retention. This is a singleton resource. +message DataRetentionSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataRetentionSettings" + pattern: "properties/{property}/dataRetentionSettings" + }; + + // Valid values for the data retention duration. + enum RetentionDuration { + // Data retention time duration is not specified. + RETENTION_DURATION_UNSPECIFIED = 0; + + // The data retention time duration is 2 months. + TWO_MONTHS = 1; + + // The data retention time duration is 14 months. + FOURTEEN_MONTHS = 3; + + // The data retention time duration is 26 months. + // Available to 360 properties only. + TWENTY_SIX_MONTHS = 4; + + // The data retention time duration is 38 months. + // Available to 360 properties only. + THIRTY_EIGHT_MONTHS = 5; + + // The data retention time duration is 50 months. + // Available to 360 properties only. + FIFTY_MONTHS = 6; + } + + // Output only. Resource name for this DataRetentionSetting resource. + // Format: properties/{property}/dataRetentionSettings + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The length of time that event-level data is retained. + RetentionDuration event_data_retention = 2; + + // If true, reset the retention period for the user identifier with every + // event from that user. + bool reset_user_data_on_new_activity = 3; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 44fb941b3b9..0d11bec6f28 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -13437,6 +13437,9100 @@ export namespace google { } } } + + /** Namespace v1beta. */ + namespace v1beta { + + /** Represents an AnalyticsAdminService */ + class AnalyticsAdminService extends $protobuf.rpc.Service { + + /** + * Constructs a new AnalyticsAdminService 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 AnalyticsAdminService 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): AnalyticsAdminService; + + /** + * 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.analytics.admin.v1beta.IGetAccountRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetAccountCallback): void; + + /** + * Calls GetAccount. + * @param request GetAccountRequest message or plain object + * @returns Promise + */ + public getAccount(request: google.analytics.admin.v1beta.IGetAccountRequest): 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.analytics.admin.v1beta.IListAccountsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountsCallback): void; + + /** + * Calls ListAccounts. + * @param request ListAccountsRequest message or plain object + * @returns Promise + */ + public listAccounts(request: google.analytics.admin.v1beta.IListAccountsRequest): 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.analytics.admin.v1beta.IDeleteAccountRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.DeleteAccountCallback): void; + + /** + * Calls DeleteAccount. + * @param request DeleteAccountRequest message or plain object + * @returns Promise + */ + public deleteAccount(request: google.analytics.admin.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.analytics.admin.v1beta.IUpdateAccountRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdateAccountCallback): void; + + /** + * Calls UpdateAccount. + * @param request UpdateAccountRequest message or plain object + * @returns Promise + */ + public updateAccount(request: google.analytics.admin.v1beta.IUpdateAccountRequest): Promise; + + /** + * Calls ProvisionAccountTicket. + * @param request ProvisionAccountTicketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse + */ + public provisionAccountTicket(request: google.analytics.admin.v1beta.IProvisionAccountTicketRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ProvisionAccountTicketCallback): void; + + /** + * Calls ProvisionAccountTicket. + * @param request ProvisionAccountTicketRequest message or plain object + * @returns Promise + */ + public provisionAccountTicket(request: google.analytics.admin.v1beta.IProvisionAccountTicketRequest): Promise; + + /** + * Calls ListAccountSummaries. + * @param request ListAccountSummariesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAccountSummariesResponse + */ + public listAccountSummaries(request: google.analytics.admin.v1beta.IListAccountSummariesRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountSummariesCallback): void; + + /** + * Calls ListAccountSummaries. + * @param request ListAccountSummariesRequest message or plain object + * @returns Promise + */ + public listAccountSummaries(request: google.analytics.admin.v1beta.IListAccountSummariesRequest): Promise; + + /** + * Calls GetProperty. + * @param request GetPropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public getProperty(request: google.analytics.admin.v1beta.IGetPropertyRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetPropertyCallback): void; + + /** + * Calls GetProperty. + * @param request GetPropertyRequest message or plain object + * @returns Promise + */ + public getProperty(request: google.analytics.admin.v1beta.IGetPropertyRequest): Promise; + + /** + * Calls ListProperties. + * @param request ListPropertiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPropertiesResponse + */ + public listProperties(request: google.analytics.admin.v1beta.IListPropertiesRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListPropertiesCallback): void; + + /** + * Calls ListProperties. + * @param request ListPropertiesRequest message or plain object + * @returns Promise + */ + public listProperties(request: google.analytics.admin.v1beta.IListPropertiesRequest): Promise; + + /** + * Calls CreateProperty. + * @param request CreatePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public createProperty(request: google.analytics.admin.v1beta.ICreatePropertyRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreatePropertyCallback): void; + + /** + * Calls CreateProperty. + * @param request CreatePropertyRequest message or plain object + * @returns Promise + */ + public createProperty(request: google.analytics.admin.v1beta.ICreatePropertyRequest): Promise; + + /** + * Calls DeleteProperty. + * @param request DeletePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public deleteProperty(request: google.analytics.admin.v1beta.IDeletePropertyRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.DeletePropertyCallback): void; + + /** + * Calls DeleteProperty. + * @param request DeletePropertyRequest message or plain object + * @returns Promise + */ + public deleteProperty(request: google.analytics.admin.v1beta.IDeletePropertyRequest): Promise; + + /** + * Calls UpdateProperty. + * @param request UpdatePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public updateProperty(request: google.analytics.admin.v1beta.IUpdatePropertyRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdatePropertyCallback): void; + + /** + * Calls UpdateProperty. + * @param request UpdatePropertyRequest message or plain object + * @returns Promise + */ + public updateProperty(request: google.analytics.admin.v1beta.IUpdatePropertyRequest): Promise; + + /** + * Calls CreateFirebaseLink. + * @param request CreateFirebaseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FirebaseLink + */ + public createFirebaseLink(request: google.analytics.admin.v1beta.ICreateFirebaseLinkRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreateFirebaseLinkCallback): void; + + /** + * Calls CreateFirebaseLink. + * @param request CreateFirebaseLinkRequest message or plain object + * @returns Promise + */ + public createFirebaseLink(request: google.analytics.admin.v1beta.ICreateFirebaseLinkRequest): Promise; + + /** + * Calls DeleteFirebaseLink. + * @param request DeleteFirebaseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteFirebaseLink(request: google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.DeleteFirebaseLinkCallback): void; + + /** + * Calls DeleteFirebaseLink. + * @param request DeleteFirebaseLinkRequest message or plain object + * @returns Promise + */ + public deleteFirebaseLink(request: google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest): Promise; + + /** + * Calls ListFirebaseLinks. + * @param request ListFirebaseLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse + */ + public listFirebaseLinks(request: google.analytics.admin.v1beta.IListFirebaseLinksRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListFirebaseLinksCallback): void; + + /** + * Calls ListFirebaseLinks. + * @param request ListFirebaseLinksRequest message or plain object + * @returns Promise + */ + public listFirebaseLinks(request: google.analytics.admin.v1beta.IListFirebaseLinksRequest): Promise; + + /** + * Calls CreateGoogleAdsLink. + * @param request CreateGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + */ + public createGoogleAdsLink(request: google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreateGoogleAdsLinkCallback): void; + + /** + * Calls CreateGoogleAdsLink. + * @param request CreateGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public createGoogleAdsLink(request: google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest): Promise; + + /** + * Calls UpdateGoogleAdsLink. + * @param request UpdateGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + */ + public updateGoogleAdsLink(request: google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdateGoogleAdsLinkCallback): void; + + /** + * Calls UpdateGoogleAdsLink. + * @param request UpdateGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public updateGoogleAdsLink(request: google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest): Promise; + + /** + * Calls DeleteGoogleAdsLink. + * @param request DeleteGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteGoogleAdsLink(request: google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.DeleteGoogleAdsLinkCallback): void; + + /** + * Calls DeleteGoogleAdsLink. + * @param request DeleteGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public deleteGoogleAdsLink(request: google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest): Promise; + + /** + * Calls ListGoogleAdsLinks. + * @param request ListGoogleAdsLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse + */ + public listGoogleAdsLinks(request: google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListGoogleAdsLinksCallback): void; + + /** + * Calls ListGoogleAdsLinks. + * @param request ListGoogleAdsLinksRequest message or plain object + * @returns Promise + */ + public listGoogleAdsLinks(request: google.analytics.admin.v1beta.IListGoogleAdsLinksRequest): Promise; + + /** + * Calls GetDataSharingSettings. + * @param request GetDataSharingSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataSharingSettings + */ + public getDataSharingSettings(request: google.analytics.admin.v1beta.IGetDataSharingSettingsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetDataSharingSettingsCallback): void; + + /** + * Calls GetDataSharingSettings. + * @param request GetDataSharingSettingsRequest message or plain object + * @returns Promise + */ + public getDataSharingSettings(request: google.analytics.admin.v1beta.IGetDataSharingSettingsRequest): Promise; + + /** + * Calls GetMeasurementProtocolSecret. + * @param request GetMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public getMeasurementProtocolSecret(request: google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetMeasurementProtocolSecretCallback): void; + + /** + * Calls GetMeasurementProtocolSecret. + * @param request GetMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public getMeasurementProtocolSecret(request: google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest): Promise; + + /** + * Calls ListMeasurementProtocolSecrets. + * @param request ListMeasurementProtocolSecretsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse + */ + public listMeasurementProtocolSecrets(request: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback): void; + + /** + * Calls ListMeasurementProtocolSecrets. + * @param request ListMeasurementProtocolSecretsRequest message or plain object + * @returns Promise + */ + public listMeasurementProtocolSecrets(request: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest): Promise; + + /** + * Calls CreateMeasurementProtocolSecret. + * @param request CreateMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public createMeasurementProtocolSecret(request: google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback): void; + + /** + * Calls CreateMeasurementProtocolSecret. + * @param request CreateMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public createMeasurementProtocolSecret(request: google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest): Promise; + + /** + * Calls DeleteMeasurementProtocolSecret. + * @param request DeleteMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback): void; + + /** + * Calls DeleteMeasurementProtocolSecret. + * @param request DeleteMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest): Promise; + + /** + * Calls UpdateMeasurementProtocolSecret. + * @param request UpdateMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public updateMeasurementProtocolSecret(request: google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback): void; + + /** + * Calls UpdateMeasurementProtocolSecret. + * @param request UpdateMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public updateMeasurementProtocolSecret(request: google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest): Promise; + + /** + * Calls AcknowledgeUserDataCollection. + * @param request AcknowledgeUserDataCollectionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse + */ + public acknowledgeUserDataCollection(request: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback): void; + + /** + * Calls AcknowledgeUserDataCollection. + * @param request AcknowledgeUserDataCollectionRequest message or plain object + * @returns Promise + */ + public acknowledgeUserDataCollection(request: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest): Promise; + + /** + * Calls SearchChangeHistoryEvents. + * @param request SearchChangeHistoryEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + */ + public searchChangeHistoryEvents(request: google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.SearchChangeHistoryEventsCallback): void; + + /** + * Calls SearchChangeHistoryEvents. + * @param request SearchChangeHistoryEventsRequest message or plain object + * @returns Promise + */ + public searchChangeHistoryEvents(request: google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest): Promise; + + /** + * Calls CreateConversionEvent. + * @param request CreateConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ConversionEvent + */ + public createConversionEvent(request: google.analytics.admin.v1beta.ICreateConversionEventRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreateConversionEventCallback): void; + + /** + * Calls CreateConversionEvent. + * @param request CreateConversionEventRequest message or plain object + * @returns Promise + */ + public createConversionEvent(request: google.analytics.admin.v1beta.ICreateConversionEventRequest): Promise; + + /** + * Calls GetConversionEvent. + * @param request GetConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ConversionEvent + */ + public getConversionEvent(request: google.analytics.admin.v1beta.IGetConversionEventRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetConversionEventCallback): void; + + /** + * Calls GetConversionEvent. + * @param request GetConversionEventRequest message or plain object + * @returns Promise + */ + public getConversionEvent(request: google.analytics.admin.v1beta.IGetConversionEventRequest): Promise; + + /** + * Calls DeleteConversionEvent. + * @param request DeleteConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteConversionEvent(request: google.analytics.admin.v1beta.IDeleteConversionEventRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.DeleteConversionEventCallback): void; + + /** + * Calls DeleteConversionEvent. + * @param request DeleteConversionEventRequest message or plain object + * @returns Promise + */ + public deleteConversionEvent(request: google.analytics.admin.v1beta.IDeleteConversionEventRequest): Promise; + + /** + * Calls ListConversionEvents. + * @param request ListConversionEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListConversionEventsResponse + */ + public listConversionEvents(request: google.analytics.admin.v1beta.IListConversionEventsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListConversionEventsCallback): void; + + /** + * Calls ListConversionEvents. + * @param request ListConversionEventsRequest message or plain object + * @returns Promise + */ + public listConversionEvents(request: google.analytics.admin.v1beta.IListConversionEventsRequest): Promise; + + /** + * Calls CreateCustomDimension. + * @param request CreateCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public createCustomDimension(request: google.analytics.admin.v1beta.ICreateCustomDimensionRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomDimensionCallback): void; + + /** + * Calls CreateCustomDimension. + * @param request CreateCustomDimensionRequest message or plain object + * @returns Promise + */ + public createCustomDimension(request: google.analytics.admin.v1beta.ICreateCustomDimensionRequest): Promise; + + /** + * Calls UpdateCustomDimension. + * @param request UpdateCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public updateCustomDimension(request: google.analytics.admin.v1beta.IUpdateCustomDimensionRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomDimensionCallback): void; + + /** + * Calls UpdateCustomDimension. + * @param request UpdateCustomDimensionRequest message or plain object + * @returns Promise + */ + public updateCustomDimension(request: google.analytics.admin.v1beta.IUpdateCustomDimensionRequest): Promise; + + /** + * Calls ListCustomDimensions. + * @param request ListCustomDimensionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse + */ + public listCustomDimensions(request: google.analytics.admin.v1beta.IListCustomDimensionsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomDimensionsCallback): void; + + /** + * Calls ListCustomDimensions. + * @param request ListCustomDimensionsRequest message or plain object + * @returns Promise + */ + public listCustomDimensions(request: google.analytics.admin.v1beta.IListCustomDimensionsRequest): Promise; + + /** + * Calls ArchiveCustomDimension. + * @param request ArchiveCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public archiveCustomDimension(request: google.analytics.admin.v1beta.IArchiveCustomDimensionRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomDimensionCallback): void; + + /** + * Calls ArchiveCustomDimension. + * @param request ArchiveCustomDimensionRequest message or plain object + * @returns Promise + */ + public archiveCustomDimension(request: google.analytics.admin.v1beta.IArchiveCustomDimensionRequest): Promise; + + /** + * Calls GetCustomDimension. + * @param request GetCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public getCustomDimension(request: google.analytics.admin.v1beta.IGetCustomDimensionRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomDimensionCallback): void; + + /** + * Calls GetCustomDimension. + * @param request GetCustomDimensionRequest message or plain object + * @returns Promise + */ + public getCustomDimension(request: google.analytics.admin.v1beta.IGetCustomDimensionRequest): Promise; + + /** + * Calls CreateCustomMetric. + * @param request CreateCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public createCustomMetric(request: google.analytics.admin.v1beta.ICreateCustomMetricRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomMetricCallback): void; + + /** + * Calls CreateCustomMetric. + * @param request CreateCustomMetricRequest message or plain object + * @returns Promise + */ + public createCustomMetric(request: google.analytics.admin.v1beta.ICreateCustomMetricRequest): Promise; + + /** + * Calls UpdateCustomMetric. + * @param request UpdateCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public updateCustomMetric(request: google.analytics.admin.v1beta.IUpdateCustomMetricRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomMetricCallback): void; + + /** + * Calls UpdateCustomMetric. + * @param request UpdateCustomMetricRequest message or plain object + * @returns Promise + */ + public updateCustomMetric(request: google.analytics.admin.v1beta.IUpdateCustomMetricRequest): Promise; + + /** + * Calls ListCustomMetrics. + * @param request ListCustomMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomMetricsResponse + */ + public listCustomMetrics(request: google.analytics.admin.v1beta.IListCustomMetricsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomMetricsCallback): void; + + /** + * Calls ListCustomMetrics. + * @param request ListCustomMetricsRequest message or plain object + * @returns Promise + */ + public listCustomMetrics(request: google.analytics.admin.v1beta.IListCustomMetricsRequest): Promise; + + /** + * Calls ArchiveCustomMetric. + * @param request ArchiveCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public archiveCustomMetric(request: google.analytics.admin.v1beta.IArchiveCustomMetricRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomMetricCallback): void; + + /** + * Calls ArchiveCustomMetric. + * @param request ArchiveCustomMetricRequest message or plain object + * @returns Promise + */ + public archiveCustomMetric(request: google.analytics.admin.v1beta.IArchiveCustomMetricRequest): Promise; + + /** + * Calls GetCustomMetric. + * @param request GetCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public getCustomMetric(request: google.analytics.admin.v1beta.IGetCustomMetricRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomMetricCallback): void; + + /** + * Calls GetCustomMetric. + * @param request GetCustomMetricRequest message or plain object + * @returns Promise + */ + public getCustomMetric(request: google.analytics.admin.v1beta.IGetCustomMetricRequest): Promise; + + /** + * Calls GetDataRetentionSettings. + * @param request GetDataRetentionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + */ + public getDataRetentionSettings(request: google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetDataRetentionSettingsCallback): void; + + /** + * Calls GetDataRetentionSettings. + * @param request GetDataRetentionSettingsRequest message or plain object + * @returns Promise + */ + public getDataRetentionSettings(request: google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest): Promise; + + /** + * Calls UpdateDataRetentionSettings. + * @param request UpdateDataRetentionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + */ + public updateDataRetentionSettings(request: google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataRetentionSettingsCallback): void; + + /** + * Calls UpdateDataRetentionSettings. + * @param request UpdateDataRetentionSettingsRequest message or plain object + * @returns Promise + */ + public updateDataRetentionSettings(request: google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest): Promise; + + /** + * Calls CreateDataStream. + * @param request CreateDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public createDataStream(request: google.analytics.admin.v1beta.ICreateDataStreamRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.CreateDataStreamCallback): void; + + /** + * Calls CreateDataStream. + * @param request CreateDataStreamRequest message or plain object + * @returns Promise + */ + public createDataStream(request: google.analytics.admin.v1beta.ICreateDataStreamRequest): Promise; + + /** + * Calls DeleteDataStream. + * @param request DeleteDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDataStream(request: google.analytics.admin.v1beta.IDeleteDataStreamRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.DeleteDataStreamCallback): void; + + /** + * Calls DeleteDataStream. + * @param request DeleteDataStreamRequest message or plain object + * @returns Promise + */ + public deleteDataStream(request: google.analytics.admin.v1beta.IDeleteDataStreamRequest): Promise; + + /** + * Calls UpdateDataStream. + * @param request UpdateDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public updateDataStream(request: google.analytics.admin.v1beta.IUpdateDataStreamRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataStreamCallback): void; + + /** + * Calls UpdateDataStream. + * @param request UpdateDataStreamRequest message or plain object + * @returns Promise + */ + public updateDataStream(request: google.analytics.admin.v1beta.IUpdateDataStreamRequest): Promise; + + /** + * Calls ListDataStreams. + * @param request ListDataStreamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataStreamsResponse + */ + public listDataStreams(request: google.analytics.admin.v1beta.IListDataStreamsRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.ListDataStreamsCallback): void; + + /** + * Calls ListDataStreams. + * @param request ListDataStreamsRequest message or plain object + * @returns Promise + */ + public listDataStreams(request: google.analytics.admin.v1beta.IListDataStreamsRequest): Promise; + + /** + * Calls GetDataStream. + * @param request GetDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public getDataStream(request: google.analytics.admin.v1beta.IGetDataStreamRequest, callback: google.analytics.admin.v1beta.AnalyticsAdminService.GetDataStreamCallback): void; + + /** + * Calls GetDataStream. + * @param request GetDataStreamRequest message or plain object + * @returns Promise + */ + public getDataStream(request: google.analytics.admin.v1beta.IGetDataStreamRequest): Promise; + } + + namespace AnalyticsAdminService { + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getAccount}. + * @param error Error, if any + * @param [response] Account + */ + type GetAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Account) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccounts}. + * @param error Error, if any + * @param [response] ListAccountsResponse + */ + type ListAccountsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListAccountsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#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.analytics.admin.v1beta.AnalyticsAdminService#updateAccount}. + * @param error Error, if any + * @param [response] Account + */ + type UpdateAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Account) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#provisionAccountTicket}. + * @param error Error, if any + * @param [response] ProvisionAccountTicketResponse + */ + type ProvisionAccountTicketCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ProvisionAccountTicketResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccountSummaries}. + * @param error Error, if any + * @param [response] ListAccountSummariesResponse + */ + type ListAccountSummariesCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListAccountSummariesResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getProperty}. + * @param error Error, if any + * @param [response] Property + */ + type GetPropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listProperties}. + * @param error Error, if any + * @param [response] ListPropertiesResponse + */ + type ListPropertiesCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListPropertiesResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createProperty}. + * @param error Error, if any + * @param [response] Property + */ + type CreatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteProperty}. + * @param error Error, if any + * @param [response] Property + */ + type DeletePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateProperty}. + * @param error Error, if any + * @param [response] Property + */ + type UpdatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createFirebaseLink}. + * @param error Error, if any + * @param [response] FirebaseLink + */ + type CreateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.FirebaseLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteFirebaseLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteFirebaseLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listFirebaseLinks}. + * @param error Error, if any + * @param [response] ListFirebaseLinksResponse + */ + type ListFirebaseLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListFirebaseLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createGoogleAdsLink}. + * @param error Error, if any + * @param [response] GoogleAdsLink + */ + type CreateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.GoogleAdsLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateGoogleAdsLink}. + * @param error Error, if any + * @param [response] GoogleAdsLink + */ + type UpdateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.GoogleAdsLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteGoogleAdsLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteGoogleAdsLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listGoogleAdsLinks}. + * @param error Error, if any + * @param [response] ListGoogleAdsLinksResponse + */ + type ListGoogleAdsLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataSharingSettings}. + * @param error Error, if any + * @param [response] DataSharingSettings + */ + type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataSharingSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type GetMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * @param error Error, if any + * @param [response] ListMeasurementProtocolSecretsResponse + */ + type ListMeasurementProtocolSecretsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type CreateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type UpdateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#acknowledgeUserDataCollection}. + * @param error Error, if any + * @param [response] AcknowledgeUserDataCollectionResponse + */ + type AcknowledgeUserDataCollectionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#searchChangeHistoryEvents}. + * @param error Error, if any + * @param [response] SearchChangeHistoryEventsResponse + */ + type SearchChangeHistoryEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createConversionEvent}. + * @param error Error, if any + * @param [response] ConversionEvent + */ + type CreateConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ConversionEvent) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getConversionEvent}. + * @param error Error, if any + * @param [response] ConversionEvent + */ + type GetConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ConversionEvent) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteConversionEvent}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteConversionEventCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listConversionEvents}. + * @param error Error, if any + * @param [response] ListConversionEventsResponse + */ + type ListConversionEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListConversionEventsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type CreateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type UpdateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomDimensions}. + * @param error Error, if any + * @param [response] ListCustomDimensionsResponse + */ + type ListCustomDimensionsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListCustomDimensionsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomDimension}. + * @param error Error, if any + * @param [response] Empty + */ + type ArchiveCustomDimensionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type GetCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type CreateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type UpdateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomMetrics}. + * @param error Error, if any + * @param [response] ListCustomMetricsResponse + */ + type ListCustomMetricsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListCustomMetricsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomMetric}. + * @param error Error, if any + * @param [response] Empty + */ + type ArchiveCustomMetricCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type GetCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataRetentionSettings}. + * @param error Error, if any + * @param [response] DataRetentionSettings + */ + type GetDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataRetentionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataRetentionSettings}. + * @param error Error, if any + * @param [response] DataRetentionSettings + */ + type UpdateDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataRetentionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type CreateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteDataStream}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type UpdateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listDataStreams}. + * @param error Error, if any + * @param [response] ListDataStreamsResponse + */ + type ListDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListDataStreamsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type GetDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataStream) => void; + } + + /** 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.analytics.admin.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.analytics.admin.v1beta.IGetAccountRequest): google.analytics.admin.v1beta.GetAccountRequest; + + /** + * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.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.analytics.admin.v1beta.IGetAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountsRequest. */ + interface IListAccountsRequest { + + /** ListAccountsRequest pageSize */ + pageSize?: (number|null); + + /** ListAccountsRequest pageToken */ + pageToken?: (string|null); + + /** ListAccountsRequest showDeleted */ + showDeleted?: (boolean|null); + } + + /** Represents a ListAccountsRequest. */ + class ListAccountsRequest implements IListAccountsRequest { + + /** + * Constructs a new ListAccountsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListAccountsRequest); + + /** ListAccountsRequest pageSize. */ + public pageSize: number; + + /** ListAccountsRequest pageToken. */ + public pageToken: string; + + /** ListAccountsRequest showDeleted. */ + public showDeleted: boolean; + + /** + * Creates a new ListAccountsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAccountsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListAccountsRequest): google.analytics.admin.v1beta.ListAccountsRequest; + + /** + * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.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.analytics.admin.v1beta.IListAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.ListAccountsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountsResponse. */ + interface IListAccountsResponse { + + /** ListAccountsResponse accounts */ + accounts?: (google.analytics.admin.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.analytics.admin.v1beta.IListAccountsResponse); + + /** ListAccountsResponse accounts. */ + public accounts: google.analytics.admin.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.analytics.admin.v1beta.IListAccountsResponse): google.analytics.admin.v1beta.ListAccountsResponse; + + /** + * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.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.analytics.admin.v1beta.IListAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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.analytics.admin.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.analytics.admin.v1beta.IDeleteAccountRequest): google.analytics.admin.v1beta.DeleteAccountRequest; + + /** + * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.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.analytics.admin.v1beta.IDeleteAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateAccountRequest. */ + interface IUpdateAccountRequest { + + /** UpdateAccountRequest account */ + account?: (google.analytics.admin.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.analytics.admin.v1beta.IUpdateAccountRequest); + + /** UpdateAccountRequest account. */ + public account?: (google.analytics.admin.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.analytics.admin.v1beta.IUpdateAccountRequest): google.analytics.admin.v1beta.UpdateAccountRequest; + + /** + * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.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.analytics.admin.v1beta.IUpdateAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ProvisionAccountTicketRequest. */ + interface IProvisionAccountTicketRequest { + + /** ProvisionAccountTicketRequest account */ + account?: (google.analytics.admin.v1beta.IAccount|null); + + /** ProvisionAccountTicketRequest redirectUri */ + redirectUri?: (string|null); + } + + /** Represents a ProvisionAccountTicketRequest. */ + class ProvisionAccountTicketRequest implements IProvisionAccountTicketRequest { + + /** + * Constructs a new ProvisionAccountTicketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IProvisionAccountTicketRequest); + + /** ProvisionAccountTicketRequest account. */ + public account?: (google.analytics.admin.v1beta.IAccount|null); + + /** ProvisionAccountTicketRequest redirectUri. */ + public redirectUri: string; + + /** + * Creates a new ProvisionAccountTicketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProvisionAccountTicketRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IProvisionAccountTicketRequest): google.analytics.admin.v1beta.ProvisionAccountTicketRequest; + + /** + * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketRequest.verify|verify} messages. + * @param message ProvisionAccountTicketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketRequest.verify|verify} messages. + * @param message ProvisionAccountTicketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ProvisionAccountTicketRequest; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ProvisionAccountTicketRequest; + + /** + * Verifies a ProvisionAccountTicketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProvisionAccountTicketRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ProvisionAccountTicketRequest; + + /** + * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. + * @param message ProvisionAccountTicketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ProvisionAccountTicketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProvisionAccountTicketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ProvisionAccountTicketResponse. */ + interface IProvisionAccountTicketResponse { + + /** ProvisionAccountTicketResponse accountTicketId */ + accountTicketId?: (string|null); + } + + /** Represents a ProvisionAccountTicketResponse. */ + class ProvisionAccountTicketResponse implements IProvisionAccountTicketResponse { + + /** + * Constructs a new ProvisionAccountTicketResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IProvisionAccountTicketResponse); + + /** ProvisionAccountTicketResponse accountTicketId. */ + public accountTicketId: string; + + /** + * Creates a new ProvisionAccountTicketResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProvisionAccountTicketResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IProvisionAccountTicketResponse): google.analytics.admin.v1beta.ProvisionAccountTicketResponse; + + /** + * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketResponse.verify|verify} messages. + * @param message ProvisionAccountTicketResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketResponse.verify|verify} messages. + * @param message ProvisionAccountTicketResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ProvisionAccountTicketResponse; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ProvisionAccountTicketResponse; + + /** + * Verifies a ProvisionAccountTicketResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProvisionAccountTicketResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ProvisionAccountTicketResponse; + + /** + * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. + * @param message ProvisionAccountTicketResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ProvisionAccountTicketResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProvisionAccountTicketResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetPropertyRequest. */ + interface IGetPropertyRequest { + + /** GetPropertyRequest name */ + name?: (string|null); + } + + /** Represents a GetPropertyRequest. */ + class GetPropertyRequest implements IGetPropertyRequest { + + /** + * Constructs a new GetPropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetPropertyRequest); + + /** GetPropertyRequest name. */ + public name: string; + + /** + * Creates a new GetPropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetPropertyRequest): google.analytics.admin.v1beta.GetPropertyRequest; + + /** + * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetPropertyRequest.verify|verify} messages. + * @param message GetPropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetPropertyRequest.verify|verify} messages. + * @param message GetPropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetPropertyRequest; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetPropertyRequest; + + /** + * Verifies a GetPropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetPropertyRequest; + + /** + * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. + * @param message GetPropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetPropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListPropertiesRequest. */ + interface IListPropertiesRequest { + + /** ListPropertiesRequest filter */ + filter?: (string|null); + + /** ListPropertiesRequest pageSize */ + pageSize?: (number|null); + + /** ListPropertiesRequest pageToken */ + pageToken?: (string|null); + + /** ListPropertiesRequest showDeleted */ + showDeleted?: (boolean|null); + } + + /** Represents a ListPropertiesRequest. */ + class ListPropertiesRequest implements IListPropertiesRequest { + + /** + * Constructs a new ListPropertiesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListPropertiesRequest); + + /** ListPropertiesRequest filter. */ + public filter: string; + + /** ListPropertiesRequest pageSize. */ + public pageSize: number; + + /** ListPropertiesRequest pageToken. */ + public pageToken: string; + + /** ListPropertiesRequest showDeleted. */ + public showDeleted: boolean; + + /** + * Creates a new ListPropertiesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPropertiesRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListPropertiesRequest): google.analytics.admin.v1beta.ListPropertiesRequest; + + /** + * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesRequest.verify|verify} messages. + * @param message ListPropertiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesRequest.verify|verify} messages. + * @param message ListPropertiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListPropertiesRequest; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListPropertiesRequest; + + /** + * Verifies a ListPropertiesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPropertiesRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListPropertiesRequest; + + /** + * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. + * @param message ListPropertiesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListPropertiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPropertiesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListPropertiesResponse. */ + interface IListPropertiesResponse { + + /** ListPropertiesResponse properties */ + properties?: (google.analytics.admin.v1beta.IProperty[]|null); + + /** ListPropertiesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPropertiesResponse. */ + class ListPropertiesResponse implements IListPropertiesResponse { + + /** + * Constructs a new ListPropertiesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListPropertiesResponse); + + /** ListPropertiesResponse properties. */ + public properties: google.analytics.admin.v1beta.IProperty[]; + + /** ListPropertiesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListPropertiesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPropertiesResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListPropertiesResponse): google.analytics.admin.v1beta.ListPropertiesResponse; + + /** + * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesResponse.verify|verify} messages. + * @param message ListPropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesResponse.verify|verify} messages. + * @param message ListPropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListPropertiesResponse; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListPropertiesResponse; + + /** + * Verifies a ListPropertiesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPropertiesResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListPropertiesResponse; + + /** + * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. + * @param message ListPropertiesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListPropertiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPropertiesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdatePropertyRequest. */ + interface IUpdatePropertyRequest { + + /** UpdatePropertyRequest property */ + property?: (google.analytics.admin.v1beta.IProperty|null); + + /** UpdatePropertyRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdatePropertyRequest. */ + class UpdatePropertyRequest implements IUpdatePropertyRequest { + + /** + * Constructs a new UpdatePropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IUpdatePropertyRequest); + + /** UpdatePropertyRequest property. */ + public property?: (google.analytics.admin.v1beta.IProperty|null); + + /** UpdatePropertyRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdatePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdatePropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IUpdatePropertyRequest): google.analytics.admin.v1beta.UpdatePropertyRequest; + + /** + * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdatePropertyRequest.verify|verify} messages. + * @param message UpdatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdatePropertyRequest.verify|verify} messages. + * @param message UpdatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdatePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.UpdatePropertyRequest; + + /** + * Decodes an UpdatePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.UpdatePropertyRequest; + + /** + * Verifies an UpdatePropertyRequest message. + * @param message Plain 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 UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdatePropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.UpdatePropertyRequest; + + /** + * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. + * @param message UpdatePropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.UpdatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdatePropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreatePropertyRequest. */ + interface ICreatePropertyRequest { + + /** CreatePropertyRequest property */ + property?: (google.analytics.admin.v1beta.IProperty|null); + } + + /** Represents a CreatePropertyRequest. */ + class CreatePropertyRequest implements ICreatePropertyRequest { + + /** + * Constructs a new CreatePropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreatePropertyRequest); + + /** CreatePropertyRequest property. */ + public property?: (google.analytics.admin.v1beta.IProperty|null); + + /** + * Creates a new CreatePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreatePropertyRequest): google.analytics.admin.v1beta.CreatePropertyRequest; + + /** + * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreatePropertyRequest.verify|verify} messages. + * @param message CreatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreatePropertyRequest.verify|verify} messages. + * @param message CreatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreatePropertyRequest; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreatePropertyRequest; + + /** + * Verifies a CreatePropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreatePropertyRequest; + + /** + * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. + * @param message CreatePropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreatePropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeletePropertyRequest. */ + interface IDeletePropertyRequest { + + /** DeletePropertyRequest name */ + name?: (string|null); + } + + /** Represents a DeletePropertyRequest. */ + class DeletePropertyRequest implements IDeletePropertyRequest { + + /** + * Constructs a new DeletePropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDeletePropertyRequest); + + /** DeletePropertyRequest name. */ + public name: string; + + /** + * Creates a new DeletePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDeletePropertyRequest): google.analytics.admin.v1beta.DeletePropertyRequest; + + /** + * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeletePropertyRequest.verify|verify} messages. + * @param message DeletePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeletePropertyRequest.verify|verify} messages. + * @param message DeletePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeletePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DeletePropertyRequest; + + /** + * Decodes a DeletePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DeletePropertyRequest; + + /** + * Verifies a DeletePropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DeletePropertyRequest; + + /** + * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. + * @param message DeletePropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DeletePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeletePropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateFirebaseLinkRequest. */ + interface ICreateFirebaseLinkRequest { + + /** CreateFirebaseLinkRequest parent */ + parent?: (string|null); + + /** CreateFirebaseLinkRequest firebaseLink */ + firebaseLink?: (google.analytics.admin.v1beta.IFirebaseLink|null); + } + + /** Represents a CreateFirebaseLinkRequest. */ + class CreateFirebaseLinkRequest implements ICreateFirebaseLinkRequest { + + /** + * Constructs a new CreateFirebaseLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreateFirebaseLinkRequest); + + /** CreateFirebaseLinkRequest parent. */ + public parent: string; + + /** CreateFirebaseLinkRequest firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1beta.IFirebaseLink|null); + + /** + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFirebaseLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreateFirebaseLinkRequest): google.analytics.admin.v1beta.CreateFirebaseLinkRequest; + + /** + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateFirebaseLinkRequest.verify|verify} messages. + * @param message CreateFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateFirebaseLinkRequest.verify|verify} messages. + * @param message CreateFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreateFirebaseLinkRequest; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreateFirebaseLinkRequest; + + /** + * Verifies a CreateFirebaseLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFirebaseLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreateFirebaseLinkRequest; + + /** + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * @param message CreateFirebaseLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreateFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFirebaseLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteFirebaseLinkRequest. */ + interface IDeleteFirebaseLinkRequest { + + /** DeleteFirebaseLinkRequest name */ + name?: (string|null); + } + + /** Represents a DeleteFirebaseLinkRequest. */ + class DeleteFirebaseLinkRequest implements IDeleteFirebaseLinkRequest { + + /** + * Constructs a new DeleteFirebaseLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest); + + /** DeleteFirebaseLinkRequest name. */ + public name: string; + + /** + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFirebaseLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest): google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; + + /** + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.verify|verify} messages. + * @param message DeleteFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.verify|verify} messages. + * @param message DeleteFirebaseLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; + + /** + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; + + /** + * Verifies a DeleteFirebaseLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFirebaseLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; + + /** + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * @param message DeleteFirebaseLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFirebaseLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListFirebaseLinksRequest. */ + interface IListFirebaseLinksRequest { + + /** ListFirebaseLinksRequest parent */ + parent?: (string|null); + + /** ListFirebaseLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListFirebaseLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListFirebaseLinksRequest. */ + class ListFirebaseLinksRequest implements IListFirebaseLinksRequest { + + /** + * Constructs a new ListFirebaseLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListFirebaseLinksRequest); + + /** ListFirebaseLinksRequest parent. */ + public parent: string; + + /** ListFirebaseLinksRequest pageSize. */ + public pageSize: number; + + /** ListFirebaseLinksRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFirebaseLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListFirebaseLinksRequest): google.analytics.admin.v1beta.ListFirebaseLinksRequest; + + /** + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksRequest.verify|verify} messages. + * @param message ListFirebaseLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksRequest.verify|verify} messages. + * @param message ListFirebaseLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListFirebaseLinksRequest; + + /** + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListFirebaseLinksRequest; + + /** + * Verifies a ListFirebaseLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFirebaseLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListFirebaseLinksRequest; + + /** + * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * @param message ListFirebaseLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListFirebaseLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFirebaseLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListFirebaseLinksResponse. */ + interface IListFirebaseLinksResponse { + + /** ListFirebaseLinksResponse firebaseLinks */ + firebaseLinks?: (google.analytics.admin.v1beta.IFirebaseLink[]|null); + + /** ListFirebaseLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListFirebaseLinksResponse. */ + class ListFirebaseLinksResponse implements IListFirebaseLinksResponse { + + /** + * Constructs a new ListFirebaseLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListFirebaseLinksResponse); + + /** ListFirebaseLinksResponse firebaseLinks. */ + public firebaseLinks: google.analytics.admin.v1beta.IFirebaseLink[]; + + /** ListFirebaseLinksResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFirebaseLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListFirebaseLinksResponse): google.analytics.admin.v1beta.ListFirebaseLinksResponse; + + /** + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksResponse.verify|verify} messages. + * @param message ListFirebaseLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksResponse.verify|verify} messages. + * @param message ListFirebaseLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListFirebaseLinksResponse; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListFirebaseLinksResponse; + + /** + * Verifies a ListFirebaseLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFirebaseLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListFirebaseLinksResponse; + + /** + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * @param message ListFirebaseLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListFirebaseLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFirebaseLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateGoogleAdsLinkRequest. */ + interface ICreateGoogleAdsLinkRequest { + + /** CreateGoogleAdsLinkRequest parent */ + parent?: (string|null); + + /** CreateGoogleAdsLinkRequest googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1beta.IGoogleAdsLink|null); + } + + /** Represents a CreateGoogleAdsLinkRequest. */ + class CreateGoogleAdsLinkRequest implements ICreateGoogleAdsLinkRequest { + + /** + * Constructs a new CreateGoogleAdsLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest); + + /** CreateGoogleAdsLinkRequest parent. */ + public parent: string; + + /** CreateGoogleAdsLinkRequest googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1beta.IGoogleAdsLink|null); + + /** + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateGoogleAdsLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest): google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @param message CreateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @param message CreateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; + + /** + * Verifies a CreateGoogleAdsLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateGoogleAdsLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; + + /** + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message CreateGoogleAdsLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateGoogleAdsLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateGoogleAdsLinkRequest. */ + interface IUpdateGoogleAdsLinkRequest { + + /** UpdateGoogleAdsLinkRequest googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1beta.IGoogleAdsLink|null); + + /** UpdateGoogleAdsLinkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateGoogleAdsLinkRequest. */ + class UpdateGoogleAdsLinkRequest implements IUpdateGoogleAdsLinkRequest { + + /** + * Constructs a new UpdateGoogleAdsLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest); + + /** UpdateGoogleAdsLinkRequest googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1beta.IGoogleAdsLink|null); + + /** UpdateGoogleAdsLinkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateGoogleAdsLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest): google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; + + /** + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @param message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @param message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; + + /** + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; + + /** + * Verifies an UpdateGoogleAdsLinkRequest message. + * @param message Plain 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 UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateGoogleAdsLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; + + /** + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message UpdateGoogleAdsLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateGoogleAdsLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteGoogleAdsLinkRequest. */ + interface IDeleteGoogleAdsLinkRequest { + + /** DeleteGoogleAdsLinkRequest name */ + name?: (string|null); + } + + /** Represents a DeleteGoogleAdsLinkRequest. */ + class DeleteGoogleAdsLinkRequest implements IDeleteGoogleAdsLinkRequest { + + /** + * Constructs a new DeleteGoogleAdsLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest); + + /** DeleteGoogleAdsLinkRequest name. */ + public name: string; + + /** + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteGoogleAdsLinkRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest): google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; + + /** + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @param message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @param message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; + + /** + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; + + /** + * Verifies a DeleteGoogleAdsLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteGoogleAdsLinkRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; + + /** + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message DeleteGoogleAdsLinkRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteGoogleAdsLinkRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListGoogleAdsLinksRequest. */ + interface IListGoogleAdsLinksRequest { + + /** ListGoogleAdsLinksRequest parent */ + parent?: (string|null); + + /** ListGoogleAdsLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListGoogleAdsLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListGoogleAdsLinksRequest. */ + class ListGoogleAdsLinksRequest implements IListGoogleAdsLinksRequest { + + /** + * Constructs a new ListGoogleAdsLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListGoogleAdsLinksRequest); + + /** ListGoogleAdsLinksRequest parent. */ + public parent: string; + + /** ListGoogleAdsLinksRequest pageSize. */ + public pageSize: number; + + /** ListGoogleAdsLinksRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListGoogleAdsLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListGoogleAdsLinksRequest): google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; + + /** + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.verify|verify} messages. + * @param message ListGoogleAdsLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.verify|verify} messages. + * @param message ListGoogleAdsLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; + + /** + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; + + /** + * Verifies a ListGoogleAdsLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListGoogleAdsLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; + + /** + * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * @param message ListGoogleAdsLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListGoogleAdsLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListGoogleAdsLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListGoogleAdsLinksResponse. */ + interface IListGoogleAdsLinksResponse { + + /** ListGoogleAdsLinksResponse googleAdsLinks */ + googleAdsLinks?: (google.analytics.admin.v1beta.IGoogleAdsLink[]|null); + + /** ListGoogleAdsLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListGoogleAdsLinksResponse. */ + class ListGoogleAdsLinksResponse implements IListGoogleAdsLinksResponse { + + /** + * Constructs a new ListGoogleAdsLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListGoogleAdsLinksResponse); + + /** ListGoogleAdsLinksResponse googleAdsLinks. */ + public googleAdsLinks: google.analytics.admin.v1beta.IGoogleAdsLink[]; + + /** ListGoogleAdsLinksResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListGoogleAdsLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListGoogleAdsLinksResponse): google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; + + /** + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.verify|verify} messages. + * @param message ListGoogleAdsLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.verify|verify} messages. + * @param message ListGoogleAdsLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; + + /** + * Verifies a ListGoogleAdsLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListGoogleAdsLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; + + /** + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * @param message ListGoogleAdsLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListGoogleAdsLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListGoogleAdsLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetDataSharingSettingsRequest. */ + interface IGetDataSharingSettingsRequest { + + /** GetDataSharingSettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetDataSharingSettingsRequest. */ + class GetDataSharingSettingsRequest implements IGetDataSharingSettingsRequest { + + /** + * Constructs a new GetDataSharingSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetDataSharingSettingsRequest); + + /** GetDataSharingSettingsRequest name. */ + public name: string; + + /** + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataSharingSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetDataSharingSettingsRequest): google.analytics.admin.v1beta.GetDataSharingSettingsRequest; + + /** + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetDataSharingSettingsRequest.verify|verify} messages. + * @param message GetDataSharingSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetDataSharingSettingsRequest.verify|verify} messages. + * @param message GetDataSharingSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetDataSharingSettingsRequest; + + /** + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetDataSharingSettingsRequest; + + /** + * Verifies a GetDataSharingSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDataSharingSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetDataSharingSettingsRequest; + + /** + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * @param message GetDataSharingSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetDataSharingSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDataSharingSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountSummariesRequest. */ + interface IListAccountSummariesRequest { + + /** ListAccountSummariesRequest pageSize */ + pageSize?: (number|null); + + /** ListAccountSummariesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListAccountSummariesRequest. */ + class ListAccountSummariesRequest implements IListAccountSummariesRequest { + + /** + * Constructs a new ListAccountSummariesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListAccountSummariesRequest); + + /** ListAccountSummariesRequest pageSize. */ + public pageSize: number; + + /** ListAccountSummariesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListAccountSummariesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAccountSummariesRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListAccountSummariesRequest): google.analytics.admin.v1beta.ListAccountSummariesRequest; + + /** + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesRequest.verify|verify} messages. + * @param message ListAccountSummariesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesRequest.verify|verify} messages. + * @param message ListAccountSummariesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAccountSummariesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListAccountSummariesRequest; + + /** + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAccountSummariesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListAccountSummariesRequest; + + /** + * Verifies a ListAccountSummariesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAccountSummariesRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListAccountSummariesRequest; + + /** + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. + * @param message ListAccountSummariesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListAccountSummariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountSummariesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountSummariesResponse. */ + interface IListAccountSummariesResponse { + + /** ListAccountSummariesResponse accountSummaries */ + accountSummaries?: (google.analytics.admin.v1beta.IAccountSummary[]|null); + + /** ListAccountSummariesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListAccountSummariesResponse. */ + class ListAccountSummariesResponse implements IListAccountSummariesResponse { + + /** + * Constructs a new ListAccountSummariesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListAccountSummariesResponse); + + /** ListAccountSummariesResponse accountSummaries. */ + public accountSummaries: google.analytics.admin.v1beta.IAccountSummary[]; + + /** ListAccountSummariesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListAccountSummariesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAccountSummariesResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListAccountSummariesResponse): google.analytics.admin.v1beta.ListAccountSummariesResponse; + + /** + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesResponse.verify|verify} messages. + * @param message ListAccountSummariesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesResponse.verify|verify} messages. + * @param message ListAccountSummariesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListAccountSummariesResponse; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListAccountSummariesResponse; + + /** + * Verifies a ListAccountSummariesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAccountSummariesResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListAccountSummariesResponse; + + /** + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. + * @param message ListAccountSummariesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListAccountSummariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountSummariesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AcknowledgeUserDataCollectionRequest. */ + interface IAcknowledgeUserDataCollectionRequest { + + /** AcknowledgeUserDataCollectionRequest property */ + property?: (string|null); + + /** AcknowledgeUserDataCollectionRequest acknowledgement */ + acknowledgement?: (string|null); + } + + /** Represents an AcknowledgeUserDataCollectionRequest. */ + class AcknowledgeUserDataCollectionRequest implements IAcknowledgeUserDataCollectionRequest { + + /** + * Constructs a new AcknowledgeUserDataCollectionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest); + + /** AcknowledgeUserDataCollectionRequest property. */ + public property: string; + + /** AcknowledgeUserDataCollectionRequest acknowledgement. */ + public acknowledgement: string; + + /** + * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AcknowledgeUserDataCollectionRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest; + + /** + * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AcknowledgeUserDataCollectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest; + + /** + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AcknowledgeUserDataCollectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest; + + /** + * Verifies an AcknowledgeUserDataCollectionRequest message. + * @param message Plain 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 AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcknowledgeUserDataCollectionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest; + + /** + * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. + * @param message AcknowledgeUserDataCollectionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcknowledgeUserDataCollectionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AcknowledgeUserDataCollectionResponse. */ + interface IAcknowledgeUserDataCollectionResponse { + } + + /** Represents an AcknowledgeUserDataCollectionResponse. */ + class AcknowledgeUserDataCollectionResponse implements IAcknowledgeUserDataCollectionResponse { + + /** + * Constructs a new AcknowledgeUserDataCollectionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse); + + /** + * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AcknowledgeUserDataCollectionResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse; + + /** + * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AcknowledgeUserDataCollectionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse; + + /** + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AcknowledgeUserDataCollectionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse; + + /** + * Verifies an AcknowledgeUserDataCollectionResponse message. + * @param message Plain 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 AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcknowledgeUserDataCollectionResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse; + + /** + * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. + * @param message AcknowledgeUserDataCollectionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcknowledgeUserDataCollectionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SearchChangeHistoryEventsRequest. */ + interface ISearchChangeHistoryEventsRequest { + + /** SearchChangeHistoryEventsRequest account */ + account?: (string|null); + + /** SearchChangeHistoryEventsRequest property */ + property?: (string|null); + + /** SearchChangeHistoryEventsRequest resourceType */ + resourceType?: (google.analytics.admin.v1beta.ChangeHistoryResourceType[]|null); + + /** SearchChangeHistoryEventsRequest action */ + action?: (google.analytics.admin.v1beta.ActionType[]|null); + + /** SearchChangeHistoryEventsRequest actorEmail */ + actorEmail?: (string[]|null); + + /** SearchChangeHistoryEventsRequest earliestChangeTime */ + earliestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest latestChangeTime */ + latestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest pageSize */ + pageSize?: (number|null); + + /** SearchChangeHistoryEventsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a SearchChangeHistoryEventsRequest. */ + class SearchChangeHistoryEventsRequest implements ISearchChangeHistoryEventsRequest { + + /** + * Constructs a new SearchChangeHistoryEventsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest); + + /** SearchChangeHistoryEventsRequest account. */ + public account: string; + + /** SearchChangeHistoryEventsRequest property. */ + public property: string; + + /** SearchChangeHistoryEventsRequest resourceType. */ + public resourceType: google.analytics.admin.v1beta.ChangeHistoryResourceType[]; + + /** SearchChangeHistoryEventsRequest action. */ + public action: google.analytics.admin.v1beta.ActionType[]; + + /** SearchChangeHistoryEventsRequest actorEmail. */ + public actorEmail: string[]; + + /** SearchChangeHistoryEventsRequest earliestChangeTime. */ + public earliestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest latestChangeTime. */ + public latestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest pageSize. */ + public pageSize: number; + + /** SearchChangeHistoryEventsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchChangeHistoryEventsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest): google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest; + + /** + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @param message SearchChangeHistoryEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @param message SearchChangeHistoryEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchChangeHistoryEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest; + + /** + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchChangeHistoryEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest; + + /** + * Verifies a SearchChangeHistoryEventsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchChangeHistoryEventsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest; + + /** + * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. + * @param message SearchChangeHistoryEventsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchChangeHistoryEventsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SearchChangeHistoryEventsResponse. */ + interface ISearchChangeHistoryEventsResponse { + + /** SearchChangeHistoryEventsResponse changeHistoryEvents */ + changeHistoryEvents?: (google.analytics.admin.v1beta.IChangeHistoryEvent[]|null); + + /** SearchChangeHistoryEventsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchChangeHistoryEventsResponse. */ + class SearchChangeHistoryEventsResponse implements ISearchChangeHistoryEventsResponse { + + /** + * Constructs a new SearchChangeHistoryEventsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse); + + /** SearchChangeHistoryEventsResponse changeHistoryEvents. */ + public changeHistoryEvents: google.analytics.admin.v1beta.IChangeHistoryEvent[]; + + /** SearchChangeHistoryEventsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchChangeHistoryEventsResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse): google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; + + /** + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @param message SearchChangeHistoryEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @param message SearchChangeHistoryEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchChangeHistoryEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; + + /** + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchChangeHistoryEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; + + /** + * Verifies a SearchChangeHistoryEventsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchChangeHistoryEventsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; + + /** + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * @param message SearchChangeHistoryEventsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchChangeHistoryEventsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetMeasurementProtocolSecretRequest. */ + interface IGetMeasurementProtocolSecretRequest { + + /** GetMeasurementProtocolSecretRequest name */ + name?: (string|null); + } + + /** Represents a GetMeasurementProtocolSecretRequest. */ + class GetMeasurementProtocolSecretRequest implements IGetMeasurementProtocolSecretRequest { + + /** + * Constructs a new GetMeasurementProtocolSecretRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest); + + /** GetMeasurementProtocolSecretRequest name. */ + public name: string; + + /** + * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMeasurementProtocolSecretRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest): google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; + + /** + * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; + + /** + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; + + /** + * Verifies a GetMeasurementProtocolSecretRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMeasurementProtocolSecretRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; + + /** + * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message GetMeasurementProtocolSecretRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetMeasurementProtocolSecretRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateMeasurementProtocolSecretRequest. */ + interface ICreateMeasurementProtocolSecretRequest { + + /** CreateMeasurementProtocolSecretRequest parent */ + parent?: (string|null); + + /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1beta.IMeasurementProtocolSecret|null); + } + + /** Represents a CreateMeasurementProtocolSecretRequest. */ + class CreateMeasurementProtocolSecretRequest implements ICreateMeasurementProtocolSecretRequest { + + /** + * Constructs a new CreateMeasurementProtocolSecretRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest); + + /** CreateMeasurementProtocolSecretRequest parent. */ + public parent: string; + + /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1beta.IMeasurementProtocolSecret|null); + + /** + * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateMeasurementProtocolSecretRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest): google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; + + /** + * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; + + /** + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; + + /** + * Verifies a CreateMeasurementProtocolSecretRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateMeasurementProtocolSecretRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; + + /** + * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message CreateMeasurementProtocolSecretRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateMeasurementProtocolSecretRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteMeasurementProtocolSecretRequest. */ + interface IDeleteMeasurementProtocolSecretRequest { + + /** DeleteMeasurementProtocolSecretRequest name */ + name?: (string|null); + } + + /** Represents a DeleteMeasurementProtocolSecretRequest. */ + class DeleteMeasurementProtocolSecretRequest implements IDeleteMeasurementProtocolSecretRequest { + + /** + * Constructs a new DeleteMeasurementProtocolSecretRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest); + + /** DeleteMeasurementProtocolSecretRequest name. */ + public name: string; + + /** + * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteMeasurementProtocolSecretRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest): google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; + + /** + * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; + + /** + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; + + /** + * Verifies a DeleteMeasurementProtocolSecretRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteMeasurementProtocolSecretRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; + + /** + * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message DeleteMeasurementProtocolSecretRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteMeasurementProtocolSecretRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateMeasurementProtocolSecretRequest. */ + interface IUpdateMeasurementProtocolSecretRequest { + + /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1beta.IMeasurementProtocolSecret|null); + + /** UpdateMeasurementProtocolSecretRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateMeasurementProtocolSecretRequest. */ + class UpdateMeasurementProtocolSecretRequest implements IUpdateMeasurementProtocolSecretRequest { + + /** + * Constructs a new UpdateMeasurementProtocolSecretRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest); + + /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1beta.IMeasurementProtocolSecret|null); + + /** UpdateMeasurementProtocolSecretRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateMeasurementProtocolSecretRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest): google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; + + /** + * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; + + /** + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; + + /** + * Verifies an UpdateMeasurementProtocolSecretRequest message. + * @param message Plain 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 UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateMeasurementProtocolSecretRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; + + /** + * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message UpdateMeasurementProtocolSecretRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateMeasurementProtocolSecretRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListMeasurementProtocolSecretsRequest. */ + interface IListMeasurementProtocolSecretsRequest { + + /** ListMeasurementProtocolSecretsRequest parent */ + parent?: (string|null); + + /** ListMeasurementProtocolSecretsRequest pageSize */ + pageSize?: (number|null); + + /** ListMeasurementProtocolSecretsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListMeasurementProtocolSecretsRequest. */ + class ListMeasurementProtocolSecretsRequest implements IListMeasurementProtocolSecretsRequest { + + /** + * Constructs a new ListMeasurementProtocolSecretsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest); + + /** ListMeasurementProtocolSecretsRequest parent. */ + public parent: string; + + /** ListMeasurementProtocolSecretsRequest pageSize. */ + public pageSize: number; + + /** ListMeasurementProtocolSecretsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMeasurementProtocolSecretsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; + + /** + * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMeasurementProtocolSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; + + /** + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMeasurementProtocolSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; + + /** + * Verifies a ListMeasurementProtocolSecretsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMeasurementProtocolSecretsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; + + /** + * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. + * @param message ListMeasurementProtocolSecretsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListMeasurementProtocolSecretsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListMeasurementProtocolSecretsResponse. */ + interface IListMeasurementProtocolSecretsResponse { + + /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets */ + measurementProtocolSecrets?: (google.analytics.admin.v1beta.IMeasurementProtocolSecret[]|null); + + /** ListMeasurementProtocolSecretsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListMeasurementProtocolSecretsResponse. */ + class ListMeasurementProtocolSecretsResponse implements IListMeasurementProtocolSecretsResponse { + + /** + * Constructs a new ListMeasurementProtocolSecretsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse); + + /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. */ + public measurementProtocolSecrets: google.analytics.admin.v1beta.IMeasurementProtocolSecret[]; + + /** ListMeasurementProtocolSecretsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMeasurementProtocolSecretsResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; + + /** + * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMeasurementProtocolSecretsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; + + /** + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMeasurementProtocolSecretsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; + + /** + * Verifies a ListMeasurementProtocolSecretsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMeasurementProtocolSecretsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; + + /** + * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. + * @param message ListMeasurementProtocolSecretsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListMeasurementProtocolSecretsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateConversionEventRequest. */ + interface ICreateConversionEventRequest { + + /** CreateConversionEventRequest conversionEvent */ + conversionEvent?: (google.analytics.admin.v1beta.IConversionEvent|null); + + /** CreateConversionEventRequest parent */ + parent?: (string|null); + } + + /** Represents a CreateConversionEventRequest. */ + class CreateConversionEventRequest implements ICreateConversionEventRequest { + + /** + * Constructs a new CreateConversionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreateConversionEventRequest); + + /** CreateConversionEventRequest conversionEvent. */ + public conversionEvent?: (google.analytics.admin.v1beta.IConversionEvent|null); + + /** CreateConversionEventRequest parent. */ + public parent: string; + + /** + * Creates a new CreateConversionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateConversionEventRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreateConversionEventRequest): google.analytics.admin.v1beta.CreateConversionEventRequest; + + /** + * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateConversionEventRequest.verify|verify} messages. + * @param message CreateConversionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateConversionEventRequest.verify|verify} messages. + * @param message CreateConversionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateConversionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreateConversionEventRequest; + + /** + * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreateConversionEventRequest; + + /** + * Verifies a CreateConversionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateConversionEventRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreateConversionEventRequest; + + /** + * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. + * @param message CreateConversionEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreateConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateConversionEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetConversionEventRequest. */ + interface IGetConversionEventRequest { + + /** GetConversionEventRequest name */ + name?: (string|null); + } + + /** Represents a GetConversionEventRequest. */ + class GetConversionEventRequest implements IGetConversionEventRequest { + + /** + * Constructs a new GetConversionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetConversionEventRequest); + + /** GetConversionEventRequest name. */ + public name: string; + + /** + * Creates a new GetConversionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetConversionEventRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetConversionEventRequest): google.analytics.admin.v1beta.GetConversionEventRequest; + + /** + * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetConversionEventRequest.verify|verify} messages. + * @param message GetConversionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetConversionEventRequest.verify|verify} messages. + * @param message GetConversionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetConversionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetConversionEventRequest; + + /** + * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetConversionEventRequest; + + /** + * Verifies a GetConversionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetConversionEventRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetConversionEventRequest; + + /** + * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. + * @param message GetConversionEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetConversionEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteConversionEventRequest. */ + interface IDeleteConversionEventRequest { + + /** DeleteConversionEventRequest name */ + name?: (string|null); + } + + /** Represents a DeleteConversionEventRequest. */ + class DeleteConversionEventRequest implements IDeleteConversionEventRequest { + + /** + * Constructs a new DeleteConversionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDeleteConversionEventRequest); + + /** DeleteConversionEventRequest name. */ + public name: string; + + /** + * Creates a new DeleteConversionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteConversionEventRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDeleteConversionEventRequest): google.analytics.admin.v1beta.DeleteConversionEventRequest; + + /** + * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteConversionEventRequest.verify|verify} messages. + * @param message DeleteConversionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteConversionEventRequest.verify|verify} messages. + * @param message DeleteConversionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DeleteConversionEventRequest; + + /** + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DeleteConversionEventRequest; + + /** + * Verifies a DeleteConversionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteConversionEventRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DeleteConversionEventRequest; + + /** + * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. + * @param message DeleteConversionEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DeleteConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteConversionEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListConversionEventsRequest. */ + interface IListConversionEventsRequest { + + /** ListConversionEventsRequest parent */ + parent?: (string|null); + + /** ListConversionEventsRequest pageSize */ + pageSize?: (number|null); + + /** ListConversionEventsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListConversionEventsRequest. */ + class ListConversionEventsRequest implements IListConversionEventsRequest { + + /** + * Constructs a new ListConversionEventsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListConversionEventsRequest); + + /** ListConversionEventsRequest parent. */ + public parent: string; + + /** ListConversionEventsRequest pageSize. */ + public pageSize: number; + + /** ListConversionEventsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListConversionEventsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListConversionEventsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListConversionEventsRequest): google.analytics.admin.v1beta.ListConversionEventsRequest; + + /** + * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsRequest.verify|verify} messages. + * @param message ListConversionEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsRequest.verify|verify} messages. + * @param message ListConversionEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListConversionEventsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListConversionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListConversionEventsRequest; + + /** + * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListConversionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListConversionEventsRequest; + + /** + * Verifies a ListConversionEventsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListConversionEventsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListConversionEventsRequest; + + /** + * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. + * @param message ListConversionEventsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListConversionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListConversionEventsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListConversionEventsResponse. */ + interface IListConversionEventsResponse { + + /** ListConversionEventsResponse conversionEvents */ + conversionEvents?: (google.analytics.admin.v1beta.IConversionEvent[]|null); + + /** ListConversionEventsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListConversionEventsResponse. */ + class ListConversionEventsResponse implements IListConversionEventsResponse { + + /** + * Constructs a new ListConversionEventsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListConversionEventsResponse); + + /** ListConversionEventsResponse conversionEvents. */ + public conversionEvents: google.analytics.admin.v1beta.IConversionEvent[]; + + /** ListConversionEventsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListConversionEventsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListConversionEventsResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListConversionEventsResponse): google.analytics.admin.v1beta.ListConversionEventsResponse; + + /** + * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsResponse.verify|verify} messages. + * @param message ListConversionEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsResponse.verify|verify} messages. + * @param message ListConversionEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListConversionEventsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListConversionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListConversionEventsResponse; + + /** + * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListConversionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListConversionEventsResponse; + + /** + * Verifies a ListConversionEventsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListConversionEventsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListConversionEventsResponse; + + /** + * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. + * @param message ListConversionEventsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListConversionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListConversionEventsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateCustomDimensionRequest. */ + interface ICreateCustomDimensionRequest { + + /** CreateCustomDimensionRequest parent */ + parent?: (string|null); + + /** CreateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1beta.ICustomDimension|null); + } + + /** Represents a CreateCustomDimensionRequest. */ + class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { + + /** + * Constructs a new CreateCustomDimensionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreateCustomDimensionRequest); + + /** CreateCustomDimensionRequest parent. */ + public parent: string; + + /** CreateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1beta.ICustomDimension|null); + + /** + * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateCustomDimensionRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreateCustomDimensionRequest): google.analytics.admin.v1beta.CreateCustomDimensionRequest; + + /** + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreateCustomDimensionRequest; + + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreateCustomDimensionRequest; + + /** + * Verifies a CreateCustomDimensionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateCustomDimensionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreateCustomDimensionRequest; + + /** + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message CreateCustomDimensionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateCustomDimensionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateCustomDimensionRequest. */ + interface IUpdateCustomDimensionRequest { + + /** UpdateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1beta.ICustomDimension|null); + + /** UpdateCustomDimensionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateCustomDimensionRequest. */ + class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { + + /** + * Constructs a new UpdateCustomDimensionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IUpdateCustomDimensionRequest); + + /** UpdateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1beta.ICustomDimension|null); + + /** UpdateCustomDimensionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCustomDimensionRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IUpdateCustomDimensionRequest): google.analytics.admin.v1beta.UpdateCustomDimensionRequest; + + /** + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.UpdateCustomDimensionRequest; + + /** + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.UpdateCustomDimensionRequest; + + /** + * Verifies an UpdateCustomDimensionRequest message. + * @param message Plain 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 UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCustomDimensionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.UpdateCustomDimensionRequest; + + /** + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message UpdateCustomDimensionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCustomDimensionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListCustomDimensionsRequest. */ + interface IListCustomDimensionsRequest { + + /** ListCustomDimensionsRequest parent */ + parent?: (string|null); + + /** ListCustomDimensionsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomDimensionsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListCustomDimensionsRequest. */ + class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { + + /** + * Constructs a new ListCustomDimensionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListCustomDimensionsRequest); + + /** ListCustomDimensionsRequest parent. */ + public parent: string; + + /** ListCustomDimensionsRequest pageSize. */ + public pageSize: number; + + /** ListCustomDimensionsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCustomDimensionsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListCustomDimensionsRequest): google.analytics.admin.v1beta.ListCustomDimensionsRequest; + + /** + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListCustomDimensionsRequest; + + /** + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListCustomDimensionsRequest; + + /** + * Verifies a ListCustomDimensionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomDimensionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListCustomDimensionsRequest; + + /** + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @param message ListCustomDimensionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomDimensionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListCustomDimensionsResponse. */ + interface IListCustomDimensionsResponse { + + /** ListCustomDimensionsResponse customDimensions */ + customDimensions?: (google.analytics.admin.v1beta.ICustomDimension[]|null); + + /** ListCustomDimensionsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListCustomDimensionsResponse. */ + class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { + + /** + * Constructs a new ListCustomDimensionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListCustomDimensionsResponse); + + /** ListCustomDimensionsResponse customDimensions. */ + public customDimensions: google.analytics.admin.v1beta.ICustomDimension[]; + + /** ListCustomDimensionsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCustomDimensionsResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListCustomDimensionsResponse): google.analytics.admin.v1beta.ListCustomDimensionsResponse; + + /** + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListCustomDimensionsResponse; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListCustomDimensionsResponse; + + /** + * Verifies a ListCustomDimensionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomDimensionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListCustomDimensionsResponse; + + /** + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @param message ListCustomDimensionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomDimensionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ArchiveCustomDimensionRequest. */ + interface IArchiveCustomDimensionRequest { + + /** ArchiveCustomDimensionRequest name */ + name?: (string|null); + } + + /** Represents an ArchiveCustomDimensionRequest. */ + class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { + + /** + * Constructs a new ArchiveCustomDimensionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IArchiveCustomDimensionRequest); + + /** ArchiveCustomDimensionRequest name. */ + public name: string; + + /** + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ArchiveCustomDimensionRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IArchiveCustomDimensionRequest): google.analytics.admin.v1beta.ArchiveCustomDimensionRequest; + + /** + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ArchiveCustomDimensionRequest; + + /** + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ArchiveCustomDimensionRequest; + + /** + * Verifies an ArchiveCustomDimensionRequest message. + * @param message Plain 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 ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArchiveCustomDimensionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ArchiveCustomDimensionRequest; + + /** + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomDimensionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArchiveCustomDimensionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCustomDimensionRequest. */ + interface IGetCustomDimensionRequest { + + /** GetCustomDimensionRequest name */ + name?: (string|null); + } + + /** Represents a GetCustomDimensionRequest. */ + class GetCustomDimensionRequest implements IGetCustomDimensionRequest { + + /** + * Constructs a new GetCustomDimensionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetCustomDimensionRequest); + + /** GetCustomDimensionRequest name. */ + public name: string; + + /** + * Creates a new GetCustomDimensionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCustomDimensionRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetCustomDimensionRequest): google.analytics.admin.v1beta.GetCustomDimensionRequest; + + /** + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetCustomDimensionRequest; + + /** + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetCustomDimensionRequest; + + /** + * Verifies a GetCustomDimensionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCustomDimensionRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetCustomDimensionRequest; + + /** + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @param message GetCustomDimensionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCustomDimensionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateCustomMetricRequest. */ + interface ICreateCustomMetricRequest { + + /** CreateCustomMetricRequest parent */ + parent?: (string|null); + + /** CreateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1beta.ICustomMetric|null); + } + + /** Represents a CreateCustomMetricRequest. */ + class CreateCustomMetricRequest implements ICreateCustomMetricRequest { + + /** + * Constructs a new CreateCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreateCustomMetricRequest); + + /** CreateCustomMetricRequest parent. */ + public parent: string; + + /** CreateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1beta.ICustomMetric|null); + + /** + * Creates a new CreateCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreateCustomMetricRequest): google.analytics.admin.v1beta.CreateCustomMetricRequest; + + /** + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreateCustomMetricRequest; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreateCustomMetricRequest; + + /** + * Verifies a CreateCustomMetricRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreateCustomMetricRequest; + + /** + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @param message CreateCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateCustomMetricRequest. */ + interface IUpdateCustomMetricRequest { + + /** UpdateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1beta.ICustomMetric|null); + + /** UpdateCustomMetricRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateCustomMetricRequest. */ + class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { + + /** + * Constructs a new UpdateCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IUpdateCustomMetricRequest); + + /** UpdateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1beta.ICustomMetric|null); + + /** UpdateCustomMetricRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IUpdateCustomMetricRequest): google.analytics.admin.v1beta.UpdateCustomMetricRequest; + + /** + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.UpdateCustomMetricRequest; + + /** + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.UpdateCustomMetricRequest; + + /** + * Verifies an UpdateCustomMetricRequest message. + * @param message Plain 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.UpdateCustomMetricRequest; + + /** + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @param message UpdateCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListCustomMetricsRequest. */ + interface IListCustomMetricsRequest { + + /** ListCustomMetricsRequest parent */ + parent?: (string|null); + + /** ListCustomMetricsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomMetricsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListCustomMetricsRequest. */ + class ListCustomMetricsRequest implements IListCustomMetricsRequest { + + /** + * Constructs a new ListCustomMetricsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListCustomMetricsRequest); + + /** ListCustomMetricsRequest parent. */ + public parent: string; + + /** ListCustomMetricsRequest pageSize. */ + public pageSize: number; + + /** ListCustomMetricsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCustomMetricsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListCustomMetricsRequest): google.analytics.admin.v1beta.ListCustomMetricsRequest; + + /** + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListCustomMetricsRequest; + + /** + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListCustomMetricsRequest; + + /** + * Verifies a ListCustomMetricsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomMetricsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListCustomMetricsRequest; + + /** + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * @param message ListCustomMetricsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomMetricsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListCustomMetricsResponse. */ + interface IListCustomMetricsResponse { + + /** ListCustomMetricsResponse customMetrics */ + customMetrics?: (google.analytics.admin.v1beta.ICustomMetric[]|null); + + /** ListCustomMetricsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListCustomMetricsResponse. */ + class ListCustomMetricsResponse implements IListCustomMetricsResponse { + + /** + * Constructs a new ListCustomMetricsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListCustomMetricsResponse); + + /** ListCustomMetricsResponse customMetrics. */ + public customMetrics: google.analytics.admin.v1beta.ICustomMetric[]; + + /** ListCustomMetricsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListCustomMetricsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListCustomMetricsResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListCustomMetricsResponse): google.analytics.admin.v1beta.ListCustomMetricsResponse; + + /** + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListCustomMetricsResponse; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListCustomMetricsResponse; + + /** + * Verifies a ListCustomMetricsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListCustomMetricsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListCustomMetricsResponse; + + /** + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @param message ListCustomMetricsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListCustomMetricsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ArchiveCustomMetricRequest. */ + interface IArchiveCustomMetricRequest { + + /** ArchiveCustomMetricRequest name */ + name?: (string|null); + } + + /** Represents an ArchiveCustomMetricRequest. */ + class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { + + /** + * Constructs a new ArchiveCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IArchiveCustomMetricRequest); + + /** ArchiveCustomMetricRequest name. */ + public name: string; + + /** + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ArchiveCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IArchiveCustomMetricRequest): google.analytics.admin.v1beta.ArchiveCustomMetricRequest; + + /** + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ArchiveCustomMetricRequest; + + /** + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ArchiveCustomMetricRequest; + + /** + * Verifies an ArchiveCustomMetricRequest message. + * @param message Plain 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 ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArchiveCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ArchiveCustomMetricRequest; + + /** + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArchiveCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCustomMetricRequest. */ + interface IGetCustomMetricRequest { + + /** GetCustomMetricRequest name */ + name?: (string|null); + } + + /** Represents a GetCustomMetricRequest. */ + class GetCustomMetricRequest implements IGetCustomMetricRequest { + + /** + * Constructs a new GetCustomMetricRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetCustomMetricRequest); + + /** GetCustomMetricRequest name. */ + public name: string; + + /** + * Creates a new GetCustomMetricRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCustomMetricRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetCustomMetricRequest): google.analytics.admin.v1beta.GetCustomMetricRequest; + + /** + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetCustomMetricRequest; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetCustomMetricRequest; + + /** + * Verifies a GetCustomMetricRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCustomMetricRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetCustomMetricRequest; + + /** + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @param message GetCustomMetricRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCustomMetricRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetDataRetentionSettingsRequest. */ + interface IGetDataRetentionSettingsRequest { + + /** GetDataRetentionSettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetDataRetentionSettingsRequest. */ + class GetDataRetentionSettingsRequest implements IGetDataRetentionSettingsRequest { + + /** + * Constructs a new GetDataRetentionSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest); + + /** GetDataRetentionSettingsRequest name. */ + public name: string; + + /** + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataRetentionSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest): google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; + + /** + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; + + /** + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; + + /** + * Verifies a GetDataRetentionSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDataRetentionSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; + + /** + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message GetDataRetentionSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDataRetentionSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateDataRetentionSettingsRequest. */ + interface IUpdateDataRetentionSettingsRequest { + + /** UpdateDataRetentionSettingsRequest dataRetentionSettings */ + dataRetentionSettings?: (google.analytics.admin.v1beta.IDataRetentionSettings|null); + + /** UpdateDataRetentionSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateDataRetentionSettingsRequest. */ + class UpdateDataRetentionSettingsRequest implements IUpdateDataRetentionSettingsRequest { + + /** + * Constructs a new UpdateDataRetentionSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest); + + /** UpdateDataRetentionSettingsRequest dataRetentionSettings. */ + public dataRetentionSettings?: (google.analytics.admin.v1beta.IDataRetentionSettings|null); + + /** UpdateDataRetentionSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateDataRetentionSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest): google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; + + /** + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; + + /** + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; + + /** + * Verifies an UpdateDataRetentionSettingsRequest message. + * @param message Plain 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 UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateDataRetentionSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; + + /** + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateDataRetentionSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateDataRetentionSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateDataStreamRequest. */ + interface ICreateDataStreamRequest { + + /** CreateDataStreamRequest parent */ + parent?: (string|null); + + /** CreateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1beta.IDataStream|null); + } + + /** Represents a CreateDataStreamRequest. */ + class CreateDataStreamRequest implements ICreateDataStreamRequest { + + /** + * Constructs a new CreateDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICreateDataStreamRequest); + + /** CreateDataStreamRequest parent. */ + public parent: string; + + /** CreateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1beta.IDataStream|null); + + /** + * Creates a new CreateDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICreateDataStreamRequest): google.analytics.admin.v1beta.CreateDataStreamRequest; + + /** + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CreateDataStreamRequest; + + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CreateDataStreamRequest; + + /** + * Verifies a CreateDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CreateDataStreamRequest; + + /** + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * @param message CreateDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CreateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteDataStreamRequest. */ + interface IDeleteDataStreamRequest { + + /** DeleteDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a DeleteDataStreamRequest. */ + class DeleteDataStreamRequest implements IDeleteDataStreamRequest { + + /** + * Constructs a new DeleteDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDeleteDataStreamRequest); + + /** DeleteDataStreamRequest name. */ + public name: string; + + /** + * Creates a new DeleteDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDeleteDataStreamRequest): google.analytics.admin.v1beta.DeleteDataStreamRequest; + + /** + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DeleteDataStreamRequest; + + /** + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DeleteDataStreamRequest; + + /** + * Verifies a DeleteDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DeleteDataStreamRequest; + + /** + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * @param message DeleteDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DeleteDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateDataStreamRequest. */ + interface IUpdateDataStreamRequest { + + /** UpdateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1beta.IDataStream|null); + + /** UpdateDataStreamRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateDataStreamRequest. */ + class UpdateDataStreamRequest implements IUpdateDataStreamRequest { + + /** + * Constructs a new UpdateDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IUpdateDataStreamRequest); + + /** UpdateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1beta.IDataStream|null); + + /** UpdateDataStreamRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IUpdateDataStreamRequest): google.analytics.admin.v1beta.UpdateDataStreamRequest; + + /** + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.UpdateDataStreamRequest; + + /** + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.UpdateDataStreamRequest; + + /** + * Verifies an UpdateDataStreamRequest message. + * @param message Plain 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 UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.UpdateDataStreamRequest; + + /** + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * @param message UpdateDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.UpdateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListDataStreamsRequest. */ + interface IListDataStreamsRequest { + + /** ListDataStreamsRequest parent */ + parent?: (string|null); + + /** ListDataStreamsRequest pageSize */ + pageSize?: (number|null); + + /** ListDataStreamsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListDataStreamsRequest. */ + class ListDataStreamsRequest implements IListDataStreamsRequest { + + /** + * Constructs a new ListDataStreamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListDataStreamsRequest); + + /** ListDataStreamsRequest parent. */ + public parent: string; + + /** ListDataStreamsRequest pageSize. */ + public pageSize: number; + + /** ListDataStreamsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListDataStreamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataStreamsRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListDataStreamsRequest): google.analytics.admin.v1beta.ListDataStreamsRequest; + + /** + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListDataStreamsRequest; + + /** + * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListDataStreamsRequest; + + /** + * Verifies a ListDataStreamsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataStreamsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListDataStreamsRequest; + + /** + * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. + * @param message ListDataStreamsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDataStreamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListDataStreamsResponse. */ + interface IListDataStreamsResponse { + + /** ListDataStreamsResponse dataStreams */ + dataStreams?: (google.analytics.admin.v1beta.IDataStream[]|null); + + /** ListDataStreamsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListDataStreamsResponse. */ + class ListDataStreamsResponse implements IListDataStreamsResponse { + + /** + * Constructs a new ListDataStreamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IListDataStreamsResponse); + + /** ListDataStreamsResponse dataStreams. */ + public dataStreams: google.analytics.admin.v1beta.IDataStream[]; + + /** ListDataStreamsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListDataStreamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataStreamsResponse instance + */ + public static create(properties?: google.analytics.admin.v1beta.IListDataStreamsResponse): google.analytics.admin.v1beta.ListDataStreamsResponse; + + /** + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ListDataStreamsResponse; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ListDataStreamsResponse; + + /** + * Verifies a ListDataStreamsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataStreamsResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ListDataStreamsResponse; + + /** + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * @param message ListDataStreamsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ListDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDataStreamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetDataStreamRequest. */ + interface IGetDataStreamRequest { + + /** GetDataStreamRequest name */ + name?: (string|null); + } + + /** Represents a GetDataStreamRequest. */ + class GetDataStreamRequest implements IGetDataStreamRequest { + + /** + * Constructs a new GetDataStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGetDataStreamRequest); + + /** GetDataStreamRequest name. */ + public name: string; + + /** + * Creates a new GetDataStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataStreamRequest instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGetDataStreamRequest): google.analytics.admin.v1beta.GetDataStreamRequest; + + /** + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GetDataStreamRequest; + + /** + * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GetDataStreamRequest; + + /** + * Verifies a GetDataStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDataStreamRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GetDataStreamRequest; + + /** + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @param message GetDataStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GetDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDataStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** IndustryCategory enum. */ + enum IndustryCategory { + INDUSTRY_CATEGORY_UNSPECIFIED = 0, + AUTOMOTIVE = 1, + BUSINESS_AND_INDUSTRIAL_MARKETS = 2, + FINANCE = 3, + HEALTHCARE = 4, + TECHNOLOGY = 5, + TRAVEL = 6, + OTHER = 7, + ARTS_AND_ENTERTAINMENT = 8, + BEAUTY_AND_FITNESS = 9, + BOOKS_AND_LITERATURE = 10, + FOOD_AND_DRINK = 11, + GAMES = 12, + HOBBIES_AND_LEISURE = 13, + HOME_AND_GARDEN = 14, + INTERNET_AND_TELECOM = 15, + LAW_AND_GOVERNMENT = 16, + NEWS = 17, + ONLINE_COMMUNITIES = 18, + PEOPLE_AND_SOCIETY = 19, + PETS_AND_ANIMALS = 20, + REAL_ESTATE = 21, + REFERENCE = 22, + SCIENCE = 23, + SPORTS = 24, + JOBS_AND_EDUCATION = 25, + SHOPPING = 26 + } + + /** ServiceLevel enum. */ + enum ServiceLevel { + SERVICE_LEVEL_UNSPECIFIED = 0, + GOOGLE_ANALYTICS_STANDARD = 1, + GOOGLE_ANALYTICS_360 = 2 + } + + /** ActorType enum. */ + enum ActorType { + ACTOR_TYPE_UNSPECIFIED = 0, + USER = 1, + SYSTEM = 2, + SUPPORT = 3 + } + + /** ActionType enum. */ + enum ActionType { + ACTION_TYPE_UNSPECIFIED = 0, + CREATED = 1, + UPDATED = 2, + DELETED = 3 + } + + /** ChangeHistoryResourceType enum. */ + enum ChangeHistoryResourceType { + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, + ACCOUNT = 1, + PROPERTY = 2, + FIREBASE_LINK = 6, + GOOGLE_ADS_LINK = 7, + GOOGLE_SIGNALS_SETTINGS = 8, + CONVERSION_EVENT = 9, + MEASUREMENT_PROTOCOL_SECRET = 10, + DATA_RETENTION_SETTINGS = 13, + DISPLAY_VIDEO_360_ADVERTISER_LINK = 14, + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15, + DATA_STREAM = 18, + ATTRIBUTION_SETTINGS = 20 + } + + /** PropertyType enum. */ + enum PropertyType { + PROPERTY_TYPE_UNSPECIFIED = 0, + PROPERTY_TYPE_ORDINARY = 1, + PROPERTY_TYPE_SUBPROPERTY = 2, + PROPERTY_TYPE_ROLLUP = 3 + } + + /** Properties of an Account. */ + interface IAccount { + + /** Account name */ + name?: (string|null); + + /** Account createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName */ + displayName?: (string|null); + + /** Account regionCode */ + regionCode?: (string|null); + + /** Account deleted */ + deleted?: (boolean|null); + } + + /** Represents an Account. */ + class Account implements IAccount { + + /** + * Constructs a new Account. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IAccount); + + /** Account name. */ + public name: string; + + /** Account createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName. */ + public displayName: string; + + /** Account regionCode. */ + public regionCode: string; + + /** Account deleted. */ + public deleted: boolean; + + /** + * Creates a new Account instance using the specified properties. + * @param [properties] Properties to set + * @returns Account instance + */ + public static create(properties?: google.analytics.admin.v1beta.IAccount): google.analytics.admin.v1beta.Account; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.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.analytics.admin.v1beta.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Account to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Property. */ + interface IProperty { + + /** Property name */ + name?: (string|null); + + /** Property propertyType */ + propertyType?: (google.analytics.admin.v1beta.PropertyType|keyof typeof google.analytics.admin.v1beta.PropertyType|null); + + /** Property createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent */ + parent?: (string|null); + + /** Property displayName */ + displayName?: (string|null); + + /** Property industryCategory */ + industryCategory?: (google.analytics.admin.v1beta.IndustryCategory|keyof typeof google.analytics.admin.v1beta.IndustryCategory|null); + + /** Property timeZone */ + timeZone?: (string|null); + + /** Property currencyCode */ + currencyCode?: (string|null); + + /** Property serviceLevel */ + serviceLevel?: (google.analytics.admin.v1beta.ServiceLevel|keyof typeof google.analytics.admin.v1beta.ServiceLevel|null); + + /** Property deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); + + /** Property account */ + account?: (string|null); + } + + /** Represents a Property. */ + class Property implements IProperty { + + /** + * Constructs a new Property. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IProperty); + + /** Property name. */ + public name: string; + + /** Property propertyType. */ + public propertyType: (google.analytics.admin.v1beta.PropertyType|keyof typeof google.analytics.admin.v1beta.PropertyType); + + /** Property createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent. */ + public parent: string; + + /** Property displayName. */ + public displayName: string; + + /** Property industryCategory. */ + public industryCategory: (google.analytics.admin.v1beta.IndustryCategory|keyof typeof google.analytics.admin.v1beta.IndustryCategory); + + /** Property timeZone. */ + public timeZone: string; + + /** Property currencyCode. */ + public currencyCode: string; + + /** Property serviceLevel. */ + public serviceLevel: (google.analytics.admin.v1beta.ServiceLevel|keyof typeof google.analytics.admin.v1beta.ServiceLevel); + + /** Property deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); + + /** Property account. */ + public account: string; + + /** + * Creates a new Property instance using the specified properties. + * @param [properties] Properties to set + * @returns Property instance + */ + public static create(properties?: google.analytics.admin.v1beta.IProperty): google.analytics.admin.v1beta.Property; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1beta.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Property message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.Property; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.Property; + + /** + * Verifies a Property message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Property + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.Property; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @param message Property + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Property to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataStream. */ + interface IDataStream { + + /** DataStream webStreamData */ + webStreamData?: (google.analytics.admin.v1beta.DataStream.IWebStreamData|null); + + /** DataStream androidAppStreamData */ + androidAppStreamData?: (google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData|null); + + /** DataStream iosAppStreamData */ + iosAppStreamData?: (google.analytics.admin.v1beta.DataStream.IIosAppStreamData|null); + + /** DataStream name */ + name?: (string|null); + + /** DataStream type */ + type?: (google.analytics.admin.v1beta.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1beta.DataStream.DataStreamType|null); + + /** DataStream displayName */ + displayName?: (string|null); + + /** DataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a DataStream. */ + class DataStream implements IDataStream { + + /** + * Constructs a new DataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDataStream); + + /** DataStream webStreamData. */ + public webStreamData?: (google.analytics.admin.v1beta.DataStream.IWebStreamData|null); + + /** DataStream androidAppStreamData. */ + public androidAppStreamData?: (google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData|null); + + /** DataStream iosAppStreamData. */ + public iosAppStreamData?: (google.analytics.admin.v1beta.DataStream.IIosAppStreamData|null); + + /** DataStream name. */ + public name: string; + + /** DataStream type. */ + public type: (google.analytics.admin.v1beta.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1beta.DataStream.DataStreamType); + + /** DataStream displayName. */ + public displayName: string; + + /** DataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** DataStream streamData. */ + public streamData?: ("webStreamData"|"androidAppStreamData"|"iosAppStreamData"); + + /** + * Creates a new DataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns DataStream instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDataStream): google.analytics.admin.v1beta.DataStream; + + /** + * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.verify|verify} messages. + * @param message DataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.verify|verify} messages. + * @param message DataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DataStream; + + /** + * Decodes a DataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DataStream; + + /** + * Verifies a DataStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DataStream; + + /** + * Creates a plain object from a DataStream message. Also converts values to other types if specified. + * @param message DataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DataStream { + + /** Properties of a WebStreamData. */ + interface IWebStreamData { + + /** WebStreamData measurementId */ + measurementId?: (string|null); + + /** WebStreamData firebaseAppId */ + firebaseAppId?: (string|null); + + /** WebStreamData defaultUri */ + defaultUri?: (string|null); + } + + /** Represents a WebStreamData. */ + class WebStreamData implements IWebStreamData { + + /** + * Constructs a new WebStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.DataStream.IWebStreamData); + + /** WebStreamData measurementId. */ + public measurementId: string; + + /** WebStreamData firebaseAppId. */ + public firebaseAppId: string; + + /** WebStreamData defaultUri. */ + public defaultUri: string; + + /** + * Creates a new WebStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns WebStreamData instance + */ + public static create(properties?: google.analytics.admin.v1beta.DataStream.IWebStreamData): google.analytics.admin.v1beta.DataStream.WebStreamData; + + /** + * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.WebStreamData.verify|verify} messages. + * @param message WebStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.WebStreamData.verify|verify} messages. + * @param message WebStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WebStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DataStream.WebStreamData; + + /** + * Decodes a WebStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DataStream.WebStreamData; + + /** + * Verifies a WebStreamData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WebStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DataStream.WebStreamData; + + /** + * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. + * @param message WebStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DataStream.WebStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WebStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AndroidAppStreamData. */ + interface IAndroidAppStreamData { + + /** AndroidAppStreamData firebaseAppId */ + firebaseAppId?: (string|null); + + /** AndroidAppStreamData packageName */ + packageName?: (string|null); + } + + /** Represents an AndroidAppStreamData. */ + class AndroidAppStreamData implements IAndroidAppStreamData { + + /** + * Constructs a new AndroidAppStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData); + + /** AndroidAppStreamData firebaseAppId. */ + public firebaseAppId: string; + + /** AndroidAppStreamData packageName. */ + public packageName: string; + + /** + * Creates a new AndroidAppStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns AndroidAppStreamData instance + */ + public static create(properties?: google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData): google.analytics.admin.v1beta.DataStream.AndroidAppStreamData; + + /** + * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.verify|verify} messages. + * @param message AndroidAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.verify|verify} messages. + * @param message AndroidAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DataStream.AndroidAppStreamData; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DataStream.AndroidAppStreamData; + + /** + * Verifies an AndroidAppStreamData message. + * @param message Plain 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 AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AndroidAppStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DataStream.AndroidAppStreamData; + + /** + * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. + * @param message AndroidAppStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DataStream.AndroidAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AndroidAppStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IosAppStreamData. */ + interface IIosAppStreamData { + + /** IosAppStreamData firebaseAppId */ + firebaseAppId?: (string|null); + + /** IosAppStreamData bundleId */ + bundleId?: (string|null); + } + + /** Represents an IosAppStreamData. */ + class IosAppStreamData implements IIosAppStreamData { + + /** + * Constructs a new IosAppStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.DataStream.IIosAppStreamData); + + /** IosAppStreamData firebaseAppId. */ + public firebaseAppId: string; + + /** IosAppStreamData bundleId. */ + public bundleId: string; + + /** + * Creates a new IosAppStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns IosAppStreamData instance + */ + public static create(properties?: google.analytics.admin.v1beta.DataStream.IIosAppStreamData): google.analytics.admin.v1beta.DataStream.IosAppStreamData; + + /** + * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.IosAppStreamData.verify|verify} messages. + * @param message IosAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.IosAppStreamData.verify|verify} messages. + * @param message IosAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DataStream.IosAppStreamData; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DataStream.IosAppStreamData; + + /** + * Verifies an IosAppStreamData message. + * @param message Plain 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 IosAppStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IosAppStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DataStream.IosAppStreamData; + + /** + * Creates a plain object from an IosAppStreamData message. Also converts values to other types if specified. + * @param message IosAppStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DataStream.IosAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IosAppStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** DataStreamType enum. */ + enum DataStreamType { + DATA_STREAM_TYPE_UNSPECIFIED = 0, + WEB_DATA_STREAM = 1, + ANDROID_APP_DATA_STREAM = 2, + IOS_APP_DATA_STREAM = 3 + } + } + + /** Properties of a FirebaseLink. */ + interface IFirebaseLink { + + /** FirebaseLink name */ + name?: (string|null); + + /** FirebaseLink project */ + project?: (string|null); + + /** FirebaseLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a FirebaseLink. */ + class FirebaseLink implements IFirebaseLink { + + /** + * Constructs a new FirebaseLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IFirebaseLink); + + /** FirebaseLink name. */ + public name: string; + + /** FirebaseLink project. */ + public project: string; + + /** FirebaseLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @param [properties] Properties to set + * @returns FirebaseLink instance + */ + public static create(properties?: google.analytics.admin.v1beta.IFirebaseLink): google.analytics.admin.v1beta.FirebaseLink; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1beta.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.FirebaseLink; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.FirebaseLink; + + /** + * Verifies a FirebaseLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FirebaseLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.FirebaseLink; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @param message FirebaseLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FirebaseLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GoogleAdsLink. */ + interface IGoogleAdsLink { + + /** GoogleAdsLink name */ + name?: (string|null); + + /** GoogleAdsLink customerId */ + customerId?: (string|null); + + /** GoogleAdsLink canManageClients */ + canManageClients?: (boolean|null); + + /** GoogleAdsLink adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink creatorEmailAddress */ + creatorEmailAddress?: (string|null); + } + + /** Represents a GoogleAdsLink. */ + class GoogleAdsLink implements IGoogleAdsLink { + + /** + * Constructs a new GoogleAdsLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IGoogleAdsLink); + + /** GoogleAdsLink name. */ + public name: string; + + /** GoogleAdsLink customerId. */ + public customerId: string; + + /** GoogleAdsLink canManageClients. */ + public canManageClients: boolean; + + /** GoogleAdsLink adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** GoogleAdsLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** GoogleAdsLink creatorEmailAddress. */ + public creatorEmailAddress: string; + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @param [properties] Properties to set + * @returns GoogleAdsLink instance + */ + public static create(properties?: google.analytics.admin.v1beta.IGoogleAdsLink): google.analytics.admin.v1beta.GoogleAdsLink; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1beta.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.GoogleAdsLink; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.GoogleAdsLink; + + /** + * Verifies a GoogleAdsLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GoogleAdsLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.GoogleAdsLink; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @param message GoogleAdsLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GoogleAdsLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataSharingSettings. */ + interface IDataSharingSettings { + + /** DataSharingSettings name */ + name?: (string|null); + + /** DataSharingSettings sharingWithGoogleSupportEnabled */ + sharingWithGoogleSupportEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ + sharingWithGoogleAssignedSalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ + sharingWithGoogleAnySalesEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithGoogleProductsEnabled */ + sharingWithGoogleProductsEnabled?: (boolean|null); + + /** DataSharingSettings sharingWithOthersEnabled */ + sharingWithOthersEnabled?: (boolean|null); + } + + /** Represents a DataSharingSettings. */ + class DataSharingSettings implements IDataSharingSettings { + + /** + * Constructs a new DataSharingSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDataSharingSettings); + + /** DataSharingSettings name. */ + public name: string; + + /** DataSharingSettings sharingWithGoogleSupportEnabled. */ + public sharingWithGoogleSupportEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ + public sharingWithGoogleAssignedSalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ + public sharingWithGoogleAnySalesEnabled: boolean; + + /** DataSharingSettings sharingWithGoogleProductsEnabled. */ + public sharingWithGoogleProductsEnabled: boolean; + + /** DataSharingSettings sharingWithOthersEnabled. */ + public sharingWithOthersEnabled: boolean; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DataSharingSettings instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDataSharingSettings): google.analytics.admin.v1beta.DataSharingSettings; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1beta.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DataSharingSettings; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DataSharingSettings; + + /** + * Verifies a DataSharingSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataSharingSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DataSharingSettings; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @param message DataSharingSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataSharingSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccountSummary. */ + interface IAccountSummary { + + /** AccountSummary name */ + name?: (string|null); + + /** AccountSummary account */ + account?: (string|null); + + /** AccountSummary displayName */ + displayName?: (string|null); + + /** AccountSummary propertySummaries */ + propertySummaries?: (google.analytics.admin.v1beta.IPropertySummary[]|null); + } + + /** Represents an AccountSummary. */ + class AccountSummary implements IAccountSummary { + + /** + * Constructs a new AccountSummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IAccountSummary); + + /** AccountSummary name. */ + public name: string; + + /** AccountSummary account. */ + public account: string; + + /** AccountSummary displayName. */ + public displayName: string; + + /** AccountSummary propertySummaries. */ + public propertySummaries: google.analytics.admin.v1beta.IPropertySummary[]; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @param [properties] Properties to set + * @returns AccountSummary instance + */ + public static create(properties?: google.analytics.admin.v1beta.IAccountSummary): google.analytics.admin.v1beta.AccountSummary; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1beta.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.AccountSummary; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.AccountSummary; + + /** + * Verifies an AccountSummary message. + * @param message Plain 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 AccountSummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccountSummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.AccountSummary; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @param message AccountSummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccountSummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PropertySummary. */ + interface IPropertySummary { + + /** PropertySummary property */ + property?: (string|null); + + /** PropertySummary displayName */ + displayName?: (string|null); + + /** PropertySummary propertyType */ + propertyType?: (google.analytics.admin.v1beta.PropertyType|keyof typeof google.analytics.admin.v1beta.PropertyType|null); + + /** PropertySummary parent */ + parent?: (string|null); + } + + /** Represents a PropertySummary. */ + class PropertySummary implements IPropertySummary { + + /** + * Constructs a new PropertySummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IPropertySummary); + + /** PropertySummary property. */ + public property: string; + + /** PropertySummary displayName. */ + public displayName: string; + + /** PropertySummary propertyType. */ + public propertyType: (google.analytics.admin.v1beta.PropertyType|keyof typeof google.analytics.admin.v1beta.PropertyType); + + /** PropertySummary parent. */ + public parent: string; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @param [properties] Properties to set + * @returns PropertySummary instance + */ + public static create(properties?: google.analytics.admin.v1beta.IPropertySummary): google.analytics.admin.v1beta.PropertySummary; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1beta.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.PropertySummary; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.PropertySummary; + + /** + * Verifies a PropertySummary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PropertySummary + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.PropertySummary; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @param message PropertySummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PropertySummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MeasurementProtocolSecret. */ + interface IMeasurementProtocolSecret { + + /** MeasurementProtocolSecret name */ + name?: (string|null); + + /** MeasurementProtocolSecret displayName */ + displayName?: (string|null); + + /** MeasurementProtocolSecret secretValue */ + secretValue?: (string|null); + } + + /** Represents a MeasurementProtocolSecret. */ + class MeasurementProtocolSecret implements IMeasurementProtocolSecret { + + /** + * Constructs a new MeasurementProtocolSecret. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IMeasurementProtocolSecret); + + /** MeasurementProtocolSecret name. */ + public name: string; + + /** MeasurementProtocolSecret displayName. */ + public displayName: string; + + /** MeasurementProtocolSecret secretValue. */ + public secretValue: string; + + /** + * Creates a new MeasurementProtocolSecret instance using the specified properties. + * @param [properties] Properties to set + * @returns MeasurementProtocolSecret instance + */ + public static create(properties?: google.analytics.admin.v1beta.IMeasurementProtocolSecret): google.analytics.admin.v1beta.MeasurementProtocolSecret; + + /** + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1beta.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.MeasurementProtocolSecret; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.MeasurementProtocolSecret; + + /** + * Verifies a MeasurementProtocolSecret message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MeasurementProtocolSecret + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.MeasurementProtocolSecret; + + /** + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @param message MeasurementProtocolSecret + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.MeasurementProtocolSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MeasurementProtocolSecret to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeHistoryEvent. */ + interface IChangeHistoryEvent { + + /** ChangeHistoryEvent id */ + id?: (string|null); + + /** ChangeHistoryEvent changeTime */ + changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType */ + actorType?: (google.analytics.admin.v1beta.ActorType|keyof typeof google.analytics.admin.v1beta.ActorType|null); + + /** ChangeHistoryEvent userActorEmail */ + userActorEmail?: (string|null); + + /** ChangeHistoryEvent changesFiltered */ + changesFiltered?: (boolean|null); + + /** ChangeHistoryEvent changes */ + changes?: (google.analytics.admin.v1beta.IChangeHistoryChange[]|null); + } + + /** Represents a ChangeHistoryEvent. */ + class ChangeHistoryEvent implements IChangeHistoryEvent { + + /** + * Constructs a new ChangeHistoryEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IChangeHistoryEvent); + + /** ChangeHistoryEvent id. */ + public id: string; + + /** ChangeHistoryEvent changeTime. */ + public changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType. */ + public actorType: (google.analytics.admin.v1beta.ActorType|keyof typeof google.analytics.admin.v1beta.ActorType); + + /** ChangeHistoryEvent userActorEmail. */ + public userActorEmail: string; + + /** ChangeHistoryEvent changesFiltered. */ + public changesFiltered: boolean; + + /** ChangeHistoryEvent changes. */ + public changes: google.analytics.admin.v1beta.IChangeHistoryChange[]; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryEvent instance + */ + public static create(properties?: google.analytics.admin.v1beta.IChangeHistoryEvent): google.analytics.admin.v1beta.ChangeHistoryEvent; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ChangeHistoryEvent; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ChangeHistoryEvent; + + /** + * Verifies a ChangeHistoryEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryEvent + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ChangeHistoryEvent; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @param message ChangeHistoryEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeHistoryChange. */ + interface IChangeHistoryChange { + + /** ChangeHistoryChange resource */ + resource?: (string|null); + + /** ChangeHistoryChange action */ + action?: (google.analytics.admin.v1beta.ActionType|keyof typeof google.analytics.admin.v1beta.ActionType|null); + + /** ChangeHistoryChange resourceBeforeChange */ + resourceBeforeChange?: (google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange */ + resourceAfterChange?: (google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null); + } + + /** Represents a ChangeHistoryChange. */ + class ChangeHistoryChange implements IChangeHistoryChange { + + /** + * Constructs a new ChangeHistoryChange. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IChangeHistoryChange); + + /** ChangeHistoryChange resource. */ + public resource: string; + + /** ChangeHistoryChange action. */ + public action: (google.analytics.admin.v1beta.ActionType|keyof typeof google.analytics.admin.v1beta.ActionType); + + /** ChangeHistoryChange resourceBeforeChange. */ + public resourceBeforeChange?: (google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null); + + /** ChangeHistoryChange resourceAfterChange. */ + public resourceAfterChange?: (google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null); + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryChange instance + */ + public static create(properties?: google.analytics.admin.v1beta.IChangeHistoryChange): google.analytics.admin.v1beta.ChangeHistoryChange; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ChangeHistoryChange; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ChangeHistoryChange; + + /** + * Verifies a ChangeHistoryChange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryChange + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ChangeHistoryChange; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @param message ChangeHistoryChange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ChangeHistoryChange { + + /** Properties of a ChangeHistoryResource. */ + interface IChangeHistoryResource { + + /** ChangeHistoryResource account */ + account?: (google.analytics.admin.v1beta.IAccount|null); + + /** ChangeHistoryResource property */ + property?: (google.analytics.admin.v1beta.IProperty|null); + + /** ChangeHistoryResource firebaseLink */ + firebaseLink?: (google.analytics.admin.v1beta.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1beta.IGoogleAdsLink|null); + + /** ChangeHistoryResource conversionEvent */ + conversionEvent?: (google.analytics.admin.v1beta.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1beta.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource dataRetentionSettings */ + dataRetentionSettings?: (google.analytics.admin.v1beta.IDataRetentionSettings|null); + + /** ChangeHistoryResource dataStream */ + dataStream?: (google.analytics.admin.v1beta.IDataStream|null); + } + + /** Represents a ChangeHistoryResource. */ + class ChangeHistoryResource implements IChangeHistoryResource { + + /** + * Constructs a new ChangeHistoryResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource); + + /** ChangeHistoryResource account. */ + public account?: (google.analytics.admin.v1beta.IAccount|null); + + /** ChangeHistoryResource property. */ + public property?: (google.analytics.admin.v1beta.IProperty|null); + + /** ChangeHistoryResource firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1beta.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1beta.IGoogleAdsLink|null); + + /** ChangeHistoryResource conversionEvent. */ + public conversionEvent?: (google.analytics.admin.v1beta.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1beta.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource dataRetentionSettings. */ + public dataRetentionSettings?: (google.analytics.admin.v1beta.IDataRetentionSettings|null); + + /** ChangeHistoryResource dataStream. */ + public dataStream?: (google.analytics.admin.v1beta.IDataStream|null); + + /** ChangeHistoryResource resource. */ + public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"conversionEvent"|"measurementProtocolSecret"|"dataRetentionSettings"|"dataStream"); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryResource instance + */ + public static create(properties?: google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Verifies a ChangeHistoryResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryResource + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @param message ChangeHistoryResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a ConversionEvent. */ + interface IConversionEvent { + + /** ConversionEvent name */ + name?: (string|null); + + /** ConversionEvent eventName */ + eventName?: (string|null); + + /** ConversionEvent createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ConversionEvent deletable */ + deletable?: (boolean|null); + + /** ConversionEvent custom */ + custom?: (boolean|null); + } + + /** Represents a ConversionEvent. */ + class ConversionEvent implements IConversionEvent { + + /** + * Constructs a new ConversionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IConversionEvent); + + /** ConversionEvent name. */ + public name: string; + + /** ConversionEvent eventName. */ + public eventName: string; + + /** ConversionEvent createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ConversionEvent deletable. */ + public deletable: boolean; + + /** ConversionEvent custom. */ + public custom: boolean; + + /** + * Creates a new ConversionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns ConversionEvent instance + */ + public static create(properties?: google.analytics.admin.v1beta.IConversionEvent): google.analytics.admin.v1beta.ConversionEvent; + + /** + * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1beta.ConversionEvent.verify|verify} messages. + * @param message ConversionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ConversionEvent.verify|verify} messages. + * @param message ConversionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.ConversionEvent; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.ConversionEvent; + + /** + * Verifies a ConversionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConversionEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConversionEvent + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.ConversionEvent; + + /** + * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. + * @param message ConversionEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.ConversionEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConversionEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomDimension. */ + interface ICustomDimension { + + /** CustomDimension name */ + name?: (string|null); + + /** CustomDimension parameterName */ + parameterName?: (string|null); + + /** CustomDimension displayName */ + displayName?: (string|null); + + /** CustomDimension description */ + description?: (string|null); + + /** CustomDimension scope */ + scope?: (google.analytics.admin.v1beta.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1beta.CustomDimension.DimensionScope|null); + + /** CustomDimension disallowAdsPersonalization */ + disallowAdsPersonalization?: (boolean|null); + } + + /** Represents a CustomDimension. */ + class CustomDimension implements ICustomDimension { + + /** + * Constructs a new CustomDimension. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICustomDimension); + + /** CustomDimension name. */ + public name: string; + + /** CustomDimension parameterName. */ + public parameterName: string; + + /** CustomDimension displayName. */ + public displayName: string; + + /** CustomDimension description. */ + public description: string; + + /** CustomDimension scope. */ + public scope: (google.analytics.admin.v1beta.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1beta.CustomDimension.DimensionScope); + + /** CustomDimension disallowAdsPersonalization. */ + public disallowAdsPersonalization: boolean; + + /** + * Creates a new CustomDimension instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomDimension instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICustomDimension): google.analytics.admin.v1beta.CustomDimension; + + /** + * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1beta.CustomDimension.verify|verify} messages. + * @param message CustomDimension message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CustomDimension.verify|verify} messages. + * @param message CustomDimension message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomDimension message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CustomDimension; + + /** + * Decodes a CustomDimension message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CustomDimension; + + /** + * Verifies a CustomDimension message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomDimension message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomDimension + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CustomDimension; + + /** + * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. + * @param message CustomDimension + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CustomDimension, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomDimension to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace CustomDimension { + + /** DimensionScope enum. */ + enum DimensionScope { + DIMENSION_SCOPE_UNSPECIFIED = 0, + EVENT = 1, + USER = 2 + } + } + + /** Properties of a CustomMetric. */ + interface ICustomMetric { + + /** CustomMetric name */ + name?: (string|null); + + /** CustomMetric parameterName */ + parameterName?: (string|null); + + /** CustomMetric displayName */ + displayName?: (string|null); + + /** CustomMetric description */ + description?: (string|null); + + /** CustomMetric measurementUnit */ + measurementUnit?: (google.analytics.admin.v1beta.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1beta.CustomMetric.MeasurementUnit|null); + + /** CustomMetric scope */ + scope?: (google.analytics.admin.v1beta.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1beta.CustomMetric.MetricScope|null); + + /** CustomMetric restrictedMetricType */ + restrictedMetricType?: (google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType[]|null); + } + + /** Represents a CustomMetric. */ + class CustomMetric implements ICustomMetric { + + /** + * Constructs a new CustomMetric. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.ICustomMetric); + + /** CustomMetric name. */ + public name: string; + + /** CustomMetric parameterName. */ + public parameterName: string; + + /** CustomMetric displayName. */ + public displayName: string; + + /** CustomMetric description. */ + public description: string; + + /** CustomMetric measurementUnit. */ + public measurementUnit: (google.analytics.admin.v1beta.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1beta.CustomMetric.MeasurementUnit); + + /** CustomMetric scope. */ + public scope: (google.analytics.admin.v1beta.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1beta.CustomMetric.MetricScope); + + /** CustomMetric restrictedMetricType. */ + public restrictedMetricType: google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType[]; + + /** + * Creates a new CustomMetric instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomMetric instance + */ + public static create(properties?: google.analytics.admin.v1beta.ICustomMetric): google.analytics.admin.v1beta.CustomMetric; + + /** + * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1beta.CustomMetric.verify|verify} messages. + * @param message CustomMetric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CustomMetric.verify|verify} messages. + * @param message CustomMetric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomMetric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.CustomMetric; + + /** + * Decodes a CustomMetric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.CustomMetric; + + /** + * Verifies a CustomMetric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomMetric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomMetric + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.CustomMetric; + + /** + * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. + * @param message CustomMetric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.CustomMetric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomMetric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace CustomMetric { + + /** MeasurementUnit enum. */ + enum MeasurementUnit { + MEASUREMENT_UNIT_UNSPECIFIED = 0, + STANDARD = 1, + CURRENCY = 2, + FEET = 3, + METERS = 4, + KILOMETERS = 5, + MILES = 6, + MILLISECONDS = 7, + SECONDS = 8, + MINUTES = 9, + HOURS = 10 + } + + /** MetricScope enum. */ + enum MetricScope { + METRIC_SCOPE_UNSPECIFIED = 0, + EVENT = 1 + } + + /** RestrictedMetricType enum. */ + enum RestrictedMetricType { + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0, + COST_DATA = 1, + REVENUE_DATA = 2 + } + } + + /** Properties of a DataRetentionSettings. */ + interface IDataRetentionSettings { + + /** DataRetentionSettings name */ + name?: (string|null); + + /** DataRetentionSettings eventDataRetention */ + eventDataRetention?: (google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration|null); + + /** DataRetentionSettings resetUserDataOnNewActivity */ + resetUserDataOnNewActivity?: (boolean|null); + } + + /** Represents a DataRetentionSettings. */ + class DataRetentionSettings implements IDataRetentionSettings { + + /** + * Constructs a new DataRetentionSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1beta.IDataRetentionSettings); + + /** DataRetentionSettings name. */ + public name: string; + + /** DataRetentionSettings eventDataRetention. */ + public eventDataRetention: (google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration); + + /** DataRetentionSettings resetUserDataOnNewActivity. */ + public resetUserDataOnNewActivity: boolean; + + /** + * Creates a new DataRetentionSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DataRetentionSettings instance + */ + public static create(properties?: google.analytics.admin.v1beta.IDataRetentionSettings): google.analytics.admin.v1beta.DataRetentionSettings; + + /** + * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1beta.DataRetentionSettings.verify|verify} messages. + * @param message DataRetentionSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1beta.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataRetentionSettings.verify|verify} messages. + * @param message DataRetentionSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1beta.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1beta.DataRetentionSettings; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1beta.DataRetentionSettings; + + /** + * Verifies a DataRetentionSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataRetentionSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataRetentionSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1beta.DataRetentionSettings; + + /** + * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. + * @param message DataRetentionSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1beta.DataRetentionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataRetentionSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DataRetentionSettings { + + /** RetentionDuration enum. */ + enum RetentionDuration { + RETENTION_DURATION_UNSPECIFIED = 0, + TWO_MONTHS = 1, + FOURTEEN_MONTHS = 3, + TWENTY_SIX_MONTHS = 4, + THIRTY_EIGHT_MONTHS = 5, + FIFTY_MONTHS = 6 + } + } + } } } diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index b12da788a48..cb7dd3846c7 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -30674,6 +30674,20955 @@ return v1alpha; })(); + admin.v1beta = (function() { + + /** + * Namespace v1beta. + * @memberof google.analytics.admin + * @namespace + */ + var v1beta = {}; + + v1beta.AnalyticsAdminService = (function() { + + /** + * Constructs a new AnalyticsAdminService service. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an AnalyticsAdminService + * @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 AnalyticsAdminService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AnalyticsAdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AnalyticsAdminService; + + /** + * Creates new AnalyticsAdminService service using the specified rpc implementation. + * @function create + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @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 {AnalyticsAdminService} RPC service. Useful where requests and/or responses are streamed. + */ + AnalyticsAdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getAccount}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.Account} [response] Account + */ + + /** + * Calls GetAccount. + * @function getAccount + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetAccountRequest} request GetAccountRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetAccountCallback} callback Node-style callback called with the error, if any, and Account + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getAccount = function getAccount(request, callback) { + return this.rpcCall(getAccount, $root.google.analytics.admin.v1beta.GetAccountRequest, $root.google.analytics.admin.v1beta.Account, request, callback); + }, "name", { value: "GetAccount" }); + + /** + * Calls GetAccount. + * @function getAccount + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetAccountRequest} request GetAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccounts}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListAccountsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListAccountsResponse} [response] ListAccountsResponse + */ + + /** + * Calls ListAccounts. + * @function listAccounts + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListAccountsRequest} request ListAccountsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountsCallback} callback Node-style callback called with the error, if any, and ListAccountsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listAccounts = function listAccounts(request, callback) { + return this.rpcCall(listAccounts, $root.google.analytics.admin.v1beta.ListAccountsRequest, $root.google.analytics.admin.v1beta.ListAccountsResponse, request, callback); + }, "name", { value: "ListAccounts" }); + + /** + * Calls ListAccounts. + * @function listAccounts + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListAccountsRequest} request ListAccountsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteAccount}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef DeleteAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteAccount. + * @function deleteAccount + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteAccountRequest} request DeleteAccountRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.DeleteAccountCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteAccount = function deleteAccount(request, callback) { + return this.rpcCall(deleteAccount, $root.google.analytics.admin.v1beta.DeleteAccountRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteAccount" }); + + /** + * Calls DeleteAccount. + * @function deleteAccount + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteAccountRequest} request DeleteAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateAccount}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdateAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.Account} [response] Account + */ + + /** + * Calls UpdateAccount. + * @function updateAccount + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateAccountRequest} request UpdateAccountRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdateAccountCallback} callback Node-style callback called with the error, if any, and Account + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateAccount = function updateAccount(request, callback) { + return this.rpcCall(updateAccount, $root.google.analytics.admin.v1beta.UpdateAccountRequest, $root.google.analytics.admin.v1beta.Account, request, callback); + }, "name", { value: "UpdateAccount" }); + + /** + * Calls UpdateAccount. + * @function updateAccount + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateAccountRequest} request UpdateAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#provisionAccountTicket}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ProvisionAccountTicketCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ProvisionAccountTicketResponse} [response] ProvisionAccountTicketResponse + */ + + /** + * Calls ProvisionAccountTicket. + * @function provisionAccountTicket + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ProvisionAccountTicketCallback} callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.provisionAccountTicket = function provisionAccountTicket(request, callback) { + return this.rpcCall(provisionAccountTicket, $root.google.analytics.admin.v1beta.ProvisionAccountTicketRequest, $root.google.analytics.admin.v1beta.ProvisionAccountTicketResponse, request, callback); + }, "name", { value: "ProvisionAccountTicket" }); + + /** + * Calls ProvisionAccountTicket. + * @function provisionAccountTicket + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccountSummaries}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListAccountSummariesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListAccountSummariesResponse} [response] ListAccountSummariesResponse + */ + + /** + * Calls ListAccountSummaries. + * @function listAccountSummaries + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountSummariesCallback} callback Node-style callback called with the error, if any, and ListAccountSummariesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listAccountSummaries = function listAccountSummaries(request, callback) { + return this.rpcCall(listAccountSummaries, $root.google.analytics.admin.v1beta.ListAccountSummariesRequest, $root.google.analytics.admin.v1beta.ListAccountSummariesResponse, request, callback); + }, "name", { value: "ListAccountSummaries" }); + + /** + * Calls ListAccountSummaries. + * @function listAccountSummaries + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getProperty}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetPropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.Property} [response] Property + */ + + /** + * Calls GetProperty. + * @function getProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetPropertyRequest} request GetPropertyRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetPropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getProperty = function getProperty(request, callback) { + return this.rpcCall(getProperty, $root.google.analytics.admin.v1beta.GetPropertyRequest, $root.google.analytics.admin.v1beta.Property, request, callback); + }, "name", { value: "GetProperty" }); + + /** + * Calls GetProperty. + * @function getProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetPropertyRequest} request GetPropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listProperties}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListPropertiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListPropertiesResponse} [response] ListPropertiesResponse + */ + + /** + * Calls ListProperties. + * @function listProperties + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListPropertiesRequest} request ListPropertiesRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListPropertiesCallback} callback Node-style callback called with the error, if any, and ListPropertiesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listProperties = function listProperties(request, callback) { + return this.rpcCall(listProperties, $root.google.analytics.admin.v1beta.ListPropertiesRequest, $root.google.analytics.admin.v1beta.ListPropertiesResponse, request, callback); + }, "name", { value: "ListProperties" }); + + /** + * Calls ListProperties. + * @function listProperties + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListPropertiesRequest} request ListPropertiesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createProperty}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreatePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.Property} [response] Property + */ + + /** + * Calls CreateProperty. + * @function createProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreatePropertyRequest} request CreatePropertyRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreatePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createProperty = function createProperty(request, callback) { + return this.rpcCall(createProperty, $root.google.analytics.admin.v1beta.CreatePropertyRequest, $root.google.analytics.admin.v1beta.Property, request, callback); + }, "name", { value: "CreateProperty" }); + + /** + * Calls CreateProperty. + * @function createProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreatePropertyRequest} request CreatePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteProperty}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef DeletePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.Property} [response] Property + */ + + /** + * Calls DeleteProperty. + * @function deleteProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeletePropertyRequest} request DeletePropertyRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.DeletePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteProperty = function deleteProperty(request, callback) { + return this.rpcCall(deleteProperty, $root.google.analytics.admin.v1beta.DeletePropertyRequest, $root.google.analytics.admin.v1beta.Property, request, callback); + }, "name", { value: "DeleteProperty" }); + + /** + * Calls DeleteProperty. + * @function deleteProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeletePropertyRequest} request DeletePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateProperty}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdatePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.Property} [response] Property + */ + + /** + * Calls UpdateProperty. + * @function updateProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdatePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateProperty = function updateProperty(request, callback) { + return this.rpcCall(updateProperty, $root.google.analytics.admin.v1beta.UpdatePropertyRequest, $root.google.analytics.admin.v1beta.Property, request, callback); + }, "name", { value: "UpdateProperty" }); + + /** + * Calls UpdateProperty. + * @function updateProperty + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createFirebaseLink}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreateFirebaseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.FirebaseLink} [response] FirebaseLink + */ + + /** + * Calls CreateFirebaseLink. + * @function createFirebaseLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreateFirebaseLinkCallback} callback Node-style callback called with the error, if any, and FirebaseLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createFirebaseLink = function createFirebaseLink(request, callback) { + return this.rpcCall(createFirebaseLink, $root.google.analytics.admin.v1beta.CreateFirebaseLinkRequest, $root.google.analytics.admin.v1beta.FirebaseLink, request, callback); + }, "name", { value: "CreateFirebaseLink" }); + + /** + * Calls CreateFirebaseLink. + * @function createFirebaseLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteFirebaseLink}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef DeleteFirebaseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteFirebaseLink. + * @function deleteFirebaseLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.DeleteFirebaseLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteFirebaseLink = function deleteFirebaseLink(request, callback) { + return this.rpcCall(deleteFirebaseLink, $root.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteFirebaseLink" }); + + /** + * Calls DeleteFirebaseLink. + * @function deleteFirebaseLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listFirebaseLinks}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListFirebaseLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListFirebaseLinksResponse} [response] ListFirebaseLinksResponse + */ + + /** + * Calls ListFirebaseLinks. + * @function listFirebaseLinks + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListFirebaseLinksCallback} callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listFirebaseLinks = function listFirebaseLinks(request, callback) { + return this.rpcCall(listFirebaseLinks, $root.google.analytics.admin.v1beta.ListFirebaseLinksRequest, $root.google.analytics.admin.v1beta.ListFirebaseLinksResponse, request, callback); + }, "name", { value: "ListFirebaseLinks" }); + + /** + * Calls ListFirebaseLinks. + * @function listFirebaseLinks + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createGoogleAdsLink}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreateGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.GoogleAdsLink} [response] GoogleAdsLink + */ + + /** + * Calls CreateGoogleAdsLink. + * @function createGoogleAdsLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createGoogleAdsLink = function createGoogleAdsLink(request, callback) { + return this.rpcCall(createGoogleAdsLink, $root.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest, $root.google.analytics.admin.v1beta.GoogleAdsLink, request, callback); + }, "name", { value: "CreateGoogleAdsLink" }); + + /** + * Calls CreateGoogleAdsLink. + * @function createGoogleAdsLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateGoogleAdsLink}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdateGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.GoogleAdsLink} [response] GoogleAdsLink + */ + + /** + * Calls UpdateGoogleAdsLink. + * @function updateGoogleAdsLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateGoogleAdsLink = function updateGoogleAdsLink(request, callback) { + return this.rpcCall(updateGoogleAdsLink, $root.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest, $root.google.analytics.admin.v1beta.GoogleAdsLink, request, callback); + }, "name", { value: "UpdateGoogleAdsLink" }); + + /** + * Calls UpdateGoogleAdsLink. + * @function updateGoogleAdsLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteGoogleAdsLink}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef DeleteGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteGoogleAdsLink. + * @function deleteGoogleAdsLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.DeleteGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteGoogleAdsLink = function deleteGoogleAdsLink(request, callback) { + return this.rpcCall(deleteGoogleAdsLink, $root.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteGoogleAdsLink" }); + + /** + * Calls DeleteGoogleAdsLink. + * @function deleteGoogleAdsLink + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listGoogleAdsLinks}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListGoogleAdsLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} [response] ListGoogleAdsLinksResponse + */ + + /** + * Calls ListGoogleAdsLinks. + * @function listGoogleAdsLinks + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListGoogleAdsLinksCallback} callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listGoogleAdsLinks = function listGoogleAdsLinks(request, callback) { + return this.rpcCall(listGoogleAdsLinks, $root.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest, $root.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse, request, callback); + }, "name", { value: "ListGoogleAdsLinks" }); + + /** + * Calls ListGoogleAdsLinks. + * @function listGoogleAdsLinks + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataSharingSettings}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetDataSharingSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.DataSharingSettings} [response] DataSharingSettings + */ + + /** + * Calls GetDataSharingSettings. + * @function getDataSharingSettings + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetDataSharingSettingsCallback} callback Node-style callback called with the error, if any, and DataSharingSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDataSharingSettings = function getDataSharingSettings(request, callback) { + return this.rpcCall(getDataSharingSettings, $root.google.analytics.admin.v1beta.GetDataSharingSettingsRequest, $root.google.analytics.admin.v1beta.DataSharingSettings, request, callback); + }, "name", { value: "GetDataSharingSettings" }); + + /** + * Calls GetDataSharingSettings. + * @function getDataSharingSettings + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.MeasurementProtocolSecret} [response] MeasurementProtocolSecret + */ + + /** + * Calls GetMeasurementProtocolSecret. + * @function getMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getMeasurementProtocolSecret = function getMeasurementProtocolSecret(request, callback) { + return this.rpcCall(getMeasurementProtocolSecret, $root.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1beta.MeasurementProtocolSecret, request, callback); + }, "name", { value: "GetMeasurementProtocolSecret" }); + + /** + * Calls GetMeasurementProtocolSecret. + * @function getMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListMeasurementProtocolSecretsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} [response] ListMeasurementProtocolSecretsResponse + */ + + /** + * Calls ListMeasurementProtocolSecrets. + * @function listMeasurementProtocolSecrets + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback} callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listMeasurementProtocolSecrets = function listMeasurementProtocolSecrets(request, callback) { + return this.rpcCall(listMeasurementProtocolSecrets, $root.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest, $root.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse, request, callback); + }, "name", { value: "ListMeasurementProtocolSecrets" }); + + /** + * Calls ListMeasurementProtocolSecrets. + * @function listMeasurementProtocolSecrets + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreateMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.MeasurementProtocolSecret} [response] MeasurementProtocolSecret + */ + + /** + * Calls CreateMeasurementProtocolSecret. + * @function createMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createMeasurementProtocolSecret = function createMeasurementProtocolSecret(request, callback) { + return this.rpcCall(createMeasurementProtocolSecret, $root.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1beta.MeasurementProtocolSecret, request, callback); + }, "name", { value: "CreateMeasurementProtocolSecret" }); + + /** + * Calls CreateMeasurementProtocolSecret. + * @function createMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef DeleteMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteMeasurementProtocolSecret. + * @function deleteMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteMeasurementProtocolSecret = function deleteMeasurementProtocolSecret(request, callback) { + return this.rpcCall(deleteMeasurementProtocolSecret, $root.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteMeasurementProtocolSecret" }); + + /** + * Calls DeleteMeasurementProtocolSecret. + * @function deleteMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdateMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.MeasurementProtocolSecret} [response] MeasurementProtocolSecret + */ + + /** + * Calls UpdateMeasurementProtocolSecret. + * @function updateMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateMeasurementProtocolSecret = function updateMeasurementProtocolSecret(request, callback) { + return this.rpcCall(updateMeasurementProtocolSecret, $root.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1beta.MeasurementProtocolSecret, request, callback); + }, "name", { value: "UpdateMeasurementProtocolSecret" }); + + /** + * Calls UpdateMeasurementProtocolSecret. + * @function updateMeasurementProtocolSecret + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#acknowledgeUserDataCollection}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef AcknowledgeUserDataCollectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} [response] AcknowledgeUserDataCollectionResponse + */ + + /** + * Calls AcknowledgeUserDataCollection. + * @function acknowledgeUserDataCollection + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback} callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.acknowledgeUserDataCollection = function acknowledgeUserDataCollection(request, callback) { + return this.rpcCall(acknowledgeUserDataCollection, $root.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest, $root.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse, request, callback); + }, "name", { value: "AcknowledgeUserDataCollection" }); + + /** + * Calls AcknowledgeUserDataCollection. + * @function acknowledgeUserDataCollection + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#searchChangeHistoryEvents}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef SearchChangeHistoryEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} [response] SearchChangeHistoryEventsResponse + */ + + /** + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.SearchChangeHistoryEventsCallback} callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.searchChangeHistoryEvents = function searchChangeHistoryEvents(request, callback) { + return this.rpcCall(searchChangeHistoryEvents, $root.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest, $root.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse, request, callback); + }, "name", { value: "SearchChangeHistoryEvents" }); + + /** + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createConversionEvent}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreateConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ConversionEvent} [response] ConversionEvent + */ + + /** + * Calls CreateConversionEvent. + * @function createConversionEvent + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreateConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createConversionEvent = function createConversionEvent(request, callback) { + return this.rpcCall(createConversionEvent, $root.google.analytics.admin.v1beta.CreateConversionEventRequest, $root.google.analytics.admin.v1beta.ConversionEvent, request, callback); + }, "name", { value: "CreateConversionEvent" }); + + /** + * Calls CreateConversionEvent. + * @function createConversionEvent + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getConversionEvent}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ConversionEvent} [response] ConversionEvent + */ + + /** + * Calls GetConversionEvent. + * @function getConversionEvent + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetConversionEventRequest} request GetConversionEventRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getConversionEvent = function getConversionEvent(request, callback) { + return this.rpcCall(getConversionEvent, $root.google.analytics.admin.v1beta.GetConversionEventRequest, $root.google.analytics.admin.v1beta.ConversionEvent, request, callback); + }, "name", { value: "GetConversionEvent" }); + + /** + * Calls GetConversionEvent. + * @function getConversionEvent + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetConversionEventRequest} request GetConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteConversionEvent}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef DeleteConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteConversionEvent. + * @function deleteConversionEvent + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.DeleteConversionEventCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteConversionEvent = function deleteConversionEvent(request, callback) { + return this.rpcCall(deleteConversionEvent, $root.google.analytics.admin.v1beta.DeleteConversionEventRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteConversionEvent" }); + + /** + * Calls DeleteConversionEvent. + * @function deleteConversionEvent + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listConversionEvents}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListConversionEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListConversionEventsResponse} [response] ListConversionEventsResponse + */ + + /** + * Calls ListConversionEvents. + * @function listConversionEvents + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListConversionEventsCallback} callback Node-style callback called with the error, if any, and ListConversionEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listConversionEvents = function listConversionEvents(request, callback) { + return this.rpcCall(listConversionEvents, $root.google.analytics.admin.v1beta.ListConversionEventsRequest, $root.google.analytics.admin.v1beta.ListConversionEventsResponse, request, callback); + }, "name", { value: "ListConversionEvents" }); + + /** + * Calls ListConversionEvents. + * @function listConversionEvents + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomDimension}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreateCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.CustomDimension} [response] CustomDimension + */ + + /** + * Calls CreateCustomDimension. + * @function createCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createCustomDimension = function createCustomDimension(request, callback) { + return this.rpcCall(createCustomDimension, $root.google.analytics.admin.v1beta.CreateCustomDimensionRequest, $root.google.analytics.admin.v1beta.CustomDimension, request, callback); + }, "name", { value: "CreateCustomDimension" }); + + /** + * Calls CreateCustomDimension. + * @function createCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomDimension}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdateCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.CustomDimension} [response] CustomDimension + */ + + /** + * Calls UpdateCustomDimension. + * @function updateCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateCustomDimension = function updateCustomDimension(request, callback) { + return this.rpcCall(updateCustomDimension, $root.google.analytics.admin.v1beta.UpdateCustomDimensionRequest, $root.google.analytics.admin.v1beta.CustomDimension, request, callback); + }, "name", { value: "UpdateCustomDimension" }); + + /** + * Calls UpdateCustomDimension. + * @function updateCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomDimensions}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListCustomDimensionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListCustomDimensionsResponse} [response] ListCustomDimensionsResponse + */ + + /** + * Calls ListCustomDimensions. + * @function listCustomDimensions + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomDimensionsCallback} callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listCustomDimensions = function listCustomDimensions(request, callback) { + return this.rpcCall(listCustomDimensions, $root.google.analytics.admin.v1beta.ListCustomDimensionsRequest, $root.google.analytics.admin.v1beta.ListCustomDimensionsResponse, request, callback); + }, "name", { value: "ListCustomDimensions" }); + + /** + * Calls ListCustomDimensions. + * @function listCustomDimensions + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomDimension}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ArchiveCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls ArchiveCustomDimension. + * @function archiveCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomDimensionCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomDimension = function archiveCustomDimension(request, callback) { + return this.rpcCall(archiveCustomDimension, $root.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ArchiveCustomDimension" }); + + /** + * Calls ArchiveCustomDimension. + * @function archiveCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomDimension}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.CustomDimension} [response] CustomDimension + */ + + /** + * Calls GetCustomDimension. + * @function getCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getCustomDimension = function getCustomDimension(request, callback) { + return this.rpcCall(getCustomDimension, $root.google.analytics.admin.v1beta.GetCustomDimensionRequest, $root.google.analytics.admin.v1beta.CustomDimension, request, callback); + }, "name", { value: "GetCustomDimension" }); + + /** + * Calls GetCustomDimension. + * @function getCustomDimension + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomMetric}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreateCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.CustomMetric} [response] CustomMetric + */ + + /** + * Calls CreateCustomMetric. + * @function createCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createCustomMetric = function createCustomMetric(request, callback) { + return this.rpcCall(createCustomMetric, $root.google.analytics.admin.v1beta.CreateCustomMetricRequest, $root.google.analytics.admin.v1beta.CustomMetric, request, callback); + }, "name", { value: "CreateCustomMetric" }); + + /** + * Calls CreateCustomMetric. + * @function createCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomMetric}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdateCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.CustomMetric} [response] CustomMetric + */ + + /** + * Calls UpdateCustomMetric. + * @function updateCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateCustomMetric = function updateCustomMetric(request, callback) { + return this.rpcCall(updateCustomMetric, $root.google.analytics.admin.v1beta.UpdateCustomMetricRequest, $root.google.analytics.admin.v1beta.CustomMetric, request, callback); + }, "name", { value: "UpdateCustomMetric" }); + + /** + * Calls UpdateCustomMetric. + * @function updateCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomMetrics}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListCustomMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListCustomMetricsResponse} [response] ListCustomMetricsResponse + */ + + /** + * Calls ListCustomMetrics. + * @function listCustomMetrics + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomMetricsCallback} callback Node-style callback called with the error, if any, and ListCustomMetricsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listCustomMetrics = function listCustomMetrics(request, callback) { + return this.rpcCall(listCustomMetrics, $root.google.analytics.admin.v1beta.ListCustomMetricsRequest, $root.google.analytics.admin.v1beta.ListCustomMetricsResponse, request, callback); + }, "name", { value: "ListCustomMetrics" }); + + /** + * Calls ListCustomMetrics. + * @function listCustomMetrics + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomMetric}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ArchiveCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls ArchiveCustomMetric. + * @function archiveCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomMetricCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomMetric = function archiveCustomMetric(request, callback) { + return this.rpcCall(archiveCustomMetric, $root.google.analytics.admin.v1beta.ArchiveCustomMetricRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ArchiveCustomMetric" }); + + /** + * Calls ArchiveCustomMetric. + * @function archiveCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomMetric}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.CustomMetric} [response] CustomMetric + */ + + /** + * Calls GetCustomMetric. + * @function getCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getCustomMetric = function getCustomMetric(request, callback) { + return this.rpcCall(getCustomMetric, $root.google.analytics.admin.v1beta.GetCustomMetricRequest, $root.google.analytics.admin.v1beta.CustomMetric, request, callback); + }, "name", { value: "GetCustomMetric" }); + + /** + * Calls GetCustomMetric. + * @function getCustomMetric + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataRetentionSettings}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetDataRetentionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.DataRetentionSettings} [response] DataRetentionSettings + */ + + /** + * Calls GetDataRetentionSettings. + * @function getDataRetentionSettings + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDataRetentionSettings = function getDataRetentionSettings(request, callback) { + return this.rpcCall(getDataRetentionSettings, $root.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest, $root.google.analytics.admin.v1beta.DataRetentionSettings, request, callback); + }, "name", { value: "GetDataRetentionSettings" }); + + /** + * Calls GetDataRetentionSettings. + * @function getDataRetentionSettings + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataRetentionSettings}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdateDataRetentionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.DataRetentionSettings} [response] DataRetentionSettings + */ + + /** + * Calls UpdateDataRetentionSettings. + * @function updateDataRetentionSettings + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateDataRetentionSettings = function updateDataRetentionSettings(request, callback) { + return this.rpcCall(updateDataRetentionSettings, $root.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest, $root.google.analytics.admin.v1beta.DataRetentionSettings, request, callback); + }, "name", { value: "UpdateDataRetentionSettings" }); + + /** + * Calls UpdateDataRetentionSettings. + * @function updateDataRetentionSettings + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createDataStream}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef CreateDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.DataStream} [response] DataStream + */ + + /** + * Calls CreateDataStream. + * @function createDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.CreateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createDataStream = function createDataStream(request, callback) { + return this.rpcCall(createDataStream, $root.google.analytics.admin.v1beta.CreateDataStreamRequest, $root.google.analytics.admin.v1beta.DataStream, request, callback); + }, "name", { value: "CreateDataStream" }); + + /** + * Calls CreateDataStream. + * @function createDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteDataStream}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef DeleteDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteDataStream. + * @function deleteDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.DeleteDataStreamCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteDataStream = function deleteDataStream(request, callback) { + return this.rpcCall(deleteDataStream, $root.google.analytics.admin.v1beta.DeleteDataStreamRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDataStream" }); + + /** + * Calls DeleteDataStream. + * @function deleteDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataStream}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef UpdateDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.DataStream} [response] DataStream + */ + + /** + * Calls UpdateDataStream. + * @function updateDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateDataStream = function updateDataStream(request, callback) { + return this.rpcCall(updateDataStream, $root.google.analytics.admin.v1beta.UpdateDataStreamRequest, $root.google.analytics.admin.v1beta.DataStream, request, callback); + }, "name", { value: "UpdateDataStream" }); + + /** + * Calls UpdateDataStream. + * @function updateDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listDataStreams}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef ListDataStreamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.ListDataStreamsResponse} [response] ListDataStreamsResponse + */ + + /** + * Calls ListDataStreams. + * @function listDataStreams + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.ListDataStreamsCallback} callback Node-style callback called with the error, if any, and ListDataStreamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listDataStreams = function listDataStreams(request, callback) { + return this.rpcCall(listDataStreams, $root.google.analytics.admin.v1beta.ListDataStreamsRequest, $root.google.analytics.admin.v1beta.ListDataStreamsResponse, request, callback); + }, "name", { value: "ListDataStreams" }); + + /** + * Calls ListDataStreams. + * @function listDataStreams + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataStream}. + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @typedef GetDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1beta.DataStream} [response] DataStream + */ + + /** + * Calls GetDataStream. + * @function getDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetDataStreamRequest} request GetDataStreamRequest message or plain object + * @param {google.analytics.admin.v1beta.AnalyticsAdminService.GetDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDataStream = function getDataStream(request, callback) { + return this.rpcCall(getDataStream, $root.google.analytics.admin.v1beta.GetDataStreamRequest, $root.google.analytics.admin.v1beta.DataStream, request, callback); + }, "name", { value: "GetDataStream" }); + + /** + * Calls GetDataStream. + * @function getDataStream + * @memberof google.analytics.admin.v1beta.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1beta.IGetDataStreamRequest} request GetDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AnalyticsAdminService; + })(); + + v1beta.GetAccountRequest = (function() { + + /** + * Properties of a GetAccountRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetAccountRequest + * @property {string|null} [name] GetAccountRequest name + */ + + /** + * Constructs a new GetAccountRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetAccountRequest. + * @implements IGetAccountRequest + * @constructor + * @param {google.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest + * @instance + */ + GetAccountRequest.prototype.name = ""; + + /** + * Creates a new GetAccountRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetAccountRequest + * @static + * @param {google.analytics.admin.v1beta.IGetAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetAccountRequest} GetAccountRequest instance + */ + GetAccountRequest.create = function create(properties) { + return new GetAccountRequest(properties); + }; + + /** + * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetAccountRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetAccountRequest} GetAccountRequest + */ + GetAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetAccountRequest) + return object; + var message = new $root.google.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest + * @instance + * @returns {Object.} JSON object + */ + GetAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetAccountRequest; + })(); + + v1beta.ListAccountsRequest = (function() { + + /** + * Properties of a ListAccountsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListAccountsRequest + * @property {number|null} [pageSize] ListAccountsRequest pageSize + * @property {string|null} [pageToken] ListAccountsRequest pageToken + * @property {boolean|null} [showDeleted] ListAccountsRequest showDeleted + */ + + /** + * Constructs a new ListAccountsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListAccountsRequest. + * @implements IListAccountsRequest + * @constructor + * @param {google.analytics.admin.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.analytics.admin.v1beta.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.pageSize = 0; + + /** + * ListAccountsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.pageToken = ""; + + /** + * ListAccountsRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.showDeleted = false; + + /** + * Creates a new ListAccountsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @static + * @param {google.analytics.admin.v1beta.IListAccountsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListAccountsRequest} ListAccountsRequest instance + */ + ListAccountsRequest.create = function create(properties) { + return new ListAccountsRequest(properties); + }; + + /** + * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @static + * @param {google.analytics.admin.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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.showDeleted); + return writer; + }; + + /** + * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.ListAccountsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.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.analytics.admin.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.showDeleted = reader.bool(); + 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.analytics.admin.v1beta.ListAccountsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.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.analytics.admin.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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; + return null; + }; + + /** + * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListAccountsRequest} ListAccountsRequest + */ + ListAccountsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListAccountsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListAccountsRequest(); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); + return message; + }; + + /** + * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @static + * @param {google.analytics.admin.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.showDeleted = false; + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; + return object; + }; + + /** + * Converts this ListAccountsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListAccountsRequest + * @instance + * @returns {Object.} JSON object + */ + ListAccountsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAccountsRequest; + })(); + + v1beta.ListAccountsResponse = (function() { + + /** + * Properties of a ListAccountsResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListAccountsResponse + * @property {Array.|null} [accounts] ListAccountsResponse accounts + * @property {string|null} [nextPageToken] ListAccountsResponse nextPageToken + */ + + /** + * Constructs a new ListAccountsResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListAccountsResponse. + * @implements IListAccountsResponse + * @constructor + * @param {google.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse + * @instance + */ + ListAccountsResponse.prototype.accounts = $util.emptyArray; + + /** + * ListAccountsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListAccountsResponse + * @instance + */ + ListAccountsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAccountsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListAccountsResponse + * @static + * @param {google.analytics.admin.v1beta.IListAccountsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListAccountsResponse} ListAccountsResponse instance + */ + ListAccountsResponse.create = function create(properties) { + return new ListAccountsResponse(properties); + }; + + /** + * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListAccountsResponse + * @static + * @param {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListAccountsResponse + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListAccountsResponse} ListAccountsResponse + */ + ListAccountsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListAccountsResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListAccountsResponse(); + if (object.accounts) { + if (!Array.isArray(object.accounts)) + throw TypeError(".google.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse.accounts: object expected"); + message.accounts[i] = $root.google.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse + * @static + * @param {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse + * @instance + * @returns {Object.} JSON object + */ + ListAccountsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAccountsResponse; + })(); + + v1beta.DeleteAccountRequest = (function() { + + /** + * Properties of a DeleteAccountRequest. + * @memberof google.analytics.admin.v1beta + * @interface IDeleteAccountRequest + * @property {string|null} [name] DeleteAccountRequest name + */ + + /** + * Constructs a new DeleteAccountRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DeleteAccountRequest. + * @implements IDeleteAccountRequest + * @constructor + * @param {google.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest + * @instance + */ + DeleteAccountRequest.prototype.name = ""; + + /** + * Creates a new DeleteAccountRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DeleteAccountRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DeleteAccountRequest} DeleteAccountRequest instance + */ + DeleteAccountRequest.create = function create(properties) { + return new DeleteAccountRequest(properties); + }; + + /** + * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteAccountRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DeleteAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DeleteAccountRequest} DeleteAccountRequest + */ + DeleteAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DeleteAccountRequest) + return object; + var message = new $root.google.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteAccountRequest; + })(); + + v1beta.UpdateAccountRequest = (function() { + + /** + * Properties of an UpdateAccountRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdateAccountRequest + * @property {google.analytics.admin.v1beta.IAccount|null} [account] UpdateAccountRequest account + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountRequest updateMask + */ + + /** + * Constructs a new UpdateAccountRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdateAccountRequest. + * @implements IUpdateAccountRequest + * @constructor + * @param {google.analytics.admin.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.analytics.admin.v1beta.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1beta.UpdateAccountRequest + * @instance + */ + UpdateAccountRequest.prototype.account = null; + + /** + * UpdateAccountRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdateAccountRequest + * @instance + */ + UpdateAccountRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAccountRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdateAccountRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdateAccountRequest} UpdateAccountRequest instance + */ + UpdateAccountRequest.create = function create(properties) { + return new UpdateAccountRequest(properties); + }; + + /** + * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateAccountRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdateAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.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.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdateAccountRequest} UpdateAccountRequest + */ + UpdateAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdateAccountRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdateAccountRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateAccountRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1beta.Account.fromObject(object.account); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest + * @static + * @param {google.analytics.admin.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.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateAccountRequest; + })(); + + v1beta.ProvisionAccountTicketRequest = (function() { + + /** + * Properties of a ProvisionAccountTicketRequest. + * @memberof google.analytics.admin.v1beta + * @interface IProvisionAccountTicketRequest + * @property {google.analytics.admin.v1beta.IAccount|null} [account] ProvisionAccountTicketRequest account + * @property {string|null} [redirectUri] ProvisionAccountTicketRequest redirectUri + */ + + /** + * Constructs a new ProvisionAccountTicketRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ProvisionAccountTicketRequest. + * @implements IProvisionAccountTicketRequest + * @constructor + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketRequest=} [properties] Properties to set + */ + function ProvisionAccountTicketRequest(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]]; + } + + /** + * ProvisionAccountTicketRequest account. + * @member {google.analytics.admin.v1beta.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @instance + */ + ProvisionAccountTicketRequest.prototype.account = null; + + /** + * ProvisionAccountTicketRequest redirectUri. + * @member {string} redirectUri + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @instance + */ + ProvisionAccountTicketRequest.prototype.redirectUri = ""; + + /** + * Creates a new ProvisionAccountTicketRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest instance + */ + ProvisionAccountTicketRequest.create = function create(properties) { + return new ProvisionAccountTicketRequest(properties); + }; + + /** + * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1beta.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.redirectUri != null && Object.hasOwnProperty.call(message, "redirectUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); + return writer; + }; + + /** + * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketRequest.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.analytics.admin.v1beta.ProvisionAccountTicketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32()); + break; + case 2: + message.redirectUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProvisionAccountTicketRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProvisionAccountTicketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.account != null && message.hasOwnProperty("account")) { + var error = $root.google.analytics.admin.v1beta.Account.verify(message.account); + if (error) + return "account." + error; + } + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + if (!$util.isString(message.redirectUri)) + return "redirectUri: string expected"; + return null; + }; + + /** + * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + */ + ProvisionAccountTicketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ProvisionAccountTicketRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1beta.ProvisionAccountTicketRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1beta.Account.fromObject(object.account); + } + if (object.redirectUri != null) + message.redirectUri = String(object.redirectUri); + return message; + }; + + /** + * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {google.analytics.admin.v1beta.ProvisionAccountTicketRequest} message ProvisionAccountTicketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProvisionAccountTicketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.account = null; + object.redirectUri = ""; + } + if (message.account != null && message.hasOwnProperty("account")) + object.account = $root.google.analytics.admin.v1beta.Account.toObject(message.account, options); + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + object.redirectUri = message.redirectUri; + return object; + }; + + /** + * Converts this ProvisionAccountTicketRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @instance + * @returns {Object.} JSON object + */ + ProvisionAccountTicketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ProvisionAccountTicketRequest; + })(); + + v1beta.ProvisionAccountTicketResponse = (function() { + + /** + * Properties of a ProvisionAccountTicketResponse. + * @memberof google.analytics.admin.v1beta + * @interface IProvisionAccountTicketResponse + * @property {string|null} [accountTicketId] ProvisionAccountTicketResponse accountTicketId + */ + + /** + * Constructs a new ProvisionAccountTicketResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ProvisionAccountTicketResponse. + * @implements IProvisionAccountTicketResponse + * @constructor + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketResponse=} [properties] Properties to set + */ + function ProvisionAccountTicketResponse(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]]; + } + + /** + * ProvisionAccountTicketResponse accountTicketId. + * @member {string} accountTicketId + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @instance + */ + ProvisionAccountTicketResponse.prototype.accountTicketId = ""; + + /** + * Creates a new ProvisionAccountTicketResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse instance + */ + ProvisionAccountTicketResponse.create = function create(properties) { + return new ProvisionAccountTicketResponse(properties); + }; + + /** + * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accountTicketId != null && Object.hasOwnProperty.call(message, "accountTicketId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.accountTicketId); + return writer; + }; + + /** + * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ProvisionAccountTicketResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1beta.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProvisionAccountTicketResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketResponse.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.analytics.admin.v1beta.ProvisionAccountTicketResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accountTicketId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProvisionAccountTicketResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProvisionAccountTicketResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProvisionAccountTicketResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + if (!$util.isString(message.accountTicketId)) + return "accountTicketId: string expected"; + return null; + }; + + /** + * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + */ + ProvisionAccountTicketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ProvisionAccountTicketResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ProvisionAccountTicketResponse(); + if (object.accountTicketId != null) + message.accountTicketId = String(object.accountTicketId); + return message; + }; + + /** + * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {google.analytics.admin.v1beta.ProvisionAccountTicketResponse} message ProvisionAccountTicketResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProvisionAccountTicketResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.accountTicketId = ""; + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + object.accountTicketId = message.accountTicketId; + return object; + }; + + /** + * Converts this ProvisionAccountTicketResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @instance + * @returns {Object.} JSON object + */ + ProvisionAccountTicketResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ProvisionAccountTicketResponse; + })(); + + v1beta.GetPropertyRequest = (function() { + + /** + * Properties of a GetPropertyRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetPropertyRequest + * @property {string|null} [name] GetPropertyRequest name + */ + + /** + * Constructs a new GetPropertyRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetPropertyRequest. + * @implements IGetPropertyRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetPropertyRequest=} [properties] Properties to set + */ + function GetPropertyRequest(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]]; + } + + /** + * GetPropertyRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @instance + */ + GetPropertyRequest.prototype.name = ""; + + /** + * Creates a new GetPropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IGetPropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetPropertyRequest} GetPropertyRequest instance + */ + GetPropertyRequest.create = function create(properties) { + return new GetPropertyRequest(properties); + }; + + /** + * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetPropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPropertyRequest.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 GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetPropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetPropertyRequest} GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPropertyRequest.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.analytics.admin.v1beta.GetPropertyRequest(); + 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 GetPropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetPropertyRequest} GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetPropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetPropertyRequest.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 GetPropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetPropertyRequest} GetPropertyRequest + */ + GetPropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetPropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetPropertyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {google.analytics.admin.v1beta.GetPropertyRequest} message GetPropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetPropertyRequest.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 GetPropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @instance + * @returns {Object.} JSON object + */ + GetPropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetPropertyRequest; + })(); + + v1beta.ListPropertiesRequest = (function() { + + /** + * Properties of a ListPropertiesRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListPropertiesRequest + * @property {string|null} [filter] ListPropertiesRequest filter + * @property {number|null} [pageSize] ListPropertiesRequest pageSize + * @property {string|null} [pageToken] ListPropertiesRequest pageToken + * @property {boolean|null} [showDeleted] ListPropertiesRequest showDeleted + */ + + /** + * Constructs a new ListPropertiesRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListPropertiesRequest. + * @implements IListPropertiesRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListPropertiesRequest=} [properties] Properties to set + */ + function ListPropertiesRequest(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]]; + } + + /** + * ListPropertiesRequest filter. + * @member {string} filter + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.filter = ""; + + /** + * ListPropertiesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.pageSize = 0; + + /** + * ListPropertiesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.pageToken = ""; + + /** + * ListPropertiesRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.showDeleted = false; + + /** + * Creates a new ListPropertiesRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1beta.IListPropertiesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListPropertiesRequest} ListPropertiesRequest instance + */ + ListPropertiesRequest.create = function create(properties) { + return new ListPropertiesRequest(properties); + }; + + /** + * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1beta.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); + 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.showDeleted); + return writer; + }; + + /** + * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1beta.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListPropertiesRequest} ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesRequest.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.analytics.admin.v1beta.ListPropertiesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.filter = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.showDeleted = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListPropertiesRequest} ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPropertiesRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPropertiesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: 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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; + return null; + }; + + /** + * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListPropertiesRequest} ListPropertiesRequest + */ + ListPropertiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListPropertiesRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListPropertiesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); + return message; + }; + + /** + * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {google.analytics.admin.v1beta.ListPropertiesRequest} message ListPropertiesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPropertiesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.showDeleted = false; + } + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.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.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; + return object; + }; + + /** + * Converts this ListPropertiesRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPropertiesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListPropertiesRequest; + })(); + + v1beta.ListPropertiesResponse = (function() { + + /** + * Properties of a ListPropertiesResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListPropertiesResponse + * @property {Array.|null} [properties] ListPropertiesResponse properties + * @property {string|null} [nextPageToken] ListPropertiesResponse nextPageToken + */ + + /** + * Constructs a new ListPropertiesResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListPropertiesResponse. + * @implements IListPropertiesResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListPropertiesResponse=} [properties] Properties to set + */ + function ListPropertiesResponse(properties) { + this.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]]; + } + + /** + * ListPropertiesResponse properties. + * @member {Array.} properties + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @instance + */ + ListPropertiesResponse.prototype.properties = $util.emptyArray; + + /** + * ListPropertiesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @instance + */ + ListPropertiesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPropertiesResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1beta.IListPropertiesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListPropertiesResponse} ListPropertiesResponse instance + */ + ListPropertiesResponse.create = function create(properties) { + return new ListPropertiesResponse(properties); + }; + + /** + * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1beta.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.properties != null && message.properties.length) + for (var i = 0; i < message.properties.length; ++i) + $root.google.analytics.admin.v1beta.Property.encode(message.properties[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 ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListPropertiesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1beta.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListPropertiesResponse} ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesResponse.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.analytics.admin.v1beta.ListPropertiesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.properties && message.properties.length)) + message.properties = []; + message.properties.push($root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListPropertiesResponse} ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPropertiesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPropertiesResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPropertiesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.properties != null && message.hasOwnProperty("properties")) { + if (!Array.isArray(message.properties)) + return "properties: array expected"; + for (var i = 0; i < message.properties.length; ++i) { + var error = $root.google.analytics.admin.v1beta.Property.verify(message.properties[i]); + if (error) + return "properties." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListPropertiesResponse} ListPropertiesResponse + */ + ListPropertiesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListPropertiesResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListPropertiesResponse(); + if (object.properties) { + if (!Array.isArray(object.properties)) + throw TypeError(".google.analytics.admin.v1beta.ListPropertiesResponse.properties: array expected"); + message.properties = []; + for (var i = 0; i < object.properties.length; ++i) { + if (typeof object.properties[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListPropertiesResponse.properties: object expected"); + message.properties[i] = $root.google.analytics.admin.v1beta.Property.fromObject(object.properties[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {google.analytics.admin.v1beta.ListPropertiesResponse} message ListPropertiesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPropertiesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.properties = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.properties && message.properties.length) { + object.properties = []; + for (var j = 0; j < message.properties.length; ++j) + object.properties[j] = $root.google.analytics.admin.v1beta.Property.toObject(message.properties[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPropertiesResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @instance + * @returns {Object.} JSON object + */ + ListPropertiesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListPropertiesResponse; + })(); + + v1beta.UpdatePropertyRequest = (function() { + + /** + * Properties of an UpdatePropertyRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdatePropertyRequest + * @property {google.analytics.admin.v1beta.IProperty|null} [property] UpdatePropertyRequest property + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePropertyRequest updateMask + */ + + /** + * Constructs a new UpdatePropertyRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdatePropertyRequest. + * @implements IUpdatePropertyRequest + * @constructor + * @param {google.analytics.admin.v1beta.IUpdatePropertyRequest=} [properties] Properties to set + */ + function UpdatePropertyRequest(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]]; + } + + /** + * UpdatePropertyRequest property. + * @member {google.analytics.admin.v1beta.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @instance + */ + UpdatePropertyRequest.prototype.property = null; + + /** + * UpdatePropertyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @instance + */ + UpdatePropertyRequest.prototype.updateMask = null; + + /** + * Creates a new UpdatePropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdatePropertyRequest} UpdatePropertyRequest instance + */ + UpdatePropertyRequest.create = function create(properties) { + return new UpdatePropertyRequest(properties); + }; + + /** + * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdatePropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePropertyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1beta.Property.encode(message.property, 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 UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdatePropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdatePropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.UpdatePropertyRequest} UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePropertyRequest.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.analytics.admin.v1beta.UpdatePropertyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = $root.google.analytics.admin.v1beta.Property.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 UpdatePropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.UpdatePropertyRequest} UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdatePropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdatePropertyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1beta.Property.verify(message.property); + if (error) + return "property." + 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 UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdatePropertyRequest} UpdatePropertyRequest + */ + UpdatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdatePropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1beta.Property.fromObject(object.property); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdatePropertyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.UpdatePropertyRequest} message UpdatePropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdatePropertyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = null; + object.updateMask = null; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1beta.Property.toObject(message.property, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdatePropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @instance + * @returns {Object.} JSON object + */ + UpdatePropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdatePropertyRequest; + })(); + + v1beta.CreatePropertyRequest = (function() { + + /** + * Properties of a CreatePropertyRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreatePropertyRequest + * @property {google.analytics.admin.v1beta.IProperty|null} [property] CreatePropertyRequest property + */ + + /** + * Constructs a new CreatePropertyRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreatePropertyRequest. + * @implements ICreatePropertyRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreatePropertyRequest=} [properties] Properties to set + */ + function CreatePropertyRequest(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]]; + } + + /** + * CreatePropertyRequest property. + * @member {google.analytics.admin.v1beta.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @instance + */ + CreatePropertyRequest.prototype.property = null; + + /** + * Creates a new CreatePropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.ICreatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreatePropertyRequest} CreatePropertyRequest instance + */ + CreatePropertyRequest.create = function create(properties) { + return new CreatePropertyRequest(properties); + }; + + /** + * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreatePropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePropertyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1beta.Property.encode(message.property, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreatePropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreatePropertyRequest} CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePropertyRequest.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.analytics.admin.v1beta.CreatePropertyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreatePropertyRequest} CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreatePropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreatePropertyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1beta.Property.verify(message.property); + if (error) + return "property." + error; + } + return null; + }; + + /** + * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreatePropertyRequest} CreatePropertyRequest + */ + CreatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreatePropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1beta.Property.fromObject(object.property); + } + return message; + }; + + /** + * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.CreatePropertyRequest} message CreatePropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreatePropertyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.property = null; + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1beta.Property.toObject(message.property, options); + return object; + }; + + /** + * Converts this CreatePropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @instance + * @returns {Object.} JSON object + */ + CreatePropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreatePropertyRequest; + })(); + + v1beta.DeletePropertyRequest = (function() { + + /** + * Properties of a DeletePropertyRequest. + * @memberof google.analytics.admin.v1beta + * @interface IDeletePropertyRequest + * @property {string|null} [name] DeletePropertyRequest name + */ + + /** + * Constructs a new DeletePropertyRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DeletePropertyRequest. + * @implements IDeletePropertyRequest + * @constructor + * @param {google.analytics.admin.v1beta.IDeletePropertyRequest=} [properties] Properties to set + */ + function DeletePropertyRequest(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]]; + } + + /** + * DeletePropertyRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @instance + */ + DeletePropertyRequest.prototype.name = ""; + + /** + * Creates a new DeletePropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IDeletePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DeletePropertyRequest} DeletePropertyRequest instance + */ + DeletePropertyRequest.create = function create(properties) { + return new DeletePropertyRequest(properties); + }; + + /** + * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeletePropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePropertyRequest.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 DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeletePropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeletePropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DeletePropertyRequest} DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePropertyRequest.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.analytics.admin.v1beta.DeletePropertyRequest(); + 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 DeletePropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DeletePropertyRequest} DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeletePropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeletePropertyRequest.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 DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DeletePropertyRequest} DeletePropertyRequest + */ + DeletePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DeletePropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.DeletePropertyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {google.analytics.admin.v1beta.DeletePropertyRequest} message DeletePropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeletePropertyRequest.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 DeletePropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @instance + * @returns {Object.} JSON object + */ + DeletePropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeletePropertyRequest; + })(); + + v1beta.CreateFirebaseLinkRequest = (function() { + + /** + * Properties of a CreateFirebaseLinkRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreateFirebaseLinkRequest + * @property {string|null} [parent] CreateFirebaseLinkRequest parent + * @property {google.analytics.admin.v1beta.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink + */ + + /** + * Constructs a new CreateFirebaseLinkRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreateFirebaseLinkRequest. + * @implements ICreateFirebaseLinkRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreateFirebaseLinkRequest=} [properties] Properties to set + */ + function CreateFirebaseLinkRequest(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]]; + } + + /** + * CreateFirebaseLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @instance + */ + CreateFirebaseLinkRequest.prototype.parent = ""; + + /** + * CreateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1beta.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @instance + */ + CreateFirebaseLinkRequest.prototype.firebaseLink = null; + + /** + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance + */ + CreateFirebaseLinkRequest.create = function create(properties) { + return new CreateFirebaseLinkRequest(properties); + }; + + /** + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateFirebaseLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFirebaseLinkRequest.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.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1beta.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateFirebaseLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFirebaseLinkRequest.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.analytics.admin.v1beta.CreateFirebaseLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFirebaseLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFirebaseLinkRequest.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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1beta.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + return null; + }; + + /** + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + */ + CreateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreateFirebaseLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.fromObject(object.firebaseLink); + } + return message; + }; + + /** + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFirebaseLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.firebaseLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.toObject(message.firebaseLink, options); + return object; + }; + + /** + * Converts this CreateFirebaseLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @instance + * @returns {Object.} JSON object + */ + CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateFirebaseLinkRequest; + })(); + + v1beta.DeleteFirebaseLinkRequest = (function() { + + /** + * Properties of a DeleteFirebaseLinkRequest. + * @memberof google.analytics.admin.v1beta + * @interface IDeleteFirebaseLinkRequest + * @property {string|null} [name] DeleteFirebaseLinkRequest name + */ + + /** + * Constructs a new DeleteFirebaseLinkRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DeleteFirebaseLinkRequest. + * @implements IDeleteFirebaseLinkRequest + * @constructor + * @param {google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest=} [properties] Properties to set + */ + function DeleteFirebaseLinkRequest(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]]; + } + + /** + * DeleteFirebaseLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @instance + */ + DeleteFirebaseLinkRequest.prototype.name = ""; + + /** + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance + */ + DeleteFirebaseLinkRequest.create = function create(properties) { + return new DeleteFirebaseLinkRequest(properties); + }; + + /** + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFirebaseLinkRequest.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 DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFirebaseLinkRequest.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.analytics.admin.v1beta.DeleteFirebaseLinkRequest(); + 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 DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFirebaseLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFirebaseLinkRequest.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 DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + */ + DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFirebaseLinkRequest.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 DeleteFirebaseLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteFirebaseLinkRequest; + })(); + + v1beta.ListFirebaseLinksRequest = (function() { + + /** + * Properties of a ListFirebaseLinksRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListFirebaseLinksRequest + * @property {string|null} [parent] ListFirebaseLinksRequest parent + * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize + * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken + */ + + /** + * Constructs a new ListFirebaseLinksRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListFirebaseLinksRequest. + * @implements IListFirebaseLinksRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListFirebaseLinksRequest=} [properties] Properties to set + */ + function ListFirebaseLinksRequest(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]]; + } + + /** + * ListFirebaseLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.parent = ""; + + /** + * ListFirebaseLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageSize = 0; + + /** + * ListFirebaseLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1beta.IListFirebaseLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance + */ + ListFirebaseLinksRequest.create = function create(properties) { + return new ListFirebaseLinksRequest(properties); + }; + + /** + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1beta.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksRequest.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 ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1beta.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksRequest.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.analytics.admin.v1beta.ListFirebaseLinksRequest(); + 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 ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFirebaseLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFirebaseLinksRequest.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 ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksRequest} ListFirebaseLinksRequest + */ + ListFirebaseLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListFirebaseLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListFirebaseLinksRequest(); + 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 ListFirebaseLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {google.analytics.admin.v1beta.ListFirebaseLinksRequest} message ListFirebaseLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFirebaseLinksRequest.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 ListFirebaseLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @instance + * @returns {Object.} JSON object + */ + ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListFirebaseLinksRequest; + })(); + + v1beta.ListFirebaseLinksResponse = (function() { + + /** + * Properties of a ListFirebaseLinksResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListFirebaseLinksResponse + * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks + * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken + */ + + /** + * Constructs a new ListFirebaseLinksResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListFirebaseLinksResponse. + * @implements IListFirebaseLinksResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListFirebaseLinksResponse=} [properties] Properties to set + */ + function ListFirebaseLinksResponse(properties) { + this.firebaseLinks = []; + 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]]; + } + + /** + * ListFirebaseLinksResponse firebaseLinks. + * @member {Array.} firebaseLinks + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @instance + */ + ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; + + /** + * ListFirebaseLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @instance + */ + ListFirebaseLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1beta.IListFirebaseLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance + */ + ListFirebaseLinksResponse.create = function create(properties) { + return new ListFirebaseLinksResponse(properties); + }; + + /** + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1beta.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseLinks != null && message.firebaseLinks.length) + for (var i = 0; i < message.firebaseLinks.length; ++i) + $root.google.analytics.admin.v1beta.FirebaseLink.encode(message.firebaseLinks[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 ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListFirebaseLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1beta.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksResponse.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.analytics.admin.v1beta.ListFirebaseLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFirebaseLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFirebaseLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { + if (!Array.isArray(message.firebaseLinks)) + return "firebaseLinks: array expected"; + for (var i = 0; i < message.firebaseLinks.length; ++i) { + var error = $root.google.analytics.admin.v1beta.FirebaseLink.verify(message.firebaseLinks[i]); + if (error) + return "firebaseLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListFirebaseLinksResponse} ListFirebaseLinksResponse + */ + ListFirebaseLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListFirebaseLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListFirebaseLinksResponse(); + if (object.firebaseLinks) { + if (!Array.isArray(object.firebaseLinks)) + throw TypeError(".google.analytics.admin.v1beta.ListFirebaseLinksResponse.firebaseLinks: array expected"); + message.firebaseLinks = []; + for (var i = 0; i < object.firebaseLinks.length; ++i) { + if (typeof object.firebaseLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListFirebaseLinksResponse.firebaseLinks: object expected"); + message.firebaseLinks[i] = $root.google.analytics.admin.v1beta.FirebaseLink.fromObject(object.firebaseLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {google.analytics.admin.v1beta.ListFirebaseLinksResponse} message ListFirebaseLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFirebaseLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.firebaseLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.firebaseLinks && message.firebaseLinks.length) { + object.firebaseLinks = []; + for (var j = 0; j < message.firebaseLinks.length; ++j) + object.firebaseLinks[j] = $root.google.analytics.admin.v1beta.FirebaseLink.toObject(message.firebaseLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListFirebaseLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @instance + * @returns {Object.} JSON object + */ + ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListFirebaseLinksResponse; + })(); + + v1beta.CreateGoogleAdsLinkRequest = (function() { + + /** + * Properties of a CreateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreateGoogleAdsLinkRequest + * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent + * @property {google.analytics.admin.v1beta.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink + */ + + /** + * Constructs a new CreateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreateGoogleAdsLinkRequest. + * @implements ICreateGoogleAdsLinkRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + */ + function CreateGoogleAdsLinkRequest(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]]; + } + + /** + * CreateGoogleAdsLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @instance + */ + CreateGoogleAdsLinkRequest.prototype.parent = ""; + + /** + * CreateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1beta.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @instance + */ + CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + + /** + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance + */ + CreateGoogleAdsLinkRequest.create = function create(properties) { + return new CreateGoogleAdsLinkRequest(properties); + }; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateGoogleAdsLinkRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1beta.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateGoogleAdsLinkRequest.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.analytics.admin.v1beta.CreateGoogleAdsLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateGoogleAdsLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateGoogleAdsLinkRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1beta.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + return null; + }; + + /** + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + */ + CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.fromObject(object.googleAdsLink); + } + return message; + }; + + /** + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.googleAdsLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.toObject(message.googleAdsLink, options); + return object; + }; + + /** + * Converts this CreateGoogleAdsLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @instance + * @returns {Object.} JSON object + */ + CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateGoogleAdsLinkRequest; + })(); + + v1beta.UpdateGoogleAdsLinkRequest = (function() { + + /** + * Properties of an UpdateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdateGoogleAdsLinkRequest + * @property {google.analytics.admin.v1beta.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask + */ + + /** + * Constructs a new UpdateGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdateGoogleAdsLinkRequest. + * @implements IUpdateGoogleAdsLinkRequest + * @constructor + * @param {google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + */ + function UpdateGoogleAdsLinkRequest(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]]; + } + + /** + * UpdateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1beta.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @instance + */ + UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + + /** + * UpdateGoogleAdsLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @instance + */ + UpdateGoogleAdsLinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance + */ + UpdateGoogleAdsLinkRequest.create = function create(properties) { + return new UpdateGoogleAdsLinkRequest(properties); + }; + + /** + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateGoogleAdsLinkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1beta.GoogleAdsLink.encode(message.googleAdsLink, 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 UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateGoogleAdsLinkRequest.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.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.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 UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateGoogleAdsLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateGoogleAdsLinkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1beta.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + 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 UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + */ + UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest(); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.googleAdsLink = null; + object.updateMask = null; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateGoogleAdsLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateGoogleAdsLinkRequest; + })(); + + v1beta.DeleteGoogleAdsLinkRequest = (function() { + + /** + * Properties of a DeleteGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1beta + * @interface IDeleteGoogleAdsLinkRequest + * @property {string|null} [name] DeleteGoogleAdsLinkRequest name + */ + + /** + * Constructs a new DeleteGoogleAdsLinkRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DeleteGoogleAdsLinkRequest. + * @implements IDeleteGoogleAdsLinkRequest + * @constructor + * @param {google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + */ + function DeleteGoogleAdsLinkRequest(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]]; + } + + /** + * DeleteGoogleAdsLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @instance + */ + DeleteGoogleAdsLinkRequest.prototype.name = ""; + + /** + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance + */ + DeleteGoogleAdsLinkRequest.create = function create(properties) { + return new DeleteGoogleAdsLinkRequest(properties); + }; + + /** + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteGoogleAdsLinkRequest.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 DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteGoogleAdsLinkRequest.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.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest(); + 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 DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteGoogleAdsLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteGoogleAdsLinkRequest.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 DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + */ + DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteGoogleAdsLinkRequest.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 DeleteGoogleAdsLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteGoogleAdsLinkRequest; + })(); + + v1beta.ListGoogleAdsLinksRequest = (function() { + + /** + * Properties of a ListGoogleAdsLinksRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListGoogleAdsLinksRequest + * @property {string|null} [parent] ListGoogleAdsLinksRequest parent + * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize + * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken + */ + + /** + * Constructs a new ListGoogleAdsLinksRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListGoogleAdsLinksRequest. + * @implements IListGoogleAdsLinksRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksRequest=} [properties] Properties to set + */ + function ListGoogleAdsLinksRequest(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]]; + } + + /** + * ListGoogleAdsLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.parent = ""; + + /** + * ListGoogleAdsLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.pageSize = 0; + + /** + * ListGoogleAdsLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance + */ + ListGoogleAdsLinksRequest.create = function create(properties) { + return new ListGoogleAdsLinksRequest(properties); + }; + + /** + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksRequest.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 ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksRequest.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.analytics.admin.v1beta.ListGoogleAdsLinksRequest(); + 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 ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListGoogleAdsLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListGoogleAdsLinksRequest.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 ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + */ + ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest(); + 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 ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListGoogleAdsLinksRequest.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 ListGoogleAdsLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @instance + * @returns {Object.} JSON object + */ + ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListGoogleAdsLinksRequest; + })(); + + v1beta.ListGoogleAdsLinksResponse = (function() { + + /** + * Properties of a ListGoogleAdsLinksResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListGoogleAdsLinksResponse + * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks + * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken + */ + + /** + * Constructs a new ListGoogleAdsLinksResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListGoogleAdsLinksResponse. + * @implements IListGoogleAdsLinksResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksResponse=} [properties] Properties to set + */ + function ListGoogleAdsLinksResponse(properties) { + this.googleAdsLinks = []; + 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]]; + } + + /** + * ListGoogleAdsLinksResponse googleAdsLinks. + * @member {Array.} googleAdsLinks + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @instance + */ + ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; + + /** + * ListGoogleAdsLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @instance + */ + ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance + */ + ListGoogleAdsLinksResponse.create = function create(properties) { + return new ListGoogleAdsLinksResponse(properties); + }; + + /** + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.googleAdsLinks != null && message.googleAdsLinks.length) + for (var i = 0; i < message.googleAdsLinks.length; ++i) + $root.google.analytics.admin.v1beta.GoogleAdsLink.encode(message.googleAdsLinks[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 ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1beta.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksResponse.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.analytics.admin.v1beta.ListGoogleAdsLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListGoogleAdsLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListGoogleAdsLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { + if (!Array.isArray(message.googleAdsLinks)) + return "googleAdsLinks: array expected"; + for (var i = 0; i < message.googleAdsLinks.length; ++i) { + var error = $root.google.analytics.admin.v1beta.GoogleAdsLink.verify(message.googleAdsLinks[i]); + if (error) + return "googleAdsLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + */ + ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse(); + if (object.googleAdsLinks) { + if (!Array.isArray(object.googleAdsLinks)) + throw TypeError(".google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); + message.googleAdsLinks = []; + for (var i = 0; i < object.googleAdsLinks.length; ++i) { + if (typeof object.googleAdsLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); + message.googleAdsLinks[i] = $root.google.analytics.admin.v1beta.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.googleAdsLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.googleAdsLinks && message.googleAdsLinks.length) { + object.googleAdsLinks = []; + for (var j = 0; j < message.googleAdsLinks.length; ++j) + object.googleAdsLinks[j] = $root.google.analytics.admin.v1beta.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListGoogleAdsLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @instance + * @returns {Object.} JSON object + */ + ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListGoogleAdsLinksResponse; + })(); + + v1beta.GetDataSharingSettingsRequest = (function() { + + /** + * Properties of a GetDataSharingSettingsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetDataSharingSettingsRequest + * @property {string|null} [name] GetDataSharingSettingsRequest name + */ + + /** + * Constructs a new GetDataSharingSettingsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetDataSharingSettingsRequest. + * @implements IGetDataSharingSettingsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetDataSharingSettingsRequest=} [properties] Properties to set + */ + function GetDataSharingSettingsRequest(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]]; + } + + /** + * GetDataSharingSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @instance + */ + GetDataSharingSettingsRequest.prototype.name = ""; + + /** + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance + */ + GetDataSharingSettingsRequest.create = function create(properties) { + return new GetDataSharingSettingsRequest(properties); + }; + + /** + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetDataSharingSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataSharingSettingsRequest.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 GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetDataSharingSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataSharingSettingsRequest.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.analytics.admin.v1beta.GetDataSharingSettingsRequest(); + 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 GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDataSharingSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataSharingSettingsRequest.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 GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + */ + GetDataSharingSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetDataSharingSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataSharingSettingsRequest.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 GetDataSharingSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataSharingSettingsRequest; + })(); + + v1beta.ListAccountSummariesRequest = (function() { + + /** + * Properties of a ListAccountSummariesRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListAccountSummariesRequest + * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize + * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken + */ + + /** + * Constructs a new ListAccountSummariesRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListAccountSummariesRequest. + * @implements IListAccountSummariesRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListAccountSummariesRequest=} [properties] Properties to set + */ + function ListAccountSummariesRequest(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]]; + } + + /** + * ListAccountSummariesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @instance + */ + ListAccountSummariesRequest.prototype.pageSize = 0; + + /** + * ListAccountSummariesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @instance + */ + ListAccountSummariesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListAccountSummariesRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {google.analytics.admin.v1beta.IListAccountSummariesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListAccountSummariesRequest} ListAccountSummariesRequest instance + */ + ListAccountSummariesRequest.create = function create(properties) { + return new ListAccountSummariesRequest(properties); + }; + + /** + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {google.analytics.admin.v1beta.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAccountSummariesRequest.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); + return writer; + }; + + /** + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {google.analytics.admin.v1beta.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListAccountSummariesRequest} ListAccountSummariesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAccountSummariesRequest.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.analytics.admin.v1beta.ListAccountSummariesRequest(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListAccountSummariesRequest} ListAccountSummariesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListAccountSummariesRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAccountSummariesRequest.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"; + return null; + }; + + /** + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListAccountSummariesRequest} ListAccountSummariesRequest + */ + ListAccountSummariesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListAccountSummariesRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListAccountSummariesRequest(); + 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 ListAccountSummariesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {google.analytics.admin.v1beta.ListAccountSummariesRequest} message ListAccountSummariesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAccountSummariesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pageSize = 0; + object.pageToken = ""; + } + 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 ListAccountSummariesRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @instance + * @returns {Object.} JSON object + */ + ListAccountSummariesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAccountSummariesRequest; + })(); + + v1beta.ListAccountSummariesResponse = (function() { + + /** + * Properties of a ListAccountSummariesResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListAccountSummariesResponse + * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries + * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken + */ + + /** + * Constructs a new ListAccountSummariesResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListAccountSummariesResponse. + * @implements IListAccountSummariesResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListAccountSummariesResponse=} [properties] Properties to set + */ + function ListAccountSummariesResponse(properties) { + this.accountSummaries = []; + 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]]; + } + + /** + * ListAccountSummariesResponse accountSummaries. + * @member {Array.} accountSummaries + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @instance + */ + ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; + + /** + * ListAccountSummariesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @instance + */ + ListAccountSummariesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAccountSummariesResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1beta.IListAccountSummariesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListAccountSummariesResponse} ListAccountSummariesResponse instance + */ + ListAccountSummariesResponse.create = function create(properties) { + return new ListAccountSummariesResponse(properties); + }; + + /** + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1beta.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAccountSummariesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accountSummaries != null && message.accountSummaries.length) + for (var i = 0; i < message.accountSummaries.length; ++i) + $root.google.analytics.admin.v1beta.AccountSummary.encode(message.accountSummaries[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 ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListAccountSummariesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1beta.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListAccountSummariesResponse} ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAccountSummariesResponse.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.analytics.admin.v1beta.ListAccountSummariesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1beta.AccountSummary.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListAccountSummariesResponse} ListAccountSummariesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListAccountSummariesResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAccountSummariesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { + if (!Array.isArray(message.accountSummaries)) + return "accountSummaries: array expected"; + for (var i = 0; i < message.accountSummaries.length; ++i) { + var error = $root.google.analytics.admin.v1beta.AccountSummary.verify(message.accountSummaries[i]); + if (error) + return "accountSummaries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListAccountSummariesResponse} ListAccountSummariesResponse + */ + ListAccountSummariesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListAccountSummariesResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListAccountSummariesResponse(); + if (object.accountSummaries) { + if (!Array.isArray(object.accountSummaries)) + throw TypeError(".google.analytics.admin.v1beta.ListAccountSummariesResponse.accountSummaries: array expected"); + message.accountSummaries = []; + for (var i = 0; i < object.accountSummaries.length; ++i) { + if (typeof object.accountSummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListAccountSummariesResponse.accountSummaries: object expected"); + message.accountSummaries[i] = $root.google.analytics.admin.v1beta.AccountSummary.fromObject(object.accountSummaries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {google.analytics.admin.v1beta.ListAccountSummariesResponse} message ListAccountSummariesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAccountSummariesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.accountSummaries = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.accountSummaries && message.accountSummaries.length) { + object.accountSummaries = []; + for (var j = 0; j < message.accountSummaries.length; ++j) + object.accountSummaries[j] = $root.google.analytics.admin.v1beta.AccountSummary.toObject(message.accountSummaries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListAccountSummariesResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @instance + * @returns {Object.} JSON object + */ + ListAccountSummariesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAccountSummariesResponse; + })(); + + v1beta.AcknowledgeUserDataCollectionRequest = (function() { + + /** + * Properties of an AcknowledgeUserDataCollectionRequest. + * @memberof google.analytics.admin.v1beta + * @interface IAcknowledgeUserDataCollectionRequest + * @property {string|null} [property] AcknowledgeUserDataCollectionRequest property + * @property {string|null} [acknowledgement] AcknowledgeUserDataCollectionRequest acknowledgement + */ + + /** + * Constructs a new AcknowledgeUserDataCollectionRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an AcknowledgeUserDataCollectionRequest. + * @implements IAcknowledgeUserDataCollectionRequest + * @constructor + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set + */ + function AcknowledgeUserDataCollectionRequest(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]]; + } + + /** + * AcknowledgeUserDataCollectionRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @instance + */ + AcknowledgeUserDataCollectionRequest.prototype.property = ""; + + /** + * AcknowledgeUserDataCollectionRequest acknowledgement. + * @member {string} acknowledgement + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @instance + */ + AcknowledgeUserDataCollectionRequest.prototype.acknowledgement = ""; + + /** + * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest instance + */ + AcknowledgeUserDataCollectionRequest.create = function create(properties) { + return new AcknowledgeUserDataCollectionRequest(properties); + }; + + /** + * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcknowledgeUserDataCollectionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acknowledgement); + return writer; + }; + + /** + * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcknowledgeUserDataCollectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcknowledgeUserDataCollectionRequest.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.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = reader.string(); + break; + case 2: + message.acknowledgement = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcknowledgeUserDataCollectionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AcknowledgeUserDataCollectionRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AcknowledgeUserDataCollectionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!$util.isString(message.acknowledgement)) + return "acknowledgement: string expected"; + return null; + }; + + /** + * Creates an AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + */ + AcknowledgeUserDataCollectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest(); + if (object.property != null) + message.property = String(object.property); + if (object.acknowledgement != null) + message.acknowledgement = String(object.acknowledgement); + return message; + }; + + /** + * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AcknowledgeUserDataCollectionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = ""; + object.acknowledgement = ""; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = message.acknowledgement; + return object; + }; + + /** + * Converts this AcknowledgeUserDataCollectionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @instance + * @returns {Object.} JSON object + */ + AcknowledgeUserDataCollectionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AcknowledgeUserDataCollectionRequest; + })(); + + v1beta.AcknowledgeUserDataCollectionResponse = (function() { + + /** + * Properties of an AcknowledgeUserDataCollectionResponse. + * @memberof google.analytics.admin.v1beta + * @interface IAcknowledgeUserDataCollectionResponse + */ + + /** + * Constructs a new AcknowledgeUserDataCollectionResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an AcknowledgeUserDataCollectionResponse. + * @implements IAcknowledgeUserDataCollectionResponse + * @constructor + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set + */ + function AcknowledgeUserDataCollectionResponse(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]]; + } + + /** + * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse instance + */ + AcknowledgeUserDataCollectionResponse.create = function create(properties) { + return new AcknowledgeUserDataCollectionResponse(properties); + }; + + /** + * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcknowledgeUserDataCollectionResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcknowledgeUserDataCollectionResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcknowledgeUserDataCollectionResponse.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.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcknowledgeUserDataCollectionResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AcknowledgeUserDataCollectionResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AcknowledgeUserDataCollectionResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + */ + AcknowledgeUserDataCollectionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) + return object; + return new $root.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse(); + }; + + /** + * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AcknowledgeUserDataCollectionResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this AcknowledgeUserDataCollectionResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @instance + * @returns {Object.} JSON object + */ + AcknowledgeUserDataCollectionResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AcknowledgeUserDataCollectionResponse; + })(); + + v1beta.SearchChangeHistoryEventsRequest = (function() { + + /** + * Properties of a SearchChangeHistoryEventsRequest. + * @memberof google.analytics.admin.v1beta + * @interface ISearchChangeHistoryEventsRequest + * @property {string|null} [account] SearchChangeHistoryEventsRequest account + * @property {string|null} [property] SearchChangeHistoryEventsRequest property + * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType + * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action + * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail + * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime + * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime + * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize + * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken + */ + + /** + * Constructs a new SearchChangeHistoryEventsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a SearchChangeHistoryEventsRequest. + * @implements ISearchChangeHistoryEventsRequest + * @constructor + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + */ + function SearchChangeHistoryEventsRequest(properties) { + this.resourceType = []; + this.action = []; + this.actorEmail = []; + 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]]; + } + + /** + * SearchChangeHistoryEventsRequest account. + * @member {string} account + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.account = ""; + + /** + * SearchChangeHistoryEventsRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.property = ""; + + /** + * SearchChangeHistoryEventsRequest resourceType. + * @member {Array.} resourceType + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest action. + * @member {Array.} action + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest actorEmail. + * @member {Array.} actorEmail + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest earliestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; + + /** + * SearchChangeHistoryEventsRequest latestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; + + /** + * SearchChangeHistoryEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.pageSize = 0; + + /** + * SearchChangeHistoryEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.pageToken = ""; + + /** + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance + */ + SearchChangeHistoryEventsRequest.create = function create(properties) { + return new SearchChangeHistoryEventsRequest(properties); + }; + + /** + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchChangeHistoryEventsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); + if (message.resourceType != null && message.resourceType.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.resourceType.length; ++i) + writer.int32(message.resourceType[i]); + writer.ldelim(); + } + if (message.action != null && message.action.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.action.length; ++i) + writer.int32(message.action[i]); + writer.ldelim(); + } + if (message.actorEmail != null && message.actorEmail.length) + for (var i = 0; i < message.actorEmail.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); + if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchChangeHistoryEventsRequest.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.analytics.admin.v1beta.SearchChangeHistoryEventsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = reader.string(); + break; + case 2: + message.property = reader.string(); + break; + case 3: + if (!(message.resourceType && message.resourceType.length)) + message.resourceType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.resourceType.push(reader.int32()); + } else + message.resourceType.push(reader.int32()); + break; + case 4: + if (!(message.action && message.action.length)) + message.action = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.action.push(reader.int32()); + } else + message.action.push(reader.int32()); + break; + case 5: + if (!(message.actorEmail && message.actorEmail.length)) + message.actorEmail = []; + message.actorEmail.push(reader.string()); + break; + case 6: + message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.pageSize = reader.int32(); + break; + case 9: + message.pageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchChangeHistoryEventsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchChangeHistoryEventsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) { + if (!Array.isArray(message.resourceType)) + return "resourceType: array expected"; + for (var i = 0; i < message.resourceType.length; ++i) + switch (message.resourceType[i]) { + default: + return "resourceType: enum value[] expected"; + case 0: + case 1: + case 2: + case 6: + case 7: + case 8: + case 9: + case 10: + case 13: + case 14: + case 15: + case 18: + case 20: + break; + } + } + if (message.action != null && message.hasOwnProperty("action")) { + if (!Array.isArray(message.action)) + return "action: array expected"; + for (var i = 0; i < message.action.length; ++i) + switch (message.action[i]) { + default: + return "action: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { + if (!Array.isArray(message.actorEmail)) + return "actorEmail: array expected"; + for (var i = 0; i < message.actorEmail.length; ++i) + if (!$util.isString(message.actorEmail[i])) + return "actorEmail: string[] expected"; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); + if (error) + return "earliestChangeTime." + error; + } + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); + if (error) + return "latestChangeTime." + error; + } + 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 SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + */ + SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest(); + if (object.account != null) + message.account = String(object.account); + if (object.property != null) + message.property = String(object.property); + if (object.resourceType) { + if (!Array.isArray(object.resourceType)) + throw TypeError(".google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.resourceType: array expected"); + message.resourceType = []; + for (var i = 0; i < object.resourceType.length; ++i) + switch (object.resourceType[i]) { + default: + case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType[i] = 0; + break; + case "ACCOUNT": + case 1: + message.resourceType[i] = 1; + break; + case "PROPERTY": + case 2: + message.resourceType[i] = 2; + break; + case "FIREBASE_LINK": + case 6: + message.resourceType[i] = 6; + break; + case "GOOGLE_ADS_LINK": + case 7: + message.resourceType[i] = 7; + break; + case "GOOGLE_SIGNALS_SETTINGS": + case 8: + message.resourceType[i] = 8; + break; + case "CONVERSION_EVENT": + case 9: + message.resourceType[i] = 9; + break; + case "MEASUREMENT_PROTOCOL_SECRET": + case 10: + message.resourceType[i] = 10; + break; + case "DATA_RETENTION_SETTINGS": + case 13: + message.resourceType[i] = 13; + break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK": + case 14: + message.resourceType[i] = 14; + break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": + case 15: + message.resourceType[i] = 15; + break; + case "DATA_STREAM": + case 18: + message.resourceType[i] = 18; + break; + case "ATTRIBUTION_SETTINGS": + case 20: + message.resourceType[i] = 20; + break; + } + } + if (object.action) { + if (!Array.isArray(object.action)) + throw TypeError(".google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.action: array expected"); + message.action = []; + for (var i = 0; i < object.action.length; ++i) + switch (object.action[i]) { + default: + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action[i] = 0; + break; + case "CREATED": + case 1: + message.action[i] = 1; + break; + case "UPDATED": + case 2: + message.action[i] = 2; + break; + case "DELETED": + case 3: + message.action[i] = 3; + break; + } + } + if (object.actorEmail) { + if (!Array.isArray(object.actorEmail)) + throw TypeError(".google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.actorEmail: array expected"); + message.actorEmail = []; + for (var i = 0; i < object.actorEmail.length; ++i) + message.actorEmail[i] = String(object.actorEmail[i]); + } + if (object.earliestChangeTime != null) { + if (typeof object.earliestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); + message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); + } + if (object.latestChangeTime != null) { + if (typeof object.latestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); + message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); + } + 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 SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.resourceType = []; + object.action = []; + object.actorEmail = []; + } + if (options.defaults) { + object.account = ""; + object.property = ""; + object.earliestChangeTime = null; + object.latestChangeTime = null; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.resourceType && message.resourceType.length) { + object.resourceType = []; + for (var j = 0; j < message.resourceType.length; ++j) + object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1beta.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; + } + if (message.action && message.action.length) { + object.action = []; + for (var j = 0; j < message.action.length; ++j) + object.action[j] = options.enums === String ? $root.google.analytics.admin.v1beta.ActionType[message.action[j]] : message.action[j]; + } + if (message.actorEmail && message.actorEmail.length) { + object.actorEmail = []; + for (var j = 0; j < message.actorEmail.length; ++j) + object.actorEmail[j] = message.actorEmail[j]; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) + object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) + object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); + 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 SearchChangeHistoryEventsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @instance + * @returns {Object.} JSON object + */ + SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SearchChangeHistoryEventsRequest; + })(); + + v1beta.SearchChangeHistoryEventsResponse = (function() { + + /** + * Properties of a SearchChangeHistoryEventsResponse. + * @memberof google.analytics.admin.v1beta + * @interface ISearchChangeHistoryEventsResponse + * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents + * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken + */ + + /** + * Constructs a new SearchChangeHistoryEventsResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a SearchChangeHistoryEventsResponse. + * @implements ISearchChangeHistoryEventsResponse + * @constructor + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + */ + function SearchChangeHistoryEventsResponse(properties) { + this.changeHistoryEvents = []; + 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]]; + } + + /** + * SearchChangeHistoryEventsResponse changeHistoryEvents. + * @member {Array.} changeHistoryEvents + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @instance + */ + SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; + + /** + * SearchChangeHistoryEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @instance + */ + SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance + */ + SearchChangeHistoryEventsResponse.create = function create(properties) { + return new SearchChangeHistoryEventsResponse(properties); + }; + + /** + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchChangeHistoryEventsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) + for (var i = 0; i < message.changeHistoryEvents.length; ++i) + $root.google.analytics.admin.v1beta.ChangeHistoryEvent.encode(message.changeHistoryEvents[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 SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchChangeHistoryEventsResponse.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.analytics.admin.v1beta.SearchChangeHistoryEventsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) + message.changeHistoryEvents = []; + message.changeHistoryEvents.push($root.google.analytics.admin.v1beta.ChangeHistoryEvent.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchChangeHistoryEventsResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchChangeHistoryEventsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { + if (!Array.isArray(message.changeHistoryEvents)) + return "changeHistoryEvents: array expected"; + for (var i = 0; i < message.changeHistoryEvents.length; ++i) { + var error = $root.google.analytics.admin.v1beta.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); + if (error) + return "changeHistoryEvents." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + */ + SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse(); + if (object.changeHistoryEvents) { + if (!Array.isArray(object.changeHistoryEvents)) + throw TypeError(".google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); + message.changeHistoryEvents = []; + for (var i = 0; i < object.changeHistoryEvents.length; ++i) { + if (typeof object.changeHistoryEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); + message.changeHistoryEvents[i] = $root.google.analytics.admin.v1beta.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changeHistoryEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.changeHistoryEvents && message.changeHistoryEvents.length) { + object.changeHistoryEvents = []; + for (var j = 0; j < message.changeHistoryEvents.length; ++j) + object.changeHistoryEvents[j] = $root.google.analytics.admin.v1beta.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this SearchChangeHistoryEventsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @instance + * @returns {Object.} JSON object + */ + SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SearchChangeHistoryEventsResponse; + })(); + + v1beta.GetMeasurementProtocolSecretRequest = (function() { + + /** + * Properties of a GetMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetMeasurementProtocolSecretRequest + * @property {string|null} [name] GetMeasurementProtocolSecretRequest name + */ + + /** + * Constructs a new GetMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetMeasurementProtocolSecretRequest. + * @implements IGetMeasurementProtocolSecretRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set + */ + function GetMeasurementProtocolSecretRequest(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]]; + } + + /** + * GetMeasurementProtocolSecretRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @instance + */ + GetMeasurementProtocolSecretRequest.prototype.name = ""; + + /** + * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest instance + */ + GetMeasurementProtocolSecretRequest.create = function create(properties) { + return new GetMeasurementProtocolSecretRequest(properties); + }; + + /** + * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMeasurementProtocolSecretRequest.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 GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMeasurementProtocolSecretRequest.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.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest(); + 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 GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetMeasurementProtocolSecretRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetMeasurementProtocolSecretRequest.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 GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + */ + GetMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetMeasurementProtocolSecretRequest.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 GetMeasurementProtocolSecretRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @instance + * @returns {Object.} JSON object + */ + GetMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetMeasurementProtocolSecretRequest; + })(); + + v1beta.CreateMeasurementProtocolSecretRequest = (function() { + + /** + * Properties of a CreateMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreateMeasurementProtocolSecretRequest + * @property {string|null} [parent] CreateMeasurementProtocolSecretRequest parent + * @property {google.analytics.admin.v1beta.IMeasurementProtocolSecret|null} [measurementProtocolSecret] CreateMeasurementProtocolSecretRequest measurementProtocolSecret + */ + + /** + * Constructs a new CreateMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreateMeasurementProtocolSecretRequest. + * @implements ICreateMeasurementProtocolSecretRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set + */ + function CreateMeasurementProtocolSecretRequest(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]]; + } + + /** + * CreateMeasurementProtocolSecretRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @instance + */ + CreateMeasurementProtocolSecretRequest.prototype.parent = ""; + + /** + * CreateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1beta.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @instance + */ + CreateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; + + /** + * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest instance + */ + CreateMeasurementProtocolSecretRequest.create = function create(properties) { + return new CreateMeasurementProtocolSecretRequest(properties); + }; + + /** + * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMeasurementProtocolSecretRequest.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.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMeasurementProtocolSecretRequest.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.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateMeasurementProtocolSecretRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateMeasurementProtocolSecretRequest.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.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; + } + return null; + }; + + /** + * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + */ + CreateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + return message; + }; + + /** + * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.measurementProtocolSecret = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + return object; + }; + + /** + * Converts this CreateMeasurementProtocolSecretRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @instance + * @returns {Object.} JSON object + */ + CreateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateMeasurementProtocolSecretRequest; + })(); + + v1beta.DeleteMeasurementProtocolSecretRequest = (function() { + + /** + * Properties of a DeleteMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @interface IDeleteMeasurementProtocolSecretRequest + * @property {string|null} [name] DeleteMeasurementProtocolSecretRequest name + */ + + /** + * Constructs a new DeleteMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DeleteMeasurementProtocolSecretRequest. + * @implements IDeleteMeasurementProtocolSecretRequest + * @constructor + * @param {google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set + */ + function DeleteMeasurementProtocolSecretRequest(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]]; + } + + /** + * DeleteMeasurementProtocolSecretRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @instance + */ + DeleteMeasurementProtocolSecretRequest.prototype.name = ""; + + /** + * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest instance + */ + DeleteMeasurementProtocolSecretRequest.create = function create(properties) { + return new DeleteMeasurementProtocolSecretRequest(properties); + }; + + /** + * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteMeasurementProtocolSecretRequest.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 DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteMeasurementProtocolSecretRequest.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.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest(); + 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 DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteMeasurementProtocolSecretRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteMeasurementProtocolSecretRequest.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 DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + */ + DeleteMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteMeasurementProtocolSecretRequest.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 DeleteMeasurementProtocolSecretRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteMeasurementProtocolSecretRequest; + })(); + + v1beta.UpdateMeasurementProtocolSecretRequest = (function() { + + /** + * Properties of an UpdateMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdateMeasurementProtocolSecretRequest + * @property {google.analytics.admin.v1beta.IMeasurementProtocolSecret|null} [measurementProtocolSecret] UpdateMeasurementProtocolSecretRequest measurementProtocolSecret + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMeasurementProtocolSecretRequest updateMask + */ + + /** + * Constructs a new UpdateMeasurementProtocolSecretRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdateMeasurementProtocolSecretRequest. + * @implements IUpdateMeasurementProtocolSecretRequest + * @constructor + * @param {google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set + */ + function UpdateMeasurementProtocolSecretRequest(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]]; + } + + /** + * UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1beta.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @instance + */ + UpdateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; + + /** + * UpdateMeasurementProtocolSecretRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @instance + */ + UpdateMeasurementProtocolSecretRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest instance + */ + UpdateMeasurementProtocolSecretRequest.create = function create(properties) { + return new UpdateMeasurementProtocolSecretRequest(properties); + }; + + /** + * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, 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 UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateMeasurementProtocolSecretRequest.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.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.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 UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateMeasurementProtocolSecretRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateMeasurementProtocolSecretRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + 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 UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + */ + UpdateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest(); + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.measurementProtocolSecret = null; + object.updateMask = null; + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateMeasurementProtocolSecretRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateMeasurementProtocolSecretRequest; + })(); + + v1beta.ListMeasurementProtocolSecretsRequest = (function() { + + /** + * Properties of a ListMeasurementProtocolSecretsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListMeasurementProtocolSecretsRequest + * @property {string|null} [parent] ListMeasurementProtocolSecretsRequest parent + * @property {number|null} [pageSize] ListMeasurementProtocolSecretsRequest pageSize + * @property {string|null} [pageToken] ListMeasurementProtocolSecretsRequest pageToken + */ + + /** + * Constructs a new ListMeasurementProtocolSecretsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListMeasurementProtocolSecretsRequest. + * @implements IListMeasurementProtocolSecretsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set + */ + function ListMeasurementProtocolSecretsRequest(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]]; + } + + /** + * ListMeasurementProtocolSecretsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @instance + */ + ListMeasurementProtocolSecretsRequest.prototype.parent = ""; + + /** + * ListMeasurementProtocolSecretsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @instance + */ + ListMeasurementProtocolSecretsRequest.prototype.pageSize = 0; + + /** + * ListMeasurementProtocolSecretsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @instance + */ + ListMeasurementProtocolSecretsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest instance + */ + ListMeasurementProtocolSecretsRequest.create = function create(properties) { + return new ListMeasurementProtocolSecretsRequest(properties); + }; + + /** + * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMeasurementProtocolSecretsRequest.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 ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMeasurementProtocolSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMeasurementProtocolSecretsRequest.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.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest(); + 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 ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMeasurementProtocolSecretsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListMeasurementProtocolSecretsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListMeasurementProtocolSecretsRequest.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 ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + */ + ListMeasurementProtocolSecretsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest(); + 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 ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListMeasurementProtocolSecretsRequest.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 ListMeasurementProtocolSecretsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @instance + * @returns {Object.} JSON object + */ + ListMeasurementProtocolSecretsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListMeasurementProtocolSecretsRequest; + })(); + + v1beta.ListMeasurementProtocolSecretsResponse = (function() { + + /** + * Properties of a ListMeasurementProtocolSecretsResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListMeasurementProtocolSecretsResponse + * @property {Array.|null} [measurementProtocolSecrets] ListMeasurementProtocolSecretsResponse measurementProtocolSecrets + * @property {string|null} [nextPageToken] ListMeasurementProtocolSecretsResponse nextPageToken + */ + + /** + * Constructs a new ListMeasurementProtocolSecretsResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListMeasurementProtocolSecretsResponse. + * @implements IListMeasurementProtocolSecretsResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set + */ + function ListMeasurementProtocolSecretsResponse(properties) { + this.measurementProtocolSecrets = []; + 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]]; + } + + /** + * ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. + * @member {Array.} measurementProtocolSecrets + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @instance + */ + ListMeasurementProtocolSecretsResponse.prototype.measurementProtocolSecrets = $util.emptyArray; + + /** + * ListMeasurementProtocolSecretsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @instance + */ + ListMeasurementProtocolSecretsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse instance + */ + ListMeasurementProtocolSecretsResponse.create = function create(properties) { + return new ListMeasurementProtocolSecretsResponse(properties); + }; + + /** + * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMeasurementProtocolSecretsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.measurementProtocolSecrets != null && message.measurementProtocolSecrets.length) + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) + $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.encode(message.measurementProtocolSecrets[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 ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMeasurementProtocolSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMeasurementProtocolSecretsResponse.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.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) + message.measurementProtocolSecrets = []; + message.measurementProtocolSecrets.push($root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMeasurementProtocolSecretsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListMeasurementProtocolSecretsResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListMeasurementProtocolSecretsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.measurementProtocolSecrets != null && message.hasOwnProperty("measurementProtocolSecrets")) { + if (!Array.isArray(message.measurementProtocolSecrets)) + return "measurementProtocolSecrets: array expected"; + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) { + var error = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.verify(message.measurementProtocolSecrets[i]); + if (error) + return "measurementProtocolSecrets." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + */ + ListMeasurementProtocolSecretsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse(); + if (object.measurementProtocolSecrets) { + if (!Array.isArray(object.measurementProtocolSecrets)) + throw TypeError(".google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: array expected"); + message.measurementProtocolSecrets = []; + for (var i = 0; i < object.measurementProtocolSecrets.length; ++i) { + if (typeof object.measurementProtocolSecrets[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: object expected"); + message.measurementProtocolSecrets[i] = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecrets[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListMeasurementProtocolSecretsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.measurementProtocolSecrets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.measurementProtocolSecrets && message.measurementProtocolSecrets.length) { + object.measurementProtocolSecrets = []; + for (var j = 0; j < message.measurementProtocolSecrets.length; ++j) + object.measurementProtocolSecrets[j] = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.toObject(message.measurementProtocolSecrets[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListMeasurementProtocolSecretsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @instance + * @returns {Object.} JSON object + */ + ListMeasurementProtocolSecretsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListMeasurementProtocolSecretsResponse; + })(); + + v1beta.CreateConversionEventRequest = (function() { + + /** + * Properties of a CreateConversionEventRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreateConversionEventRequest + * @property {google.analytics.admin.v1beta.IConversionEvent|null} [conversionEvent] CreateConversionEventRequest conversionEvent + * @property {string|null} [parent] CreateConversionEventRequest parent + */ + + /** + * Constructs a new CreateConversionEventRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreateConversionEventRequest. + * @implements ICreateConversionEventRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreateConversionEventRequest=} [properties] Properties to set + */ + function CreateConversionEventRequest(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]]; + } + + /** + * CreateConversionEventRequest conversionEvent. + * @member {google.analytics.admin.v1beta.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @instance + */ + CreateConversionEventRequest.prototype.conversionEvent = null; + + /** + * CreateConversionEventRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @instance + */ + CreateConversionEventRequest.prototype.parent = ""; + + /** + * Creates a new CreateConversionEventRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreateConversionEventRequest} CreateConversionEventRequest instance + */ + CreateConversionEventRequest.create = function create(properties) { + return new CreateConversionEventRequest(properties); + }; + + /** + * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateConversionEventRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateConversionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1beta.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + return writer; + }; + + /** + * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateConversionEventRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateConversionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreateConversionEventRequest} CreateConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateConversionEventRequest.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.analytics.admin.v1beta.CreateConversionEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreateConversionEventRequest} CreateConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateConversionEventRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateConversionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + var error = $root.google.analytics.admin.v1beta.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreateConversionEventRequest} CreateConversionEventRequest + */ + CreateConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreateConversionEventRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreateConversionEventRequest(); + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreateConversionEventRequest.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.fromObject(object.conversionEvent); + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.CreateConversionEventRequest} message CreateConversionEventRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateConversionEventRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.conversionEvent = null; + object.parent = ""; + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) + object.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.toObject(message.conversionEvent, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this CreateConversionEventRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @instance + * @returns {Object.} JSON object + */ + CreateConversionEventRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateConversionEventRequest; + })(); + + v1beta.GetConversionEventRequest = (function() { + + /** + * Properties of a GetConversionEventRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetConversionEventRequest + * @property {string|null} [name] GetConversionEventRequest name + */ + + /** + * Constructs a new GetConversionEventRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetConversionEventRequest. + * @implements IGetConversionEventRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetConversionEventRequest=} [properties] Properties to set + */ + function GetConversionEventRequest(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]]; + } + + /** + * GetConversionEventRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @instance + */ + GetConversionEventRequest.prototype.name = ""; + + /** + * Creates a new GetConversionEventRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.IGetConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetConversionEventRequest} GetConversionEventRequest instance + */ + GetConversionEventRequest.create = function create(properties) { + return new GetConversionEventRequest(properties); + }; + + /** + * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetConversionEventRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetConversionEventRequest.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 GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetConversionEventRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetConversionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetConversionEventRequest} GetConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetConversionEventRequest.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.analytics.admin.v1beta.GetConversionEventRequest(); + 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 GetConversionEventRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetConversionEventRequest} GetConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetConversionEventRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetConversionEventRequest.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 GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetConversionEventRequest} GetConversionEventRequest + */ + GetConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetConversionEventRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetConversionEventRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.GetConversionEventRequest} message GetConversionEventRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetConversionEventRequest.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 GetConversionEventRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @instance + * @returns {Object.} JSON object + */ + GetConversionEventRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetConversionEventRequest; + })(); + + v1beta.DeleteConversionEventRequest = (function() { + + /** + * Properties of a DeleteConversionEventRequest. + * @memberof google.analytics.admin.v1beta + * @interface IDeleteConversionEventRequest + * @property {string|null} [name] DeleteConversionEventRequest name + */ + + /** + * Constructs a new DeleteConversionEventRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DeleteConversionEventRequest. + * @implements IDeleteConversionEventRequest + * @constructor + * @param {google.analytics.admin.v1beta.IDeleteConversionEventRequest=} [properties] Properties to set + */ + function DeleteConversionEventRequest(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]]; + } + + /** + * DeleteConversionEventRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @instance + */ + DeleteConversionEventRequest.prototype.name = ""; + + /** + * Creates a new DeleteConversionEventRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DeleteConversionEventRequest} DeleteConversionEventRequest instance + */ + DeleteConversionEventRequest.create = function create(properties) { + return new DeleteConversionEventRequest(properties); + }; + + /** + * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteConversionEventRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteConversionEventRequest.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 DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteConversionEventRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DeleteConversionEventRequest} DeleteConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteConversionEventRequest.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.analytics.admin.v1beta.DeleteConversionEventRequest(); + 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 DeleteConversionEventRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DeleteConversionEventRequest} DeleteConversionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteConversionEventRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteConversionEventRequest.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 DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DeleteConversionEventRequest} DeleteConversionEventRequest + */ + DeleteConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DeleteConversionEventRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.DeleteConversionEventRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {google.analytics.admin.v1beta.DeleteConversionEventRequest} message DeleteConversionEventRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteConversionEventRequest.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 DeleteConversionEventRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteConversionEventRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteConversionEventRequest; + })(); + + v1beta.ListConversionEventsRequest = (function() { + + /** + * Properties of a ListConversionEventsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListConversionEventsRequest + * @property {string|null} [parent] ListConversionEventsRequest parent + * @property {number|null} [pageSize] ListConversionEventsRequest pageSize + * @property {string|null} [pageToken] ListConversionEventsRequest pageToken + */ + + /** + * Constructs a new ListConversionEventsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListConversionEventsRequest. + * @implements IListConversionEventsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListConversionEventsRequest=} [properties] Properties to set + */ + function ListConversionEventsRequest(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]]; + } + + /** + * ListConversionEventsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @instance + */ + ListConversionEventsRequest.prototype.parent = ""; + + /** + * ListConversionEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @instance + */ + ListConversionEventsRequest.prototype.pageSize = 0; + + /** + * ListConversionEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @instance + */ + ListConversionEventsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListConversionEventsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {google.analytics.admin.v1beta.IListConversionEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListConversionEventsRequest} ListConversionEventsRequest instance + */ + ListConversionEventsRequest.create = function create(properties) { + return new ListConversionEventsRequest(properties); + }; + + /** + * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {google.analytics.admin.v1beta.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListConversionEventsRequest.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 ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {google.analytics.admin.v1beta.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListConversionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListConversionEventsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListConversionEventsRequest} ListConversionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListConversionEventsRequest.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.analytics.admin.v1beta.ListConversionEventsRequest(); + 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 ListConversionEventsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListConversionEventsRequest} ListConversionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListConversionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListConversionEventsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListConversionEventsRequest.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 ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListConversionEventsRequest} ListConversionEventsRequest + */ + ListConversionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListConversionEventsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListConversionEventsRequest(); + 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 ListConversionEventsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {google.analytics.admin.v1beta.ListConversionEventsRequest} message ListConversionEventsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListConversionEventsRequest.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 ListConversionEventsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @instance + * @returns {Object.} JSON object + */ + ListConversionEventsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListConversionEventsRequest; + })(); + + v1beta.ListConversionEventsResponse = (function() { + + /** + * Properties of a ListConversionEventsResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListConversionEventsResponse + * @property {Array.|null} [conversionEvents] ListConversionEventsResponse conversionEvents + * @property {string|null} [nextPageToken] ListConversionEventsResponse nextPageToken + */ + + /** + * Constructs a new ListConversionEventsResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListConversionEventsResponse. + * @implements IListConversionEventsResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListConversionEventsResponse=} [properties] Properties to set + */ + function ListConversionEventsResponse(properties) { + this.conversionEvents = []; + 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]]; + } + + /** + * ListConversionEventsResponse conversionEvents. + * @member {Array.} conversionEvents + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @instance + */ + ListConversionEventsResponse.prototype.conversionEvents = $util.emptyArray; + + /** + * ListConversionEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @instance + */ + ListConversionEventsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListConversionEventsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {google.analytics.admin.v1beta.IListConversionEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListConversionEventsResponse} ListConversionEventsResponse instance + */ + ListConversionEventsResponse.create = function create(properties) { + return new ListConversionEventsResponse(properties); + }; + + /** + * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {google.analytics.admin.v1beta.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListConversionEventsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.conversionEvents != null && message.conversionEvents.length) + for (var i = 0; i < message.conversionEvents.length; ++i) + $root.google.analytics.admin.v1beta.ConversionEvent.encode(message.conversionEvents[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 ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListConversionEventsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {google.analytics.admin.v1beta.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListConversionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListConversionEventsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListConversionEventsResponse} ListConversionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListConversionEventsResponse.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.analytics.admin.v1beta.ListConversionEventsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.conversionEvents && message.conversionEvents.length)) + message.conversionEvents = []; + message.conversionEvents.push($root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListConversionEventsResponse} ListConversionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListConversionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListConversionEventsResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListConversionEventsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.conversionEvents != null && message.hasOwnProperty("conversionEvents")) { + if (!Array.isArray(message.conversionEvents)) + return "conversionEvents: array expected"; + for (var i = 0; i < message.conversionEvents.length; ++i) { + var error = $root.google.analytics.admin.v1beta.ConversionEvent.verify(message.conversionEvents[i]); + if (error) + return "conversionEvents." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListConversionEventsResponse} ListConversionEventsResponse + */ + ListConversionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListConversionEventsResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListConversionEventsResponse(); + if (object.conversionEvents) { + if (!Array.isArray(object.conversionEvents)) + throw TypeError(".google.analytics.admin.v1beta.ListConversionEventsResponse.conversionEvents: array expected"); + message.conversionEvents = []; + for (var i = 0; i < object.conversionEvents.length; ++i) { + if (typeof object.conversionEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListConversionEventsResponse.conversionEvents: object expected"); + message.conversionEvents[i] = $root.google.analytics.admin.v1beta.ConversionEvent.fromObject(object.conversionEvents[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {google.analytics.admin.v1beta.ListConversionEventsResponse} message ListConversionEventsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListConversionEventsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.conversionEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.conversionEvents && message.conversionEvents.length) { + object.conversionEvents = []; + for (var j = 0; j < message.conversionEvents.length; ++j) + object.conversionEvents[j] = $root.google.analytics.admin.v1beta.ConversionEvent.toObject(message.conversionEvents[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListConversionEventsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @instance + * @returns {Object.} JSON object + */ + ListConversionEventsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListConversionEventsResponse; + })(); + + v1beta.CreateCustomDimensionRequest = (function() { + + /** + * Properties of a CreateCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreateCustomDimensionRequest + * @property {string|null} [parent] CreateCustomDimensionRequest parent + * @property {google.analytics.admin.v1beta.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension + */ + + /** + * Constructs a new CreateCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreateCustomDimensionRequest. + * @implements ICreateCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreateCustomDimensionRequest=} [properties] Properties to set + */ + function CreateCustomDimensionRequest(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]]; + } + + /** + * CreateCustomDimensionRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @instance + */ + CreateCustomDimensionRequest.prototype.parent = ""; + + /** + * CreateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1beta.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @instance + */ + CreateCustomDimensionRequest.prototype.customDimension = null; + + /** + * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance + */ + CreateCustomDimensionRequest.create = function create(properties) { + return new CreateCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomDimensionRequest.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.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1beta.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomDimensionRequest.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.analytics.admin.v1beta.CreateCustomDimensionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCustomDimensionRequest.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.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1beta.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } + return null; + }; + + /** + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreateCustomDimensionRequest} CreateCustomDimensionRequest + */ + CreateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreateCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreateCustomDimensionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.fromObject(object.customDimension); + } + return message; + }; + + /** + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.CreateCustomDimensionRequest} message CreateCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCustomDimensionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.customDimension = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.toObject(message.customDimension, options); + return object; + }; + + /** + * Converts this CreateCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateCustomDimensionRequest; + })(); + + v1beta.UpdateCustomDimensionRequest = (function() { + + /** + * Properties of an UpdateCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdateCustomDimensionRequest + * @property {google.analytics.admin.v1beta.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask + */ + + /** + * Constructs a new UpdateCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdateCustomDimensionRequest. + * @implements IUpdateCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1beta.IUpdateCustomDimensionRequest=} [properties] Properties to set + */ + function UpdateCustomDimensionRequest(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]]; + } + + /** + * UpdateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1beta.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @instance + */ + UpdateCustomDimensionRequest.prototype.customDimension = null; + + /** + * UpdateCustomDimensionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @instance + */ + UpdateCustomDimensionRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance + */ + UpdateCustomDimensionRequest.create = function create(properties) { + return new UpdateCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomDimensionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1beta.CustomDimension.encode(message.customDimension, 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 UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomDimensionRequest.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.analytics.admin.v1beta.UpdateCustomDimensionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.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 UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateCustomDimensionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1beta.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + 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 UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + */ + UpdateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdateCustomDimensionRequest(); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.fromObject(object.customDimension); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateCustomDimensionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateCustomDimensionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.customDimension = null; + object.updateMask = null; + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.toObject(message.customDimension, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateCustomDimensionRequest; + })(); + + v1beta.ListCustomDimensionsRequest = (function() { + + /** + * Properties of a ListCustomDimensionsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListCustomDimensionsRequest + * @property {string|null} [parent] ListCustomDimensionsRequest parent + * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize + * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken + */ + + /** + * Constructs a new ListCustomDimensionsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListCustomDimensionsRequest. + * @implements IListCustomDimensionsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListCustomDimensionsRequest=} [properties] Properties to set + */ + function ListCustomDimensionsRequest(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]]; + } + + /** + * ListCustomDimensionsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.parent = ""; + + /** + * ListCustomDimensionsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageSize = 0; + + /** + * ListCustomDimensionsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1beta.IListCustomDimensionsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance + */ + ListCustomDimensionsRequest.create = function create(properties) { + return new ListCustomDimensionsRequest(properties); + }; + + /** + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1beta.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1beta.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsRequest.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.analytics.admin.v1beta.ListCustomDimensionsRequest(); + 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 ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomDimensionsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsRequest} ListCustomDimensionsRequest + */ + ListCustomDimensionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListCustomDimensionsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListCustomDimensionsRequest(); + 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 ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1beta.ListCustomDimensionsRequest} message ListCustomDimensionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomDimensionsRequest; + })(); + + v1beta.ListCustomDimensionsResponse = (function() { + + /** + * Properties of a ListCustomDimensionsResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListCustomDimensionsResponse + * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions + * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken + */ + + /** + * Constructs a new ListCustomDimensionsResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListCustomDimensionsResponse. + * @implements IListCustomDimensionsResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListCustomDimensionsResponse=} [properties] Properties to set + */ + function ListCustomDimensionsResponse(properties) { + this.customDimensions = []; + 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]]; + } + + /** + * ListCustomDimensionsResponse customDimensions. + * @member {Array.} customDimensions + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @instance + */ + ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; + + /** + * ListCustomDimensionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @instance + */ + ListCustomDimensionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1beta.IListCustomDimensionsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance + */ + ListCustomDimensionsResponse.create = function create(properties) { + return new ListCustomDimensionsResponse(properties); + }; + + /** + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1beta.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customDimensions != null && message.customDimensions.length) + for (var i = 0; i < message.customDimensions.length; ++i) + $root.google.analytics.admin.v1beta.CustomDimension.encode(message.customDimensions[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 ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomDimensionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1beta.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsResponse.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.analytics.admin.v1beta.ListCustomDimensionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomDimensionsResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomDimensionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { + if (!Array.isArray(message.customDimensions)) + return "customDimensions: array expected"; + for (var i = 0; i < message.customDimensions.length; ++i) { + var error = $root.google.analytics.admin.v1beta.CustomDimension.verify(message.customDimensions[i]); + if (error) + return "customDimensions." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListCustomDimensionsResponse} ListCustomDimensionsResponse + */ + ListCustomDimensionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListCustomDimensionsResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListCustomDimensionsResponse(); + if (object.customDimensions) { + if (!Array.isArray(object.customDimensions)) + throw TypeError(".google.analytics.admin.v1beta.ListCustomDimensionsResponse.customDimensions: array expected"); + message.customDimensions = []; + for (var i = 0; i < object.customDimensions.length; ++i) { + if (typeof object.customDimensions[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListCustomDimensionsResponse.customDimensions: object expected"); + message.customDimensions[i] = $root.google.analytics.admin.v1beta.CustomDimension.fromObject(object.customDimensions[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1beta.ListCustomDimensionsResponse} message ListCustomDimensionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomDimensionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.customDimensions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customDimensions && message.customDimensions.length) { + object.customDimensions = []; + for (var j = 0; j < message.customDimensions.length; ++j) + object.customDimensions[j] = $root.google.analytics.admin.v1beta.CustomDimension.toObject(message.customDimensions[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListCustomDimensionsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomDimensionsResponse; + })(); + + v1beta.ArchiveCustomDimensionRequest = (function() { + + /** + * Properties of an ArchiveCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @interface IArchiveCustomDimensionRequest + * @property {string|null} [name] ArchiveCustomDimensionRequest name + */ + + /** + * Constructs a new ArchiveCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an ArchiveCustomDimensionRequest. + * @implements IArchiveCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1beta.IArchiveCustomDimensionRequest=} [properties] Properties to set + */ + function ArchiveCustomDimensionRequest(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]]; + } + + /** + * ArchiveCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @instance + */ + ArchiveCustomDimensionRequest.prototype.name = ""; + + /** + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance + */ + ArchiveCustomDimensionRequest.create = function create(properties) { + return new ArchiveCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomDimensionRequest.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.analytics.admin.v1beta.ArchiveCustomDimensionRequest(); + 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 an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArchiveCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveCustomDimensionRequest.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 an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + */ + ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArchiveCustomDimensionRequest; + })(); + + v1beta.GetCustomDimensionRequest = (function() { + + /** + * Properties of a GetCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetCustomDimensionRequest + * @property {string|null} [name] GetCustomDimensionRequest name + */ + + /** + * Constructs a new GetCustomDimensionRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetCustomDimensionRequest. + * @implements IGetCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetCustomDimensionRequest=} [properties] Properties to set + */ + function GetCustomDimensionRequest(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]]; + } + + /** + * GetCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @instance + */ + GetCustomDimensionRequest.prototype.name = ""; + + /** + * Creates a new GetCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IGetCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetCustomDimensionRequest} GetCustomDimensionRequest instance + */ + GetCustomDimensionRequest.create = function create(properties) { + return new GetCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomDimensionRequest.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.analytics.admin.v1beta.GetCustomDimensionRequest(); + 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 GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetCustomDimensionRequest} GetCustomDimensionRequest + */ + GetCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1beta.GetCustomDimensionRequest} message GetCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + GetCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCustomDimensionRequest; + })(); + + v1beta.CreateCustomMetricRequest = (function() { + + /** + * Properties of a CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreateCustomMetricRequest + * @property {string|null} [parent] CreateCustomMetricRequest parent + * @property {google.analytics.admin.v1beta.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric + */ + + /** + * Constructs a new CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreateCustomMetricRequest. + * @implements ICreateCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreateCustomMetricRequest=} [properties] Properties to set + */ + function CreateCustomMetricRequest(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]]; + } + + /** + * CreateCustomMetricRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.parent = ""; + + /** + * CreateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1beta.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.customMetric = null; + + /** + * Creates a new CreateCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreateCustomMetricRequest} CreateCustomMetricRequest instance + */ + CreateCustomMetricRequest.create = function create(properties) { + return new CreateCustomMetricRequest(properties); + }; + + /** + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomMetricRequest.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.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1beta.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreateCustomMetricRequest} CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomMetricRequest.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.analytics.admin.v1beta.CreateCustomMetricRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreateCustomMetricRequest} CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCustomMetricRequest.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.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1beta.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } + return null; + }; + + /** + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreateCustomMetricRequest} CreateCustomMetricRequest + */ + CreateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreateCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreateCustomMetricRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.fromObject(object.customMetric); + } + return message; + }; + + /** + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.CreateCustomMetricRequest} message CreateCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCustomMetricRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.customMetric = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.toObject(message.customMetric, options); + return object; + }; + + /** + * Converts this CreateCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateCustomMetricRequest; + })(); + + v1beta.UpdateCustomMetricRequest = (function() { + + /** + * Properties of an UpdateCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdateCustomMetricRequest + * @property {google.analytics.admin.v1beta.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask + */ + + /** + * Constructs a new UpdateCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdateCustomMetricRequest. + * @implements IUpdateCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1beta.IUpdateCustomMetricRequest=} [properties] Properties to set + */ + function UpdateCustomMetricRequest(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]]; + } + + /** + * UpdateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1beta.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @instance + */ + UpdateCustomMetricRequest.prototype.customMetric = null; + + /** + * UpdateCustomMetricRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @instance + */ + UpdateCustomMetricRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance + */ + UpdateCustomMetricRequest.create = function create(properties) { + return new UpdateCustomMetricRequest(properties); + }; + + /** + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomMetricRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1beta.CustomMetric.encode(message.customMetric, 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 UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomMetricRequest.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.analytics.admin.v1beta.UpdateCustomMetricRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.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 UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateCustomMetricRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1beta.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdateCustomMetricRequest} UpdateCustomMetricRequest + */ + UpdateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdateCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdateCustomMetricRequest(); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.fromObject(object.customMetric); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateCustomMetricRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.UpdateCustomMetricRequest} message UpdateCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateCustomMetricRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.customMetric = null; + object.updateMask = null; + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.toObject(message.customMetric, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateCustomMetricRequest; + })(); + + v1beta.ListCustomMetricsRequest = (function() { + + /** + * Properties of a ListCustomMetricsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListCustomMetricsRequest + * @property {string|null} [parent] ListCustomMetricsRequest parent + * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize + * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken + */ + + /** + * Constructs a new ListCustomMetricsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListCustomMetricsRequest. + * @implements IListCustomMetricsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListCustomMetricsRequest=} [properties] Properties to set + */ + function ListCustomMetricsRequest(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]]; + } + + /** + * ListCustomMetricsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.parent = ""; + + /** + * ListCustomMetricsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageSize = 0; + + /** + * ListCustomMetricsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1beta.IListCustomMetricsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListCustomMetricsRequest} ListCustomMetricsRequest instance + */ + ListCustomMetricsRequest.create = function create(properties) { + return new ListCustomMetricsRequest(properties); + }; + + /** + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1beta.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1beta.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListCustomMetricsRequest} ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsRequest.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.analytics.admin.v1beta.ListCustomMetricsRequest(); + 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 ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListCustomMetricsRequest} ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomMetricsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListCustomMetricsRequest} ListCustomMetricsRequest + */ + ListCustomMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListCustomMetricsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListCustomMetricsRequest(); + 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 ListCustomMetricsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1beta.ListCustomMetricsRequest} message ListCustomMetricsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @instance + * @returns {Object.} JSON object + */ + ListCustomMetricsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomMetricsRequest; + })(); + + v1beta.ListCustomMetricsResponse = (function() { + + /** + * Properties of a ListCustomMetricsResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListCustomMetricsResponse + * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics + * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken + */ + + /** + * Constructs a new ListCustomMetricsResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListCustomMetricsResponse. + * @implements IListCustomMetricsResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListCustomMetricsResponse=} [properties] Properties to set + */ + function ListCustomMetricsResponse(properties) { + this.customMetrics = []; + 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]]; + } + + /** + * ListCustomMetricsResponse customMetrics. + * @member {Array.} customMetrics + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @instance + */ + ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; + + /** + * ListCustomMetricsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @instance + */ + ListCustomMetricsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomMetricsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1beta.IListCustomMetricsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListCustomMetricsResponse} ListCustomMetricsResponse instance + */ + ListCustomMetricsResponse.create = function create(properties) { + return new ListCustomMetricsResponse(properties); + }; + + /** + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1beta.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customMetrics != null && message.customMetrics.length) + for (var i = 0; i < message.customMetrics.length; ++i) + $root.google.analytics.admin.v1beta.CustomMetric.encode(message.customMetrics[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 ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListCustomMetricsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1beta.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListCustomMetricsResponse} ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsResponse.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.analytics.admin.v1beta.ListCustomMetricsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListCustomMetricsResponse} ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomMetricsResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomMetricsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { + if (!Array.isArray(message.customMetrics)) + return "customMetrics: array expected"; + for (var i = 0; i < message.customMetrics.length; ++i) { + var error = $root.google.analytics.admin.v1beta.CustomMetric.verify(message.customMetrics[i]); + if (error) + return "customMetrics." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListCustomMetricsResponse} ListCustomMetricsResponse + */ + ListCustomMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListCustomMetricsResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListCustomMetricsResponse(); + if (object.customMetrics) { + if (!Array.isArray(object.customMetrics)) + throw TypeError(".google.analytics.admin.v1beta.ListCustomMetricsResponse.customMetrics: array expected"); + message.customMetrics = []; + for (var i = 0; i < object.customMetrics.length; ++i) { + if (typeof object.customMetrics[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListCustomMetricsResponse.customMetrics: object expected"); + message.customMetrics[i] = $root.google.analytics.admin.v1beta.CustomMetric.fromObject(object.customMetrics[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1beta.ListCustomMetricsResponse} message ListCustomMetricsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomMetricsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.customMetrics = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customMetrics && message.customMetrics.length) { + object.customMetrics = []; + for (var j = 0; j < message.customMetrics.length; ++j) + object.customMetrics[j] = $root.google.analytics.admin.v1beta.CustomMetric.toObject(message.customMetrics[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListCustomMetricsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @instance + * @returns {Object.} JSON object + */ + ListCustomMetricsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomMetricsResponse; + })(); + + v1beta.ArchiveCustomMetricRequest = (function() { + + /** + * Properties of an ArchiveCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @interface IArchiveCustomMetricRequest + * @property {string|null} [name] ArchiveCustomMetricRequest name + */ + + /** + * Constructs a new ArchiveCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an ArchiveCustomMetricRequest. + * @implements IArchiveCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1beta.IArchiveCustomMetricRequest=} [properties] Properties to set + */ + function ArchiveCustomMetricRequest(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]]; + } + + /** + * ArchiveCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @instance + */ + ArchiveCustomMetricRequest.prototype.name = ""; + + /** + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IArchiveCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance + */ + ArchiveCustomMetricRequest.create = function create(properties) { + return new ArchiveCustomMetricRequest(properties); + }; + + /** + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ArchiveCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomMetricRequest.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.analytics.admin.v1beta.ArchiveCustomMetricRequest(); + 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 an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArchiveCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveCustomMetricRequest.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 an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + */ + ArchiveCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ArchiveCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArchiveCustomMetricRequest; + })(); + + v1beta.GetCustomMetricRequest = (function() { + + /** + * Properties of a GetCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetCustomMetricRequest + * @property {string|null} [name] GetCustomMetricRequest name + */ + + /** + * Constructs a new GetCustomMetricRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetCustomMetricRequest. + * @implements IGetCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetCustomMetricRequest=} [properties] Properties to set + */ + function GetCustomMetricRequest(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]]; + } + + /** + * GetCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @instance + */ + GetCustomMetricRequest.prototype.name = ""; + + /** + * Creates a new GetCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IGetCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetCustomMetricRequest} GetCustomMetricRequest instance + */ + GetCustomMetricRequest.create = function create(properties) { + return new GetCustomMetricRequest(properties); + }; + + /** + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomMetricRequest.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 GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetCustomMetricRequest} GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomMetricRequest.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.analytics.admin.v1beta.GetCustomMetricRequest(); + 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 GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetCustomMetricRequest} GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetCustomMetricRequest.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 GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetCustomMetricRequest} GetCustomMetricRequest + */ + GetCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1beta.GetCustomMetricRequest} message GetCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCustomMetricRequest.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 GetCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + GetCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCustomMetricRequest; + })(); + + v1beta.GetDataRetentionSettingsRequest = (function() { + + /** + * Properties of a GetDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetDataRetentionSettingsRequest + * @property {string|null} [name] GetDataRetentionSettingsRequest name + */ + + /** + * Constructs a new GetDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetDataRetentionSettingsRequest. + * @implements IGetDataRetentionSettingsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest=} [properties] Properties to set + */ + function GetDataRetentionSettingsRequest(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]]; + } + + /** + * GetDataRetentionSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @instance + */ + GetDataRetentionSettingsRequest.prototype.name = ""; + + /** + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance + */ + GetDataRetentionSettingsRequest.create = function create(properties) { + return new GetDataRetentionSettingsRequest(properties); + }; + + /** + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataRetentionSettingsRequest.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.analytics.admin.v1beta.GetDataRetentionSettingsRequest(); + 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 GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDataRetentionSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + */ + GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataRetentionSettingsRequest; + })(); + + v1beta.UpdateDataRetentionSettingsRequest = (function() { + + /** + * Properties of an UpdateDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdateDataRetentionSettingsRequest + * @property {google.analytics.admin.v1beta.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask + */ + + /** + * Constructs a new UpdateDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdateDataRetentionSettingsRequest. + * @implements IUpdateDataRetentionSettingsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + */ + function UpdateDataRetentionSettingsRequest(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]]; + } + + /** + * UpdateDataRetentionSettingsRequest dataRetentionSettings. + * @member {google.analytics.admin.v1beta.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @instance + */ + UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; + + /** + * UpdateDataRetentionSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @instance + */ + UpdateDataRetentionSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance + */ + UpdateDataRetentionSettingsRequest.create = function create(properties) { + return new UpdateDataRetentionSettingsRequest(properties); + }; + + /** + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataRetentionSettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1beta.DataRetentionSettings.encode(message.dataRetentionSettings, 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 UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataRetentionSettingsRequest.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.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.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 UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateDataRetentionSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateDataRetentionSettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + var error = $root.google.analytics.admin.v1beta.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + 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 UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + */ + UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest(); + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateDataRetentionSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataRetentionSettings = null; + object.updateMask = null; + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) + object.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateDataRetentionSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateDataRetentionSettingsRequest; + })(); + + v1beta.CreateDataStreamRequest = (function() { + + /** + * Properties of a CreateDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @interface ICreateDataStreamRequest + * @property {string|null} [parent] CreateDataStreamRequest parent + * @property {google.analytics.admin.v1beta.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream + */ + + /** + * Constructs a new CreateDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CreateDataStreamRequest. + * @implements ICreateDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1beta.ICreateDataStreamRequest=} [properties] Properties to set + */ + function CreateDataStreamRequest(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]]; + } + + /** + * CreateDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @instance + */ + CreateDataStreamRequest.prototype.parent = ""; + + /** + * CreateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1beta.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @instance + */ + CreateDataStreamRequest.prototype.dataStream = null; + + /** + * Creates a new CreateDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CreateDataStreamRequest} CreateDataStreamRequest instance + */ + CreateDataStreamRequest.create = function create(properties) { + return new CreateDataStreamRequest(properties); + }; + + /** + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.CreateDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDataStreamRequest.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.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1beta.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CreateDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CreateDataStreamRequest} CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDataStreamRequest.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.analytics.admin.v1beta.CreateDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CreateDataStreamRequest} CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDataStreamRequest.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.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1beta.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + error; + } + return null; + }; + + /** + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CreateDataStreamRequest} CreateDataStreamRequest + */ + CreateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CreateDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.CreateDataStreamRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1beta.CreateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.fromObject(object.dataStream); + } + return message; + }; + + /** + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.CreateDataStreamRequest} message CreateDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.dataStream = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1beta.DataStream.toObject(message.dataStream, options); + return object; + }; + + /** + * Converts this CreateDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + CreateDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateDataStreamRequest; + })(); + + v1beta.DeleteDataStreamRequest = (function() { + + /** + * Properties of a DeleteDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @interface IDeleteDataStreamRequest + * @property {string|null} [name] DeleteDataStreamRequest name + */ + + /** + * Constructs a new DeleteDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DeleteDataStreamRequest. + * @implements IDeleteDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1beta.IDeleteDataStreamRequest=} [properties] Properties to set + */ + function DeleteDataStreamRequest(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]]; + } + + /** + * DeleteDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @instance + */ + DeleteDataStreamRequest.prototype.name = ""; + + /** + * Creates a new DeleteDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DeleteDataStreamRequest} DeleteDataStreamRequest instance + */ + DeleteDataStreamRequest.create = function create(properties) { + return new DeleteDataStreamRequest(properties); + }; + + /** + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.DeleteDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataStreamRequest.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 DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DeleteDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DeleteDataStreamRequest} DeleteDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataStreamRequest.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.analytics.admin.v1beta.DeleteDataStreamRequest(); + 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 DeleteDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DeleteDataStreamRequest} DeleteDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDataStreamRequest.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 DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DeleteDataStreamRequest} DeleteDataStreamRequest + */ + DeleteDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DeleteDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.DeleteDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.DeleteDataStreamRequest} message DeleteDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDataStreamRequest.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 DeleteDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteDataStreamRequest; + })(); + + v1beta.UpdateDataStreamRequest = (function() { + + /** + * Properties of an UpdateDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @interface IUpdateDataStreamRequest + * @property {google.analytics.admin.v1beta.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask + */ + + /** + * Constructs a new UpdateDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an UpdateDataStreamRequest. + * @implements IUpdateDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1beta.IUpdateDataStreamRequest=} [properties] Properties to set + */ + function UpdateDataStreamRequest(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]]; + } + + /** + * UpdateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1beta.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @instance + */ + UpdateDataStreamRequest.prototype.dataStream = null; + + /** + * UpdateDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @instance + */ + UpdateDataStreamRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.UpdateDataStreamRequest} UpdateDataStreamRequest instance + */ + UpdateDataStreamRequest.create = function create(properties) { + return new UpdateDataStreamRequest(properties); + }; + + /** + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1beta.DataStream.encode(message.dataStream, 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 UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.UpdateDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.UpdateDataStreamRequest} UpdateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataStreamRequest.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.analytics.admin.v1beta.UpdateDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.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 UpdateDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.UpdateDataStreamRequest} UpdateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1beta.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + 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 UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.UpdateDataStreamRequest} UpdateDataStreamRequest + */ + UpdateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.UpdateDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.UpdateDataStreamRequest(); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.fromObject(object.dataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1beta.UpdateDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.UpdateDataStreamRequest} message UpdateDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataStream = null; + object.updateMask = null; + } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1beta.DataStream.toObject(message.dataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateDataStreamRequest; + })(); + + v1beta.ListDataStreamsRequest = (function() { + + /** + * Properties of a ListDataStreamsRequest. + * @memberof google.analytics.admin.v1beta + * @interface IListDataStreamsRequest + * @property {string|null} [parent] ListDataStreamsRequest parent + * @property {number|null} [pageSize] ListDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListDataStreamsRequest pageToken + */ + + /** + * Constructs a new ListDataStreamsRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListDataStreamsRequest. + * @implements IListDataStreamsRequest + * @constructor + * @param {google.analytics.admin.v1beta.IListDataStreamsRequest=} [properties] Properties to set + */ + function ListDataStreamsRequest(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]]; + } + + /** + * ListDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.parent = ""; + + /** + * ListDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.pageSize = 0; + + /** + * ListDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDataStreamsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1beta.IListDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListDataStreamsRequest} ListDataStreamsRequest instance + */ + ListDataStreamsRequest.create = function create(properties) { + return new ListDataStreamsRequest(properties); + }; + + /** + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1beta.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsRequest.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 ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1beta.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListDataStreamsRequest} ListDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsRequest.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.analytics.admin.v1beta.ListDataStreamsRequest(); + 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 ListDataStreamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListDataStreamsRequest} ListDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataStreamsRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataStreamsRequest.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 ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListDataStreamsRequest} ListDataStreamsRequest + */ + ListDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListDataStreamsRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.ListDataStreamsRequest(); + 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 ListDataStreamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1beta.ListDataStreamsRequest} message ListDataStreamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDataStreamsRequest.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 ListDataStreamsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @instance + * @returns {Object.} JSON object + */ + ListDataStreamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListDataStreamsRequest; + })(); + + v1beta.ListDataStreamsResponse = (function() { + + /** + * Properties of a ListDataStreamsResponse. + * @memberof google.analytics.admin.v1beta + * @interface IListDataStreamsResponse + * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams + * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken + */ + + /** + * Constructs a new ListDataStreamsResponse. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ListDataStreamsResponse. + * @implements IListDataStreamsResponse + * @constructor + * @param {google.analytics.admin.v1beta.IListDataStreamsResponse=} [properties] Properties to set + */ + function ListDataStreamsResponse(properties) { + this.dataStreams = []; + 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]]; + } + + /** + * ListDataStreamsResponse dataStreams. + * @member {Array.} dataStreams + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @instance + */ + ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; + + /** + * ListDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @instance + */ + ListDataStreamsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDataStreamsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1beta.IListDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ListDataStreamsResponse} ListDataStreamsResponse instance + */ + ListDataStreamsResponse.create = function create(properties) { + return new ListDataStreamsResponse(properties); + }; + + /** + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1beta.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataStreams != null && message.dataStreams.length) + for (var i = 0; i < message.dataStreams.length; ++i) + $root.google.analytics.admin.v1beta.DataStream.encode(message.dataStreams[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 ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ListDataStreamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1beta.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ListDataStreamsResponse} ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsResponse.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.analytics.admin.v1beta.ListDataStreamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.dataStreams && message.dataStreams.length)) + message.dataStreams = []; + message.dataStreams.push($root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ListDataStreamsResponse} ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataStreamsResponse message. + * @function verify + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataStreamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { + if (!Array.isArray(message.dataStreams)) + return "dataStreams: array expected"; + for (var i = 0; i < message.dataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1beta.DataStream.verify(message.dataStreams[i]); + if (error) + return "dataStreams." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ListDataStreamsResponse} ListDataStreamsResponse + */ + ListDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ListDataStreamsResponse) + return object; + var message = new $root.google.analytics.admin.v1beta.ListDataStreamsResponse(); + if (object.dataStreams) { + if (!Array.isArray(object.dataStreams)) + throw TypeError(".google.analytics.admin.v1beta.ListDataStreamsResponse.dataStreams: array expected"); + message.dataStreams = []; + for (var i = 0; i < object.dataStreams.length; ++i) { + if (typeof object.dataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ListDataStreamsResponse.dataStreams: object expected"); + message.dataStreams[i] = $root.google.analytics.admin.v1beta.DataStream.fromObject(object.dataStreams[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1beta.ListDataStreamsResponse} message ListDataStreamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDataStreamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.dataStreams && message.dataStreams.length) { + object.dataStreams = []; + for (var j = 0; j < message.dataStreams.length; ++j) + object.dataStreams[j] = $root.google.analytics.admin.v1beta.DataStream.toObject(message.dataStreams[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListDataStreamsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @instance + * @returns {Object.} JSON object + */ + ListDataStreamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListDataStreamsResponse; + })(); + + v1beta.GetDataStreamRequest = (function() { + + /** + * Properties of a GetDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @interface IGetDataStreamRequest + * @property {string|null} [name] GetDataStreamRequest name + */ + + /** + * Constructs a new GetDataStreamRequest. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GetDataStreamRequest. + * @implements IGetDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1beta.IGetDataStreamRequest=} [properties] Properties to set + */ + function GetDataStreamRequest(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]]; + } + + /** + * GetDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @instance + */ + GetDataStreamRequest.prototype.name = ""; + + /** + * Creates a new GetDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GetDataStreamRequest} GetDataStreamRequest instance + */ + GetDataStreamRequest.create = function create(properties) { + return new GetDataStreamRequest(properties); + }; + + /** + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1beta.GetDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataStreamRequest.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 GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GetDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GetDataStreamRequest} GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataStreamRequest.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.analytics.admin.v1beta.GetDataStreamRequest(); + 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 GetDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GetDataStreamRequest} GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataStreamRequest.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 GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GetDataStreamRequest} GetDataStreamRequest + */ + GetDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GetDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1beta.GetDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1beta.GetDataStreamRequest} message GetDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataStreamRequest.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 GetDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataStreamRequest; + })(); + + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1beta.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1beta.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + + /** + * ServiceLevel enum. + * @name google.analytics.admin.v1beta.ServiceLevel + * @enum {number} + * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value + * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value + */ + v1beta.ServiceLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; + values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; + return values; + })(); + + /** + * ActorType enum. + * @name google.analytics.admin.v1beta.ActorType + * @enum {number} + * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} SUPPORT=3 SUPPORT value + */ + v1beta.ActorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "SUPPORT"] = 3; + return values; + })(); + + /** + * ActionType enum. + * @name google.analytics.admin.v1beta.ActionType + * @enum {number} + * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value + * @property {number} CREATED=1 CREATED value + * @property {number} UPDATED=2 UPDATED value + * @property {number} DELETED=3 DELETED value + */ + v1beta.ActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "UPDATED"] = 2; + values[valuesById[3] = "DELETED"] = 3; + return values; + })(); + + /** + * ChangeHistoryResourceType enum. + * @name google.analytics.admin.v1beta.ChangeHistoryResourceType + * @enum {number} + * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} ACCOUNT=1 ACCOUNT value + * @property {number} PROPERTY=2 PROPERTY value + * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value + * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value + * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value + * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value + * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value + * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK=14 DISPLAY_VIDEO_360_ADVERTISER_LINK value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL=15 DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL value + * @property {number} DATA_STREAM=18 DATA_STREAM value + * @property {number} ATTRIBUTION_SETTINGS=20 ATTRIBUTION_SETTINGS value + */ + v1beta.ChangeHistoryResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACCOUNT"] = 1; + values[valuesById[2] = "PROPERTY"] = 2; + values[valuesById[6] = "FIREBASE_LINK"] = 6; + values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; + values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; + values[valuesById[9] = "CONVERSION_EVENT"] = 9; + values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; + values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; + values[valuesById[14] = "DISPLAY_VIDEO_360_ADVERTISER_LINK"] = 14; + values[valuesById[15] = "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"] = 15; + values[valuesById[18] = "DATA_STREAM"] = 18; + values[valuesById[20] = "ATTRIBUTION_SETTINGS"] = 20; + return values; + })(); + + /** + * PropertyType enum. + * @name google.analytics.admin.v1beta.PropertyType + * @enum {number} + * @property {number} PROPERTY_TYPE_UNSPECIFIED=0 PROPERTY_TYPE_UNSPECIFIED value + * @property {number} PROPERTY_TYPE_ORDINARY=1 PROPERTY_TYPE_ORDINARY value + * @property {number} PROPERTY_TYPE_SUBPROPERTY=2 PROPERTY_TYPE_SUBPROPERTY value + * @property {number} PROPERTY_TYPE_ROLLUP=3 PROPERTY_TYPE_ROLLUP value + */ + v1beta.PropertyType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROPERTY_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROPERTY_TYPE_ORDINARY"] = 1; + values[valuesById[2] = "PROPERTY_TYPE_SUBPROPERTY"] = 2; + values[valuesById[3] = "PROPERTY_TYPE_ROLLUP"] = 3; + return values; + })(); + + v1beta.Account = (function() { + + /** + * Properties of an Account. + * @memberof google.analytics.admin.v1beta + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [regionCode] Account regionCode + * @property {boolean|null} [deleted] Account deleted + */ + + /** + * Constructs a new Account. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an Account. + * @implements IAccount + * @constructor + * @param {google.analytics.admin.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.analytics.admin.v1beta.Account + * @instance + */ + Account.prototype.name = ""; + + /** + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1beta.Account + * @instance + */ + Account.prototype.createTime = null; + + /** + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1beta.Account + * @instance + */ + Account.prototype.updateTime = null; + + /** + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.Account + * @instance + */ + Account.prototype.displayName = ""; + + /** + * Account regionCode. + * @member {string} regionCode + * @memberof google.analytics.admin.v1beta.Account + * @instance + */ + Account.prototype.regionCode = ""; + + /** + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1beta.Account + * @instance + */ + Account.prototype.deleted = false; + + /** + * Creates a new Account instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.Account + * @static + * @param {google.analytics.admin.v1beta.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.Account} Account instance + */ + Account.create = function create(properties) { + return new Account(properties); + }; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1beta.Account.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.Account + * @static + * @param {google.analytics.admin.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.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + return writer; + }; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.Account.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.Account + * @static + * @param {google.analytics.admin.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.analytics.admin.v1beta.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.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.analytics.admin.v1beta.Account(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.displayName = reader.string(); + break; + case 5: + message.regionCode = reader.string(); + break; + case 6: + message.deleted = reader.bool(); + 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.analytics.admin.v1beta.Account + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.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.analytics.admin.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.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; + return null; + }; + + /** + * Creates an Account message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.Account + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.Account} Account + */ + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.Account) + return object; + var message = new $root.google.analytics.admin.v1beta.Account(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.Account.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.Account.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + return message; + }; + + /** + * Creates a plain object from an Account message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.Account + * @static + * @param {google.analytics.admin.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 = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.regionCode = ""; + object.deleted = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; + return object; + }; + + /** + * Converts this Account to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.Account + * @instance + * @returns {Object.} JSON object + */ + Account.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Account; + })(); + + v1beta.Property = (function() { + + /** + * Properties of a Property. + * @memberof google.analytics.admin.v1beta + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.analytics.admin.v1beta.PropertyType|null} [propertyType] Property propertyType + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1beta.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {google.analytics.admin.v1beta.ServiceLevel|null} [serviceLevel] Property serviceLevel + * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + * @property {string|null} [account] Property account + */ + + /** + * Constructs a new Property. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a Property. + * @implements IProperty + * @constructor + * @param {google.analytics.admin.v1beta.IProperty=} [properties] Properties to set + */ + function Property(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]]; + } + + /** + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.name = ""; + + /** + * Property propertyType. + * @member {google.analytics.admin.v1beta.PropertyType} propertyType + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.propertyType = 0; + + /** + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.createTime = null; + + /** + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.updateTime = null; + + /** + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.parent = ""; + + /** + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.displayName = ""; + + /** + * Property industryCategory. + * @member {google.analytics.admin.v1beta.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.industryCategory = 0; + + /** + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property serviceLevel. + * @member {google.analytics.admin.v1beta.ServiceLevel} serviceLevel + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.serviceLevel = 0; + + /** + * Property deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.deleteTime = null; + + /** + * Property expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.expireTime = null; + + /** + * Property account. + * @member {string} account + * @memberof google.analytics.admin.v1beta.Property + * @instance + */ + Property.prototype.account = ""; + + /** + * Creates a new Property instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {google.analytics.admin.v1beta.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.Property} Property instance + */ + Property.create = function create(properties) { + return new Property(properties); + }; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1beta.Property.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {google.analytics.admin.v1beta.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.account); + if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.propertyType); + return writer; + }; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.Property.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {google.analytics.admin.v1beta.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Property message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.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.analytics.admin.v1beta.Property(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 14: + message.propertyType = reader.int32(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.parent = reader.string(); + break; + case 5: + message.displayName = reader.string(); + break; + case 6: + message.industryCategory = reader.int32(); + break; + case 7: + message.timeZone = reader.string(); + break; + case 8: + message.currencyCode = reader.string(); + break; + case 10: + message.serviceLevel = reader.int32(); + break; + case 11: + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 13: + message.account = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Property message. + * @function verify + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Property.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.propertyType != null && message.hasOwnProperty("propertyType")) + switch (message.propertyType) { + default: + return "propertyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + switch (message.serviceLevel) { + default: + return "serviceLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + return null; + }; + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.Property} Property + */ + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.Property) + return object; + var message = new $root.google.analytics.admin.v1beta.Property(); + if (object.name != null) + message.name = String(object.name); + switch (object.propertyType) { + case "PROPERTY_TYPE_UNSPECIFIED": + case 0: + message.propertyType = 0; + break; + case "PROPERTY_TYPE_ORDINARY": + case 1: + message.propertyType = 1; + break; + case "PROPERTY_TYPE_SUBPROPERTY": + case 2: + message.propertyType = 2; + break; + case "PROPERTY_TYPE_ROLLUP": + case 3: + message.propertyType = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { + case "INDUSTRY_CATEGORY_UNSPECIFIED": + case 0: + message.industryCategory = 0; + break; + case "AUTOMOTIVE": + case 1: + message.industryCategory = 1; + break; + case "BUSINESS_AND_INDUSTRIAL_MARKETS": + case 2: + message.industryCategory = 2; + break; + case "FINANCE": + case 3: + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; + break; + } + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + switch (object.serviceLevel) { + case "SERVICE_LEVEL_UNSPECIFIED": + case 0: + message.serviceLevel = 0; + break; + case "GOOGLE_ANALYTICS_STANDARD": + case 1: + message.serviceLevel = 1; + break; + case "GOOGLE_ANALYTICS_360": + case 2: + message.serviceLevel = 2; + break; + } + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.Property.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.Property.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + if (object.account != null) + message.account = String(object.account); + return message; + }; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {google.analytics.admin.v1beta.Property} message Property + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Property.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parent = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; + object.deleteTime = null; + object.expireTime = null; + object.account = ""; + object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1beta.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1beta.ServiceLevel[message.serviceLevel] : message.serviceLevel; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] : message.propertyType; + return object; + }; + + /** + * Converts this Property to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.Property + * @instance + * @returns {Object.} JSON object + */ + Property.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Property; + })(); + + v1beta.DataStream = (function() { + + /** + * Properties of a DataStream. + * @memberof google.analytics.admin.v1beta + * @interface IDataStream + * @property {google.analytics.admin.v1beta.DataStream.IWebStreamData|null} [webStreamData] DataStream webStreamData + * @property {google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData|null} [androidAppStreamData] DataStream androidAppStreamData + * @property {google.analytics.admin.v1beta.DataStream.IIosAppStreamData|null} [iosAppStreamData] DataStream iosAppStreamData + * @property {string|null} [name] DataStream name + * @property {google.analytics.admin.v1beta.DataStream.DataStreamType|null} [type] DataStream type + * @property {string|null} [displayName] DataStream displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] DataStream updateTime + */ + + /** + * Constructs a new DataStream. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DataStream. + * @implements IDataStream + * @constructor + * @param {google.analytics.admin.v1beta.IDataStream=} [properties] Properties to set + */ + function DataStream(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]]; + } + + /** + * DataStream webStreamData. + * @member {google.analytics.admin.v1beta.DataStream.IWebStreamData|null|undefined} webStreamData + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.webStreamData = null; + + /** + * DataStream androidAppStreamData. + * @member {google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData|null|undefined} androidAppStreamData + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.androidAppStreamData = null; + + /** + * DataStream iosAppStreamData. + * @member {google.analytics.admin.v1beta.DataStream.IIosAppStreamData|null|undefined} iosAppStreamData + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.iosAppStreamData = null; + + /** + * DataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.name = ""; + + /** + * DataStream type. + * @member {google.analytics.admin.v1beta.DataStream.DataStreamType} type + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.type = 0; + + /** + * DataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.displayName = ""; + + /** + * DataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.createTime = null; + + /** + * DataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + DataStream.prototype.updateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DataStream streamData. + * @member {"webStreamData"|"androidAppStreamData"|"iosAppStreamData"|undefined} streamData + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + */ + Object.defineProperty(DataStream.prototype, "streamData", { + get: $util.oneOfGetter($oneOfFields = ["webStreamData", "androidAppStreamData", "iosAppStreamData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DataStream instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {google.analytics.admin.v1beta.IDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DataStream} DataStream instance + */ + DataStream.create = function create(properties) { + return new DataStream(properties); + }; + + /** + * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {google.analytics.admin.v1beta.IDataStream} message DataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataStream.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.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.webStreamData != null && Object.hasOwnProperty.call(message, "webStreamData")) + $root.google.analytics.admin.v1beta.DataStream.WebStreamData.encode(message.webStreamData, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.androidAppStreamData != null && Object.hasOwnProperty.call(message, "androidAppStreamData")) + $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.encode(message.androidAppStreamData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.iosAppStreamData != null && Object.hasOwnProperty.call(message, "iosAppStreamData")) + $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData.encode(message.iosAppStreamData, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {google.analytics.admin.v1beta.IDataStream} message DataStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataStream message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DataStream} DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataStream.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.analytics.admin.v1beta.DataStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 6: + message.webStreamData = $root.google.analytics.admin.v1beta.DataStream.WebStreamData.decode(reader, reader.uint32()); + break; + case 7: + message.androidAppStreamData = $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); + break; + case 8: + message.iosAppStreamData = $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData.decode(reader, reader.uint32()); + break; + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DataStream} DataStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataStream message. + * @function verify + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1beta.DataStream.WebStreamData.verify(message.webStreamData); + if (error) + return "webStreamData." + error; + } + } + if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { + if (properties.streamData === 1) + return "streamData: multiple values"; + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.verify(message.androidAppStreamData); + if (error) + return "androidAppStreamData." + error; + } + } + if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { + if (properties.streamData === 1) + return "streamData: multiple values"; + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData.verify(message.iosAppStreamData); + if (error) + return "iosAppStreamData." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; + + /** + * Creates a DataStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DataStream} DataStream + */ + DataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DataStream) + return object; + var message = new $root.google.analytics.admin.v1beta.DataStream(); + if (object.webStreamData != null) { + if (typeof object.webStreamData !== "object") + throw TypeError(".google.analytics.admin.v1beta.DataStream.webStreamData: object expected"); + message.webStreamData = $root.google.analytics.admin.v1beta.DataStream.WebStreamData.fromObject(object.webStreamData); + } + if (object.androidAppStreamData != null) { + if (typeof object.androidAppStreamData !== "object") + throw TypeError(".google.analytics.admin.v1beta.DataStream.androidAppStreamData: object expected"); + message.androidAppStreamData = $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.fromObject(object.androidAppStreamData); + } + if (object.iosAppStreamData != null) { + if (typeof object.iosAppStreamData !== "object") + throw TypeError(".google.analytics.admin.v1beta.DataStream.iosAppStreamData: object expected"); + message.iosAppStreamData = $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData.fromObject(object.iosAppStreamData); + } + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + case "DATA_STREAM_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "WEB_DATA_STREAM": + case 1: + message.type = 1; + break; + case "ANDROID_APP_DATA_STREAM": + case 2: + message.type = 2; + break; + case "IOS_APP_DATA_STREAM": + case 3: + message.type = 3; + break; + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.DataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.DataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; + + /** + * Creates a plain object from a DataStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {google.analytics.admin.v1beta.DataStream} message DataStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "DATA_STREAM_TYPE_UNSPECIFIED" : 0; + object.displayName = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.analytics.admin.v1beta.DataStream.DataStreamType[message.type] : message.type; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { + object.webStreamData = $root.google.analytics.admin.v1beta.DataStream.WebStreamData.toObject(message.webStreamData, options); + if (options.oneofs) + object.streamData = "webStreamData"; + } + if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { + object.androidAppStreamData = $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.toObject(message.androidAppStreamData, options); + if (options.oneofs) + object.streamData = "androidAppStreamData"; + } + if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { + object.iosAppStreamData = $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData.toObject(message.iosAppStreamData, options); + if (options.oneofs) + object.streamData = "iosAppStreamData"; + } + return object; + }; + + /** + * Converts this DataStream to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DataStream + * @instance + * @returns {Object.} JSON object + */ + DataStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + DataStream.WebStreamData = (function() { + + /** + * Properties of a WebStreamData. + * @memberof google.analytics.admin.v1beta.DataStream + * @interface IWebStreamData + * @property {string|null} [measurementId] WebStreamData measurementId + * @property {string|null} [firebaseAppId] WebStreamData firebaseAppId + * @property {string|null} [defaultUri] WebStreamData defaultUri + */ + + /** + * Constructs a new WebStreamData. + * @memberof google.analytics.admin.v1beta.DataStream + * @classdesc Represents a WebStreamData. + * @implements IWebStreamData + * @constructor + * @param {google.analytics.admin.v1beta.DataStream.IWebStreamData=} [properties] Properties to set + */ + function WebStreamData(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]]; + } + + /** + * WebStreamData measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @instance + */ + WebStreamData.prototype.measurementId = ""; + + /** + * WebStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @instance + */ + WebStreamData.prototype.firebaseAppId = ""; + + /** + * WebStreamData defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @instance + */ + WebStreamData.prototype.defaultUri = ""; + + /** + * Creates a new WebStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IWebStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DataStream.WebStreamData} WebStreamData instance + */ + WebStreamData.create = function create(properties) { + return new WebStreamData(properties); + }; + + /** + * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.WebStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IWebStreamData} message WebStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultUri); + return writer; + }; + + /** + * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.WebStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IWebStreamData} message WebStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WebStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WebStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DataStream.WebStreamData} WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebStreamData.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.analytics.admin.v1beta.DataStream.WebStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.measurementId = reader.string(); + break; + case 2: + message.firebaseAppId = reader.string(); + break; + case 3: + message.defaultUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WebStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DataStream.WebStreamData} WebStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WebStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WebStreamData message. + * @function verify + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WebStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; + return null; + }; + + /** + * Creates a WebStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DataStream.WebStreamData} WebStreamData + */ + WebStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DataStream.WebStreamData) + return object; + var message = new $root.google.analytics.admin.v1beta.DataStream.WebStreamData(); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); + return message; + }; + + /** + * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.WebStreamData} message WebStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.measurementId = ""; + object.firebaseAppId = ""; + object.defaultUri = ""; + } + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + return object; + }; + + /** + * Converts this WebStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @instance + * @returns {Object.} JSON object + */ + WebStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return WebStreamData; + })(); + + DataStream.AndroidAppStreamData = (function() { + + /** + * Properties of an AndroidAppStreamData. + * @memberof google.analytics.admin.v1beta.DataStream + * @interface IAndroidAppStreamData + * @property {string|null} [firebaseAppId] AndroidAppStreamData firebaseAppId + * @property {string|null} [packageName] AndroidAppStreamData packageName + */ + + /** + * Constructs a new AndroidAppStreamData. + * @memberof google.analytics.admin.v1beta.DataStream + * @classdesc Represents an AndroidAppStreamData. + * @implements IAndroidAppStreamData + * @constructor + * @param {google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData=} [properties] Properties to set + */ + function AndroidAppStreamData(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]]; + } + + /** + * AndroidAppStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @instance + */ + AndroidAppStreamData.prototype.firebaseAppId = ""; + + /** + * AndroidAppStreamData packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @instance + */ + AndroidAppStreamData.prototype.packageName = ""; + + /** + * Creates a new AndroidAppStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} AndroidAppStreamData instance + */ + AndroidAppStreamData.create = function create(properties) { + return new AndroidAppStreamData(properties); + }; + + /** + * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.packageName); + return writer; + }; + + /** + * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppStreamData.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.analytics.admin.v1beta.DataStream.AndroidAppStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.firebaseAppId = reader.string(); + break; + case 2: + message.packageName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AndroidAppStreamData message. + * @function verify + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + return null; + }; + + /** + * Creates an AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} AndroidAppStreamData + */ + AndroidAppStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) + return object; + var message = new $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData(); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.packageName != null) + message.packageName = String(object.packageName); + return message; + }; + + /** + * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} message AndroidAppStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.firebaseAppId = ""; + object.packageName = ""; + } + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + return object; + }; + + /** + * Converts this AndroidAppStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @instance + * @returns {Object.} JSON object + */ + AndroidAppStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AndroidAppStreamData; + })(); + + DataStream.IosAppStreamData = (function() { + + /** + * Properties of an IosAppStreamData. + * @memberof google.analytics.admin.v1beta.DataStream + * @interface IIosAppStreamData + * @property {string|null} [firebaseAppId] IosAppStreamData firebaseAppId + * @property {string|null} [bundleId] IosAppStreamData bundleId + */ + + /** + * Constructs a new IosAppStreamData. + * @memberof google.analytics.admin.v1beta.DataStream + * @classdesc Represents an IosAppStreamData. + * @implements IIosAppStreamData + * @constructor + * @param {google.analytics.admin.v1beta.DataStream.IIosAppStreamData=} [properties] Properties to set + */ + function IosAppStreamData(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]]; + } + + /** + * IosAppStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @instance + */ + IosAppStreamData.prototype.firebaseAppId = ""; + + /** + * IosAppStreamData bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @instance + */ + IosAppStreamData.prototype.bundleId = ""; + + /** + * Creates a new IosAppStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IIosAppStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DataStream.IosAppStreamData} IosAppStreamData instance + */ + IosAppStreamData.create = function create(properties) { + return new IosAppStreamData(properties); + }; + + /** + * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.IosAppStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.bundleId); + return writer; + }; + + /** + * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataStream.IosAppStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DataStream.IosAppStreamData} IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppStreamData.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.analytics.admin.v1beta.DataStream.IosAppStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.firebaseAppId = reader.string(); + break; + case 2: + message.bundleId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DataStream.IosAppStreamData} IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppStreamData message. + * @function verify + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + return null; + }; + + /** + * Creates an IosAppStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DataStream.IosAppStreamData} IosAppStreamData + */ + IosAppStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData) + return object; + var message = new $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData(); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + return message; + }; + + /** + * Creates a plain object from an IosAppStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1beta.DataStream.IosAppStreamData} message IosAppStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IosAppStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.firebaseAppId = ""; + object.bundleId = ""; + } + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; + return object; + }; + + /** + * Converts this IosAppStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @instance + * @returns {Object.} JSON object + */ + IosAppStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IosAppStreamData; + })(); + + /** + * DataStreamType enum. + * @name google.analytics.admin.v1beta.DataStream.DataStreamType + * @enum {number} + * @property {number} DATA_STREAM_TYPE_UNSPECIFIED=0 DATA_STREAM_TYPE_UNSPECIFIED value + * @property {number} WEB_DATA_STREAM=1 WEB_DATA_STREAM value + * @property {number} ANDROID_APP_DATA_STREAM=2 ANDROID_APP_DATA_STREAM value + * @property {number} IOS_APP_DATA_STREAM=3 IOS_APP_DATA_STREAM value + */ + DataStream.DataStreamType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_STREAM_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "WEB_DATA_STREAM"] = 1; + values[valuesById[2] = "ANDROID_APP_DATA_STREAM"] = 2; + values[valuesById[3] = "IOS_APP_DATA_STREAM"] = 3; + return values; + })(); + + return DataStream; + })(); + + v1beta.FirebaseLink = (function() { + + /** + * Properties of a FirebaseLink. + * @memberof google.analytics.admin.v1beta + * @interface IFirebaseLink + * @property {string|null} [name] FirebaseLink name + * @property {string|null} [project] FirebaseLink project + * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + */ + + /** + * Constructs a new FirebaseLink. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a FirebaseLink. + * @implements IFirebaseLink + * @constructor + * @param {google.analytics.admin.v1beta.IFirebaseLink=} [properties] Properties to set + */ + function FirebaseLink(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]]; + } + + /** + * FirebaseLink name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @instance + */ + FirebaseLink.prototype.name = ""; + + /** + * FirebaseLink project. + * @member {string} project + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @instance + */ + FirebaseLink.prototype.project = ""; + + /** + * FirebaseLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @instance + */ + FirebaseLink.prototype.createTime = null; + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {google.analytics.admin.v1beta.IFirebaseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.FirebaseLink} FirebaseLink instance + */ + FirebaseLink.create = function create(properties) { + return new FirebaseLink(properties); + }; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1beta.FirebaseLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {google.analytics.admin.v1beta.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.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.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.FirebaseLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {google.analytics.admin.v1beta.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.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.analytics.admin.v1beta.FirebaseLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FirebaseLink message. + * @function verify + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FirebaseLink.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.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + return null; + }; + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.FirebaseLink} FirebaseLink + */ + FirebaseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.FirebaseLink) + return object; + var message = new $root.google.analytics.admin.v1beta.FirebaseLink(); + if (object.name != null) + message.name = String(object.name); + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.FirebaseLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + return message; + }; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {google.analytics.admin.v1beta.FirebaseLink} message FirebaseLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FirebaseLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.project = ""; + object.createTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + return object; + }; + + /** + * Converts this FirebaseLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @instance + * @returns {Object.} JSON object + */ + FirebaseLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FirebaseLink; + })(); + + v1beta.GoogleAdsLink = (function() { + + /** + * Properties of a GoogleAdsLink. + * @memberof google.analytics.admin.v1beta + * @interface IGoogleAdsLink + * @property {string|null} [name] GoogleAdsLink name + * @property {string|null} [customerId] GoogleAdsLink customerId + * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled + * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + * @property {string|null} [creatorEmailAddress] GoogleAdsLink creatorEmailAddress + */ + + /** + * Constructs a new GoogleAdsLink. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a GoogleAdsLink. + * @implements IGoogleAdsLink + * @constructor + * @param {google.analytics.admin.v1beta.IGoogleAdsLink=} [properties] Properties to set + */ + function GoogleAdsLink(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]]; + } + + /** + * GoogleAdsLink name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.name = ""; + + /** + * GoogleAdsLink customerId. + * @member {string} customerId + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.customerId = ""; + + /** + * GoogleAdsLink canManageClients. + * @member {boolean} canManageClients + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.canManageClients = false; + + /** + * GoogleAdsLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + + /** + * GoogleAdsLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.createTime = null; + + /** + * GoogleAdsLink updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.updateTime = null; + + /** + * GoogleAdsLink creatorEmailAddress. + * @member {string} creatorEmailAddress + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.creatorEmailAddress = ""; + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1beta.IGoogleAdsLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.GoogleAdsLink} GoogleAdsLink instance + */ + GoogleAdsLink.create = function create(properties) { + return new GoogleAdsLink(properties); + }; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1beta.GoogleAdsLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1beta.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.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.customerId != null && Object.hasOwnProperty.call(message, "customerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); + if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.creatorEmailAddress != null && Object.hasOwnProperty.call(message, "creatorEmailAddress")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.creatorEmailAddress); + return writer; + }; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.GoogleAdsLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1beta.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.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.analytics.admin.v1beta.GoogleAdsLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.customerId = reader.string(); + break; + case 4: + message.canManageClients = reader.bool(); + break; + case 5: + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.creatorEmailAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleAdsLink message. + * @function verify + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleAdsLink.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.customerId != null && message.hasOwnProperty("customerId")) + if (!$util.isString(message.customerId)) + return "customerId: string expected"; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + if (typeof message.canManageClients !== "boolean") + return "canManageClients: boolean expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) + if (!$util.isString(message.creatorEmailAddress)) + return "creatorEmailAddress: string expected"; + return null; + }; + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.GoogleAdsLink} GoogleAdsLink + */ + GoogleAdsLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.GoogleAdsLink) + return object; + var message = new $root.google.analytics.admin.v1beta.GoogleAdsLink(); + if (object.name != null) + message.name = String(object.name); + if (object.customerId != null) + message.customerId = String(object.customerId); + if (object.canManageClients != null) + message.canManageClients = Boolean(object.canManageClients); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1beta.GoogleAdsLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.GoogleAdsLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.GoogleAdsLink.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.creatorEmailAddress != null) + message.creatorEmailAddress = String(object.creatorEmailAddress); + return message; + }; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1beta.GoogleAdsLink} message GoogleAdsLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleAdsLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.customerId = ""; + object.canManageClients = false; + object.adsPersonalizationEnabled = null; + object.createTime = null; + object.updateTime = null; + object.creatorEmailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.customerId != null && message.hasOwnProperty("customerId")) + object.customerId = message.customerId; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + object.canManageClients = message.canManageClients; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) + object.creatorEmailAddress = message.creatorEmailAddress; + return object; + }; + + /** + * Converts this GoogleAdsLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @instance + * @returns {Object.} JSON object + */ + GoogleAdsLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GoogleAdsLink; + })(); + + v1beta.DataSharingSettings = (function() { + + /** + * Properties of a DataSharingSettings. + * @memberof google.analytics.admin.v1beta + * @interface IDataSharingSettings + * @property {string|null} [name] DataSharingSettings name + * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled + * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled + * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled + * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled + * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled + */ + + /** + * Constructs a new DataSharingSettings. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DataSharingSettings. + * @implements IDataSharingSettings + * @constructor + * @param {google.analytics.admin.v1beta.IDataSharingSettings=} [properties] Properties to set + */ + function DataSharingSettings(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]]; + } + + /** + * DataSharingSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.name = ""; + + /** + * DataSharingSettings sharingWithGoogleSupportEnabled. + * @member {boolean} sharingWithGoogleSupportEnabled + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. + * @member {boolean} sharingWithGoogleAssignedSalesEnabled + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAnySalesEnabled. + * @member {boolean} sharingWithGoogleAnySalesEnabled + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleProductsEnabled. + * @member {boolean} sharingWithGoogleProductsEnabled + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + + /** + * DataSharingSettings sharingWithOthersEnabled. + * @member {boolean} sharingWithOthersEnabled + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithOthersEnabled = false; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {google.analytics.admin.v1beta.IDataSharingSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DataSharingSettings} DataSharingSettings instance + */ + DataSharingSettings.create = function create(properties) { + return new DataSharingSettings(properties); + }; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1beta.DataSharingSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {google.analytics.admin.v1beta.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); + if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); + if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); + if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); + if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + return writer; + }; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataSharingSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {google.analytics.admin.v1beta.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.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.analytics.admin.v1beta.DataSharingSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + case 3: + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + case 4: + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + case 5: + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + case 6: + message.sharingWithOthersEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataSharingSettings message. + * @function verify + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataSharingSettings.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.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") + return "sharingWithGoogleSupportEnabled: boolean expected"; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") + return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") + return "sharingWithGoogleAnySalesEnabled: boolean expected"; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") + return "sharingWithGoogleProductsEnabled: boolean expected"; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + if (typeof message.sharingWithOthersEnabled !== "boolean") + return "sharingWithOthersEnabled: boolean expected"; + return null; + }; + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DataSharingSettings} DataSharingSettings + */ + DataSharingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DataSharingSettings) + return object; + var message = new $root.google.analytics.admin.v1beta.DataSharingSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.sharingWithGoogleSupportEnabled != null) + message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); + if (object.sharingWithGoogleAssignedSalesEnabled != null) + message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); + if (object.sharingWithGoogleAnySalesEnabled != null) + message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); + if (object.sharingWithGoogleProductsEnabled != null) + message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); + if (object.sharingWithOthersEnabled != null) + message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + return message; + }; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {google.analytics.admin.v1beta.DataSharingSettings} message DataSharingSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataSharingSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.sharingWithGoogleSupportEnabled = false; + object.sharingWithGoogleAssignedSalesEnabled = false; + object.sharingWithGoogleAnySalesEnabled = false; + object.sharingWithGoogleProductsEnabled = false; + object.sharingWithOthersEnabled = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + return object; + }; + + /** + * Converts this DataSharingSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @instance + * @returns {Object.} JSON object + */ + DataSharingSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataSharingSettings; + })(); + + v1beta.AccountSummary = (function() { + + /** + * Properties of an AccountSummary. + * @memberof google.analytics.admin.v1beta + * @interface IAccountSummary + * @property {string|null} [name] AccountSummary name + * @property {string|null} [account] AccountSummary account + * @property {string|null} [displayName] AccountSummary displayName + * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + */ + + /** + * Constructs a new AccountSummary. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents an AccountSummary. + * @implements IAccountSummary + * @constructor + * @param {google.analytics.admin.v1beta.IAccountSummary=} [properties] Properties to set + */ + function AccountSummary(properties) { + this.propertySummaries = []; + 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]]; + } + + /** + * AccountSummary name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.AccountSummary + * @instance + */ + AccountSummary.prototype.name = ""; + + /** + * AccountSummary account. + * @member {string} account + * @memberof google.analytics.admin.v1beta.AccountSummary + * @instance + */ + AccountSummary.prototype.account = ""; + + /** + * AccountSummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.AccountSummary + * @instance + */ + AccountSummary.prototype.displayName = ""; + + /** + * AccountSummary propertySummaries. + * @member {Array.} propertySummaries + * @memberof google.analytics.admin.v1beta.AccountSummary + * @instance + */ + AccountSummary.prototype.propertySummaries = $util.emptyArray; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {google.analytics.admin.v1beta.IAccountSummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.AccountSummary} AccountSummary instance + */ + AccountSummary.create = function create(properties) { + return new AccountSummary(properties); + }; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1beta.AccountSummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {google.analytics.admin.v1beta.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.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 2 =*/18).string(message.account); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.propertySummaries != null && message.propertySummaries.length) + for (var i = 0; i < message.propertySummaries.length; ++i) + $root.google.analytics.admin.v1beta.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.AccountSummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {google.analytics.admin.v1beta.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.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.analytics.admin.v1beta.AccountSummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.account = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1beta.PropertySummary.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AccountSummary message. + * @function verify + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AccountSummary.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.isString(message.account)) + return "account: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { + if (!Array.isArray(message.propertySummaries)) + return "propertySummaries: array expected"; + for (var i = 0; i < message.propertySummaries.length; ++i) { + var error = $root.google.analytics.admin.v1beta.PropertySummary.verify(message.propertySummaries[i]); + if (error) + return "propertySummaries." + error; + } + } + return null; + }; + + /** + * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.AccountSummary} AccountSummary + */ + AccountSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.AccountSummary) + return object; + var message = new $root.google.analytics.admin.v1beta.AccountSummary(); + if (object.name != null) + message.name = String(object.name); + if (object.account != null) + message.account = String(object.account); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.propertySummaries) { + if (!Array.isArray(object.propertySummaries)) + throw TypeError(".google.analytics.admin.v1beta.AccountSummary.propertySummaries: array expected"); + message.propertySummaries = []; + for (var i = 0; i < object.propertySummaries.length; ++i) { + if (typeof object.propertySummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.AccountSummary.propertySummaries: object expected"); + message.propertySummaries[i] = $root.google.analytics.admin.v1beta.PropertySummary.fromObject(object.propertySummaries[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {google.analytics.admin.v1beta.AccountSummary} message AccountSummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AccountSummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.propertySummaries = []; + if (options.defaults) { + object.name = ""; + object.account = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertySummaries && message.propertySummaries.length) { + object.propertySummaries = []; + for (var j = 0; j < message.propertySummaries.length; ++j) + object.propertySummaries[j] = $root.google.analytics.admin.v1beta.PropertySummary.toObject(message.propertySummaries[j], options); + } + return object; + }; + + /** + * Converts this AccountSummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.AccountSummary + * @instance + * @returns {Object.} JSON object + */ + AccountSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccountSummary; + })(); + + v1beta.PropertySummary = (function() { + + /** + * Properties of a PropertySummary. + * @memberof google.analytics.admin.v1beta + * @interface IPropertySummary + * @property {string|null} [property] PropertySummary property + * @property {string|null} [displayName] PropertySummary displayName + * @property {google.analytics.admin.v1beta.PropertyType|null} [propertyType] PropertySummary propertyType + * @property {string|null} [parent] PropertySummary parent + */ + + /** + * Constructs a new PropertySummary. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a PropertySummary. + * @implements IPropertySummary + * @constructor + * @param {google.analytics.admin.v1beta.IPropertySummary=} [properties] Properties to set + */ + function PropertySummary(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]]; + } + + /** + * PropertySummary property. + * @member {string} property + * @memberof google.analytics.admin.v1beta.PropertySummary + * @instance + */ + PropertySummary.prototype.property = ""; + + /** + * PropertySummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.PropertySummary + * @instance + */ + PropertySummary.prototype.displayName = ""; + + /** + * PropertySummary propertyType. + * @member {google.analytics.admin.v1beta.PropertyType} propertyType + * @memberof google.analytics.admin.v1beta.PropertySummary + * @instance + */ + PropertySummary.prototype.propertyType = 0; + + /** + * PropertySummary parent. + * @member {string} parent + * @memberof google.analytics.admin.v1beta.PropertySummary + * @instance + */ + PropertySummary.prototype.parent = ""; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {google.analytics.admin.v1beta.IPropertySummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.PropertySummary} PropertySummary instance + */ + PropertySummary.create = function create(properties) { + return new PropertySummary(properties); + }; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1beta.PropertySummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {google.analytics.admin.v1beta.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.propertyType); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + return writer; + }; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.PropertySummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {google.analytics.admin.v1beta.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.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.analytics.admin.v1beta.PropertySummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.property = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.propertyType = reader.int32(); + break; + case 4: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PropertySummary message. + * @function verify + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PropertySummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + switch (message.propertyType) { + default: + return "propertyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.PropertySummary} PropertySummary + */ + PropertySummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.PropertySummary) + return object; + var message = new $root.google.analytics.admin.v1beta.PropertySummary(); + if (object.property != null) + message.property = String(object.property); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.propertyType) { + case "PROPERTY_TYPE_UNSPECIFIED": + case 0: + message.propertyType = 0; + break; + case "PROPERTY_TYPE_ORDINARY": + case 1: + message.propertyType = 1; + break; + case "PROPERTY_TYPE_SUBPROPERTY": + case 2: + message.propertyType = 2; + break; + case "PROPERTY_TYPE_ROLLUP": + case 3: + message.propertyType = 3; + break; + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {google.analytics.admin.v1beta.PropertySummary} message PropertySummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PropertySummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = ""; + object.displayName = ""; + object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; + object.parent = ""; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] : message.propertyType; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this PropertySummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.PropertySummary + * @instance + * @returns {Object.} JSON object + */ + PropertySummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PropertySummary; + })(); + + v1beta.MeasurementProtocolSecret = (function() { + + /** + * Properties of a MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1beta + * @interface IMeasurementProtocolSecret + * @property {string|null} [name] MeasurementProtocolSecret name + * @property {string|null} [displayName] MeasurementProtocolSecret displayName + * @property {string|null} [secretValue] MeasurementProtocolSecret secretValue + */ + + /** + * Constructs a new MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a MeasurementProtocolSecret. + * @implements IMeasurementProtocolSecret + * @constructor + * @param {google.analytics.admin.v1beta.IMeasurementProtocolSecret=} [properties] Properties to set + */ + function MeasurementProtocolSecret(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]]; + } + + /** + * MeasurementProtocolSecret name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.name = ""; + + /** + * MeasurementProtocolSecret displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.displayName = ""; + + /** + * MeasurementProtocolSecret secretValue. + * @member {string} secretValue + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.secretValue = ""; + + /** + * Creates a new MeasurementProtocolSecret instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1beta.IMeasurementProtocolSecret=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.MeasurementProtocolSecret} MeasurementProtocolSecret instance + */ + MeasurementProtocolSecret.create = function create(properties) { + return new MeasurementProtocolSecret(properties); + }; + + /** + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1beta.MeasurementProtocolSecret.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1beta.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.secretValue != null && Object.hasOwnProperty.call(message, "secretValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.secretValue); + return writer; + }; + + /** + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.MeasurementProtocolSecret.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1beta.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.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.analytics.admin.v1beta.MeasurementProtocolSecret(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.secretValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MeasurementProtocolSecret message. + * @function verify + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MeasurementProtocolSecret.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + if (!$util.isString(message.secretValue)) + return "secretValue: string expected"; + return null; + }; + + /** + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.MeasurementProtocolSecret} MeasurementProtocolSecret + */ + MeasurementProtocolSecret.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.MeasurementProtocolSecret) + return object; + var message = new $root.google.analytics.admin.v1beta.MeasurementProtocolSecret(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.secretValue != null) + message.secretValue = String(object.secretValue); + return message; + }; + + /** + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1beta.MeasurementProtocolSecret} message MeasurementProtocolSecret + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MeasurementProtocolSecret.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.secretValue = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + object.secretValue = message.secretValue; + return object; + }; + + /** + * Converts this MeasurementProtocolSecret to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @instance + * @returns {Object.} JSON object + */ + MeasurementProtocolSecret.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MeasurementProtocolSecret; + })(); + + v1beta.ChangeHistoryEvent = (function() { + + /** + * Properties of a ChangeHistoryEvent. + * @memberof google.analytics.admin.v1beta + * @interface IChangeHistoryEvent + * @property {string|null} [id] ChangeHistoryEvent id + * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime + * @property {google.analytics.admin.v1beta.ActorType|null} [actorType] ChangeHistoryEvent actorType + * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail + * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered + * @property {Array.|null} [changes] ChangeHistoryEvent changes + */ + + /** + * Constructs a new ChangeHistoryEvent. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ChangeHistoryEvent. + * @implements IChangeHistoryEvent + * @constructor + * @param {google.analytics.admin.v1beta.IChangeHistoryEvent=} [properties] Properties to set + */ + function ChangeHistoryEvent(properties) { + this.changes = []; + 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]]; + } + + /** + * ChangeHistoryEvent id. + * @member {string} id + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.id = ""; + + /** + * ChangeHistoryEvent changeTime. + * @member {google.protobuf.ITimestamp|null|undefined} changeTime + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changeTime = null; + + /** + * ChangeHistoryEvent actorType. + * @member {google.analytics.admin.v1beta.ActorType} actorType + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.actorType = 0; + + /** + * ChangeHistoryEvent userActorEmail. + * @member {string} userActorEmail + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.userActorEmail = ""; + + /** + * ChangeHistoryEvent changesFiltered. + * @member {boolean} changesFiltered + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changesFiltered = false; + + /** + * ChangeHistoryEvent changes. + * @member {Array.} changes + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changes = $util.emptyArray; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1beta.IChangeHistoryEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ChangeHistoryEvent} ChangeHistoryEvent instance + */ + ChangeHistoryEvent.create = function create(properties) { + return new ChangeHistoryEvent(properties); + }; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryEvent.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1beta.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) + $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); + if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); + if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); + if (message.changes != null && message.changes.length) + for (var i = 0; i < message.changes.length; ++i) + $root.google.analytics.admin.v1beta.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1beta.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.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.analytics.admin.v1beta.ChangeHistoryEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.actorType = reader.int32(); + break; + case 4: + message.userActorEmail = reader.string(); + break; + case 5: + message.changesFiltered = reader.bool(); + break; + case 6: + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push($root.google.analytics.admin.v1beta.ChangeHistoryChange.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryEvent message. + * @function verify + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.changeTime); + if (error) + return "changeTime." + error; + } + if (message.actorType != null && message.hasOwnProperty("actorType")) + switch (message.actorType) { + default: + return "actorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + if (!$util.isString(message.userActorEmail)) + return "userActorEmail: string expected"; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + if (typeof message.changesFiltered !== "boolean") + return "changesFiltered: boolean expected"; + if (message.changes != null && message.hasOwnProperty("changes")) { + if (!Array.isArray(message.changes)) + return "changes: array expected"; + for (var i = 0; i < message.changes.length; ++i) { + var error = $root.google.analytics.admin.v1beta.ChangeHistoryChange.verify(message.changes[i]); + if (error) + return "changes." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ChangeHistoryEvent} ChangeHistoryEvent + */ + ChangeHistoryEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ChangeHistoryEvent) + return object; + var message = new $root.google.analytics.admin.v1beta.ChangeHistoryEvent(); + if (object.id != null) + message.id = String(object.id); + if (object.changeTime != null) { + if (typeof object.changeTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryEvent.changeTime: object expected"); + message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); + } + switch (object.actorType) { + case "ACTOR_TYPE_UNSPECIFIED": + case 0: + message.actorType = 0; + break; + case "USER": + case 1: + message.actorType = 1; + break; + case "SYSTEM": + case 2: + message.actorType = 2; + break; + case "SUPPORT": + case 3: + message.actorType = 3; + break; + } + if (object.userActorEmail != null) + message.userActorEmail = String(object.userActorEmail); + if (object.changesFiltered != null) + message.changesFiltered = Boolean(object.changesFiltered); + if (object.changes) { + if (!Array.isArray(object.changes)) + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryEvent.changes: array expected"); + message.changes = []; + for (var i = 0; i < object.changes.length; ++i) { + if (typeof object.changes[i] !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryEvent.changes: object expected"); + message.changes[i] = $root.google.analytics.admin.v1beta.ChangeHistoryChange.fromObject(object.changes[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1beta.ChangeHistoryEvent} message ChangeHistoryEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changes = []; + if (options.defaults) { + object.id = ""; + object.changeTime = null; + object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; + object.userActorEmail = ""; + object.changesFiltered = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) + object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); + if (message.actorType != null && message.hasOwnProperty("actorType")) + object.actorType = options.enums === String ? $root.google.analytics.admin.v1beta.ActorType[message.actorType] : message.actorType; + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + object.userActorEmail = message.userActorEmail; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + object.changesFiltered = message.changesFiltered; + if (message.changes && message.changes.length) { + object.changes = []; + for (var j = 0; j < message.changes.length; ++j) + object.changes[j] = $root.google.analytics.admin.v1beta.ChangeHistoryChange.toObject(message.changes[j], options); + } + return object; + }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeHistoryEvent; + })(); + + v1beta.ChangeHistoryChange = (function() { + + /** + * Properties of a ChangeHistoryChange. + * @memberof google.analytics.admin.v1beta + * @interface IChangeHistoryChange + * @property {string|null} [resource] ChangeHistoryChange resource + * @property {google.analytics.admin.v1beta.ActionType|null} [action] ChangeHistoryChange action + * @property {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange + * @property {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange + */ + + /** + * Constructs a new ChangeHistoryChange. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ChangeHistoryChange. + * @implements IChangeHistoryChange + * @constructor + * @param {google.analytics.admin.v1beta.IChangeHistoryChange=} [properties] Properties to set + */ + function ChangeHistoryChange(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]]; + } + + /** + * ChangeHistoryChange resource. + * @member {string} resource + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resource = ""; + + /** + * ChangeHistoryChange action. + * @member {google.analytics.admin.v1beta.ActionType} action + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.action = 0; + + /** + * ChangeHistoryChange resourceBeforeChange. + * @member {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceBeforeChange = null; + + /** + * ChangeHistoryChange resourceAfterChange. + * @member {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceAfterChange = null; + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1beta.IChangeHistoryChange=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange} ChangeHistoryChange instance + */ + ChangeHistoryChange.create = function create(properties) { + return new ChangeHistoryChange(properties); + }; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1beta.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); + if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) + $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) + $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1beta.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.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.analytics.admin.v1beta.ChangeHistoryChange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resource = reader.string(); + break; + case 2: + message.action = reader.int32(); + break; + case 3: + message.resourceBeforeChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + case 4: + message.resourceAfterChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryChange message. + * @function verify + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryChange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { + var error = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); + if (error) + return "resourceBeforeChange." + error; + } + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { + var error = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); + if (error) + return "resourceAfterChange." + error; + } + return null; + }; + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange} ChangeHistoryChange + */ + ChangeHistoryChange.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ChangeHistoryChange) + return object; + var message = new $root.google.analytics.admin.v1beta.ChangeHistoryChange(); + if (object.resource != null) + message.resource = String(object.resource); + switch (object.action) { + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action = 0; + break; + case "CREATED": + case 1: + message.action = 1; + break; + case "UPDATED": + case 2: + message.action = 2; + break; + case "DELETED": + case 3: + message.action = 3; + break; + } + if (object.resourceBeforeChange != null) { + if (typeof object.resourceBeforeChange !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.resourceBeforeChange: object expected"); + message.resourceBeforeChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); + } + if (object.resourceAfterChange != null) { + if (typeof object.resourceAfterChange !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.resourceAfterChange: object expected"); + message.resourceAfterChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1beta.ChangeHistoryChange} message ChangeHistoryChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; + object.resourceBeforeChange = null; + object.resourceAfterChange = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.analytics.admin.v1beta.ActionType[message.action] : message.action; + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) + object.resourceBeforeChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) + object.resourceAfterChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); + return object; + }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ChangeHistoryChange.ChangeHistoryResource = (function() { + + /** + * Properties of a ChangeHistoryResource. + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @interface IChangeHistoryResource + * @property {google.analytics.admin.v1beta.IAccount|null} [account] ChangeHistoryResource account + * @property {google.analytics.admin.v1beta.IProperty|null} [property] ChangeHistoryResource property + * @property {google.analytics.admin.v1beta.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink + * @property {google.analytics.admin.v1beta.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink + * @property {google.analytics.admin.v1beta.IConversionEvent|null} [conversionEvent] ChangeHistoryResource conversionEvent + * @property {google.analytics.admin.v1beta.IMeasurementProtocolSecret|null} [measurementProtocolSecret] ChangeHistoryResource measurementProtocolSecret + * @property {google.analytics.admin.v1beta.IDataRetentionSettings|null} [dataRetentionSettings] ChangeHistoryResource dataRetentionSettings + * @property {google.analytics.admin.v1beta.IDataStream|null} [dataStream] ChangeHistoryResource dataStream + */ + + /** + * Constructs a new ChangeHistoryResource. + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @classdesc Represents a ChangeHistoryResource. + * @implements IChangeHistoryResource + * @constructor + * @param {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + */ + function ChangeHistoryResource(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]]; + } + + /** + * ChangeHistoryResource account. + * @member {google.analytics.admin.v1beta.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.account = null; + + /** + * ChangeHistoryResource property. + * @member {google.analytics.admin.v1beta.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.property = null; + + /** + * ChangeHistoryResource firebaseLink. + * @member {google.analytics.admin.v1beta.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.firebaseLink = null; + + /** + * ChangeHistoryResource googleAdsLink. + * @member {google.analytics.admin.v1beta.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.googleAdsLink = null; + + /** + * ChangeHistoryResource conversionEvent. + * @member {google.analytics.admin.v1beta.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.conversionEvent = null; + + /** + * ChangeHistoryResource measurementProtocolSecret. + * @member {google.analytics.admin.v1beta.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.measurementProtocolSecret = null; + + /** + * ChangeHistoryResource dataRetentionSettings. + * @member {google.analytics.admin.v1beta.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.dataRetentionSettings = null; + + /** + * ChangeHistoryResource dataStream. + * @member {google.analytics.admin.v1beta.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.dataStream = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ChangeHistoryResource resource. + * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"conversionEvent"|"measurementProtocolSecret"|"dataRetentionSettings"|"dataStream"|undefined} resource + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + Object.defineProperty(ChangeHistoryResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "conversionEvent", "measurementProtocolSecret", "dataRetentionSettings", "dataStream"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance + */ + ChangeHistoryResource.create = function create(properties) { + return new ChangeHistoryResource(properties); + }; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1beta.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1beta.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1beta.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1beta.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1beta.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1beta.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1beta.DataStream.encode(message.dataStream, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1beta.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.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.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = $root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32()); + break; + case 2: + message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); + break; + case 6: + message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32()); + break; + case 7: + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); + break; + case 11: + message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32()); + break; + case 12: + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + case 15: + message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.decode(reader, reader.uint32()); + break; + case 18: + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryResource message. + * @function verify + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.account != null && message.hasOwnProperty("account")) { + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.Account.verify(message.account); + if (error) + return "account." + error; + } + } + if (message.property != null && message.hasOwnProperty("property")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.Property.verify(message.property); + if (error) + return "property." + error; + } + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; + } + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; + } + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + error; + } + } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1beta.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + */ + ChangeHistoryResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) + return object; + var message = new $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); + message.account = $root.google.analytics.admin.v1beta.Account.fromObject(object.account); + } + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); + message.property = $root.google.analytics.admin.v1beta.Property.fromObject(object.property); + } + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.fromObject(object.firebaseLink); + } + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.fromObject(object.conversionEvent); + } + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.fromObject(object.dataStream); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.account != null && message.hasOwnProperty("account")) { + object.account = $root.google.analytics.admin.v1beta.Account.toObject(message.account, options); + if (options.oneofs) + object.resource = "account"; + } + if (message.property != null && message.hasOwnProperty("property")) { + object.property = $root.google.analytics.admin.v1beta.Property.toObject(message.property, options); + if (options.oneofs) + object.resource = "property"; + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + object.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.toObject(message.firebaseLink, options); + if (options.oneofs) + object.resource = "firebaseLink"; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + object.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (options.oneofs) + object.resource = "googleAdsLink"; + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + object.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.toObject(message.conversionEvent, options); + if (options.oneofs) + object.resource = "conversionEvent"; + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + object.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (options.oneofs) + object.resource = "measurementProtocolSecret"; + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + object.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (options.oneofs) + object.resource = "dataRetentionSettings"; + } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + object.dataStream = $root.google.analytics.admin.v1beta.DataStream.toObject(message.dataStream, options); + if (options.oneofs) + object.resource = "dataStream"; + } + return object; + }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeHistoryResource; + })(); + + return ChangeHistoryChange; + })(); + + v1beta.ConversionEvent = (function() { + + /** + * Properties of a ConversionEvent. + * @memberof google.analytics.admin.v1beta + * @interface IConversionEvent + * @property {string|null} [name] ConversionEvent name + * @property {string|null} [eventName] ConversionEvent eventName + * @property {google.protobuf.ITimestamp|null} [createTime] ConversionEvent createTime + * @property {boolean|null} [deletable] ConversionEvent deletable + * @property {boolean|null} [custom] ConversionEvent custom + */ + + /** + * Constructs a new ConversionEvent. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a ConversionEvent. + * @implements IConversionEvent + * @constructor + * @param {google.analytics.admin.v1beta.IConversionEvent=} [properties] Properties to set + */ + function ConversionEvent(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]]; + } + + /** + * ConversionEvent name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @instance + */ + ConversionEvent.prototype.name = ""; + + /** + * ConversionEvent eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @instance + */ + ConversionEvent.prototype.eventName = ""; + + /** + * ConversionEvent createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @instance + */ + ConversionEvent.prototype.createTime = null; + + /** + * ConversionEvent deletable. + * @member {boolean} deletable + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @instance + */ + ConversionEvent.prototype.deletable = false; + + /** + * ConversionEvent custom. + * @member {boolean} custom + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @instance + */ + ConversionEvent.prototype.custom = false; + + /** + * Creates a new ConversionEvent instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {google.analytics.admin.v1beta.IConversionEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.ConversionEvent} ConversionEvent instance + */ + ConversionEvent.create = function create(properties) { + return new ConversionEvent(properties); + }; + + /** + * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1beta.ConversionEvent.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {google.analytics.admin.v1beta.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversionEvent.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.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.deletable != null && Object.hasOwnProperty.call(message, "deletable")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deletable); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.custom); + return writer; + }; + + /** + * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.ConversionEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {google.analytics.admin.v1beta.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversionEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.ConversionEvent} ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversionEvent.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.analytics.admin.v1beta.ConversionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.eventName = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.deletable = reader.bool(); + break; + case 5: + message.custom = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.ConversionEvent} ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversionEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConversionEvent message. + * @function verify + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConversionEvent.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.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.deletable != null && message.hasOwnProperty("deletable")) + if (typeof message.deletable !== "boolean") + return "deletable: boolean expected"; + if (message.custom != null && message.hasOwnProperty("custom")) + if (typeof message.custom !== "boolean") + return "custom: boolean expected"; + return null; + }; + + /** + * Creates a ConversionEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.ConversionEvent} ConversionEvent + */ + ConversionEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.ConversionEvent) + return object; + var message = new $root.google.analytics.admin.v1beta.ConversionEvent(); + if (object.name != null) + message.name = String(object.name); + if (object.eventName != null) + message.eventName = String(object.eventName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1beta.ConversionEvent.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.deletable != null) + message.deletable = Boolean(object.deletable); + if (object.custom != null) + message.custom = Boolean(object.custom); + return message; + }; + + /** + * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {google.analytics.admin.v1beta.ConversionEvent} message ConversionEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConversionEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.eventName = ""; + object.createTime = null; + object.deletable = false; + object.custom = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.deletable != null && message.hasOwnProperty("deletable")) + object.deletable = message.deletable; + if (message.custom != null && message.hasOwnProperty("custom")) + object.custom = message.custom; + return object; + }; + + /** + * Converts this ConversionEvent to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @instance + * @returns {Object.} JSON object + */ + ConversionEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ConversionEvent; + })(); + + v1beta.CustomDimension = (function() { + + /** + * Properties of a CustomDimension. + * @memberof google.analytics.admin.v1beta + * @interface ICustomDimension + * @property {string|null} [name] CustomDimension name + * @property {string|null} [parameterName] CustomDimension parameterName + * @property {string|null} [displayName] CustomDimension displayName + * @property {string|null} [description] CustomDimension description + * @property {google.analytics.admin.v1beta.CustomDimension.DimensionScope|null} [scope] CustomDimension scope + * @property {boolean|null} [disallowAdsPersonalization] CustomDimension disallowAdsPersonalization + */ + + /** + * Constructs a new CustomDimension. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CustomDimension. + * @implements ICustomDimension + * @constructor + * @param {google.analytics.admin.v1beta.ICustomDimension=} [properties] Properties to set + */ + function CustomDimension(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]]; + } + + /** + * CustomDimension name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.CustomDimension + * @instance + */ + CustomDimension.prototype.name = ""; + + /** + * CustomDimension parameterName. + * @member {string} parameterName + * @memberof google.analytics.admin.v1beta.CustomDimension + * @instance + */ + CustomDimension.prototype.parameterName = ""; + + /** + * CustomDimension displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.CustomDimension + * @instance + */ + CustomDimension.prototype.displayName = ""; + + /** + * CustomDimension description. + * @member {string} description + * @memberof google.analytics.admin.v1beta.CustomDimension + * @instance + */ + CustomDimension.prototype.description = ""; + + /** + * CustomDimension scope. + * @member {google.analytics.admin.v1beta.CustomDimension.DimensionScope} scope + * @memberof google.analytics.admin.v1beta.CustomDimension + * @instance + */ + CustomDimension.prototype.scope = 0; + + /** + * CustomDimension disallowAdsPersonalization. + * @member {boolean} disallowAdsPersonalization + * @memberof google.analytics.admin.v1beta.CustomDimension + * @instance + */ + CustomDimension.prototype.disallowAdsPersonalization = false; + + /** + * Creates a new CustomDimension instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {google.analytics.admin.v1beta.ICustomDimension=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CustomDimension} CustomDimension instance + */ + CustomDimension.create = function create(properties) { + return new CustomDimension(properties); + }; + + /** + * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1beta.CustomDimension.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {google.analytics.admin.v1beta.ICustomDimension} message CustomDimension message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomDimension.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.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scope); + if (message.disallowAdsPersonalization != null && Object.hasOwnProperty.call(message, "disallowAdsPersonalization")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disallowAdsPersonalization); + return writer; + }; + + /** + * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CustomDimension.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {google.analytics.admin.v1beta.ICustomDimension} message CustomDimension message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomDimension.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomDimension message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CustomDimension} CustomDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomDimension.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.analytics.admin.v1beta.CustomDimension(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.parameterName = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.description = reader.string(); + break; + case 5: + message.scope = reader.int32(); + break; + case 6: + message.disallowAdsPersonalization = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomDimension message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CustomDimension} CustomDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomDimension.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomDimension message. + * @function verify + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomDimension.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.parameterName != null && message.hasOwnProperty("parameterName")) + if (!$util.isString(message.parameterName)) + return "parameterName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) + if (typeof message.disallowAdsPersonalization !== "boolean") + return "disallowAdsPersonalization: boolean expected"; + return null; + }; + + /** + * Creates a CustomDimension message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CustomDimension} CustomDimension + */ + CustomDimension.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CustomDimension) + return object; + var message = new $root.google.analytics.admin.v1beta.CustomDimension(); + if (object.name != null) + message.name = String(object.name); + if (object.parameterName != null) + message.parameterName = String(object.parameterName); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.scope) { + case "DIMENSION_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "EVENT": + case 1: + message.scope = 1; + break; + case "USER": + case 2: + message.scope = 2; + break; + } + if (object.disallowAdsPersonalization != null) + message.disallowAdsPersonalization = Boolean(object.disallowAdsPersonalization); + return message; + }; + + /** + * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {google.analytics.admin.v1beta.CustomDimension} message CustomDimension + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomDimension.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parameterName = ""; + object.displayName = ""; + object.description = ""; + object.scope = options.enums === String ? "DIMENSION_SCOPE_UNSPECIFIED" : 0; + object.disallowAdsPersonalization = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + object.parameterName = message.parameterName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1beta.CustomDimension.DimensionScope[message.scope] : message.scope; + if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) + object.disallowAdsPersonalization = message.disallowAdsPersonalization; + return object; + }; + + /** + * Converts this CustomDimension to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CustomDimension + * @instance + * @returns {Object.} JSON object + */ + CustomDimension.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * DimensionScope enum. + * @name google.analytics.admin.v1beta.CustomDimension.DimensionScope + * @enum {number} + * @property {number} DIMENSION_SCOPE_UNSPECIFIED=0 DIMENSION_SCOPE_UNSPECIFIED value + * @property {number} EVENT=1 EVENT value + * @property {number} USER=2 USER value + */ + CustomDimension.DimensionScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DIMENSION_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EVENT"] = 1; + values[valuesById[2] = "USER"] = 2; + return values; + })(); + + return CustomDimension; + })(); + + v1beta.CustomMetric = (function() { + + /** + * Properties of a CustomMetric. + * @memberof google.analytics.admin.v1beta + * @interface ICustomMetric + * @property {string|null} [name] CustomMetric name + * @property {string|null} [parameterName] CustomMetric parameterName + * @property {string|null} [displayName] CustomMetric displayName + * @property {string|null} [description] CustomMetric description + * @property {google.analytics.admin.v1beta.CustomMetric.MeasurementUnit|null} [measurementUnit] CustomMetric measurementUnit + * @property {google.analytics.admin.v1beta.CustomMetric.MetricScope|null} [scope] CustomMetric scope + * @property {Array.|null} [restrictedMetricType] CustomMetric restrictedMetricType + */ + + /** + * Constructs a new CustomMetric. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a CustomMetric. + * @implements ICustomMetric + * @constructor + * @param {google.analytics.admin.v1beta.ICustomMetric=} [properties] Properties to set + */ + function CustomMetric(properties) { + this.restrictedMetricType = []; + 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]]; + } + + /** + * CustomMetric name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + */ + CustomMetric.prototype.name = ""; + + /** + * CustomMetric parameterName. + * @member {string} parameterName + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + */ + CustomMetric.prototype.parameterName = ""; + + /** + * CustomMetric displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + */ + CustomMetric.prototype.displayName = ""; + + /** + * CustomMetric description. + * @member {string} description + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + */ + CustomMetric.prototype.description = ""; + + /** + * CustomMetric measurementUnit. + * @member {google.analytics.admin.v1beta.CustomMetric.MeasurementUnit} measurementUnit + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + */ + CustomMetric.prototype.measurementUnit = 0; + + /** + * CustomMetric scope. + * @member {google.analytics.admin.v1beta.CustomMetric.MetricScope} scope + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + */ + CustomMetric.prototype.scope = 0; + + /** + * CustomMetric restrictedMetricType. + * @member {Array.} restrictedMetricType + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + */ + CustomMetric.prototype.restrictedMetricType = $util.emptyArray; + + /** + * Creates a new CustomMetric instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {google.analytics.admin.v1beta.ICustomMetric=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.CustomMetric} CustomMetric instance + */ + CustomMetric.create = function create(properties) { + return new CustomMetric(properties); + }; + + /** + * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1beta.CustomMetric.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {google.analytics.admin.v1beta.ICustomMetric} message CustomMetric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomMetric.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.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.measurementUnit != null && Object.hasOwnProperty.call(message, "measurementUnit")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.measurementUnit); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scope); + if (message.restrictedMetricType != null && message.restrictedMetricType.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.restrictedMetricType.length; ++i) + writer.int32(message.restrictedMetricType[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.CustomMetric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {google.analytics.admin.v1beta.ICustomMetric} message CustomMetric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomMetric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomMetric message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.CustomMetric} CustomMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomMetric.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.analytics.admin.v1beta.CustomMetric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.parameterName = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.description = reader.string(); + break; + case 5: + message.measurementUnit = reader.int32(); + break; + case 6: + message.scope = reader.int32(); + break; + case 8: + if (!(message.restrictedMetricType && message.restrictedMetricType.length)) + message.restrictedMetricType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.restrictedMetricType.push(reader.int32()); + } else + message.restrictedMetricType.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomMetric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.CustomMetric} CustomMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomMetric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomMetric message. + * @function verify + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomMetric.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.parameterName != null && message.hasOwnProperty("parameterName")) + if (!$util.isString(message.parameterName)) + return "parameterName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) + switch (message.measurementUnit) { + default: + return "measurementUnit: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + break; + } + if (message.restrictedMetricType != null && message.hasOwnProperty("restrictedMetricType")) { + if (!Array.isArray(message.restrictedMetricType)) + return "restrictedMetricType: array expected"; + for (var i = 0; i < message.restrictedMetricType.length; ++i) + switch (message.restrictedMetricType[i]) { + default: + return "restrictedMetricType: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } + } + return null; + }; + + /** + * Creates a CustomMetric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.CustomMetric} CustomMetric + */ + CustomMetric.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.CustomMetric) + return object; + var message = new $root.google.analytics.admin.v1beta.CustomMetric(); + if (object.name != null) + message.name = String(object.name); + if (object.parameterName != null) + message.parameterName = String(object.parameterName); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.measurementUnit) { + case "MEASUREMENT_UNIT_UNSPECIFIED": + case 0: + message.measurementUnit = 0; + break; + case "STANDARD": + case 1: + message.measurementUnit = 1; + break; + case "CURRENCY": + case 2: + message.measurementUnit = 2; + break; + case "FEET": + case 3: + message.measurementUnit = 3; + break; + case "METERS": + case 4: + message.measurementUnit = 4; + break; + case "KILOMETERS": + case 5: + message.measurementUnit = 5; + break; + case "MILES": + case 6: + message.measurementUnit = 6; + break; + case "MILLISECONDS": + case 7: + message.measurementUnit = 7; + break; + case "SECONDS": + case 8: + message.measurementUnit = 8; + break; + case "MINUTES": + case 9: + message.measurementUnit = 9; + break; + case "HOURS": + case 10: + message.measurementUnit = 10; + break; + } + switch (object.scope) { + case "METRIC_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "EVENT": + case 1: + message.scope = 1; + break; + } + if (object.restrictedMetricType) { + if (!Array.isArray(object.restrictedMetricType)) + throw TypeError(".google.analytics.admin.v1beta.CustomMetric.restrictedMetricType: array expected"); + message.restrictedMetricType = []; + for (var i = 0; i < object.restrictedMetricType.length; ++i) + switch (object.restrictedMetricType[i]) { + default: + case "RESTRICTED_METRIC_TYPE_UNSPECIFIED": + case 0: + message.restrictedMetricType[i] = 0; + break; + case "COST_DATA": + case 1: + message.restrictedMetricType[i] = 1; + break; + case "REVENUE_DATA": + case 2: + message.restrictedMetricType[i] = 2; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {google.analytics.admin.v1beta.CustomMetric} message CustomMetric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomMetric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.restrictedMetricType = []; + if (options.defaults) { + object.name = ""; + object.parameterName = ""; + object.displayName = ""; + object.description = ""; + object.measurementUnit = options.enums === String ? "MEASUREMENT_UNIT_UNSPECIFIED" : 0; + object.scope = options.enums === String ? "METRIC_SCOPE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + object.parameterName = message.parameterName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) + object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.MetricScope[message.scope] : message.scope; + if (message.restrictedMetricType && message.restrictedMetricType.length) { + object.restrictedMetricType = []; + for (var j = 0; j < message.restrictedMetricType.length; ++j) + object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; + } + return object; + }; + + /** + * Converts this CustomMetric to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.CustomMetric + * @instance + * @returns {Object.} JSON object + */ + CustomMetric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * MeasurementUnit enum. + * @name google.analytics.admin.v1beta.CustomMetric.MeasurementUnit + * @enum {number} + * @property {number} MEASUREMENT_UNIT_UNSPECIFIED=0 MEASUREMENT_UNIT_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} CURRENCY=2 CURRENCY value + * @property {number} FEET=3 FEET value + * @property {number} METERS=4 METERS value + * @property {number} KILOMETERS=5 KILOMETERS value + * @property {number} MILES=6 MILES value + * @property {number} MILLISECONDS=7 MILLISECONDS value + * @property {number} SECONDS=8 SECONDS value + * @property {number} MINUTES=9 MINUTES value + * @property {number} HOURS=10 HOURS value + */ + CustomMetric.MeasurementUnit = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MEASUREMENT_UNIT_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "CURRENCY"] = 2; + values[valuesById[3] = "FEET"] = 3; + values[valuesById[4] = "METERS"] = 4; + values[valuesById[5] = "KILOMETERS"] = 5; + values[valuesById[6] = "MILES"] = 6; + values[valuesById[7] = "MILLISECONDS"] = 7; + values[valuesById[8] = "SECONDS"] = 8; + values[valuesById[9] = "MINUTES"] = 9; + values[valuesById[10] = "HOURS"] = 10; + return values; + })(); + + /** + * MetricScope enum. + * @name google.analytics.admin.v1beta.CustomMetric.MetricScope + * @enum {number} + * @property {number} METRIC_SCOPE_UNSPECIFIED=0 METRIC_SCOPE_UNSPECIFIED value + * @property {number} EVENT=1 EVENT value + */ + CustomMetric.MetricScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EVENT"] = 1; + return values; + })(); + + /** + * RestrictedMetricType enum. + * @name google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType + * @enum {number} + * @property {number} RESTRICTED_METRIC_TYPE_UNSPECIFIED=0 RESTRICTED_METRIC_TYPE_UNSPECIFIED value + * @property {number} COST_DATA=1 COST_DATA value + * @property {number} REVENUE_DATA=2 REVENUE_DATA value + */ + CustomMetric.RestrictedMetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESTRICTED_METRIC_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "COST_DATA"] = 1; + values[valuesById[2] = "REVENUE_DATA"] = 2; + return values; + })(); + + return CustomMetric; + })(); + + v1beta.DataRetentionSettings = (function() { + + /** + * Properties of a DataRetentionSettings. + * @memberof google.analytics.admin.v1beta + * @interface IDataRetentionSettings + * @property {string|null} [name] DataRetentionSettings name + * @property {google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration|null} [eventDataRetention] DataRetentionSettings eventDataRetention + * @property {boolean|null} [resetUserDataOnNewActivity] DataRetentionSettings resetUserDataOnNewActivity + */ + + /** + * Constructs a new DataRetentionSettings. + * @memberof google.analytics.admin.v1beta + * @classdesc Represents a DataRetentionSettings. + * @implements IDataRetentionSettings + * @constructor + * @param {google.analytics.admin.v1beta.IDataRetentionSettings=} [properties] Properties to set + */ + function DataRetentionSettings(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]]; + } + + /** + * DataRetentionSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @instance + */ + DataRetentionSettings.prototype.name = ""; + + /** + * DataRetentionSettings eventDataRetention. + * @member {google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration} eventDataRetention + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @instance + */ + DataRetentionSettings.prototype.eventDataRetention = 0; + + /** + * DataRetentionSettings resetUserDataOnNewActivity. + * @member {boolean} resetUserDataOnNewActivity + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @instance + */ + DataRetentionSettings.prototype.resetUserDataOnNewActivity = false; + + /** + * Creates a new DataRetentionSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1beta.IDataRetentionSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1beta.DataRetentionSettings} DataRetentionSettings instance + */ + DataRetentionSettings.create = function create(properties) { + return new DataRetentionSettings(properties); + }; + + /** + * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1beta.DataRetentionSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1beta.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionSettings.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.eventDataRetention != null && Object.hasOwnProperty.call(message, "eventDataRetention")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.eventDataRetention); + if (message.resetUserDataOnNewActivity != null && Object.hasOwnProperty.call(message, "resetUserDataOnNewActivity")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.resetUserDataOnNewActivity); + return writer; + }; + + /** + * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1beta.DataRetentionSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1beta.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataRetentionSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1beta.DataRetentionSettings} DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionSettings.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.analytics.admin.v1beta.DataRetentionSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.eventDataRetention = reader.int32(); + break; + case 3: + message.resetUserDataOnNewActivity = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1beta.DataRetentionSettings} DataRetentionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataRetentionSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataRetentionSettings message. + * @function verify + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataRetentionSettings.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.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) + switch (message.eventDataRetention) { + default: + return "eventDataRetention: enum value expected"; + case 0: + case 1: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) + if (typeof message.resetUserDataOnNewActivity !== "boolean") + return "resetUserDataOnNewActivity: boolean expected"; + return null; + }; + + /** + * Creates a DataRetentionSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1beta.DataRetentionSettings} DataRetentionSettings + */ + DataRetentionSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1beta.DataRetentionSettings) + return object; + var message = new $root.google.analytics.admin.v1beta.DataRetentionSettings(); + if (object.name != null) + message.name = String(object.name); + switch (object.eventDataRetention) { + case "RETENTION_DURATION_UNSPECIFIED": + case 0: + message.eventDataRetention = 0; + break; + case "TWO_MONTHS": + case 1: + message.eventDataRetention = 1; + break; + case "FOURTEEN_MONTHS": + case 3: + message.eventDataRetention = 3; + break; + case "TWENTY_SIX_MONTHS": + case 4: + message.eventDataRetention = 4; + break; + case "THIRTY_EIGHT_MONTHS": + case 5: + message.eventDataRetention = 5; + break; + case "FIFTY_MONTHS": + case 6: + message.eventDataRetention = 6; + break; + } + if (object.resetUserDataOnNewActivity != null) + message.resetUserDataOnNewActivity = Boolean(object.resetUserDataOnNewActivity); + return message; + }; + + /** + * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {google.analytics.admin.v1beta.DataRetentionSettings} message DataRetentionSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataRetentionSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.eventDataRetention = options.enums === String ? "RETENTION_DURATION_UNSPECIFIED" : 0; + object.resetUserDataOnNewActivity = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) + object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; + if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) + object.resetUserDataOnNewActivity = message.resetUserDataOnNewActivity; + return object; + }; + + /** + * Converts this DataRetentionSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @instance + * @returns {Object.} JSON object + */ + DataRetentionSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * RetentionDuration enum. + * @name google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration + * @enum {number} + * @property {number} RETENTION_DURATION_UNSPECIFIED=0 RETENTION_DURATION_UNSPECIFIED value + * @property {number} TWO_MONTHS=1 TWO_MONTHS value + * @property {number} FOURTEEN_MONTHS=3 FOURTEEN_MONTHS value + * @property {number} TWENTY_SIX_MONTHS=4 TWENTY_SIX_MONTHS value + * @property {number} THIRTY_EIGHT_MONTHS=5 THIRTY_EIGHT_MONTHS value + * @property {number} FIFTY_MONTHS=6 FIFTY_MONTHS value + */ + DataRetentionSettings.RetentionDuration = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETENTION_DURATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "TWO_MONTHS"] = 1; + values[valuesById[3] = "FOURTEEN_MONTHS"] = 3; + values[valuesById[4] = "TWENTY_SIX_MONTHS"] = 4; + values[valuesById[5] = "THIRTY_EIGHT_MONTHS"] = 5; + values[valuesById[6] = "FIFTY_MONTHS"] = 6; + return values; + })(); + + return DataRetentionSettings; + })(); + + return v1beta; + })(); + return admin; })(); diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 1a24bd00d95..b7f5db4471a 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -3931,6 +3931,2701 @@ } } } + }, + "v1beta": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin", + "java_multiple_files": true, + "java_outer_classname": "ResourcesProto", + "java_package": "com.google.analytics.admin.v1beta" + }, + "nested": { + "AnalyticsAdminService": { + "options": { + "(google.api.default_host)": "analyticsadmin.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.readonly" + }, + "methods": { + "GetAccount": { + "requestType": "GetAccountRequest", + "responseType": "Account", + "options": { + "(google.api.http).get": "/v1beta/{name=accounts/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=accounts/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListAccounts": { + "requestType": "ListAccountsRequest", + "responseType": "ListAccountsResponse", + "options": { + "(google.api.http).get": "/v1beta/accounts" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/accounts" + } + } + ] + }, + "DeleteAccount": { + "requestType": "DeleteAccountRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta/{name=accounts/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=accounts/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateAccount": { + "requestType": "UpdateAccountRequest", + "responseType": "Account", + "options": { + "(google.api.http).patch": "/v1beta/{account.name=accounts/*}", + "(google.api.http).body": "account", + "(google.api.method_signature)": "account,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{account.name=accounts/*}", + "body": "account" + } + }, + { + "(google.api.method_signature)": "account,update_mask" + } + ] + }, + "ProvisionAccountTicket": { + "requestType": "ProvisionAccountTicketRequest", + "responseType": "ProvisionAccountTicketResponse", + "options": { + "(google.api.http).post": "/v1beta/accounts:provisionAccountTicket", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/accounts:provisionAccountTicket", + "body": "*" + } + } + ] + }, + "ListAccountSummaries": { + "requestType": "ListAccountSummariesRequest", + "responseType": "ListAccountSummariesResponse", + "options": { + "(google.api.http).get": "/v1beta/accountSummaries" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/accountSummaries" + } + } + ] + }, + "GetProperty": { + "requestType": "GetPropertyRequest", + "responseType": "Property", + "options": { + "(google.api.http).get": "/v1beta/{name=properties/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=properties/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListProperties": { + "requestType": "ListPropertiesRequest", + "responseType": "ListPropertiesResponse", + "options": { + "(google.api.http).get": "/v1beta/properties" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/properties" + } + } + ] + }, + "CreateProperty": { + "requestType": "CreatePropertyRequest", + "responseType": "Property", + "options": { + "(google.api.http).post": "/v1beta/properties", + "(google.api.http).body": "property", + "(google.api.method_signature)": "property" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/properties", + "body": "property" + } + }, + { + "(google.api.method_signature)": "property" + } + ] + }, + "DeleteProperty": { + "requestType": "DeletePropertyRequest", + "responseType": "Property", + "options": { + "(google.api.http).delete": "/v1beta/{name=properties/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=properties/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateProperty": { + "requestType": "UpdatePropertyRequest", + "responseType": "Property", + "options": { + "(google.api.http).patch": "/v1beta/{property.name=properties/*}", + "(google.api.http).body": "property", + "(google.api.method_signature)": "property,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{property.name=properties/*}", + "body": "property" + } + }, + { + "(google.api.method_signature)": "property,update_mask" + } + ] + }, + "CreateFirebaseLink": { + "requestType": "CreateFirebaseLinkRequest", + "responseType": "FirebaseLink", + "options": { + "(google.api.http).post": "/v1beta/{parent=properties/*}/firebaseLinks", + "(google.api.http).body": "firebase_link", + "(google.api.method_signature)": "parent,firebase_link" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=properties/*}/firebaseLinks", + "body": "firebase_link" + } + }, + { + "(google.api.method_signature)": "parent,firebase_link" + } + ] + }, + "DeleteFirebaseLink": { + "requestType": "DeleteFirebaseLinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta/{name=properties/*/firebaseLinks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=properties/*/firebaseLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFirebaseLinks": { + "requestType": "ListFirebaseLinksRequest", + "responseType": "ListFirebaseLinksResponse", + "options": { + "(google.api.http).get": "/v1beta/{parent=properties/*}/firebaseLinks", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{parent=properties/*}/firebaseLinks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateGoogleAdsLink": { + "requestType": "CreateGoogleAdsLinkRequest", + "responseType": "GoogleAdsLink", + "options": { + "(google.api.http).post": "/v1beta/{parent=properties/*}/googleAdsLinks", + "(google.api.http).body": "google_ads_link", + "(google.api.method_signature)": "parent,google_ads_link" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=properties/*}/googleAdsLinks", + "body": "google_ads_link" + } + }, + { + "(google.api.method_signature)": "parent,google_ads_link" + } + ] + }, + "UpdateGoogleAdsLink": { + "requestType": "UpdateGoogleAdsLinkRequest", + "responseType": "GoogleAdsLink", + "options": { + "(google.api.http).patch": "/v1beta/{google_ads_link.name=properties/*/googleAdsLinks/*}", + "(google.api.http).body": "google_ads_link", + "(google.api.method_signature)": "google_ads_link,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{google_ads_link.name=properties/*/googleAdsLinks/*}", + "body": "google_ads_link" + } + }, + { + "(google.api.method_signature)": "google_ads_link,update_mask" + } + ] + }, + "DeleteGoogleAdsLink": { + "requestType": "DeleteGoogleAdsLinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta/{name=properties/*/googleAdsLinks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=properties/*/googleAdsLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListGoogleAdsLinks": { + "requestType": "ListGoogleAdsLinksRequest", + "responseType": "ListGoogleAdsLinksResponse", + "options": { + "(google.api.http).get": "/v1beta/{parent=properties/*}/googleAdsLinks", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{parent=properties/*}/googleAdsLinks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetDataSharingSettings": { + "requestType": "GetDataSharingSettingsRequest", + "responseType": "DataSharingSettings", + "options": { + "(google.api.http).get": "/v1beta/{name=accounts/*/dataSharingSettings}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=accounts/*/dataSharingSettings}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetMeasurementProtocolSecret": { + "requestType": "GetMeasurementProtocolSecretRequest", + "responseType": "MeasurementProtocolSecret", + "options": { + "(google.api.http).get": "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListMeasurementProtocolSecrets": { + "requestType": "ListMeasurementProtocolSecretsRequest", + "responseType": "ListMeasurementProtocolSecretsResponse", + "options": { + "(google.api.http).get": "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateMeasurementProtocolSecret": { + "requestType": "CreateMeasurementProtocolSecretRequest", + "responseType": "MeasurementProtocolSecret", + "options": { + "(google.api.http).post": "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", + "(google.api.http).body": "measurement_protocol_secret", + "(google.api.method_signature)": "parent,measurement_protocol_secret" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", + "body": "measurement_protocol_secret" + } + }, + { + "(google.api.method_signature)": "parent,measurement_protocol_secret" + } + ] + }, + "DeleteMeasurementProtocolSecret": { + "requestType": "DeleteMeasurementProtocolSecretRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateMeasurementProtocolSecret": { + "requestType": "UpdateMeasurementProtocolSecretRequest", + "responseType": "MeasurementProtocolSecret", + "options": { + "(google.api.http).patch": "/v1beta/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "(google.api.http).body": "measurement_protocol_secret", + "(google.api.method_signature)": "measurement_protocol_secret,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "body": "measurement_protocol_secret" + } + }, + { + "(google.api.method_signature)": "measurement_protocol_secret,update_mask" + } + ] + }, + "AcknowledgeUserDataCollection": { + "requestType": "AcknowledgeUserDataCollectionRequest", + "responseType": "AcknowledgeUserDataCollectionResponse", + "options": { + "(google.api.http).post": "/v1beta/{property=properties/*}:acknowledgeUserDataCollection", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{property=properties/*}:acknowledgeUserDataCollection", + "body": "*" + } + } + ] + }, + "SearchChangeHistoryEvents": { + "requestType": "SearchChangeHistoryEventsRequest", + "responseType": "SearchChangeHistoryEventsResponse", + "options": { + "(google.api.http).post": "/v1beta/{account=accounts/*}:searchChangeHistoryEvents", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{account=accounts/*}:searchChangeHistoryEvents", + "body": "*" + } + } + ] + }, + "CreateConversionEvent": { + "requestType": "CreateConversionEventRequest", + "responseType": "ConversionEvent", + "options": { + "(google.api.http).post": "/v1beta/{parent=properties/*}/conversionEvents", + "(google.api.http).body": "conversion_event", + "(google.api.method_signature)": "parent,conversion_event" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=properties/*}/conversionEvents", + "body": "conversion_event" + } + }, + { + "(google.api.method_signature)": "parent,conversion_event" + } + ] + }, + "GetConversionEvent": { + "requestType": "GetConversionEventRequest", + "responseType": "ConversionEvent", + "options": { + "(google.api.http).get": "/v1beta/{name=properties/*/conversionEvents/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=properties/*/conversionEvents/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "DeleteConversionEvent": { + "requestType": "DeleteConversionEventRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta/{name=properties/*/conversionEvents/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=properties/*/conversionEvents/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListConversionEvents": { + "requestType": "ListConversionEventsRequest", + "responseType": "ListConversionEventsResponse", + "options": { + "(google.api.http).get": "/v1beta/{parent=properties/*}/conversionEvents", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{parent=properties/*}/conversionEvents" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateCustomDimension": { + "requestType": "CreateCustomDimensionRequest", + "responseType": "CustomDimension", + "options": { + "(google.api.http).post": "/v1beta/{parent=properties/*}/customDimensions", + "(google.api.http).body": "custom_dimension", + "(google.api.method_signature)": "parent,custom_dimension" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=properties/*}/customDimensions", + "body": "custom_dimension" + } + }, + { + "(google.api.method_signature)": "parent,custom_dimension" + } + ] + }, + "UpdateCustomDimension": { + "requestType": "UpdateCustomDimensionRequest", + "responseType": "CustomDimension", + "options": { + "(google.api.http).patch": "/v1beta/{custom_dimension.name=properties/*/customDimensions/*}", + "(google.api.http).body": "custom_dimension", + "(google.api.method_signature)": "custom_dimension,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{custom_dimension.name=properties/*/customDimensions/*}", + "body": "custom_dimension" + } + }, + { + "(google.api.method_signature)": "custom_dimension,update_mask" + } + ] + }, + "ListCustomDimensions": { + "requestType": "ListCustomDimensionsRequest", + "responseType": "ListCustomDimensionsResponse", + "options": { + "(google.api.http).get": "/v1beta/{parent=properties/*}/customDimensions", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{parent=properties/*}/customDimensions" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "ArchiveCustomDimension": { + "requestType": "ArchiveCustomDimensionRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta/{name=properties/*/customDimensions/*}:archive", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{name=properties/*/customDimensions/*}:archive", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetCustomDimension": { + "requestType": "GetCustomDimensionRequest", + "responseType": "CustomDimension", + "options": { + "(google.api.http).get": "/v1beta/{name=properties/*/customDimensions/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=properties/*/customDimensions/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateCustomMetric": { + "requestType": "CreateCustomMetricRequest", + "responseType": "CustomMetric", + "options": { + "(google.api.http).post": "/v1beta/{parent=properties/*}/customMetrics", + "(google.api.http).body": "custom_metric", + "(google.api.method_signature)": "parent,custom_metric" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=properties/*}/customMetrics", + "body": "custom_metric" + } + }, + { + "(google.api.method_signature)": "parent,custom_metric" + } + ] + }, + "UpdateCustomMetric": { + "requestType": "UpdateCustomMetricRequest", + "responseType": "CustomMetric", + "options": { + "(google.api.http).patch": "/v1beta/{custom_metric.name=properties/*/customMetrics/*}", + "(google.api.http).body": "custom_metric", + "(google.api.method_signature)": "custom_metric,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{custom_metric.name=properties/*/customMetrics/*}", + "body": "custom_metric" + } + }, + { + "(google.api.method_signature)": "custom_metric,update_mask" + } + ] + }, + "ListCustomMetrics": { + "requestType": "ListCustomMetricsRequest", + "responseType": "ListCustomMetricsResponse", + "options": { + "(google.api.http).get": "/v1beta/{parent=properties/*}/customMetrics", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{parent=properties/*}/customMetrics" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "ArchiveCustomMetric": { + "requestType": "ArchiveCustomMetricRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta/{name=properties/*/customMetrics/*}:archive", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{name=properties/*/customMetrics/*}:archive", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetCustomMetric": { + "requestType": "GetCustomMetricRequest", + "responseType": "CustomMetric", + "options": { + "(google.api.http).get": "/v1beta/{name=properties/*/customMetrics/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=properties/*/customMetrics/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetDataRetentionSettings": { + "requestType": "GetDataRetentionSettingsRequest", + "responseType": "DataRetentionSettings", + "options": { + "(google.api.http).get": "/v1beta/{name=properties/*/dataRetentionSettings}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=properties/*/dataRetentionSettings}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateDataRetentionSettings": { + "requestType": "UpdateDataRetentionSettingsRequest", + "responseType": "DataRetentionSettings", + "options": { + "(google.api.http).patch": "/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}", + "(google.api.http).body": "data_retention_settings", + "(google.api.method_signature)": "data_retention_settings,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}", + "body": "data_retention_settings" + } + }, + { + "(google.api.method_signature)": "data_retention_settings,update_mask" + } + ] + }, + "CreateDataStream": { + "requestType": "CreateDataStreamRequest", + "responseType": "DataStream", + "options": { + "(google.api.http).post": "/v1beta/{parent=properties/*}/dataStreams", + "(google.api.http).body": "data_stream", + "(google.api.method_signature)": "parent,data_stream" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta/{parent=properties/*}/dataStreams", + "body": "data_stream" + } + }, + { + "(google.api.method_signature)": "parent,data_stream" + } + ] + }, + "DeleteDataStream": { + "requestType": "DeleteDataStreamRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1beta/{name=properties/*/dataStreams/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta/{name=properties/*/dataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateDataStream": { + "requestType": "UpdateDataStreamRequest", + "responseType": "DataStream", + "options": { + "(google.api.http).patch": "/v1beta/{data_stream.name=properties/*/dataStreams/*}", + "(google.api.http).body": "data_stream", + "(google.api.method_signature)": "data_stream,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta/{data_stream.name=properties/*/dataStreams/*}", + "body": "data_stream" + } + }, + { + "(google.api.method_signature)": "data_stream,update_mask" + } + ] + }, + "ListDataStreams": { + "requestType": "ListDataStreamsRequest", + "responseType": "ListDataStreamsResponse", + "options": { + "(google.api.http).get": "/v1beta/{parent=properties/*}/dataStreams", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{parent=properties/*}/dataStreams" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetDataStream": { + "requestType": "GetDataStreamRequest", + "responseType": "DataStream", + "options": { + "(google.api.http).get": "/v1beta/{name=properties/*/dataStreams/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta/{name=properties/*/dataStreams/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + }, + "GetAccountRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "ListAccountsRequest": { + "fields": { + "pageSize": { + "type": "int32", + "id": 1 + }, + "pageToken": { + "type": "string", + "id": 2 + }, + "showDeleted": { + "type": "bool", + "id": 3 + } + } + }, + "ListAccountsResponse": { + "fields": { + "accounts": { + "rule": "repeated", + "type": "Account", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteAccountRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "UpdateAccountRequest": { + "fields": { + "account": { + "type": "Account", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ProvisionAccountTicketRequest": { + "fields": { + "account": { + "type": "Account", + "id": 1 + }, + "redirectUri": { + "type": "string", + "id": 2 + } + } + }, + "ProvisionAccountTicketResponse": { + "fields": { + "accountTicketId": { + "type": "string", + "id": 1 + } + } + }, + "GetPropertyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + } + } + }, + "ListPropertiesRequest": { + "fields": { + "filter": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "showDeleted": { + "type": "bool", + "id": 4 + } + } + }, + "ListPropertiesResponse": { + "fields": { + "properties": { + "rule": "repeated", + "type": "Property", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "UpdatePropertyRequest": { + "fields": { + "property": { + "type": "Property", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CreatePropertyRequest": { + "fields": { + "property": { + "type": "Property", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeletePropertyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + } + } + }, + "CreateFirebaseLinkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" + } + }, + "firebaseLink": { + "type": "FirebaseLink", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteFirebaseLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/FirebaseLink" + } + } + } + }, + "ListFirebaseLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/FirebaseLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListFirebaseLinksResponse": { + "fields": { + "firebaseLinks": { + "rule": "repeated", + "type": "FirebaseLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateGoogleAdsLinkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" + } + }, + "googleAdsLink": { + "type": "GoogleAdsLink", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateGoogleAdsLinkRequest": { + "fields": { + "googleAdsLink": { + "type": "GoogleAdsLink", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteGoogleAdsLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/GoogleAdsLink" + } + } + } + }, + "ListGoogleAdsLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/GoogleAdsLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListGoogleAdsLinksResponse": { + "fields": { + "googleAdsLinks": { + "rule": "repeated", + "type": "GoogleAdsLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetDataSharingSettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataSharingSettings" + } + } + } + }, + "ListAccountSummariesRequest": { + "fields": { + "pageSize": { + "type": "int32", + "id": 1 + }, + "pageToken": { + "type": "string", + "id": 2 + } + } + }, + "ListAccountSummariesResponse": { + "fields": { + "accountSummaries": { + "rule": "repeated", + "type": "AccountSummary", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "AcknowledgeUserDataCollectionRequest": { + "fields": { + "property": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + }, + "acknowledgement": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "AcknowledgeUserDataCollectionResponse": { + "fields": {} + }, + "SearchChangeHistoryEventsRequest": { + "fields": { + "account": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + }, + "property": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + }, + "resourceType": { + "rule": "repeated", + "type": "ChangeHistoryResourceType", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "action": { + "rule": "repeated", + "type": "ActionType", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "actorEmail": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "earliestChangeTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "latestChangeTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SearchChangeHistoryEventsResponse": { + "fields": { + "changeHistoryEvents": { + "rule": "repeated", + "type": "ChangeHistoryEvent", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetMeasurementProtocolSecretRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + } + } + }, + "CreateMeasurementProtocolSecretRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + }, + "measurementProtocolSecret": { + "type": "MeasurementProtocolSecret", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteMeasurementProtocolSecretRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + } + } + }, + "UpdateMeasurementProtocolSecretRequest": { + "fields": { + "measurementProtocolSecret": { + "type": "MeasurementProtocolSecret", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "ListMeasurementProtocolSecretsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListMeasurementProtocolSecretsResponse": { + "fields": { + "measurementProtocolSecrets": { + "rule": "repeated", + "type": "MeasurementProtocolSecret", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateConversionEventRequest": { + "fields": { + "conversionEvent": { + "type": "ConversionEvent", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/ConversionEvent" + } + } + } + }, + "GetConversionEventRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/ConversionEvent" + } + } + } + }, + "DeleteConversionEventRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/ConversionEvent" + } + } + } + }, + "ListConversionEventsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/ConversionEvent" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListConversionEventsResponse": { + "fields": { + "conversionEvents": { + "rule": "repeated", + "type": "ConversionEvent", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateCustomDimensionRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" + } + }, + "customDimension": { + "type": "CustomDimension", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateCustomDimensionRequest": { + "fields": { + "customDimension": { + "type": "CustomDimension", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListCustomDimensionsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomDimension" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListCustomDimensionsResponse": { + "fields": { + "customDimensions": { + "rule": "repeated", + "type": "CustomDimension", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "ArchiveCustomDimensionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" + } + } + } + }, + "GetCustomDimensionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomDimension" + } + } + } + }, + "CreateCustomMetricRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" + } + }, + "customMetric": { + "type": "CustomMetric", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateCustomMetricRequest": { + "fields": { + "customMetric": { + "type": "CustomMetric", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListCustomMetricsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/CustomMetric" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListCustomMetricsResponse": { + "fields": { + "customMetrics": { + "rule": "repeated", + "type": "CustomMetric", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "ArchiveCustomMetricRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomMetric" + } + } + } + }, + "GetCustomMetricRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomMetric" + } + } + } + }, + "GetDataRetentionSettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataRetentionSettings" + } + } + } + }, + "UpdateDataRetentionSettingsRequest": { + "fields": { + "dataRetentionSettings": { + "type": "DataRetentionSettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CreateDataStreamRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + } + }, + "dataStream": { + "type": "DataStream", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + } + } + } + }, + "UpdateDataStreamRequest": { + "fields": { + "dataStream": { + "type": "DataStream", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListDataStreamsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDataStreamsResponse": { + "fields": { + "dataStreams": { + "rule": "repeated", + "type": "DataStream", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + } + } + } + }, + "IndustryCategory": { + "values": { + "INDUSTRY_CATEGORY_UNSPECIFIED": 0, + "AUTOMOTIVE": 1, + "BUSINESS_AND_INDUSTRIAL_MARKETS": 2, + "FINANCE": 3, + "HEALTHCARE": 4, + "TECHNOLOGY": 5, + "TRAVEL": 6, + "OTHER": 7, + "ARTS_AND_ENTERTAINMENT": 8, + "BEAUTY_AND_FITNESS": 9, + "BOOKS_AND_LITERATURE": 10, + "FOOD_AND_DRINK": 11, + "GAMES": 12, + "HOBBIES_AND_LEISURE": 13, + "HOME_AND_GARDEN": 14, + "INTERNET_AND_TELECOM": 15, + "LAW_AND_GOVERNMENT": 16, + "NEWS": 17, + "ONLINE_COMMUNITIES": 18, + "PEOPLE_AND_SOCIETY": 19, + "PETS_AND_ANIMALS": 20, + "REAL_ESTATE": 21, + "REFERENCE": 22, + "SCIENCE": 23, + "SPORTS": 24, + "JOBS_AND_EDUCATION": 25, + "SHOPPING": 26 + } + }, + "ServiceLevel": { + "values": { + "SERVICE_LEVEL_UNSPECIFIED": 0, + "GOOGLE_ANALYTICS_STANDARD": 1, + "GOOGLE_ANALYTICS_360": 2 + } + }, + "ActorType": { + "values": { + "ACTOR_TYPE_UNSPECIFIED": 0, + "USER": 1, + "SYSTEM": 2, + "SUPPORT": 3 + } + }, + "ActionType": { + "values": { + "ACTION_TYPE_UNSPECIFIED": 0, + "CREATED": 1, + "UPDATED": 2, + "DELETED": 3 + } + }, + "ChangeHistoryResourceType": { + "values": { + "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": 0, + "ACCOUNT": 1, + "PROPERTY": 2, + "FIREBASE_LINK": 6, + "GOOGLE_ADS_LINK": 7, + "GOOGLE_SIGNALS_SETTINGS": 8, + "CONVERSION_EVENT": 9, + "MEASUREMENT_PROTOCOL_SECRET": 10, + "DATA_RETENTION_SETTINGS": 13, + "DISPLAY_VIDEO_360_ADVERTISER_LINK": 14, + "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": 15, + "DATA_STREAM": 18, + "ATTRIBUTION_SETTINGS": 20 + } + }, + "PropertyType": { + "values": { + "PROPERTY_TYPE_UNSPECIFIED": 0, + "PROPERTY_TYPE_ORDINARY": 1, + "PROPERTY_TYPE_SUBPROPERTY": 2, + "PROPERTY_TYPE_ROLLUP": 3 + } + }, + "Account": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/Account", + "(google.api.resource).pattern": "accounts/{account}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "regionCode": { + "type": "string", + "id": 5 + }, + "deleted": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "Property": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/Property", + "(google.api.resource).pattern": "properties/{property}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "propertyType": { + "type": "PropertyType", + "id": 14, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "industryCategory": { + "type": "IndustryCategory", + "id": 6 + }, + "timeZone": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "currencyCode": { + "type": "string", + "id": 8 + }, + "serviceLevel": { + "type": "ServiceLevel", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "deleteTime": { + "type": "google.protobuf.Timestamp", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "expireTime": { + "type": "google.protobuf.Timestamp", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "account": { + "type": "string", + "id": 13, + "options": { + "(google.api.field_behavior)": "IMMUTABLE", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "DataStream": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DataStream", + "(google.api.resource).pattern": "properties/{property}/dataStreams/{data_stream}" + }, + "oneofs": { + "streamData": { + "oneof": [ + "webStreamData", + "androidAppStreamData", + "iosAppStreamData" + ] + } + }, + "fields": { + "webStreamData": { + "type": "WebStreamData", + "id": 6 + }, + "androidAppStreamData": { + "type": "AndroidAppStreamData", + "id": 7 + }, + "iosAppStreamData": { + "type": "IosAppStreamData", + "id": 8 + }, + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "type": { + "type": "DataStreamType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "displayName": { + "type": "string", + "id": 3 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "WebStreamData": { + "fields": { + "measurementId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "firebaseAppId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "defaultUri": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "AndroidAppStreamData": { + "fields": { + "firebaseAppId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "packageName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "IosAppStreamData": { + "fields": { + "firebaseAppId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "bundleId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DataStreamType": { + "values": { + "DATA_STREAM_TYPE_UNSPECIFIED": 0, + "WEB_DATA_STREAM": 1, + "ANDROID_APP_DATA_STREAM": 2, + "IOS_APP_DATA_STREAM": 3 + } + } + } + }, + "FirebaseLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/FirebaseLink", + "(google.api.resource).pattern": "properties/{property}/firebaseLinks/{firebase_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "project": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "GoogleAdsLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/GoogleAdsLink", + "(google.api.resource).pattern": "properties/{property}/googleAdsLinks/{google_ads_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "customerId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "canManageClients": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "adsPersonalizationEnabled": { + "type": "google.protobuf.BoolValue", + "id": 5 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "creatorEmailAddress": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "DataSharingSettings": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DataSharingSettings", + "(google.api.resource).pattern": "accounts/{account}/dataSharingSettings" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "sharingWithGoogleSupportEnabled": { + "type": "bool", + "id": 2 + }, + "sharingWithGoogleAssignedSalesEnabled": { + "type": "bool", + "id": 3 + }, + "sharingWithGoogleAnySalesEnabled": { + "type": "bool", + "id": 4 + }, + "sharingWithGoogleProductsEnabled": { + "type": "bool", + "id": 5 + }, + "sharingWithOthersEnabled": { + "type": "bool", + "id": 6 + } + } + }, + "AccountSummary": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/AccountSummary", + "(google.api.resource).pattern": "accountSummaries/{account_summary}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "account": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + }, + "displayName": { + "type": "string", + "id": 3 + }, + "propertySummaries": { + "rule": "repeated", + "type": "PropertySummary", + "id": 4 + } + } + }, + "PropertySummary": { + "fields": { + "property": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Property" + } + }, + "displayName": { + "type": "string", + "id": 2 + }, + "propertyType": { + "type": "PropertyType", + "id": 3 + }, + "parent": { + "type": "string", + "id": 4 + } + } + }, + "MeasurementProtocolSecret": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/MeasurementProtocolSecret", + "(google.api.resource).pattern": "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "secretValue": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ChangeHistoryEvent": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "changeTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + }, + "actorType": { + "type": "ActorType", + "id": 3 + }, + "userActorEmail": { + "type": "string", + "id": 4 + }, + "changesFiltered": { + "type": "bool", + "id": 5 + }, + "changes": { + "rule": "repeated", + "type": "ChangeHistoryChange", + "id": 6 + } + } + }, + "ChangeHistoryChange": { + "fields": { + "resource": { + "type": "string", + "id": 1 + }, + "action": { + "type": "ActionType", + "id": 2 + }, + "resourceBeforeChange": { + "type": "ChangeHistoryResource", + "id": 3 + }, + "resourceAfterChange": { + "type": "ChangeHistoryResource", + "id": 4 + } + }, + "nested": { + "ChangeHistoryResource": { + "oneofs": { + "resource": { + "oneof": [ + "account", + "property", + "firebaseLink", + "googleAdsLink", + "conversionEvent", + "measurementProtocolSecret", + "dataRetentionSettings", + "dataStream" + ] + } + }, + "fields": { + "account": { + "type": "Account", + "id": 1 + }, + "property": { + "type": "Property", + "id": 2 + }, + "firebaseLink": { + "type": "FirebaseLink", + "id": 6 + }, + "googleAdsLink": { + "type": "GoogleAdsLink", + "id": 7 + }, + "conversionEvent": { + "type": "ConversionEvent", + "id": 11 + }, + "measurementProtocolSecret": { + "type": "MeasurementProtocolSecret", + "id": 12 + }, + "dataRetentionSettings": { + "type": "DataRetentionSettings", + "id": 15 + }, + "dataStream": { + "type": "DataStream", + "id": 18 + } + } + } + } + }, + "ConversionEvent": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/ConversionEvent", + "(google.api.resource).pattern": "properties/{property}/conversionEvents/{conversion_event}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "eventName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "deletable": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "custom": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "CustomDimension": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/CustomDimension", + "(google.api.resource).pattern": "properties/{property}/customDimensions/{custom_dimension}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameterName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "scope": { + "type": "DimensionScope", + "id": 5, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "disallowAdsPersonalization": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "DimensionScope": { + "values": { + "DIMENSION_SCOPE_UNSPECIFIED": 0, + "EVENT": 1, + "USER": 2 + } + } + } + }, + "CustomMetric": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/CustomMetric", + "(google.api.resource).pattern": "properties/{property}/customMetrics/{custom_metric}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameterName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "measurementUnit": { + "type": "MeasurementUnit", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "scope": { + "type": "MetricScope", + "id": 6, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "restrictedMetricType": { + "rule": "repeated", + "type": "RestrictedMetricType", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "MeasurementUnit": { + "values": { + "MEASUREMENT_UNIT_UNSPECIFIED": 0, + "STANDARD": 1, + "CURRENCY": 2, + "FEET": 3, + "METERS": 4, + "KILOMETERS": 5, + "MILES": 6, + "MILLISECONDS": 7, + "SECONDS": 8, + "MINUTES": 9, + "HOURS": 10 + } + }, + "MetricScope": { + "values": { + "METRIC_SCOPE_UNSPECIFIED": 0, + "EVENT": 1 + } + }, + "RestrictedMetricType": { + "values": { + "RESTRICTED_METRIC_TYPE_UNSPECIFIED": 0, + "COST_DATA": 1, + "REVENUE_DATA": 2 + } + } + } + }, + "DataRetentionSettings": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/DataRetentionSettings", + "(google.api.resource).pattern": "properties/{property}/dataRetentionSettings" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "eventDataRetention": { + "type": "RetentionDuration", + "id": 2 + }, + "resetUserDataOnNewActivity": { + "type": "bool", + "id": 3 + } + }, + "nested": { + "RetentionDuration": { + "values": { + "RETENTION_DURATION_UNSPECIFIED": 0, + "TWO_MONTHS": 1, + "FOURTEEN_MONTHS": 3, + "TWENTY_SIX_MONTHS": 4, + "THIRTY_EIGHT_MONTHS": 5, + "FIFTY_MONTHS": 6 + } + } + } + } + } } } } diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js new file mode 100644 index 00000000000..f3fb9ba0d52 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js @@ -0,0 +1,69 @@ +// 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 +// +// 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'; + +function main(property, acknowledgement) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The property for which to acknowledge user data collection. + */ + // const property = 'abc123' + /** + * Required. An acknowledgement that the caller of this method understands the terms + * of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + */ + // const acknowledgement = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callAcknowledgeUserDataCollection() { + // Construct request + const request = { + property, + acknowledgement, + }; + + // Run request + const response = await adminClient.acknowledgeUserDataCollection(request); + console.log(response); + } + + callAcknowledgeUserDataCollection(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js new file mode 100644 index 00000000000..5cb22754401 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callArchiveCustomDimension() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.archiveCustomDimension(request); + console.log(response); + } + + callArchiveCustomDimension(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js new file mode 100644 index 00000000000..0cd11bd005c --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callArchiveCustomMetric() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.archiveCustomMetric(request); + console.log(response); + } + + callArchiveCustomMetric(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js new file mode 100644 index 00000000000..3d169f7ab58 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js @@ -0,0 +1,64 @@ +// 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 +// +// 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'; + +function main(conversionEvent, parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The conversion event to create. + */ + // const conversionEvent = {} + /** + * Required. The resource name of the parent property where this conversion event will + * be created. Format: properties/123 + */ + // const parent = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateConversionEvent() { + // Construct request + const request = { + conversionEvent, + parent, + }; + + // Run request + const response = await adminClient.createConversionEvent(request); + console.log(response); + } + + callCreateConversionEvent(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js new file mode 100644 index 00000000000..2ad5a5b1772 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js @@ -0,0 +1,63 @@ +// 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 +// +// 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'; + +function main(parent, customDimension) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The CustomDimension to create. + */ + // const customDimension = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateCustomDimension() { + // Construct request + const request = { + parent, + customDimension, + }; + + // Run request + const response = await adminClient.createCustomDimension(request); + console.log(response); + } + + callCreateCustomDimension(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js new file mode 100644 index 00000000000..fde50de1c15 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js @@ -0,0 +1,63 @@ +// 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 +// +// 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'; + +function main(parent, customMetric) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The CustomMetric to create. + */ + // const customMetric = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateCustomMetric() { + // Construct request + const request = { + parent, + customMetric, + }; + + // Run request + const response = await adminClient.createCustomMetric(request); + console.log(response); + } + + callCreateCustomMetric(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js new file mode 100644 index 00000000000..734eb9133e2 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js @@ -0,0 +1,63 @@ +// 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 +// +// 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'; + +function main(parent, dataStream) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The DataStream to create. + */ + // const dataStream = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateDataStream() { + // Construct request + const request = { + parent, + dataStream, + }; + + // Run request + const response = await adminClient.createDataStream(request); + console.log(response); + } + + callCreateDataStream(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js new file mode 100644 index 00000000000..e1ac22f1287 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js @@ -0,0 +1,64 @@ +// 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 +// +// 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'; + +function main(parent, firebaseLink) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The Firebase link to create. + */ + // const firebaseLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateFirebaseLink() { + // Construct request + const request = { + parent, + firebaseLink, + }; + + // Run request + const response = await adminClient.createFirebaseLink(request); + console.log(response); + } + + callCreateFirebaseLink(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js new file mode 100644 index 00000000000..f33be60a6d8 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js @@ -0,0 +1,63 @@ +// 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 +// +// 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'; + +function main(parent, googleAdsLink) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The GoogleAdsLink to create. + */ + // const googleAdsLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateGoogleAdsLink() { + // Construct request + const request = { + parent, + googleAdsLink, + }; + + // Run request + const response = await adminClient.createGoogleAdsLink(request); + console.log(response); + } + + callCreateGoogleAdsLink(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js new file mode 100644 index 00000000000..c4d9c0462a7 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js @@ -0,0 +1,64 @@ +// 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 +// +// 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'; + +function main(parent, measurementProtocolSecret) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + */ + // const parent = 'abc123' + /** + * Required. The measurement protocol secret to create. + */ + // const measurementProtocolSecret = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateMeasurementProtocolSecret() { + // Construct request + const request = { + parent, + measurementProtocolSecret, + }; + + // Run request + const response = await adminClient.createMeasurementProtocolSecret(request); + console.log(response); + } + + callCreateMeasurementProtocolSecret(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js new file mode 100644 index 00000000000..b73ce9e59a0 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(property) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + */ + // const property = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateProperty() { + // Construct request + const request = { + property, + }; + + // Run request + const response = await adminClient.createProperty(request); + console.log(response); + } + + callCreateProperty(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js new file mode 100644 index 00000000000..6de1540902f --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteAccount() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteAccount(request); + console.log(response); + } + + callDeleteAccount(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js new file mode 100644 index 00000000000..c6f6ac29941 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteConversionEvent() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteConversionEvent(request); + console.log(response); + } + + callDeleteConversionEvent(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js new file mode 100644 index 00000000000..325dede5d39 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteDataStream(request); + console.log(response); + } + + callDeleteDataStream(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js new file mode 100644 index 00000000000..53e3313491a --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteFirebaseLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteFirebaseLink(request); + console.log(response); + } + + callDeleteFirebaseLink(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js new file mode 100644 index 00000000000..49f266a9726 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js @@ -0,0 +1,58 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteGoogleAdsLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteGoogleAdsLink(request); + console.log(response); + } + + callDeleteGoogleAdsLink(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js new file mode 100644 index 00000000000..d0017aaf633 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteMeasurementProtocolSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteMeasurementProtocolSecret(request); + console.log(response); + } + + callDeleteMeasurementProtocolSecret(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js new file mode 100644 index 00000000000..4aaff875bd8 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteProperty() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteProperty(request); + console.log(response); + } + + callDeleteProperty(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js new file mode 100644 index 00000000000..0e7d534a737 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetAccount() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getAccount(request); + console.log(response); + } + + callGetAccount(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js new file mode 100644 index 00000000000..bfb0f8adc9a --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetConversionEvent() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getConversionEvent(request); + console.log(response); + } + + callGetConversionEvent(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js new file mode 100644 index 00000000000..b3aa1e1fc66 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetCustomDimension() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getCustomDimension(request); + console.log(response); + } + + callGetCustomDimension(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js new file mode 100644 index 00000000000..8dca568d08c --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetCustomMetric() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getCustomMetric(request); + console.log(response); + } + + callGetCustomMetric(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js new file mode 100644 index 00000000000..f542d5228eb --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js @@ -0,0 +1,61 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDataRetentionSettings() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDataRetentionSettings(request); + console.log(response); + } + + callGetDataRetentionSettings(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js new file mode 100644 index 00000000000..11c03021515 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDataSharingSettings() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDataSharingSettings(request); + console.log(response); + } + + callGetDataSharingSettings(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js new file mode 100644 index 00000000000..4442815fe17 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js @@ -0,0 +1,59 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetDataStream() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getDataStream(request); + console.log(response); + } + + callGetDataStream(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js new file mode 100644 index 00000000000..87b11659d31 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetMeasurementProtocolSecret() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getMeasurementProtocolSecret(request); + console.log(response); + } + + callGetMeasurementProtocolSecret(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js new file mode 100644 index 00000000000..3476e2be6ab --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js @@ -0,0 +1,60 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetProperty() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getProperty(request); + console.log(response); + } + + callGetProperty(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js new file mode 100644 index 00000000000..92d1e7590ff --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js @@ -0,0 +1,69 @@ +// 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 +// +// 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'; + +function main() { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListAccountSummaries() { + // Construct request + const request = { + }; + + // Run request + const iterable = await adminClient.listAccountSummariesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListAccountSummaries(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js new file mode 100644 index 00000000000..22976f3bf5e --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js @@ -0,0 +1,75 @@ +// 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 +// +// 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'; + +function main() { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * 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. + */ + // const pageToken = 'abc123' + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + */ + // const showDeleted = true + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListAccounts() { + // Construct request + const request = { + }; + + // Run request + const iterable = await adminClient.listAccountsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListAccounts(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js new file mode 100644 index 00000000000..a5fbbba9870 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js @@ -0,0 +1,74 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListConversionEvents() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listConversionEventsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListConversionEvents(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js new file mode 100644 index 00000000000..750767572f6 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js @@ -0,0 +1,73 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListCustomDimensions() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listCustomDimensionsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListCustomDimensions(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js new file mode 100644 index 00000000000..10e5b19efe4 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js @@ -0,0 +1,73 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListCustomMetrics() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listCustomMetricsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListCustomMetrics(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js new file mode 100644 index 00000000000..e6f2bac46f4 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js @@ -0,0 +1,73 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListDataStreams() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listDataStreamsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDataStreams(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js new file mode 100644 index 00000000000..13a6b273de8 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js @@ -0,0 +1,75 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListFirebaseLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listFirebaseLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFirebaseLinks(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js new file mode 100644 index 00000000000..398d86993c8 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js @@ -0,0 +1,73 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListGoogleAdsLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listGoogleAdsLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListGoogleAdsLinks(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js new file mode 100644 index 00000000000..ebb8f344182 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js @@ -0,0 +1,75 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListMeasurementProtocolSecrets() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listMeasurementProtocolSecretsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListMeasurementProtocolSecrets(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js new file mode 100644 index 00000000000..8e409c927e1 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js @@ -0,0 +1,94 @@ +// 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 +// +// 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'; + +function main(filter) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + */ + // const filter = 'abc123' + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + */ + // const showDeleted = true + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListProperties() { + // Construct request + const request = { + filter, + }; + + // Run request + const iterable = await adminClient.listPropertiesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListProperties(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js new file mode 100644 index 00000000000..a66cf00800d --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js @@ -0,0 +1,62 @@ +// 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 +// +// 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'; + +function main() { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The account to create. + */ + // const account = {} + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Developers Console as a Redirect URI + */ + // const redirectUri = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callProvisionAccountTicket() { + // Construct request + const request = { + }; + + // Run request + const response = await adminClient.provisionAccountTicket(request); + console.log(response); + } + + callProvisionAccountTicket(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js new file mode 100644 index 00000000000..0f4e1282a1d --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js @@ -0,0 +1,101 @@ +// 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 +// +// 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'; + +function main(account) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account resource for which to return change history resources. + */ + // const account = 'abc123' + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + */ + // const property = 'abc123' + /** + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + */ + // const resourceType = 1234 + /** + * Optional. If set, only return changes that match one or more of these types of + * actions. + */ + // const action = 1234 + /** + * Optional. If set, only return changes if they are made by a user in this list. + */ + // const actorEmail = 'abc123' + /** + * Optional. If set, only return changes made after this time (inclusive). + */ + // const earliestChangeTime = {} + /** + * Optional. If set, only return changes made before this time (inclusive). + */ + // const latestChangeTime = {} + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callSearchChangeHistoryEvents() { + // Construct request + const request = { + account, + }; + + // Run request + const iterable = await adminClient.searchChangeHistoryEventsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callSearchChangeHistoryEvents(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js new file mode 100644 index 00000000000..1173354951d --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js @@ -0,0 +1,66 @@ +// 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 +// +// 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'; + +function main(account, updateMask) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + */ + // const account = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateAccount() { + // Construct request + const request = { + account, + updateMask, + }; + + // Run request + const response = await adminClient.updateAccount(request); + console.log(response); + } + + callUpdateAccount(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js new file mode 100644 index 00000000000..cdd342c49d7 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js @@ -0,0 +1,64 @@ +// 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 +// +// 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'; + +function main(updateMask) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The CustomDimension to update + */ + // const customDimension = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateCustomDimension() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateCustomDimension(request); + console.log(response); + } + + callUpdateCustomDimension(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js new file mode 100644 index 00000000000..8b2703b9adb --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js @@ -0,0 +1,64 @@ +// 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 +// +// 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'; + +function main(updateMask) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The CustomMetric to update + */ + // const customMetric = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateCustomMetric() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateCustomMetric(request); + console.log(response); + } + + callUpdateCustomMetric(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js new file mode 100644 index 00000000000..8e5a2ebbb38 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js @@ -0,0 +1,66 @@ +// 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 +// +// 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'; + +function main(dataRetentionSettings, updateMask) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + */ + // const dataRetentionSettings = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateDataRetentionSettings() { + // Construct request + const request = { + dataRetentionSettings, + updateMask, + }; + + // Run request + const response = await adminClient.updateDataRetentionSettings(request); + console.log(response); + } + + callUpdateDataRetentionSettings(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js new file mode 100644 index 00000000000..b4f77da6e71 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js @@ -0,0 +1,64 @@ +// 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 +// +// 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'; + +function main(updateMask) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The DataStream to update + */ + // const dataStream = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateDataStream() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateDataStream(request); + console.log(response); + } + + callUpdateDataStream(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js new file mode 100644 index 00000000000..f8a266ecd19 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js @@ -0,0 +1,64 @@ +// 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 +// +// 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'; + +function main(updateMask) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The GoogleAdsLink to update + */ + // const googleAdsLink = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateGoogleAdsLink() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateGoogleAdsLink(request); + console.log(response); + } + + callUpdateGoogleAdsLink(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js new file mode 100644 index 00000000000..93d33a6182c --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js @@ -0,0 +1,62 @@ +// 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 +// +// 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'; + +function main(measurementProtocolSecret) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The measurement protocol secret to update. + */ + // const measurementProtocolSecret = {} + /** + * The list of fields to be updated. Omitted fields will not be updated. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateMeasurementProtocolSecret() { + // Construct request + const request = { + measurementProtocolSecret, + }; + + // Run request + const response = await adminClient.updateMeasurementProtocolSecret(request); + console.log(response); + } + + callUpdateMeasurementProtocolSecret(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js new file mode 100644 index 00000000000..a161ec1bc77 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js @@ -0,0 +1,67 @@ +// 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 +// +// 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'; + +function main(property, updateMask) { + // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + */ + // const property = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-cloud/admin').v1beta; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateProperty() { + // Construct request + const request = { + property, + updateMask, + }; + + // Run request + const response = await adminClient.updateProperty(request); + console.log(response); + } + + callUpdateProperty(); + // [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json new file mode 100644 index 00000000000..218fee1aa47 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json @@ -0,0 +1,2075 @@ +{ + "clientLibrary": { + "name": "nodejs-admin", + "version": "4.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.analytics.admin.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_async", + "title": "AnalyticsAdminService getAccount Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single Account.", + "canonical": true, + "file": "analytics_admin_service.get_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAccount", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetAccount", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.Account", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetAccount", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_async", + "title": "AnalyticsAdminService listAccounts Sample", + "origin": "API_DEFINITION", + "description": " Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: \"trashed\") accounts are excluded by default. Returns an empty list if no relevant accounts are found.", + "canonical": true, + "file": "analytics_admin_service.list_accounts.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAccounts", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccounts", + "async": true, + "parameters": [ + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "show_deleted", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListAccountsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAccounts", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccounts", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_async", + "title": "AnalyticsAdminService deleteAccount Sample", + "origin": "API_DEFINITION", + "description": " Marks target Account as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", + "canonical": true, + "file": "analytics_admin_service.delete_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteAccount", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteAccount", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteAccount", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_async", + "title": "AnalyticsAdminService updateAccount Sample", + "origin": "API_DEFINITION", + "description": " Updates an account.", + "canonical": true, + "file": "analytics_admin_service.update_account.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAccount", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateAccount", + "async": true, + "parameters": [ + { + "name": "account", + "type": ".google.analytics.admin.v1beta.Account" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.Account", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateAccount", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateAccount", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_async", + "title": "AnalyticsAdminService provisionAccountTicket Sample", + "origin": "API_DEFINITION", + "description": " Requests a ticket for creating an account.", + "canonical": true, + "file": "analytics_admin_service.provision_account_ticket.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ProvisionAccountTicket", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ProvisionAccountTicket", + "async": true, + "parameters": [ + { + "name": "account", + "type": ".google.analytics.admin.v1beta.Account" + }, + { + "name": "redirect_uri", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ProvisionAccountTicketResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ProvisionAccountTicket", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ProvisionAccountTicket", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_async", + "title": "AnalyticsAdminService listAccountSummaries Sample", + "origin": "API_DEFINITION", + "description": " Returns summaries of all accounts accessible by the caller.", + "canonical": true, + "file": "analytics_admin_service.list_account_summaries.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAccountSummaries", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountSummaries", + "async": true, + "parameters": [ + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListAccountSummariesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAccountSummaries", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountSummaries", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_async", + "title": "AnalyticsAdminService getProperty Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single \"GA4\" Property.", + "canonical": true, + "file": "analytics_admin_service.get_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetProperty", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_async", + "title": "AnalyticsAdminService listProperties Sample", + "origin": "API_DEFINITION", + "description": " Returns child Properties under the specified parent Account. Only \"GA4\" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", + "canonical": true, + "file": "analytics_admin_service.list_properties.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 86, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListProperties", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListProperties", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "show_deleted", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListPropertiesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListProperties", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListProperties", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_async", + "title": "AnalyticsAdminService createProperty Sample", + "origin": "API_DEFINITION", + "description": " Creates an \"GA4\" property with the specified location and attributes.", + "canonical": true, + "file": "analytics_admin_service.create_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateProperty", + "async": true, + "parameters": [ + { + "name": "property", + "type": ".google.analytics.admin.v1beta.Property" + } + ], + "resultType": ".google.analytics.admin.v1beta.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_async", + "title": "AnalyticsAdminService deleteProperty Sample", + "origin": "API_DEFINITION", + "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.", + "canonical": true, + "file": "analytics_admin_service.delete_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteProperty", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_async", + "title": "AnalyticsAdminService updateProperty Sample", + "origin": "API_DEFINITION", + "description": " Updates a property.", + "canonical": true, + "file": "analytics_admin_service.update_property.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateProperty", + "async": true, + "parameters": [ + { + "name": "property", + "type": ".google.analytics.admin.v1beta.Property" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.Property", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateProperty", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateProperty", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_async", + "title": "AnalyticsAdminService createFirebaseLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a FirebaseLink. Properties can have at most one FirebaseLink.", + "canonical": true, + "file": "analytics_admin_service.create_firebase_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFirebaseLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateFirebaseLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "firebase_link", + "type": ".google.analytics.admin.v1beta.FirebaseLink" + } + ], + "resultType": ".google.analytics.admin.v1beta.FirebaseLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateFirebaseLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateFirebaseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_async", + "title": "AnalyticsAdminService deleteFirebaseLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a FirebaseLink on a property", + "canonical": true, + "file": "analytics_admin_service.delete_firebase_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFirebaseLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteFirebaseLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteFirebaseLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteFirebaseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_async", + "title": "AnalyticsAdminService listFirebaseLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.", + "canonical": true, + "file": "analytics_admin_service.list_firebase_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFirebaseLinks", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListFirebaseLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListFirebaseLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListFirebaseLinks", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListFirebaseLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_async", + "title": "AnalyticsAdminService createGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Creates a GoogleAdsLink.", + "canonical": true, + "file": "analytics_admin_service.create_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGoogleAdsLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "google_ads_link", + "type": ".google.analytics.admin.v1beta.GoogleAdsLink" + } + ], + "resultType": ".google.analytics.admin.v1beta.GoogleAdsLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateGoogleAdsLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async", + "title": "AnalyticsAdminService updateGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Updates a GoogleAdsLink on a property", + "canonical": true, + "file": "analytics_admin_service.update_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGoogleAdsLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "google_ads_link", + "type": ".google.analytics.admin.v1beta.GoogleAdsLink" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.GoogleAdsLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateGoogleAdsLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async", + "title": "AnalyticsAdminService deleteGoogleAdsLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes a GoogleAdsLink on a property", + "canonical": true, + "file": "analytics_admin_service.delete_google_ads_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGoogleAdsLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteGoogleAdsLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteGoogleAdsLink", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteGoogleAdsLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_async", + "title": "AnalyticsAdminService listGoogleAdsLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists GoogleAdsLinks on a property.", + "canonical": true, + "file": "analytics_admin_service.list_google_ads_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGoogleAdsLinks", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListGoogleAdsLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListGoogleAdsLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListGoogleAdsLinks", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListGoogleAdsLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_async", + "title": "AnalyticsAdminService getDataSharingSettings Sample", + "origin": "API_DEFINITION", + "description": " Get data sharing settings on an account. Data sharing settings are singletons.", + "canonical": true, + "file": "analytics_admin_service.get_data_sharing_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataSharingSettings", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataSharingSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.DataSharingSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataSharingSettings", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataSharingSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService getMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single \"GA4\" MeasurementProtocolSecret.", + "canonical": true, + "file": "analytics_admin_service.get_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async", + "title": "AnalyticsAdminService listMeasurementProtocolSecrets Sample", + "origin": "API_DEFINITION", + "description": " Returns child MeasurementProtocolSecrets under the specified parent Property.", + "canonical": true, + "file": "analytics_admin_service.list_measurement_protocol_secrets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListMeasurementProtocolSecrets", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListMeasurementProtocolSecrets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListMeasurementProtocolSecrets", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListMeasurementProtocolSecrets", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService createMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Creates a measurement protocol secret.", + "canonical": true, + "file": "analytics_admin_service.create_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "measurement_protocol_secret", + "type": ".google.analytics.admin.v1beta.MeasurementProtocolSecret" + } + ], + "resultType": ".google.analytics.admin.v1beta.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService deleteMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Deletes target MeasurementProtocolSecret.", + "canonical": true, + "file": "analytics_admin_service.delete_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async", + "title": "AnalyticsAdminService updateMeasurementProtocolSecret Sample", + "origin": "API_DEFINITION", + "description": " Updates a measurement protocol secret.", + "canonical": true, + "file": "analytics_admin_service.update_measurement_protocol_secret.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateMeasurementProtocolSecret", + "async": true, + "parameters": [ + { + "name": "measurement_protocol_secret", + "type": ".google.analytics.admin.v1beta.MeasurementProtocolSecret" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.MeasurementProtocolSecret", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateMeasurementProtocolSecret", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateMeasurementProtocolSecret", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async", + "title": "AnalyticsAdminService acknowledgeUserDataCollection Sample", + "origin": "API_DEFINITION", + "description": " Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or via this API) before MeasurementProtocolSecret resources may be created.", + "canonical": true, + "file": "analytics_admin_service.acknowledge_user_data_collection.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AcknowledgeUserDataCollection", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.AcknowledgeUserDataCollection", + "async": true, + "parameters": [ + { + "name": "property", + "type": "TYPE_STRING" + }, + { + "name": "acknowledgement", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "AcknowledgeUserDataCollection", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.AcknowledgeUserDataCollection", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async", + "title": "AnalyticsAdminService searchChangeHistoryEvents Sample", + "origin": "API_DEFINITION", + "description": " Searches through all changes to an account or its children given the specified set of filters.", + "canonical": true, + "file": "analytics_admin_service.search_change_history_events.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SearchChangeHistoryEvents", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.SearchChangeHistoryEvents", + "async": true, + "parameters": [ + { + "name": "account", + "type": "TYPE_STRING" + }, + { + "name": "property", + "type": "TYPE_STRING" + }, + { + "name": "resource_type", + "type": "TYPE_ENUM[]" + }, + { + "name": "action", + "type": "TYPE_ENUM[]" + }, + { + "name": "actor_email", + "type": "TYPE_STRING[]" + }, + { + "name": "earliest_change_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "latest_change_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "SearchChangeHistoryEvents", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.SearchChangeHistoryEvents", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_async", + "title": "AnalyticsAdminService createConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Creates a conversion event with the specified attributes.", + "canonical": true, + "file": "analytics_admin_service.create_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateConversionEvent", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateConversionEvent", + "async": true, + "parameters": [ + { + "name": "conversion_event", + "type": ".google.analytics.admin.v1beta.ConversionEvent" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ConversionEvent", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateConversionEvent", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_async", + "title": "AnalyticsAdminService getConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Retrieve a single conversion event.", + "canonical": true, + "file": "analytics_admin_service.get_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetConversionEvent", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetConversionEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ConversionEvent", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetConversionEvent", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_async", + "title": "AnalyticsAdminService deleteConversionEvent Sample", + "origin": "API_DEFINITION", + "description": " Deletes a conversion event in a property.", + "canonical": true, + "file": "analytics_admin_service.delete_conversion_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteConversionEvent", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteConversionEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteConversionEvent", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteConversionEvent", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_async", + "title": "AnalyticsAdminService listConversionEvents Sample", + "origin": "API_DEFINITION", + "description": " Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.", + "canonical": true, + "file": "analytics_admin_service.list_conversion_events.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListConversionEvents", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListConversionEvents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListConversionEventsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListConversionEvents", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListConversionEvents", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_async", + "title": "AnalyticsAdminService createCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Creates a CustomDimension.", + "canonical": true, + "file": "analytics_admin_service.create_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomDimension", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "custom_dimension", + "type": ".google.analytics.admin.v1beta.CustomDimension" + } + ], + "resultType": ".google.analytics.admin.v1beta.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_async", + "title": "AnalyticsAdminService updateCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Updates a CustomDimension on a property.", + "canonical": true, + "file": "analytics_admin_service.update_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomDimension", + "async": true, + "parameters": [ + { + "name": "custom_dimension", + "type": ".google.analytics.admin.v1beta.CustomDimension" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_async", + "title": "AnalyticsAdminService listCustomDimensions Sample", + "origin": "API_DEFINITION", + "description": " Lists CustomDimensions on a property.", + "canonical": true, + "file": "analytics_admin_service.list_custom_dimensions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCustomDimensions", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomDimensions", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListCustomDimensionsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListCustomDimensions", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomDimensions", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_async", + "title": "AnalyticsAdminService archiveCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Archives a CustomDimension on a property.", + "canonical": true, + "file": "analytics_admin_service.archive_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ArchiveCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomDimension", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ArchiveCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_async", + "title": "AnalyticsAdminService getCustomDimension Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single CustomDimension.", + "canonical": true, + "file": "analytics_admin_service.get_custom_dimension.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomDimension", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.CustomDimension", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetCustomDimension", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomDimension", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_async", + "title": "AnalyticsAdminService createCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Creates a CustomMetric.", + "canonical": true, + "file": "analytics_admin_service.create_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomMetric", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "custom_metric", + "type": ".google.analytics.admin.v1beta.CustomMetric" + } + ], + "resultType": ".google.analytics.admin.v1beta.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_async", + "title": "AnalyticsAdminService updateCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Updates a CustomMetric on a property.", + "canonical": true, + "file": "analytics_admin_service.update_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomMetric", + "async": true, + "parameters": [ + { + "name": "custom_metric", + "type": ".google.analytics.admin.v1beta.CustomMetric" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_async", + "title": "AnalyticsAdminService listCustomMetrics Sample", + "origin": "API_DEFINITION", + "description": " Lists CustomMetrics on a property.", + "canonical": true, + "file": "analytics_admin_service.list_custom_metrics.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCustomMetrics", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomMetrics", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListCustomMetricsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListCustomMetrics", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomMetrics", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_async", + "title": "AnalyticsAdminService archiveCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Archives a CustomMetric on a property.", + "canonical": true, + "file": "analytics_admin_service.archive_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ArchiveCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomMetric", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ArchiveCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_async", + "title": "AnalyticsAdminService getCustomMetric Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single CustomMetric.", + "canonical": true, + "file": "analytics_admin_service.get_custom_metric.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomMetric", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.CustomMetric", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetCustomMetric", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomMetric", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_async", + "title": "AnalyticsAdminService getDataRetentionSettings Sample", + "origin": "API_DEFINITION", + "description": " Returns the singleton data retention settings for this property.", + "canonical": true, + "file": "analytics_admin_service.get_data_retention_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataRetentionSettings", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataRetentionSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.DataRetentionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataRetentionSettings", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataRetentionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async", + "title": "AnalyticsAdminService updateDataRetentionSettings Sample", + "origin": "API_DEFINITION", + "description": " Updates the singleton data retention settings for this property.", + "canonical": true, + "file": "analytics_admin_service.update_data_retention_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataRetentionSettings", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataRetentionSettings", + "async": true, + "parameters": [ + { + "name": "data_retention_settings", + "type": ".google.analytics.admin.v1beta.DataRetentionSettings" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.DataRetentionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDataRetentionSettings", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataRetentionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_async", + "title": "AnalyticsAdminService createDataStream Sample", + "origin": "API_DEFINITION", + "description": " Creates a DataStream.", + "canonical": true, + "file": "analytics_admin_service.create_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateDataStream", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "data_stream", + "type": ".google.analytics.admin.v1beta.DataStream" + } + ], + "resultType": ".google.analytics.admin.v1beta.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_async", + "title": "AnalyticsAdminService deleteDataStream Sample", + "origin": "API_DEFINITION", + "description": " Deletes a DataStream on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_async", + "title": "AnalyticsAdminService updateDataStream Sample", + "origin": "API_DEFINITION", + "description": " Updates a DataStream on a property.", + "canonical": true, + "file": "analytics_admin_service.update_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataStream", + "async": true, + "parameters": [ + { + "name": "data_stream", + "type": ".google.analytics.admin.v1beta.DataStream" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1beta.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_async", + "title": "AnalyticsAdminService listDataStreams Sample", + "origin": "API_DEFINITION", + "description": " Lists DataStreams on a property.", + "canonical": true, + "file": "analytics_admin_service.list_data_streams.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDataStreams", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListDataStreams", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.ListDataStreamsResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListDataStreams", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListDataStreams", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_async", + "title": "AnalyticsAdminService getDataStream Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single DataStream.", + "canonical": true, + "file": "analytics_admin_service.get_data_stream.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataStream", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1beta.DataStream", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetDataStream", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataStream", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" + } + } + } + } + ] +} \ No newline at end of file diff --git a/packages/google-analytics-admin/src/index.ts b/packages/google-analytics-admin/src/index.ts index f8818063737..d0d3b3239db 100644 --- a/packages/google-analytics-admin/src/index.ts +++ b/packages/google-analytics-admin/src/index.ts @@ -17,11 +17,12 @@ // ** All changes to this file may be overwritten. ** import * as v1alpha from './v1alpha'; +import * as v1beta from './v1beta'; const AnalyticsAdminServiceClient = v1alpha.AnalyticsAdminServiceClient; type AnalyticsAdminServiceClient = v1alpha.AnalyticsAdminServiceClient; -export {v1alpha, AnalyticsAdminServiceClient}; -export default {v1alpha, AnalyticsAdminServiceClient}; +export {v1alpha, v1beta, AnalyticsAdminServiceClient}; +export default {v1alpha, v1beta, AnalyticsAdminServiceClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts new file mode 100644 index 00000000000..6d9a358c583 --- /dev/null +++ b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts @@ -0,0 +1,6834 @@ +// 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 +// +// 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. ** + +/* global window */ +import * as gax from 'google-gax'; +import { + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + GaxCall, +} from 'google-gax'; + +import {Transform} from 'stream'; +import {RequestType} from 'google-gax/build/src/apitypes'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1beta/analytics_admin_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './analytics_admin_service_client_config.json'; + +const version = require('../../../package.json').version; + +/** + * Service Interface for the Analytics Admin API (GA4). + * @class + * @memberof v1beta + */ +export class AnalyticsAdminServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + analyticsAdminServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of AnalyticsAdminServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + */ + constructor(opts?: ClientOptions) { + // Ensure that options include all the required fields. + const staticMembers = this + .constructor as typeof AnalyticsAdminServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gax.fallback : gax; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + accountPathTemplate: new this._gaxModule.PathTemplate( + 'accounts/{account}' + ), + accountSummaryPathTemplate: new this._gaxModule.PathTemplate( + 'accountSummaries/{account_summary}' + ), + conversionEventPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/conversionEvents/{conversion_event}' + ), + customDimensionPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/customDimensions/{custom_dimension}' + ), + customMetricPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/customMetrics/{custom_metric}' + ), + dataRetentionSettingsPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/dataRetentionSettings' + ), + dataSharingSettingsPathTemplate: new this._gaxModule.PathTemplate( + 'accounts/{account}/dataSharingSettings' + ), + dataStreamPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/dataStreams/{data_stream}' + ), + firebaseLinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/firebaseLinks/{firebase_link}' + ), + googleAdsLinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/googleAdsLinks/{google_ads_link}' + ), + measurementProtocolSecretPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}' + ), + propertyPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listAccounts: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'accounts' + ), + listAccountSummaries: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'accountSummaries' + ), + listProperties: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'properties' + ), + listFirebaseLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'firebaseLinks' + ), + listGoogleAdsLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'googleAdsLinks' + ), + listMeasurementProtocolSecrets: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'measurementProtocolSecrets' + ), + searchChangeHistoryEvents: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'changeHistoryEvents' + ), + listConversionEvents: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'conversionEvents' + ), + listCustomDimensions: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'customDimensions' + ), + listCustomMetrics: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'customMetrics' + ), + listDataStreams: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'dataStreams' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.analytics.admin.v1beta.AnalyticsAdminService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = gax.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.analyticsAdminServiceStub) { + return this.analyticsAdminServiceStub; + } + + // Put together the "service stub" for + // google.analytics.admin.v1beta.AnalyticsAdminService. + this.analyticsAdminServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.analytics.admin.v1beta.AnalyticsAdminService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.analytics.admin.v1beta + .AnalyticsAdminService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const analyticsAdminServiceStubMethods = [ + 'getAccount', + 'listAccounts', + 'deleteAccount', + 'updateAccount', + 'provisionAccountTicket', + 'listAccountSummaries', + 'getProperty', + 'listProperties', + 'createProperty', + 'deleteProperty', + 'updateProperty', + 'createFirebaseLink', + 'deleteFirebaseLink', + 'listFirebaseLinks', + 'createGoogleAdsLink', + 'updateGoogleAdsLink', + 'deleteGoogleAdsLink', + 'listGoogleAdsLinks', + 'getDataSharingSettings', + 'getMeasurementProtocolSecret', + 'listMeasurementProtocolSecrets', + 'createMeasurementProtocolSecret', + 'deleteMeasurementProtocolSecret', + 'updateMeasurementProtocolSecret', + 'acknowledgeUserDataCollection', + 'searchChangeHistoryEvents', + 'createConversionEvent', + 'getConversionEvent', + 'deleteConversionEvent', + 'listConversionEvents', + 'createCustomDimension', + 'updateCustomDimension', + 'listCustomDimensions', + 'archiveCustomDimension', + 'getCustomDimension', + 'createCustomMetric', + 'updateCustomMetric', + 'listCustomMetrics', + 'archiveCustomMetric', + 'getCustomMetric', + 'getDataRetentionSettings', + 'updateDataRetentionSettings', + 'createDataStream', + 'deleteDataStream', + 'updateDataStream', + 'listDataStreams', + 'getDataStream', + ]; + for (const methodName of analyticsAdminServiceStubMethods) { + const callPromise = this.analyticsAdminServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.analyticsAdminServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'analyticsadmin.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'analyticsadmin.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/analytics.edit', + 'https://www.googleapis.com/auth/analytics.readonly', + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Lookup for a single Account. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1beta.Account}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_account.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_async + */ + getAccount( + request?: protos.google.analytics.admin.v1beta.IGetAccountRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccount, + protos.google.analytics.admin.v1beta.IGetAccountRequest | undefined, + {} | undefined + ] + >; + getAccount( + request: protos.google.analytics.admin.v1beta.IGetAccountRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IGetAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAccount( + request: protos.google.analytics.admin.v1beta.IGetAccountRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IGetAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAccount( + request?: protos.google.analytics.admin.v1beta.IGetAccountRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IGetAccountRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IGetAccountRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccount, + protos.google.analytics.admin.v1beta.IGetAccountRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getAccount(request, options, callback); + } + /** + * Marks target Account as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted accounts. + * However, they can be restored using the Trash Can UI. + * + * If the accounts are not restored before the expiration time, the account + * and all child resources (eg: Properties, GoogleAdsLinks, Streams, + * UserLinks) will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.delete_account.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_async + */ + deleteAccount( + request?: protos.google.analytics.admin.v1beta.IDeleteAccountRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1beta.IDeleteAccountRequest | undefined, + {} | undefined + ] + >; + deleteAccount( + request: protos.google.analytics.admin.v1beta.IDeleteAccountRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteAccount( + request: protos.google.analytics.admin.v1beta.IDeleteAccountRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteAccount( + request?: protos.google.analytics.admin.v1beta.IDeleteAccountRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteAccountRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1beta.IDeleteAccountRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteAccount(request, options, callback); + } + /** + * Updates an account. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.Account} request.account + * Required. The account to update. + * The account's `name` field is used to identify the account. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Account]{@link google.analytics.admin.v1beta.Account}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_account.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_async + */ + updateAccount( + request?: protos.google.analytics.admin.v1beta.IUpdateAccountRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccount, + protos.google.analytics.admin.v1beta.IUpdateAccountRequest | undefined, + {} | undefined + ] + >; + updateAccount( + request: protos.google.analytics.admin.v1beta.IUpdateAccountRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAccount( + request: protos.google.analytics.admin.v1beta.IUpdateAccountRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAccount( + request?: protos.google.analytics.admin.v1beta.IUpdateAccountRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IAccount, + | protos.google.analytics.admin.v1beta.IUpdateAccountRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccount, + protos.google.analytics.admin.v1beta.IUpdateAccountRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'account.name': request.account!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateAccount(request, options, callback); + } + /** + * Requests a ticket for creating an account. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.Account} request.account + * The account to create. + * @param {string} request.redirectUri + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Developers Console as a Redirect URI + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ProvisionAccountTicketResponse]{@link google.analytics.admin.v1beta.ProvisionAccountTicketResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_async + */ + provisionAccountTicket( + request?: protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProvisionAccountTicketResponse, + ( + | protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest + | undefined + ), + {} | undefined + ] + >; + provisionAccountTicket( + request: protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + > + ): void; + provisionAccountTicket( + request: protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + > + ): void; + provisionAccountTicket( + request?: protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IProvisionAccountTicketResponse, + | protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProvisionAccountTicketResponse, + ( + | protos.google.analytics.admin.v1beta.IProvisionAccountTicketRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.provisionAccountTicket( + request, + options, + callback + ); + } + /** + * Lookup for a single "GA4" Property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1beta.Property}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_property.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_async + */ + getProperty( + request?: protos.google.analytics.admin.v1beta.IGetPropertyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.IGetPropertyRequest | undefined, + {} | undefined + ] + >; + getProperty( + request: protos.google.analytics.admin.v1beta.IGetPropertyRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getProperty( + request: protos.google.analytics.admin.v1beta.IGetPropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getProperty( + request?: protos.google.analytics.admin.v1beta.IGetPropertyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IGetPropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.IGetPropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getProperty(request, options, callback); + } + /** + * Creates an "GA4" property with the specified location and attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.Property} request.property + * Required. The property to create. + * Note: the supplied property must specify its parent. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1beta.Property}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_property.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_async + */ + createProperty( + request?: protos.google.analytics.admin.v1beta.ICreatePropertyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.ICreatePropertyRequest | undefined, + {} | undefined + ] + >; + createProperty( + request: protos.google.analytics.admin.v1beta.ICreatePropertyRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createProperty( + request: protos.google.analytics.admin.v1beta.ICreatePropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createProperty( + request?: protos.google.analytics.admin.v1beta.ICreatePropertyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.ICreatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.ICreatePropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.createProperty(request, options, callback); + } + /** + * Marks target Property as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted properties. + * However, they can be restored using the Trash Can UI. + * + * If the properties are not restored before the expiration time, the Property + * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found, or is not an GA4 Property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1beta.Property}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.delete_property.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_async + */ + deleteProperty( + request?: protos.google.analytics.admin.v1beta.IDeletePropertyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.IDeletePropertyRequest | undefined, + {} | undefined + ] + >; + deleteProperty( + request: protos.google.analytics.admin.v1beta.IDeletePropertyRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteProperty( + request: protos.google.analytics.admin.v1beta.IDeletePropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteProperty( + request?: protos.google.analytics.admin.v1beta.IDeletePropertyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IDeletePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.IDeletePropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteProperty(request, options, callback); + } + /** + * Updates a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.Property} request.property + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Property]{@link google.analytics.admin.v1beta.Property}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_property.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_async + */ + updateProperty( + request?: protos.google.analytics.admin.v1beta.IUpdatePropertyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.IUpdatePropertyRequest | undefined, + {} | undefined + ] + >; + updateProperty( + request: protos.google.analytics.admin.v1beta.IUpdatePropertyRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateProperty( + request: protos.google.analytics.admin.v1beta.IUpdatePropertyRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateProperty( + request?: protos.google.analytics.admin.v1beta.IUpdatePropertyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IProperty, + | protos.google.analytics.admin.v1beta.IUpdatePropertyRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty, + protos.google.analytics.admin.v1beta.IUpdatePropertyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'property.name': request.property!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateProperty(request, options, callback); + } + /** + * Creates a FirebaseLink. + * + * Properties can have at most one FirebaseLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {google.analytics.admin.v1beta.FirebaseLink} request.firebaseLink + * Required. The Firebase link to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [FirebaseLink]{@link google.analytics.admin.v1beta.FirebaseLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_firebase_link.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_async + */ + createFirebaseLink( + request?: protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IFirebaseLink, + ( + | protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + >; + createFirebaseLink( + request: protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IFirebaseLink, + | protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createFirebaseLink( + request: protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IFirebaseLink, + | protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createFirebaseLink( + request?: protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IFirebaseLink, + | protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IFirebaseLink, + | protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IFirebaseLink, + ( + | protos.google.analytics.admin.v1beta.ICreateFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createFirebaseLink(request, options, callback); + } + /** + * Deletes a FirebaseLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_async + */ + deleteFirebaseLink( + request?: protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + >; + deleteFirebaseLink( + request: protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteFirebaseLink( + request: protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteFirebaseLink( + request?: protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteFirebaseLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteFirebaseLink(request, options, callback); + } + /** + * Creates a GoogleAdsLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1beta.GoogleAdsLink} request.googleAdsLink + * Required. The GoogleAdsLink to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1beta.GoogleAdsLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_async + */ + createGoogleAdsLink( + request?: protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + >; + createGoogleAdsLink( + request: protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createGoogleAdsLink( + request: protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createGoogleAdsLink( + request?: protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1beta.ICreateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createGoogleAdsLink(request, options, callback); + } + /** + * Updates a GoogleAdsLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.GoogleAdsLink} request.googleAdsLink + * The GoogleAdsLink to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GoogleAdsLink]{@link google.analytics.admin.v1beta.GoogleAdsLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async + */ + updateGoogleAdsLink( + request?: protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + >; + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateGoogleAdsLink( + request: protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateGoogleAdsLink( + request?: protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + | protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IGoogleAdsLink, + ( + | protos.google.analytics.admin.v1beta.IUpdateGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'google_ads_link.name': request.googleAdsLink!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); + } + /** + * Deletes a GoogleAdsLink on a property + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: properties/1234/googleAdsLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async + */ + deleteGoogleAdsLink( + request?: protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + >; + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteGoogleAdsLink( + request: protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteGoogleAdsLink( + request?: protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteGoogleAdsLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); + } + /** + * Get data sharing settings on an account. + * Data sharing settings are singletons. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataSharingSettings]{@link google.analytics.admin.v1beta.DataSharingSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_async + */ + getDataSharingSettings( + request?: protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataSharingSettings, + ( + | protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getDataSharingSettings( + request: protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataSharingSettings, + | protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataSharingSettings( + request: protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataSharingSettings, + | protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataSharingSettings( + request?: protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IDataSharingSettings, + | protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IDataSharingSettings, + | protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataSharingSettings, + ( + | protos.google.analytics.admin.v1beta.IGetDataSharingSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getDataSharingSettings( + request, + options, + callback + ); + } + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1beta.MeasurementProtocolSecret}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async + */ + getMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + >; + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1beta.IGetMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getMeasurementProtocolSecret( + request, + options, + callback + ); + } + /** + * Creates a measurement protocol secret. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @param {google.analytics.admin.v1beta.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1beta.MeasurementProtocolSecret}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async + */ + createMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + >; + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1beta.ICreateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createMeasurementProtocolSecret( + request, + options, + callback + ); + } + /** + * Deletes target MeasurementProtocolSecret. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async + */ + deleteMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + >; + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteMeasurementProtocolSecret( + request, + options, + callback + ); + } + /** + * Updates a measurement protocol secret. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.MeasurementProtocolSecret} request.measurementProtocolSecret + * Required. The measurement protocol secret to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Omitted fields will not be updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1beta.MeasurementProtocolSecret}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async + */ + updateMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + >; + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateMeasurementProtocolSecret( + request: protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateMeasurementProtocolSecret( + request?: protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + | protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret, + ( + | protos.google.analytics.admin.v1beta.IUpdateMeasurementProtocolSecretRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'measurement_protocol_secret.name': + request.measurementProtocolSecret!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateMeasurementProtocolSecret( + request, + options, + callback + ); + } + /** + * Acknowledges the terms of user data collection for the specified property. + * + * This acknowledgement must be completed (either in the Google Analytics UI + * or via this API) before MeasurementProtocolSecret resources may be created. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.property + * Required. The property for which to acknowledge user data collection. + * @param {string} request.acknowledgement + * Required. An acknowledgement that the caller of this method understands the terms + * of user data collection. + * + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AcknowledgeUserDataCollectionResponse]{@link google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async + */ + acknowledgeUserDataCollection( + request?: protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, + ( + | protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest + | undefined + ), + {} | undefined + ] + >; + acknowledgeUserDataCollection( + request: protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + acknowledgeUserDataCollection( + request: protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + acknowledgeUserDataCollection( + request?: protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, + | protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse, + ( + | protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + property: request.property || '', + }); + this.initialize(); + return this.innerApiCalls.acknowledgeUserDataCollection( + request, + options, + callback + ); + } + /** + * Creates a conversion event with the specified attributes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.ConversionEvent} request.conversionEvent + * Required. The conversion event to create. + * @param {string} request.parent + * Required. The resource name of the parent property where this conversion event will + * be created. Format: properties/123 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1beta.ConversionEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_conversion_event.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_async + */ + createConversionEvent( + request?: protos.google.analytics.admin.v1beta.ICreateConversionEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IConversionEvent, + ( + | protos.google.analytics.admin.v1beta.ICreateConversionEventRequest + | undefined + ), + {} | undefined + ] + >; + createConversionEvent( + request: protos.google.analytics.admin.v1beta.ICreateConversionEventRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createConversionEvent( + request: protos.google.analytics.admin.v1beta.ICreateConversionEventRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createConversionEvent( + request?: protos.google.analytics.admin.v1beta.ICreateConversionEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.ICreateConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IConversionEvent, + ( + | protos.google.analytics.admin.v1beta.ICreateConversionEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createConversionEvent(request, options, callback); + } + /** + * Retrieve a single conversion event. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ConversionEvent]{@link google.analytics.admin.v1beta.ConversionEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_conversion_event.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_async + */ + getConversionEvent( + request?: protos.google.analytics.admin.v1beta.IGetConversionEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IConversionEvent, + ( + | protos.google.analytics.admin.v1beta.IGetConversionEventRequest + | undefined + ), + {} | undefined + ] + >; + getConversionEvent( + request: protos.google.analytics.admin.v1beta.IGetConversionEventRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getConversionEvent( + request: protos.google.analytics.admin.v1beta.IGetConversionEventRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getConversionEvent( + request?: protos.google.analytics.admin.v1beta.IGetConversionEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IConversionEvent, + | protos.google.analytics.admin.v1beta.IGetConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IConversionEvent, + ( + | protos.google.analytics.admin.v1beta.IGetConversionEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getConversionEvent(request, options, callback); + } + /** + * Deletes a conversion event in a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_async + */ + deleteConversionEvent( + request?: protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest + | undefined + ), + {} | undefined + ] + >; + deleteConversionEvent( + request: protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteConversionEvent( + request: protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteConversionEvent( + request?: protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IDeleteConversionEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteConversionEvent(request, options, callback); + } + /** + * Creates a CustomDimension. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1beta.CustomDimension} request.customDimension + * Required. The CustomDimension to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1beta.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_async + */ + createCustomDimension( + request?: protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension, + ( + | protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + createCustomDimension( + request: protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomDimension( + request: protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomDimension( + request?: protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension, + ( + | protos.google.analytics.admin.v1beta.ICreateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createCustomDimension(request, options, callback); + } + /** + * Updates a CustomDimension on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.CustomDimension} request.customDimension + * The CustomDimension to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1beta.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_async + */ + updateCustomDimension( + request?: protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension, + ( + | protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + updateCustomDimension( + request: protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomDimension( + request: protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomDimension( + request?: protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension, + ( + | protos.google.analytics.admin.v1beta.IUpdateCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'custom_dimension.name': request.customDimension!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateCustomDimension(request, options, callback); + } + /** + * Archives a CustomDimension on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_async + */ + archiveCustomDimension( + request?: protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + archiveCustomDimension( + request: protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomDimension( + request: protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomDimension( + request?: protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IArchiveCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.archiveCustomDimension( + request, + options, + callback + ); + } + /** + * Lookup for a single CustomDimension. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomDimension]{@link google.analytics.admin.v1beta.CustomDimension}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_async + */ + getCustomDimension( + request?: protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension, + ( + | protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest + | undefined + ), + {} | undefined + ] + >; + getCustomDimension( + request: protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomDimension( + request: protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomDimension( + request?: protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.ICustomDimension, + | protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension, + ( + | protos.google.analytics.admin.v1beta.IGetCustomDimensionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getCustomDimension(request, options, callback); + } + /** + * Creates a CustomMetric. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1beta.CustomMetric} request.customMetric + * Required. The CustomMetric to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1beta.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_custom_metric.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_async + */ + createCustomMetric( + request?: protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric, + ( + | protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + createCustomMetric( + request: protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomMetric( + request: protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createCustomMetric( + request?: protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric, + ( + | protos.google.analytics.admin.v1beta.ICreateCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createCustomMetric(request, options, callback); + } + /** + * Updates a CustomMetric on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.CustomMetric} request.customMetric + * The CustomMetric to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1beta.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_custom_metric.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_async + */ + updateCustomMetric( + request?: protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric, + ( + | protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + updateCustomMetric( + request: protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomMetric( + request: protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateCustomMetric( + request?: protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric, + ( + | protos.google.analytics.admin.v1beta.IUpdateCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'custom_metric.name': request.customMetric!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateCustomMetric(request, options, callback); + } + /** + * Archives a CustomMetric on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_async + */ + archiveCustomMetric( + request?: protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest + | undefined + ), + {} | undefined + ] + >; + archiveCustomMetric( + request: protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomMetric( + request: protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveCustomMetric( + request?: protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1beta.IArchiveCustomMetricRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.archiveCustomMetric(request, options, callback); + } + /** + * Lookup for a single CustomMetric. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [CustomMetric]{@link google.analytics.admin.v1beta.CustomMetric}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_custom_metric.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_async + */ + getCustomMetric( + request?: protos.google.analytics.admin.v1beta.IGetCustomMetricRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric, + protos.google.analytics.admin.v1beta.IGetCustomMetricRequest | undefined, + {} | undefined + ] + >; + getCustomMetric( + request: protos.google.analytics.admin.v1beta.IGetCustomMetricRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomMetric( + request: protos.google.analytics.admin.v1beta.IGetCustomMetricRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getCustomMetric( + request?: protos.google.analytics.admin.v1beta.IGetCustomMetricRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.ICustomMetric, + | protos.google.analytics.admin.v1beta.IGetCustomMetricRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric, + protos.google.analytics.admin.v1beta.IGetCustomMetricRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getCustomMetric(request, options, callback); + } + /** + * Returns the singleton data retention settings for this property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1beta.DataRetentionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_async + */ + getDataRetentionSettings( + request?: protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getDataRetentionSettings( + request: protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataRetentionSettings( + request: protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataRetentionSettings( + request?: protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1beta.IGetDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getDataRetentionSettings( + request, + options, + callback + ); + } + /** + * Updates the singleton data retention settings for this property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.DataRetentionSettings} request.dataRetentionSettings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataRetentionSettings]{@link google.analytics.admin.v1beta.DataRetentionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async + */ + updateDataRetentionSettings( + request?: protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + updateDataRetentionSettings( + request: protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataRetentionSettings( + request: protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataRetentionSettings( + request?: protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + | protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataRetentionSettings, + ( + | protos.google.analytics.admin.v1beta.IUpdateDataRetentionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'data_retention_settings.name': + request.dataRetentionSettings!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateDataRetentionSettings( + request, + options, + callback + ); + } + /** + * Creates a DataStream. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1beta.DataStream} request.dataStream + * Required. The DataStream to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1beta.DataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.create_data_stream.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_async + */ + createDataStream( + request?: protos.google.analytics.admin.v1beta.ICreateDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream, + protos.google.analytics.admin.v1beta.ICreateDataStreamRequest | undefined, + {} | undefined + ] + >; + createDataStream( + request: protos.google.analytics.admin.v1beta.ICreateDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDataStream( + request: protos.google.analytics.admin.v1beta.ICreateDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDataStream( + request?: protos.google.analytics.admin.v1beta.ICreateDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.ICreateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream, + protos.google.analytics.admin.v1beta.ICreateDataStreamRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createDataStream(request, options, callback); + } + /** + * Deletes a DataStream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.delete_data_stream.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_async + */ + deleteDataStream( + request?: protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest | undefined, + {} | undefined + ] + >; + deleteDataStream( + request: protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDataStream( + request: protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDataStream( + request?: protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1beta.IDeleteDataStreamRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteDataStream(request, options, callback); + } + /** + * Updates a DataStream on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1beta.DataStream} request.dataStream + * The DataStream to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match + * all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1beta.DataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.update_data_stream.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_async + */ + updateDataStream( + request?: protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream, + protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest | undefined, + {} | undefined + ] + >; + updateDataStream( + request: protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataStream( + request: protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDataStream( + request?: protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream, + protos.google.analytics.admin.v1beta.IUpdateDataStreamRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'data_stream.name': request.dataStream!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateDataStream(request, options, callback); + } + /** + * Lookup for a single DataStream. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [DataStream]{@link google.analytics.admin.v1beta.DataStream}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.get_data_stream.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_async + */ + getDataStream( + request?: protos.google.analytics.admin.v1beta.IGetDataStreamRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream, + protos.google.analytics.admin.v1beta.IGetDataStreamRequest | undefined, + {} | undefined + ] + >; + getDataStream( + request: protos.google.analytics.admin.v1beta.IGetDataStreamRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataStream( + request: protos.google.analytics.admin.v1beta.IGetDataStreamRequest, + callback: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataStream( + request?: protos.google.analytics.admin.v1beta.IGetDataStreamRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1beta.IDataStream, + | protos.google.analytics.admin.v1beta.IGetDataStreamRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream, + protos.google.analytics.admin.v1beta.IGetDataStreamRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getDataStream(request, options, callback); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Account]{@link google.analytics.admin.v1beta.Account}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccounts( + request?: protos.google.analytics.admin.v1beta.IListAccountsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccount[], + protos.google.analytics.admin.v1beta.IListAccountsRequest | null, + protos.google.analytics.admin.v1beta.IListAccountsResponse + ] + >; + listAccounts( + request: protos.google.analytics.admin.v1beta.IListAccountsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountsRequest, + | protos.google.analytics.admin.v1beta.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccount + > + ): void; + listAccounts( + request: protos.google.analytics.admin.v1beta.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountsRequest, + | protos.google.analytics.admin.v1beta.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccount + > + ): void; + listAccounts( + request?: protos.google.analytics.admin.v1beta.IListAccountsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountsRequest, + | protos.google.analytics.admin.v1beta.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccount + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountsRequest, + | protos.google.analytics.admin.v1beta.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccount + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccount[], + protos.google.analytics.admin.v1beta.IListAccountsRequest | null, + protos.google.analytics.admin.v1beta.IListAccountsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccounts(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1beta.Account} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountsStream( + request?: protos.google.analytics.admin.v1beta.IListAccountsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccounts`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Account]{@link google.analytics.admin.v1beta.Account}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_accounts.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_async + */ + listAccountsAsync( + request?: protos.google.analytics.admin.v1beta.IListAccountsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Returns summaries of all accounts accessible by the caller. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1beta.AccountSummary}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummaries( + request?: protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccountSummary[], + protos.google.analytics.admin.v1beta.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1beta.IListAccountSummariesResponse + ] + >; + listAccountSummaries( + request: protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1beta.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccountSummary + > + ): void; + listAccountSummaries( + request: protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1beta.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccountSummary + > + ): void; + listAccountSummaries( + request?: protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1beta.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccountSummary + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1beta.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IAccountSummary + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IAccountSummary[], + protos.google.analytics.admin.v1beta.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1beta.IListAccountSummariesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccountSummaries(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1beta.AccountSummary} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummariesStream( + request?: protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.createStream( + this.innerApiCalls.listAccountSummaries as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccountSummaries`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AccountSummary]{@link google.analytics.admin.v1beta.AccountSummary}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_account_summaries.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_async + */ + listAccountSummariesAsync( + request?: protos.google.analytics.admin.v1beta.IListAccountSummariesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.asyncIterate( + this.innerApiCalls['listAccountSummaries'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Property]{@link google.analytics.admin.v1beta.Property}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listProperties( + request?: protos.google.analytics.admin.v1beta.IListPropertiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty[], + protos.google.analytics.admin.v1beta.IListPropertiesRequest | null, + protos.google.analytics.admin.v1beta.IListPropertiesResponse + ] + >; + listProperties( + request: protos.google.analytics.admin.v1beta.IListPropertiesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListPropertiesRequest, + | protos.google.analytics.admin.v1beta.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IProperty + > + ): void; + listProperties( + request: protos.google.analytics.admin.v1beta.IListPropertiesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListPropertiesRequest, + | protos.google.analytics.admin.v1beta.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IProperty + > + ): void; + listProperties( + request?: protos.google.analytics.admin.v1beta.IListPropertiesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListPropertiesRequest, + | protos.google.analytics.admin.v1beta.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IProperty + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListPropertiesRequest, + | protos.google.analytics.admin.v1beta.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IProperty + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IProperty[], + protos.google.analytics.admin.v1beta.IListPropertiesRequest | null, + protos.google.analytics.admin.v1beta.IListPropertiesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listProperties(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1beta.Property} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listPropertiesStream( + request?: protos.google.analytics.admin.v1beta.IListPropertiesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listProperties']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listProperties.createStream( + this.innerApiCalls.listProperties as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listProperties`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Property]{@link google.analytics.admin.v1beta.Property}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_properties.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_async + */ + listPropertiesAsync( + request?: protos.google.analytics.admin.v1beta.IListPropertiesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listProperties']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listProperties.asyncIterate( + this.innerApiCalls['listProperties'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1beta.FirebaseLink}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listFirebaseLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listFirebaseLinks( + request?: protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IFirebaseLink[], + protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1beta.IListFirebaseLinksResponse + ] + >; + listFirebaseLinks( + request: protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1beta.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IFirebaseLink + > + ): void; + listFirebaseLinks( + request: protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1beta.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IFirebaseLink + > + ): void; + listFirebaseLinks( + request?: protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1beta.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IFirebaseLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1beta.IListFirebaseLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IFirebaseLink + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IFirebaseLink[], + protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1beta.IListFirebaseLinksResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listFirebaseLinks(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1beta.FirebaseLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listFirebaseLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listFirebaseLinksStream( + request?: protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listFirebaseLinks']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFirebaseLinks.createStream( + this.innerApiCalls.listFirebaseLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFirebaseLinks`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [FirebaseLink]{@link google.analytics.admin.v1beta.FirebaseLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_firebase_links.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_async + */ + listFirebaseLinksAsync( + request?: protos.google.analytics.admin.v1beta.IListFirebaseLinksRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listFirebaseLinks']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFirebaseLinks.asyncIterate( + this.innerApiCalls['listFirebaseLinks'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Lists GoogleAdsLinks on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1beta.GoogleAdsLink}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listGoogleAdsLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IGoogleAdsLink[], + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksResponse + ] + >; + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1beta.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IGoogleAdsLink + > + ): void; + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1beta.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IGoogleAdsLink + > + ): void; + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1beta.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IGoogleAdsLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1beta.IListGoogleAdsLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IGoogleAdsLink + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IGoogleAdsLink[], + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1beta.IListGoogleAdsLinksResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1beta.GoogleAdsLink} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listGoogleAdsLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listGoogleAdsLinksStream( + request?: protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listGoogleAdsLinks.createStream( + this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [GoogleAdsLink]{@link google.analytics.admin.v1beta.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_async + */ + listGoogleAdsLinksAsync( + request?: protos.google.analytics.admin.v1beta.IListGoogleAdsLinksRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listGoogleAdsLinks.asyncIterate( + this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * @param {string} request.pageToken + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [MeasurementProtocolSecret]{@link google.analytics.admin.v1beta.MeasurementProtocolSecret}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listMeasurementProtocolSecretsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse + ] + >; + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret + > + ): void; + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret + > + ): void; + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listMeasurementProtocolSecrets( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * @param {string} request.pageToken + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1beta.MeasurementProtocolSecret} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listMeasurementProtocolSecretsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listMeasurementProtocolSecretsStream( + request?: protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listMeasurementProtocolSecrets.createStream( + this.innerApiCalls.listMeasurementProtocolSecrets as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * @param {string} request.pageToken + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [MeasurementProtocolSecret]{@link google.analytics.admin.v1beta.MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async + */ + listMeasurementProtocolSecretsAsync( + request?: protos.google.analytics.admin.v1beta.IListMeasurementProtocolSecretsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( + this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Searches through all changes to an account or its children given the + * specified set of filters. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1beta.ChangeHistoryEvent}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `searchChangeHistoryEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IChangeHistoryEvent[], + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse + ] + >; + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IChangeHistoryEvent + > + ): void; + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IChangeHistoryEvent + > + ): void; + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IChangeHistoryEvent + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IChangeHistoryEvent + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IChangeHistoryEvent[], + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + account: request.account || '', + }); + this.initialize(); + return this.innerApiCalls.searchChangeHistoryEvents( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1beta.ChangeHistoryEvent} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `searchChangeHistoryEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + searchChangeHistoryEventsStream( + request?: protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + account: request.account || '', + }); + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.searchChangeHistoryEvents.createStream( + this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.account + * Required. The account resource for which to return change history resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that matches at + * least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types of + * actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `SearchChangeHistoryEvents` must match the call that + * provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [ChangeHistoryEvent]{@link google.analytics.admin.v1beta.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.search_change_history_events.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async + */ + searchChangeHistoryEventsAsync( + request?: protos.google.analytics.admin.v1beta.ISearchChangeHistoryEventsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + account: request.account || '', + }); + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( + this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the parent property. + * Example: 'properties/123' + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [ConversionEvent]{@link google.analytics.admin.v1beta.ConversionEvent}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listConversionEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listConversionEvents( + request?: protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IConversionEvent[], + protos.google.analytics.admin.v1beta.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1beta.IListConversionEventsResponse + ] + >; + listConversionEvents( + request: protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + | protos.google.analytics.admin.v1beta.IListConversionEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IConversionEvent + > + ): void; + listConversionEvents( + request: protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + | protos.google.analytics.admin.v1beta.IListConversionEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IConversionEvent + > + ): void; + listConversionEvents( + request?: protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + | protos.google.analytics.admin.v1beta.IListConversionEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IConversionEvent + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + | protos.google.analytics.admin.v1beta.IListConversionEventsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IConversionEvent + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IConversionEvent[], + protos.google.analytics.admin.v1beta.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1beta.IListConversionEventsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listConversionEvents(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the parent property. + * Example: 'properties/123' + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [ConversionEvent]{@link google.analytics.admin.v1beta.ConversionEvent} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listConversionEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listConversionEventsStream( + request?: protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listConversionEvents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listConversionEvents.createStream( + this.innerApiCalls.listConversionEvents as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listConversionEvents`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the parent property. + * Example: 'properties/123' + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [ConversionEvent]{@link google.analytics.admin.v1beta.ConversionEvent}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_conversion_events.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_async + */ + listConversionEventsAsync( + request?: protos.google.analytics.admin.v1beta.IListConversionEventsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listConversionEvents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listConversionEvents.asyncIterate( + this.innerApiCalls['listConversionEvents'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Lists CustomDimensions on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [CustomDimension]{@link google.analytics.admin.v1beta.CustomDimension}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomDimensionsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomDimensions( + request?: protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension[], + protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1beta.IListCustomDimensionsResponse + ] + >; + listCustomDimensions( + request: protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1beta.IListCustomDimensionsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomDimension + > + ): void; + listCustomDimensions( + request: protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1beta.IListCustomDimensionsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomDimension + > + ): void; + listCustomDimensions( + request?: protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1beta.IListCustomDimensionsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomDimension + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1beta.IListCustomDimensionsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomDimension + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomDimension[], + protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1beta.IListCustomDimensionsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listCustomDimensions(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [CustomDimension]{@link google.analytics.admin.v1beta.CustomDimension} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listCustomDimensionsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomDimensionsStream( + request?: protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listCustomDimensions']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomDimensions.createStream( + this.innerApiCalls.listCustomDimensions as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listCustomDimensions`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [CustomDimension]{@link google.analytics.admin.v1beta.CustomDimension}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_async + */ + listCustomDimensionsAsync( + request?: protos.google.analytics.admin.v1beta.IListCustomDimensionsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listCustomDimensions']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomDimensions.asyncIterate( + this.innerApiCalls['listCustomDimensions'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Lists CustomMetrics on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [CustomMetric]{@link google.analytics.admin.v1beta.CustomMetric}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomMetricsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomMetrics( + request?: protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric[], + protos.google.analytics.admin.v1beta.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1beta.IListCustomMetricsResponse + ] + >; + listCustomMetrics( + request: protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1beta.IListCustomMetricsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomMetric + > + ): void; + listCustomMetrics( + request: protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1beta.IListCustomMetricsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomMetric + > + ): void; + listCustomMetrics( + request?: protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1beta.IListCustomMetricsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomMetric + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1beta.IListCustomMetricsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.ICustomMetric + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.ICustomMetric[], + protos.google.analytics.admin.v1beta.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1beta.IListCustomMetricsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listCustomMetrics(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [CustomMetric]{@link google.analytics.admin.v1beta.CustomMetric} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listCustomMetricsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomMetricsStream( + request?: protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listCustomMetrics']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomMetrics.createStream( + this.innerApiCalls.listCustomMetrics as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listCustomMetrics`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [CustomMetric]{@link google.analytics.admin.v1beta.CustomMetric}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_async + */ + listCustomMetricsAsync( + request?: protos.google.analytics.admin.v1beta.IListCustomMetricsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listCustomMetrics']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomMetrics.asyncIterate( + this.innerApiCalls['listCustomMetrics'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Lists DataStreams on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [DataStream]{@link google.analytics.admin.v1beta.DataStream}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataStreams( + request?: protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream[], + protos.google.analytics.admin.v1beta.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1beta.IListDataStreamsResponse + ] + >; + listDataStreams( + request: protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + | protos.google.analytics.admin.v1beta.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IDataStream + > + ): void; + listDataStreams( + request: protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + | protos.google.analytics.admin.v1beta.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IDataStream + > + ): void; + listDataStreams( + request?: protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + | protos.google.analytics.admin.v1beta.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IDataStream + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + | protos.google.analytics.admin.v1beta.IListDataStreamsResponse + | null + | undefined, + protos.google.analytics.admin.v1beta.IDataStream + > + ): Promise< + [ + protos.google.analytics.admin.v1beta.IDataStream[], + protos.google.analytics.admin.v1beta.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1beta.IListDataStreamsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listDataStreams(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [DataStream]{@link google.analytics.admin.v1beta.DataStream} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDataStreamsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataStreamsStream( + request?: protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listDataStreams']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataStreams.createStream( + this.innerApiCalls.listDataStreams as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDataStreams`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [DataStream]{@link google.analytics.admin.v1beta.DataStream}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta/analytics_admin_service.list_data_streams.js + * region_tag:analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_async + */ + listDataStreamsAsync( + request?: protos.google.analytics.admin.v1beta.IListDataStreamsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listDataStreams']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataStreams.asyncIterate( + this.innerApiCalls['listDataStreams'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified account resource name string. + * + * @param {string} account + * @returns {string} Resource name string. + */ + accountPath(account: string) { + return this.pathTemplates.accountPathTemplate.render({ + account: account, + }); + } + + /** + * Parse the account from Account resource. + * + * @param {string} accountName + * A fully-qualified path representing Account resource. + * @returns {string} A string representing the account. + */ + matchAccountFromAccountName(accountName: string) { + return this.pathTemplates.accountPathTemplate.match(accountName).account; + } + + /** + * Return a fully-qualified accountSummary resource name string. + * + * @param {string} account_summary + * @returns {string} Resource name string. + */ + accountSummaryPath(accountSummary: string) { + return this.pathTemplates.accountSummaryPathTemplate.render({ + account_summary: accountSummary, + }); + } + + /** + * Parse the account_summary from AccountSummary resource. + * + * @param {string} accountSummaryName + * A fully-qualified path representing AccountSummary resource. + * @returns {string} A string representing the account_summary. + */ + matchAccountSummaryFromAccountSummaryName(accountSummaryName: string) { + return this.pathTemplates.accountSummaryPathTemplate.match( + accountSummaryName + ).account_summary; + } + + /** + * Return a fully-qualified conversionEvent resource name string. + * + * @param {string} property + * @param {string} conversion_event + * @returns {string} Resource name string. + */ + conversionEventPath(property: string, conversionEvent: string) { + return this.pathTemplates.conversionEventPathTemplate.render({ + property: property, + conversion_event: conversionEvent, + }); + } + + /** + * Parse the property from ConversionEvent resource. + * + * @param {string} conversionEventName + * A fully-qualified path representing ConversionEvent resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromConversionEventName(conversionEventName: string) { + return this.pathTemplates.conversionEventPathTemplate.match( + conversionEventName + ).property; + } + + /** + * Parse the conversion_event from ConversionEvent resource. + * + * @param {string} conversionEventName + * A fully-qualified path representing ConversionEvent resource. + * @returns {string} A string representing the conversion_event. + */ + matchConversionEventFromConversionEventName(conversionEventName: string) { + return this.pathTemplates.conversionEventPathTemplate.match( + conversionEventName + ).conversion_event; + } + + /** + * Return a fully-qualified customDimension resource name string. + * + * @param {string} property + * @param {string} custom_dimension + * @returns {string} Resource name string. + */ + customDimensionPath(property: string, customDimension: string) { + return this.pathTemplates.customDimensionPathTemplate.render({ + property: property, + custom_dimension: customDimension, + }); + } + + /** + * Parse the property from CustomDimension resource. + * + * @param {string} customDimensionName + * A fully-qualified path representing CustomDimension resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromCustomDimensionName(customDimensionName: string) { + return this.pathTemplates.customDimensionPathTemplate.match( + customDimensionName + ).property; + } + + /** + * Parse the custom_dimension from CustomDimension resource. + * + * @param {string} customDimensionName + * A fully-qualified path representing CustomDimension resource. + * @returns {string} A string representing the custom_dimension. + */ + matchCustomDimensionFromCustomDimensionName(customDimensionName: string) { + return this.pathTemplates.customDimensionPathTemplate.match( + customDimensionName + ).custom_dimension; + } + + /** + * Return a fully-qualified customMetric resource name string. + * + * @param {string} property + * @param {string} custom_metric + * @returns {string} Resource name string. + */ + customMetricPath(property: string, customMetric: string) { + return this.pathTemplates.customMetricPathTemplate.render({ + property: property, + custom_metric: customMetric, + }); + } + + /** + * Parse the property from CustomMetric resource. + * + * @param {string} customMetricName + * A fully-qualified path representing CustomMetric resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromCustomMetricName(customMetricName: string) { + return this.pathTemplates.customMetricPathTemplate.match(customMetricName) + .property; + } + + /** + * Parse the custom_metric from CustomMetric resource. + * + * @param {string} customMetricName + * A fully-qualified path representing CustomMetric resource. + * @returns {string} A string representing the custom_metric. + */ + matchCustomMetricFromCustomMetricName(customMetricName: string) { + return this.pathTemplates.customMetricPathTemplate.match(customMetricName) + .custom_metric; + } + + /** + * Return a fully-qualified dataRetentionSettings resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + dataRetentionSettingsPath(property: string) { + return this.pathTemplates.dataRetentionSettingsPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from DataRetentionSettings resource. + * + * @param {string} dataRetentionSettingsName + * A fully-qualified path representing DataRetentionSettings resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromDataRetentionSettingsName( + dataRetentionSettingsName: string + ) { + return this.pathTemplates.dataRetentionSettingsPathTemplate.match( + dataRetentionSettingsName + ).property; + } + + /** + * Return a fully-qualified dataSharingSettings resource name string. + * + * @param {string} account + * @returns {string} Resource name string. + */ + dataSharingSettingsPath(account: string) { + return this.pathTemplates.dataSharingSettingsPathTemplate.render({ + account: account, + }); + } + + /** + * Parse the account from DataSharingSettings resource. + * + * @param {string} dataSharingSettingsName + * A fully-qualified path representing DataSharingSettings resource. + * @returns {string} A string representing the account. + */ + matchAccountFromDataSharingSettingsName(dataSharingSettingsName: string) { + return this.pathTemplates.dataSharingSettingsPathTemplate.match( + dataSharingSettingsName + ).account; + } + + /** + * Return a fully-qualified dataStream resource name string. + * + * @param {string} property + * @param {string} data_stream + * @returns {string} Resource name string. + */ + dataStreamPath(property: string, dataStream: string) { + return this.pathTemplates.dataStreamPathTemplate.render({ + property: property, + data_stream: dataStream, + }); + } + + /** + * Parse the property from DataStream resource. + * + * @param {string} dataStreamName + * A fully-qualified path representing DataStream resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromDataStreamName(dataStreamName: string) { + return this.pathTemplates.dataStreamPathTemplate.match(dataStreamName) + .property; + } + + /** + * Parse the data_stream from DataStream resource. + * + * @param {string} dataStreamName + * A fully-qualified path representing DataStream resource. + * @returns {string} A string representing the data_stream. + */ + matchDataStreamFromDataStreamName(dataStreamName: string) { + return this.pathTemplates.dataStreamPathTemplate.match(dataStreamName) + .data_stream; + } + + /** + * Return a fully-qualified firebaseLink resource name string. + * + * @param {string} property + * @param {string} firebase_link + * @returns {string} Resource name string. + */ + firebaseLinkPath(property: string, firebaseLink: string) { + return this.pathTemplates.firebaseLinkPathTemplate.render({ + property: property, + firebase_link: firebaseLink, + }); + } + + /** + * Parse the property from FirebaseLink resource. + * + * @param {string} firebaseLinkName + * A fully-qualified path representing FirebaseLink resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromFirebaseLinkName(firebaseLinkName: string) { + return this.pathTemplates.firebaseLinkPathTemplate.match(firebaseLinkName) + .property; + } + + /** + * Parse the firebase_link from FirebaseLink resource. + * + * @param {string} firebaseLinkName + * A fully-qualified path representing FirebaseLink resource. + * @returns {string} A string representing the firebase_link. + */ + matchFirebaseLinkFromFirebaseLinkName(firebaseLinkName: string) { + return this.pathTemplates.firebaseLinkPathTemplate.match(firebaseLinkName) + .firebase_link; + } + + /** + * Return a fully-qualified googleAdsLink resource name string. + * + * @param {string} property + * @param {string} google_ads_link + * @returns {string} Resource name string. + */ + googleAdsLinkPath(property: string, googleAdsLink: string) { + return this.pathTemplates.googleAdsLinkPathTemplate.render({ + property: property, + google_ads_link: googleAdsLink, + }); + } + + /** + * Parse the property from GoogleAdsLink resource. + * + * @param {string} googleAdsLinkName + * A fully-qualified path representing GoogleAdsLink resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromGoogleAdsLinkName(googleAdsLinkName: string) { + return this.pathTemplates.googleAdsLinkPathTemplate.match(googleAdsLinkName) + .property; + } + + /** + * Parse the google_ads_link from GoogleAdsLink resource. + * + * @param {string} googleAdsLinkName + * A fully-qualified path representing GoogleAdsLink resource. + * @returns {string} A string representing the google_ads_link. + */ + matchGoogleAdsLinkFromGoogleAdsLinkName(googleAdsLinkName: string) { + return this.pathTemplates.googleAdsLinkPathTemplate.match(googleAdsLinkName) + .google_ads_link; + } + + /** + * Return a fully-qualified measurementProtocolSecret resource name string. + * + * @param {string} property + * @param {string} data_stream + * @param {string} measurement_protocol_secret + * @returns {string} Resource name string. + */ + measurementProtocolSecretPath( + property: string, + dataStream: string, + measurementProtocolSecret: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.render({ + property: property, + data_stream: dataStream, + measurement_protocol_secret: measurementProtocolSecret, + }); + } + + /** + * Parse the property from MeasurementProtocolSecret resource. + * + * @param {string} measurementProtocolSecretName + * A fully-qualified path representing MeasurementProtocolSecret resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromMeasurementProtocolSecretName( + measurementProtocolSecretName: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.match( + measurementProtocolSecretName + ).property; + } + + /** + * Parse the data_stream from MeasurementProtocolSecret resource. + * + * @param {string} measurementProtocolSecretName + * A fully-qualified path representing MeasurementProtocolSecret resource. + * @returns {string} A string representing the data_stream. + */ + matchDataStreamFromMeasurementProtocolSecretName( + measurementProtocolSecretName: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.match( + measurementProtocolSecretName + ).data_stream; + } + + /** + * Parse the measurement_protocol_secret from MeasurementProtocolSecret resource. + * + * @param {string} measurementProtocolSecretName + * A fully-qualified path representing MeasurementProtocolSecret resource. + * @returns {string} A string representing the measurement_protocol_secret. + */ + matchMeasurementProtocolSecretFromMeasurementProtocolSecretName( + measurementProtocolSecretName: string + ) { + return this.pathTemplates.measurementProtocolSecretPathTemplate.match( + measurementProtocolSecretName + ).measurement_protocol_secret; + } + + /** + * Return a fully-qualified property resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + propertyPath(property: string) { + return this.pathTemplates.propertyPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from Property resource. + * + * @param {string} propertyName + * A fully-qualified path representing Property resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromPropertyName(propertyName: string) { + return this.pathTemplates.propertyPathTemplate.match(propertyName).property; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.analyticsAdminServiceStub && !this._terminated) { + return this.analyticsAdminServiceStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client_config.json new file mode 100644 index 00000000000..e1e3f9017e4 --- /dev/null +++ b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client_config.json @@ -0,0 +1,274 @@ +{ + "interfaces": { + "google.analytics.admin.v1beta.AnalyticsAdminService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "unknown_unavailable": [ + "UNKNOWN", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + }, + "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetAccount": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListAccounts": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteAccount": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateAccount": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ProvisionAccountTicket": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListAccountSummaries": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListProperties": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFirebaseLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListGoogleAdsLinks": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetDataSharingSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListMeasurementProtocolSecrets": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "AcknowledgeUserDataCollection": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "SearchChangeHistoryEvents": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListConversionEvents": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListCustomDimensions": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ArchiveCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListCustomMetrics": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ArchiveCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListDataStreams": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + } + } + } + } +} diff --git a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_proto_list.json b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_proto_list.json new file mode 100644 index 00000000000..fb30c5ecfee --- /dev/null +++ b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_proto_list.json @@ -0,0 +1,4 @@ +[ + "../../protos/google/analytics/admin/v1beta/analytics_admin.proto", + "../../protos/google/analytics/admin/v1beta/resources.proto" +] diff --git a/packages/google-analytics-admin/src/v1beta/gapic_metadata.json b/packages/google-analytics-admin/src/v1beta/gapic_metadata.json new file mode 100644 index 00000000000..6293235f50d --- /dev/null +++ b/packages/google-analytics-admin/src/v1beta/gapic_metadata.json @@ -0,0 +1,537 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.analytics.admin.v1beta", + "libraryPackage": "@google-cloud/admin", + "services": { + "AnalyticsAdminService": { + "clients": { + "grpc": { + "libraryClient": "AnalyticsAdminServiceClient", + "rpcs": { + "GetAccount": { + "methods": [ + "getAccount" + ] + }, + "DeleteAccount": { + "methods": [ + "deleteAccount" + ] + }, + "UpdateAccount": { + "methods": [ + "updateAccount" + ] + }, + "ProvisionAccountTicket": { + "methods": [ + "provisionAccountTicket" + ] + }, + "GetProperty": { + "methods": [ + "getProperty" + ] + }, + "CreateProperty": { + "methods": [ + "createProperty" + ] + }, + "DeleteProperty": { + "methods": [ + "deleteProperty" + ] + }, + "UpdateProperty": { + "methods": [ + "updateProperty" + ] + }, + "CreateFirebaseLink": { + "methods": [ + "createFirebaseLink" + ] + }, + "DeleteFirebaseLink": { + "methods": [ + "deleteFirebaseLink" + ] + }, + "CreateGoogleAdsLink": { + "methods": [ + "createGoogleAdsLink" + ] + }, + "UpdateGoogleAdsLink": { + "methods": [ + "updateGoogleAdsLink" + ] + }, + "DeleteGoogleAdsLink": { + "methods": [ + "deleteGoogleAdsLink" + ] + }, + "GetDataSharingSettings": { + "methods": [ + "getDataSharingSettings" + ] + }, + "GetMeasurementProtocolSecret": { + "methods": [ + "getMeasurementProtocolSecret" + ] + }, + "CreateMeasurementProtocolSecret": { + "methods": [ + "createMeasurementProtocolSecret" + ] + }, + "DeleteMeasurementProtocolSecret": { + "methods": [ + "deleteMeasurementProtocolSecret" + ] + }, + "UpdateMeasurementProtocolSecret": { + "methods": [ + "updateMeasurementProtocolSecret" + ] + }, + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledgeUserDataCollection" + ] + }, + "CreateConversionEvent": { + "methods": [ + "createConversionEvent" + ] + }, + "GetConversionEvent": { + "methods": [ + "getConversionEvent" + ] + }, + "DeleteConversionEvent": { + "methods": [ + "deleteConversionEvent" + ] + }, + "CreateCustomDimension": { + "methods": [ + "createCustomDimension" + ] + }, + "UpdateCustomDimension": { + "methods": [ + "updateCustomDimension" + ] + }, + "ArchiveCustomDimension": { + "methods": [ + "archiveCustomDimension" + ] + }, + "GetCustomDimension": { + "methods": [ + "getCustomDimension" + ] + }, + "CreateCustomMetric": { + "methods": [ + "createCustomMetric" + ] + }, + "UpdateCustomMetric": { + "methods": [ + "updateCustomMetric" + ] + }, + "ArchiveCustomMetric": { + "methods": [ + "archiveCustomMetric" + ] + }, + "GetCustomMetric": { + "methods": [ + "getCustomMetric" + ] + }, + "GetDataRetentionSettings": { + "methods": [ + "getDataRetentionSettings" + ] + }, + "UpdateDataRetentionSettings": { + "methods": [ + "updateDataRetentionSettings" + ] + }, + "CreateDataStream": { + "methods": [ + "createDataStream" + ] + }, + "DeleteDataStream": { + "methods": [ + "deleteDataStream" + ] + }, + "UpdateDataStream": { + "methods": [ + "updateDataStream" + ] + }, + "GetDataStream": { + "methods": [ + "getDataStream" + ] + }, + "ListAccounts": { + "methods": [ + "listAccounts", + "listAccountsStream", + "listAccountsAsync" + ] + }, + "ListAccountSummaries": { + "methods": [ + "listAccountSummaries", + "listAccountSummariesStream", + "listAccountSummariesAsync" + ] + }, + "ListProperties": { + "methods": [ + "listProperties", + "listPropertiesStream", + "listPropertiesAsync" + ] + }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks", + "listFirebaseLinksStream", + "listFirebaseLinksAsync" + ] + }, + "ListGoogleAdsLinks": { + "methods": [ + "listGoogleAdsLinks", + "listGoogleAdsLinksStream", + "listGoogleAdsLinksAsync" + ] + }, + "ListMeasurementProtocolSecrets": { + "methods": [ + "listMeasurementProtocolSecrets", + "listMeasurementProtocolSecretsStream", + "listMeasurementProtocolSecretsAsync" + ] + }, + "SearchChangeHistoryEvents": { + "methods": [ + "searchChangeHistoryEvents", + "searchChangeHistoryEventsStream", + "searchChangeHistoryEventsAsync" + ] + }, + "ListConversionEvents": { + "methods": [ + "listConversionEvents", + "listConversionEventsStream", + "listConversionEventsAsync" + ] + }, + "ListCustomDimensions": { + "methods": [ + "listCustomDimensions", + "listCustomDimensionsStream", + "listCustomDimensionsAsync" + ] + }, + "ListCustomMetrics": { + "methods": [ + "listCustomMetrics", + "listCustomMetricsStream", + "listCustomMetricsAsync" + ] + }, + "ListDataStreams": { + "methods": [ + "listDataStreams", + "listDataStreamsStream", + "listDataStreamsAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "AnalyticsAdminServiceClient", + "rpcs": { + "GetAccount": { + "methods": [ + "getAccount" + ] + }, + "DeleteAccount": { + "methods": [ + "deleteAccount" + ] + }, + "UpdateAccount": { + "methods": [ + "updateAccount" + ] + }, + "ProvisionAccountTicket": { + "methods": [ + "provisionAccountTicket" + ] + }, + "GetProperty": { + "methods": [ + "getProperty" + ] + }, + "CreateProperty": { + "methods": [ + "createProperty" + ] + }, + "DeleteProperty": { + "methods": [ + "deleteProperty" + ] + }, + "UpdateProperty": { + "methods": [ + "updateProperty" + ] + }, + "CreateFirebaseLink": { + "methods": [ + "createFirebaseLink" + ] + }, + "DeleteFirebaseLink": { + "methods": [ + "deleteFirebaseLink" + ] + }, + "CreateGoogleAdsLink": { + "methods": [ + "createGoogleAdsLink" + ] + }, + "UpdateGoogleAdsLink": { + "methods": [ + "updateGoogleAdsLink" + ] + }, + "DeleteGoogleAdsLink": { + "methods": [ + "deleteGoogleAdsLink" + ] + }, + "GetDataSharingSettings": { + "methods": [ + "getDataSharingSettings" + ] + }, + "GetMeasurementProtocolSecret": { + "methods": [ + "getMeasurementProtocolSecret" + ] + }, + "CreateMeasurementProtocolSecret": { + "methods": [ + "createMeasurementProtocolSecret" + ] + }, + "DeleteMeasurementProtocolSecret": { + "methods": [ + "deleteMeasurementProtocolSecret" + ] + }, + "UpdateMeasurementProtocolSecret": { + "methods": [ + "updateMeasurementProtocolSecret" + ] + }, + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledgeUserDataCollection" + ] + }, + "CreateConversionEvent": { + "methods": [ + "createConversionEvent" + ] + }, + "GetConversionEvent": { + "methods": [ + "getConversionEvent" + ] + }, + "DeleteConversionEvent": { + "methods": [ + "deleteConversionEvent" + ] + }, + "CreateCustomDimension": { + "methods": [ + "createCustomDimension" + ] + }, + "UpdateCustomDimension": { + "methods": [ + "updateCustomDimension" + ] + }, + "ArchiveCustomDimension": { + "methods": [ + "archiveCustomDimension" + ] + }, + "GetCustomDimension": { + "methods": [ + "getCustomDimension" + ] + }, + "CreateCustomMetric": { + "methods": [ + "createCustomMetric" + ] + }, + "UpdateCustomMetric": { + "methods": [ + "updateCustomMetric" + ] + }, + "ArchiveCustomMetric": { + "methods": [ + "archiveCustomMetric" + ] + }, + "GetCustomMetric": { + "methods": [ + "getCustomMetric" + ] + }, + "GetDataRetentionSettings": { + "methods": [ + "getDataRetentionSettings" + ] + }, + "UpdateDataRetentionSettings": { + "methods": [ + "updateDataRetentionSettings" + ] + }, + "CreateDataStream": { + "methods": [ + "createDataStream" + ] + }, + "DeleteDataStream": { + "methods": [ + "deleteDataStream" + ] + }, + "UpdateDataStream": { + "methods": [ + "updateDataStream" + ] + }, + "GetDataStream": { + "methods": [ + "getDataStream" + ] + }, + "ListAccounts": { + "methods": [ + "listAccounts", + "listAccountsStream", + "listAccountsAsync" + ] + }, + "ListAccountSummaries": { + "methods": [ + "listAccountSummaries", + "listAccountSummariesStream", + "listAccountSummariesAsync" + ] + }, + "ListProperties": { + "methods": [ + "listProperties", + "listPropertiesStream", + "listPropertiesAsync" + ] + }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks", + "listFirebaseLinksStream", + "listFirebaseLinksAsync" + ] + }, + "ListGoogleAdsLinks": { + "methods": [ + "listGoogleAdsLinks", + "listGoogleAdsLinksStream", + "listGoogleAdsLinksAsync" + ] + }, + "ListMeasurementProtocolSecrets": { + "methods": [ + "listMeasurementProtocolSecrets", + "listMeasurementProtocolSecretsStream", + "listMeasurementProtocolSecretsAsync" + ] + }, + "SearchChangeHistoryEvents": { + "methods": [ + "searchChangeHistoryEvents", + "searchChangeHistoryEventsStream", + "searchChangeHistoryEventsAsync" + ] + }, + "ListConversionEvents": { + "methods": [ + "listConversionEvents", + "listConversionEventsStream", + "listConversionEventsAsync" + ] + }, + "ListCustomDimensions": { + "methods": [ + "listCustomDimensions", + "listCustomDimensionsStream", + "listCustomDimensionsAsync" + ] + }, + "ListCustomMetrics": { + "methods": [ + "listCustomMetrics", + "listCustomMetricsStream", + "listCustomMetricsAsync" + ] + }, + "ListDataStreams": { + "methods": [ + "listDataStreams", + "listDataStreamsStream", + "listDataStreamsAsync" + ] + } + } + } + } + } + } +} diff --git a/packages/google-analytics-admin/src/v1beta/index.ts b/packages/google-analytics-admin/src/v1beta/index.ts new file mode 100644 index 00000000000..6836b1c433a --- /dev/null +++ b/packages/google-analytics-admin/src/v1beta/index.ts @@ -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 +// +// 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. ** + +export {AnalyticsAdminServiceClient} from './analytics_admin_service_client'; diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts new file mode 100644 index 00000000000..413d0be6e4c --- /dev/null +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts @@ -0,0 +1,8966 @@ +// 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 +// +// 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. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as analyticsadminserviceModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf} from 'google-gax'; + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.AnalyticsAdminServiceClient', () => { + it('has servicePath', () => { + const servicePath = + analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient + .servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + await client.initialize(); + assert(client.analyticsAdminServiceStub); + }); + + it('has close method for the initialized client', done => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.analyticsAdminServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + + describe('getAccount', () => { + it('invokes getAccount without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ); + client.innerApiCalls.getAccount = stubSimpleCall(expectedResponse); + const [response] = await client.getAccount(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getAccount without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ); + client.innerApiCalls.getAccount = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getAccount( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IAccount | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getAccount with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getAccount = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getAccount(request), expectedError); + assert( + (client.innerApiCalls.getAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getAccount with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetAccountRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getAccount(request), expectedError); + }); + }); + + describe('deleteAccount', () => { + it('invokes deleteAccount without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAccount = stubSimpleCall(expectedResponse); + const [response] = await client.deleteAccount(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteAccount without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAccount = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteAccount( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteAccount with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteAccountRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteAccount = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteAccount(request), expectedError); + assert( + (client.innerApiCalls.deleteAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteAccount with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteAccountRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteAccount(request), expectedError); + }); + }); + + describe('updateAccount', () => { + it('invokes updateAccount without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedHeaderRequestParams = 'account.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ); + client.innerApiCalls.updateAccount = stubSimpleCall(expectedResponse); + const [response] = await client.updateAccount(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAccount without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedHeaderRequestParams = 'account.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ); + client.innerApiCalls.updateAccount = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateAccount( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IAccount | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateAccount with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedHeaderRequestParams = 'account.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateAccount = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateAccount(request), expectedError); + assert( + (client.innerApiCalls.updateAccount as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAccount with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateAccountRequest() + ); + request.account = {}; + request.account.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateAccount(request), expectedError); + }); + }); + + describe('provisionAccountTicket', () => { + it('invokes provisionAccountTicket without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ProvisionAccountTicketRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ProvisionAccountTicketResponse() + ); + client.innerApiCalls.provisionAccountTicket = + stubSimpleCall(expectedResponse); + const [response] = await client.provisionAccountTicket(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.provisionAccountTicket as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes provisionAccountTicket without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ProvisionAccountTicketRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ProvisionAccountTicketResponse() + ); + client.innerApiCalls.provisionAccountTicket = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.provisionAccountTicket( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IProvisionAccountTicketResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.provisionAccountTicket as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes provisionAccountTicket with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ProvisionAccountTicketRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.provisionAccountTicket = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.provisionAccountTicket(request), + expectedError + ); + assert( + (client.innerApiCalls.provisionAccountTicket as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes provisionAccountTicket with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ProvisionAccountTicketRequest() + ); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.provisionAccountTicket(request), + expectedError + ); + }); + }); + + describe('getProperty', () => { + it('invokes getProperty without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetPropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.getProperty = stubSimpleCall(expectedResponse); + const [response] = await client.getProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getProperty without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetPropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.getProperty = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getProperty( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IProperty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getProperty with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetPropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getProperty(request), expectedError); + assert( + (client.innerApiCalls.getProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetPropertyRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getProperty(request), expectedError); + }); + }); + + describe('createProperty', () => { + it('invokes createProperty without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreatePropertyRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.createProperty = stubSimpleCall(expectedResponse); + const [response] = await client.createProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createProperty without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreatePropertyRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.createProperty = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createProperty( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IProperty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createProperty with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreatePropertyRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.createProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createProperty(request), expectedError); + assert( + (client.innerApiCalls.createProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreatePropertyRequest() + ); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createProperty(request), expectedError); + }); + }); + + describe('deleteProperty', () => { + it('invokes deleteProperty without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeletePropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.deleteProperty = stubSimpleCall(expectedResponse); + const [response] = await client.deleteProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteProperty without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeletePropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.deleteProperty = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteProperty( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IProperty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteProperty with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeletePropertyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteProperty(request), expectedError); + assert( + (client.innerApiCalls.deleteProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeletePropertyRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteProperty(request), expectedError); + }); + }); + + describe('updateProperty', () => { + it('invokes updateProperty without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedHeaderRequestParams = 'property.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.updateProperty = stubSimpleCall(expectedResponse); + const [response] = await client.updateProperty(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateProperty without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedHeaderRequestParams = 'property.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ); + client.innerApiCalls.updateProperty = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateProperty( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IProperty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateProperty with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedHeaderRequestParams = 'property.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateProperty = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateProperty(request), expectedError); + assert( + (client.innerApiCalls.updateProperty as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateProperty with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() + ); + request.property = {}; + request.property.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateProperty(request), expectedError); + }); + }); + + describe('createFirebaseLink', () => { + it('invokes createFirebaseLink without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ); + client.innerApiCalls.createFirebaseLink = + stubSimpleCall(expectedResponse); + const [response] = await client.createFirebaseLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createFirebaseLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ); + client.innerApiCalls.createFirebaseLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createFirebaseLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IFirebaseLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createFirebaseLink with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createFirebaseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createFirebaseLink(request), expectedError); + assert( + (client.innerApiCalls.createFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createFirebaseLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createFirebaseLink(request), expectedError); + }); + }); + + describe('deleteFirebaseLink', () => { + it('invokes deleteFirebaseLink without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteFirebaseLink = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteFirebaseLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteFirebaseLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteFirebaseLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteFirebaseLink( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteFirebaseLink with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteFirebaseLink(request), expectedError); + assert( + (client.innerApiCalls.deleteFirebaseLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteFirebaseLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteFirebaseLink(request), expectedError); + }); + }); + + describe('createGoogleAdsLink', () => { + it('invokes createGoogleAdsLink without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ); + client.innerApiCalls.createGoogleAdsLink = + stubSimpleCall(expectedResponse); + const [response] = await client.createGoogleAdsLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createGoogleAdsLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ); + client.innerApiCalls.createGoogleAdsLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createGoogleAdsLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IGoogleAdsLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createGoogleAdsLink with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createGoogleAdsLink(request), expectedError); + assert( + (client.innerApiCalls.createGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createGoogleAdsLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createGoogleAdsLink(request), expectedError); + }); + }); + + describe('updateGoogleAdsLink', () => { + it('invokes updateGoogleAdsLink without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ); + client.innerApiCalls.updateGoogleAdsLink = + stubSimpleCall(expectedResponse); + const [response] = await client.updateGoogleAdsLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateGoogleAdsLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ); + client.innerApiCalls.updateGoogleAdsLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateGoogleAdsLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IGoogleAdsLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateGoogleAdsLink with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedHeaderRequestParams = 'google_ads_link.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateGoogleAdsLink(request), expectedError); + assert( + (client.innerApiCalls.updateGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateGoogleAdsLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() + ); + request.googleAdsLink = {}; + request.googleAdsLink.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateGoogleAdsLink(request), expectedError); + }); + }); + + describe('deleteGoogleAdsLink', () => { + it('invokes deleteGoogleAdsLink without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteGoogleAdsLink = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteGoogleAdsLink(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteGoogleAdsLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteGoogleAdsLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteGoogleAdsLink( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteGoogleAdsLink with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); + assert( + (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteGoogleAdsLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); + }); + }); + + describe('getDataSharingSettings', () => { + it('invokes getDataSharingSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataSharingSettings() + ); + client.innerApiCalls.getDataSharingSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getDataSharingSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataSharingSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataSharingSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataSharingSettings() + ); + client.innerApiCalls.getDataSharingSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDataSharingSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IDataSharingSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataSharingSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getDataSharingSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getDataSharingSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getDataSharingSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getDataSharingSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataSharingSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getDataSharingSettings(request), + expectedError + ); + }); + }); + + describe('getMeasurementProtocolSecret', () => { + it('invokes getMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ); + client.innerApiCalls.getMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.getMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ); + client.innerApiCalls.getMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getMeasurementProtocolSecret with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getMeasurementProtocolSecret(request), + expectedError + ); + }); + }); + + describe('createMeasurementProtocolSecret', () => { + it('invokes createMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ); + client.innerApiCalls.createMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.createMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ); + client.innerApiCalls.createMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createMeasurementProtocolSecret with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createMeasurementProtocolSecret(request), + expectedError + ); + }); + }); + + describe('deleteMeasurementProtocolSecret', () => { + it('invokes deleteMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteMeasurementProtocolSecret with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteMeasurementProtocolSecret(request), + expectedError + ); + }); + }); + + describe('updateMeasurementProtocolSecret', () => { + it('invokes updateMeasurementProtocolSecret without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ); + client.innerApiCalls.updateMeasurementProtocolSecret = + stubSimpleCall(expectedResponse); + const [response] = await client.updateMeasurementProtocolSecret(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateMeasurementProtocolSecret without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ); + client.innerApiCalls.updateMeasurementProtocolSecret = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateMeasurementProtocolSecret( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateMeasurementProtocolSecret with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateMeasurementProtocolSecret(request), + expectedError + ); + assert( + (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateMeasurementProtocolSecret with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() + ); + request.measurementProtocolSecret = {}; + request.measurementProtocolSecret.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateMeasurementProtocolSecret(request), + expectedError + ); + }); + }); + + describe('acknowledgeUserDataCollection', () => { + it('invokes acknowledgeUserDataCollection without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() + ); + request.property = ''; + const expectedHeaderRequestParams = 'property='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse() + ); + client.innerApiCalls.acknowledgeUserDataCollection = + stubSimpleCall(expectedResponse); + const [response] = await client.acknowledgeUserDataCollection(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes acknowledgeUserDataCollection without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() + ); + request.property = ''; + const expectedHeaderRequestParams = 'property='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse() + ); + client.innerApiCalls.acknowledgeUserDataCollection = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.acknowledgeUserDataCollection( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IAcknowledgeUserDataCollectionResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes acknowledgeUserDataCollection with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() + ); + request.property = ''; + const expectedHeaderRequestParams = 'property='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.acknowledgeUserDataCollection(request), + expectedError + ); + assert( + (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes acknowledgeUserDataCollection with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() + ); + request.property = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.acknowledgeUserDataCollection(request), + expectedError + ); + }); + }); + + describe('createConversionEvent', () => { + it('invokes createConversionEvent without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ); + client.innerApiCalls.createConversionEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.createConversionEvent(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createConversionEvent without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ); + client.innerApiCalls.createConversionEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createConversionEvent( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IConversionEvent | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createConversionEvent with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createConversionEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createConversionEvent(request), + expectedError + ); + assert( + (client.innerApiCalls.createConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createConversionEvent with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createConversionEvent(request), + expectedError + ); + }); + }); + + describe('getConversionEvent', () => { + it('invokes getConversionEvent without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ); + client.innerApiCalls.getConversionEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.getConversionEvent(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getConversionEvent without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ); + client.innerApiCalls.getConversionEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getConversionEvent( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IConversionEvent | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getConversionEvent with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getConversionEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getConversionEvent(request), expectedError); + assert( + (client.innerApiCalls.getConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getConversionEvent with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetConversionEventRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getConversionEvent(request), expectedError); + }); + }); + + describe('deleteConversionEvent', () => { + it('invokes deleteConversionEvent without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteConversionEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteConversionEvent(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteConversionEvent without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteConversionEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteConversionEvent( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteConversionEvent with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteConversionEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteConversionEvent(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteConversionEvent as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteConversionEvent with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteConversionEvent(request), + expectedError + ); + }); + }); + + describe('createCustomDimension', () => { + it('invokes createCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ); + client.innerApiCalls.createCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.createCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ); + client.innerApiCalls.createCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.createCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createCustomDimension(request), + expectedError + ); + }); + }); + + describe('updateCustomDimension', () => { + it('invokes updateCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ); + client.innerApiCalls.updateCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.updateCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ); + client.innerApiCalls.updateCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedHeaderRequestParams = 'custom_dimension.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.updateCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() + ); + request.customDimension = {}; + request.customDimension.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateCustomDimension(request), + expectedError + ); + }); + }); + + describe('archiveCustomDimension', () => { + it('invokes archiveCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.archiveCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.archiveCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes archiveCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.archiveCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.archiveCustomDimension(request), + expectedError + ); + assert( + (client.innerApiCalls.archiveCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.archiveCustomDimension(request), + expectedError + ); + }); + }); + + describe('getCustomDimension', () => { + it('invokes getCustomDimension without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ); + client.innerApiCalls.getCustomDimension = + stubSimpleCall(expectedResponse); + const [response] = await client.getCustomDimension(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomDimension without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ); + client.innerApiCalls.getCustomDimension = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getCustomDimension( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.ICustomDimension | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getCustomDimension with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getCustomDimension = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getCustomDimension(request), expectedError); + assert( + (client.innerApiCalls.getCustomDimension as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomDimension with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCustomDimension(request), expectedError); + }); + }); + + describe('createCustomMetric', () => { + it('invokes createCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ); + client.innerApiCalls.createCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.createCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ); + client.innerApiCalls.createCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.createCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createCustomMetric(request), expectedError); + }); + }); + + describe('updateCustomMetric', () => { + it('invokes updateCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ); + client.innerApiCalls.updateCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.updateCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ); + client.innerApiCalls.updateCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedHeaderRequestParams = 'custom_metric.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.updateCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() + ); + request.customMetric = {}; + request.customMetric.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateCustomMetric(request), expectedError); + }); + }); + + describe('archiveCustomMetric', () => { + it('invokes archiveCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomMetric = + stubSimpleCall(expectedResponse); + const [response] = await client.archiveCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.archiveCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes archiveCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.archiveCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.archiveCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.archiveCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.archiveCustomMetric(request), expectedError); + }); + }); + + describe('getCustomMetric', () => { + it('invokes getCustomMetric without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ); + client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); + const [response] = await client.getCustomMetric(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomMetric without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ); + client.innerApiCalls.getCustomMetric = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getCustomMetric( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.ICustomMetric | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getCustomMetric with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getCustomMetric = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getCustomMetric(request), expectedError); + assert( + (client.innerApiCalls.getCustomMetric as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCustomMetric with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCustomMetric(request), expectedError); + }); + }); + + describe('getDataRetentionSettings', () => { + it('invokes getDataRetentionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataRetentionSettings() + ); + client.innerApiCalls.getDataRetentionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getDataRetentionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataRetentionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataRetentionSettings() + ); + client.innerApiCalls.getDataRetentionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDataRetentionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IDataRetentionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getDataRetentionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getDataRetentionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getDataRetentionSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataRetentionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getDataRetentionSettings(request), + expectedError + ); + }); + }); + + describe('updateDataRetentionSettings', () => { + it('invokes updateDataRetentionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataRetentionSettings() + ); + client.innerApiCalls.updateDataRetentionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.updateDataRetentionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateDataRetentionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataRetentionSettings() + ); + client.innerApiCalls.updateDataRetentionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateDataRetentionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IDataRetentionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateDataRetentionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedHeaderRequestParams = 'data_retention_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateDataRetentionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateDataRetentionSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.updateDataRetentionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateDataRetentionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() + ); + request.dataRetentionSettings = {}; + request.dataRetentionSettings.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateDataRetentionSettings(request), + expectedError + ); + }); + }); + + describe('createDataStream', () => { + it('invokes createDataStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ); + client.innerApiCalls.createDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.createDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createDataStream without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ); + client.innerApiCalls.createDataStream = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createDataStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createDataStream(request), expectedError); + assert( + (client.innerApiCalls.createDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createDataStream(request), expectedError); + }); + }); + + describe('deleteDataStream', () => { + it('invokes deleteDataStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.deleteDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteDataStream without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDataStream = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteDataStream( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteDataStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteDataStream(request), expectedError); + assert( + (client.innerApiCalls.deleteDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteDataStream(request), expectedError); + }); + }); + + describe('updateDataStream', () => { + it('invokes updateDataStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ); + client.innerApiCalls.updateDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.updateDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateDataStream without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ); + client.innerApiCalls.updateDataStream = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateDataStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedHeaderRequestParams = 'data_stream.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateDataStream(request), expectedError); + assert( + (client.innerApiCalls.updateDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() + ); + request.dataStream = {}; + request.dataStream.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateDataStream(request), expectedError); + }); + }); + + describe('getDataStream', () => { + it('invokes getDataStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ); + client.innerApiCalls.getDataStream = stubSimpleCall(expectedResponse); + const [response] = await client.getDataStream(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataStream without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ); + client.innerApiCalls.getDataStream = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDataStream( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IDataStream | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getDataStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataStreamRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getDataStream = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getDataStream(request), expectedError); + assert( + (client.innerApiCalls.getDataStream as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getDataStream with closed client', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.GetDataStreamRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDataStream(request), expectedError); + }); + }); + + describe('listAccounts', () => { + it('invokes listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + ]; + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1beta.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('uses async iteration with listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IAccountSummary[] = + []; + const iterable = client.listAccountSummariesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountSummariesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IAccountSummary[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listProperties', () => { + it('invokes listProperties without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListPropertiesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + ]; + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listProperties without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListPropertiesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + ]; + client.innerApiCalls.listProperties = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listProperties( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IProperty[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listProperties with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListPropertiesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listProperties = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listProperties(request), expectedError); + assert( + (client.innerApiCalls.listProperties as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listPropertiesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + ]; + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('invokes listPropertiesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('uses async iteration with listProperties without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.Property() + ), + ]; + client.descriptors.page.listProperties.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listProperties.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listProperties with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listPropertiesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IProperty[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listProperties.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + ]; + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listFirebaseLinks without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + ]; + client.innerApiCalls.listFirebaseLinks = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFirebaseLinks( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IFirebaseLink[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listFirebaseLinks with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFirebaseLinks(request), expectedError); + assert( + (client.innerApiCalls.listFirebaseLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listFirebaseLinksStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + ]; + client.descriptors.page.listFirebaseLinks.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listFirebaseLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.FirebaseLink[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.FirebaseLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listFirebaseLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listFirebaseLinksStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listFirebaseLinks.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listFirebaseLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.FirebaseLink[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.FirebaseLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listFirebaseLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listFirebaseLinks without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.FirebaseLink() + ), + ]; + client.descriptors.page.listFirebaseLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IFirebaseLink[] = + []; + const iterable = client.listFirebaseLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listFirebaseLinks with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listFirebaseLinks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFirebaseLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IFirebaseLink[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + ]; + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCall(expectedResponse); + const [response] = await client.listGoogleAdsLinks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listGoogleAdsLinks without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + ]; + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listGoogleAdsLinks( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1beta.IGoogleAdsLink[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listGoogleAdsLinks with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + assert( + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listGoogleAdsLinksStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + ]; + client.descriptors.page.listGoogleAdsLinks.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listGoogleAdsLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.GoogleAdsLink[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.GoogleAdsLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listGoogleAdsLinksStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listGoogleAdsLinks.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listGoogleAdsLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.GoogleAdsLink[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.GoogleAdsLink) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listGoogleAdsLinks without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.GoogleAdsLink() + ), + ]; + client.descriptors.page.listGoogleAdsLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IGoogleAdsLink[] = + []; + const iterable = client.listGoogleAdsLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listGoogleAdsLinks with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listGoogleAdsLinks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listGoogleAdsLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IGoogleAdsLink[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listMeasurementProtocolSecrets', () => { + it('invokes listMeasurementProtocolSecrets without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + ]; + client.innerApiCalls.listMeasurementProtocolSecrets = + stubSimpleCall(expectedResponse); + const [response] = await client.listMeasurementProtocolSecrets(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listMeasurementProtocolSecrets without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + ]; + client.innerApiCalls.listMeasurementProtocolSecrets = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listMeasurementProtocolSecrets( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listMeasurementProtocolSecrets with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listMeasurementProtocolSecrets(request), + expectedError + ); + assert( + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listMeasurementProtocolSecretsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + ]; + client.descriptors.page.listMeasurementProtocolSecrets.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listMeasurementProtocolSecretsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.MeasurementProtocolSecret[] = + []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1beta.MeasurementProtocolSecret + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) + .getCall(0) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) + ); + assert.strictEqual( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listMeasurementProtocolSecretsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listMeasurementProtocolSecrets.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listMeasurementProtocolSecretsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.MeasurementProtocolSecret[] = + []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1beta.MeasurementProtocolSecret + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) + .getCall(0) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) + ); + assert.strictEqual( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() + ), + ]; + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret[] = + []; + const iterable = client.listMeasurementProtocolSecretsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listMeasurementProtocolSecretsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IMeasurementProtocolSecret[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + ]; + client.innerApiCalls.searchChangeHistoryEvents = + stubSimpleCall(expectedResponse); + const [response] = await client.searchChangeHistoryEvents(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes searchChangeHistoryEvents without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + ]; + client.innerApiCalls.searchChangeHistoryEvents = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.searchChangeHistoryEvents( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1beta.IChangeHistoryEvent[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes searchChangeHistoryEvents with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.searchChangeHistoryEvents(request), + expectedError + ); + assert( + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes searchChangeHistoryEventsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + ]; + client.descriptors.page.searchChangeHistoryEvents.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.searchChangeHistoryEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.ChangeHistoryEvent[] = + []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1beta.ChangeHistoryEvent + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + ); + assert.strictEqual( + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes searchChangeHistoryEventsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedError = new Error('expected'); + client.descriptors.page.searchChangeHistoryEvents.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.searchChangeHistoryEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.ChangeHistoryEvent[] = + []; + stream.on( + 'data', + ( + response: protos.google.analytics.admin.v1beta.ChangeHistoryEvent + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + ); + assert.strictEqual( + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with searchChangeHistoryEvents without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() + ), + ]; + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IChangeHistoryEvent[] = + []; + const iterable = client.searchChangeHistoryEventsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with searchChangeHistoryEvents with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() + ); + request.account = ''; + const expectedHeaderRequestParams = 'account='; + const expectedError = new Error('expected'); + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.searchChangeHistoryEventsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IChangeHistoryEvent[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listConversionEvents', () => { + it('invokes listConversionEvents without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + ]; + client.innerApiCalls.listConversionEvents = + stubSimpleCall(expectedResponse); + const [response] = await client.listConversionEvents(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listConversionEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listConversionEvents without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + ]; + client.innerApiCalls.listConversionEvents = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listConversionEvents( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1beta.IConversionEvent[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listConversionEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listConversionEvents with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listConversionEvents = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listConversionEvents(request), expectedError); + assert( + (client.innerApiCalls.listConversionEvents as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listConversionEventsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + ]; + client.descriptors.page.listConversionEvents.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listConversionEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.ConversionEvent[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.ConversionEvent) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listConversionEvents.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listConversionEvents, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listConversionEvents.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listConversionEventsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listConversionEvents.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listConversionEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.ConversionEvent[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.ConversionEvent) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listConversionEvents.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listConversionEvents, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listConversionEvents.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listConversionEvents without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.ConversionEvent() + ), + ]; + client.descriptors.page.listConversionEvents.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IConversionEvent[] = + []; + const iterable = client.listConversionEventsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listConversionEvents with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listConversionEvents.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listConversionEventsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IConversionEvent[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listCustomDimensions', () => { + it('invokes listCustomDimensions without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + ]; + client.innerApiCalls.listCustomDimensions = + stubSimpleCall(expectedResponse); + const [response] = await client.listCustomDimensions(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listCustomDimensions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listCustomDimensions without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + ]; + client.innerApiCalls.listCustomDimensions = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listCustomDimensions( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1beta.ICustomDimension[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listCustomDimensions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listCustomDimensions with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listCustomDimensions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listCustomDimensions(request), expectedError); + assert( + (client.innerApiCalls.listCustomDimensions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listCustomDimensionsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + ]; + client.descriptors.page.listCustomDimensions.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listCustomDimensionsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.CustomDimension[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.CustomDimension) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomDimensions, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomDimensions.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listCustomDimensionsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomDimensions.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listCustomDimensionsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.CustomDimension[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.CustomDimension) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomDimensions, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomDimensions.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listCustomDimensions without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomDimension() + ), + ]; + client.descriptors.page.listCustomDimensions.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.ICustomDimension[] = + []; + const iterable = client.listCustomDimensionsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listCustomDimensions with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomDimensions.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listCustomDimensionsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.ICustomDimension[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listCustomMetrics', () => { + it('invokes listCustomMetrics without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + ]; + client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomMetrics(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listCustomMetrics as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listCustomMetrics without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + ]; + client.innerApiCalls.listCustomMetrics = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listCustomMetrics( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.ICustomMetric[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listCustomMetrics as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listCustomMetrics with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listCustomMetrics = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listCustomMetrics(request), expectedError); + assert( + (client.innerApiCalls.listCustomMetrics as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listCustomMetricsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + ]; + client.descriptors.page.listCustomMetrics.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listCustomMetricsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.CustomMetric[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.CustomMetric) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomMetrics, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomMetrics.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listCustomMetricsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomMetrics.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listCustomMetricsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.CustomMetric[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.CustomMetric) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomMetrics, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomMetrics.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listCustomMetrics without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.CustomMetric() + ), + ]; + client.descriptors.page.listCustomMetrics.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.ICustomMetric[] = + []; + const iterable = client.listCustomMetricsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listCustomMetrics with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomMetrics.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listCustomMetricsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.ICustomMetric[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listDataStreams', () => { + it('invokes listDataStreams without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + ]; + client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); + const [response] = await client.listDataStreams(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listDataStreams without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + ]; + client.innerApiCalls.listDataStreams = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDataStreams( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1beta.IDataStream[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listDataStreams with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listDataStreams = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDataStreams(request), expectedError); + assert( + (client.innerApiCalls.listDataStreams as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listDataStreamsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + ]; + client.descriptors.page.listDataStreams.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.DataStream[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.DataStream) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDataStreams.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataStreams, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listDataStreams.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listDataStreamsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listDataStreams.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDataStreamsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1beta.DataStream[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1beta.DataStream) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDataStreams.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataStreams, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listDataStreams.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listDataStreams without error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1beta.DataStream() + ), + ]; + client.descriptors.page.listDataStreams.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1beta.IDataStream[] = []; + const iterable = client.listDataStreamsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataStreams.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listDataStreams.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listDataStreams with error', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listDataStreams.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDataStreamsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1beta.IDataStream[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataStreams.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listDataStreams.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('Path templates', () => { + describe('account', () => { + const fakePath = '/rendered/path/account'; + const expectedParameters = { + account: 'accountValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.accountPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.accountPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('accountPath', () => { + const result = client.accountPath('accountValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.accountPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchAccountFromAccountName', () => { + const result = client.matchAccountFromAccountName(fakePath); + assert.strictEqual(result, 'accountValue'); + assert( + (client.pathTemplates.accountPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('accountSummary', () => { + const fakePath = '/rendered/path/accountSummary'; + const expectedParameters = { + account_summary: 'accountSummaryValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.accountSummaryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.accountSummaryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('accountSummaryPath', () => { + const result = client.accountSummaryPath('accountSummaryValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.accountSummaryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchAccountSummaryFromAccountSummaryName', () => { + const result = + client.matchAccountSummaryFromAccountSummaryName(fakePath); + assert.strictEqual(result, 'accountSummaryValue'); + assert( + (client.pathTemplates.accountSummaryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('conversionEvent', () => { + const fakePath = '/rendered/path/conversionEvent'; + const expectedParameters = { + property: 'propertyValue', + conversion_event: 'conversionEventValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.conversionEventPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.conversionEventPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('conversionEventPath', () => { + const result = client.conversionEventPath( + 'propertyValue', + 'conversionEventValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.conversionEventPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromConversionEventName', () => { + const result = client.matchPropertyFromConversionEventName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.conversionEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversionEventFromConversionEventName', () => { + const result = + client.matchConversionEventFromConversionEventName(fakePath); + assert.strictEqual(result, 'conversionEventValue'); + assert( + (client.pathTemplates.conversionEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customDimension', () => { + const fakePath = '/rendered/path/customDimension'; + const expectedParameters = { + property: 'propertyValue', + custom_dimension: 'customDimensionValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customDimensionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customDimensionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customDimensionPath', () => { + const result = client.customDimensionPath( + 'propertyValue', + 'customDimensionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customDimensionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromCustomDimensionName', () => { + const result = client.matchPropertyFromCustomDimensionName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.customDimensionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomDimensionFromCustomDimensionName', () => { + const result = + client.matchCustomDimensionFromCustomDimensionName(fakePath); + assert.strictEqual(result, 'customDimensionValue'); + assert( + (client.pathTemplates.customDimensionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customMetric', () => { + const fakePath = '/rendered/path/customMetric'; + const expectedParameters = { + property: 'propertyValue', + custom_metric: 'customMetricValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customMetricPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customMetricPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customMetricPath', () => { + const result = client.customMetricPath( + 'propertyValue', + 'customMetricValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customMetricPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromCustomMetricName', () => { + const result = client.matchPropertyFromCustomMetricName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.customMetricPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomMetricFromCustomMetricName', () => { + const result = client.matchCustomMetricFromCustomMetricName(fakePath); + assert.strictEqual(result, 'customMetricValue'); + assert( + (client.pathTemplates.customMetricPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataRetentionSettings', () => { + const fakePath = '/rendered/path/dataRetentionSettings'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataRetentionSettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataRetentionSettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataRetentionSettingsPath', () => { + const result = client.dataRetentionSettingsPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.dataRetentionSettingsPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromDataRetentionSettingsName', () => { + const result = + client.matchPropertyFromDataRetentionSettingsName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates.dataRetentionSettingsPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataSharingSettings', () => { + const fakePath = '/rendered/path/dataSharingSettings'; + const expectedParameters = { + account: 'accountValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataSharingSettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataSharingSettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataSharingSettingsPath', () => { + const result = client.dataSharingSettingsPath('accountValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.dataSharingSettingsPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchAccountFromDataSharingSettingsName', () => { + const result = client.matchAccountFromDataSharingSettingsName(fakePath); + assert.strictEqual(result, 'accountValue'); + assert( + ( + client.pathTemplates.dataSharingSettingsPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataStream', () => { + const fakePath = '/rendered/path/dataStream'; + const expectedParameters = { + property: 'propertyValue', + data_stream: 'dataStreamValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataStreamPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataStreamPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataStreamPath', () => { + const result = client.dataStreamPath( + 'propertyValue', + 'dataStreamValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataStreamPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromDataStreamName', () => { + const result = client.matchPropertyFromDataStreamName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.dataStreamPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataStreamFromDataStreamName', () => { + const result = client.matchDataStreamFromDataStreamName(fakePath); + assert.strictEqual(result, 'dataStreamValue'); + assert( + (client.pathTemplates.dataStreamPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('firebaseLink', () => { + const fakePath = '/rendered/path/firebaseLink'; + const expectedParameters = { + property: 'propertyValue', + firebase_link: 'firebaseLinkValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.firebaseLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.firebaseLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('firebaseLinkPath', () => { + const result = client.firebaseLinkPath( + 'propertyValue', + 'firebaseLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.firebaseLinkPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromFirebaseLinkName', () => { + const result = client.matchPropertyFromFirebaseLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.firebaseLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFirebaseLinkFromFirebaseLinkName', () => { + const result = client.matchFirebaseLinkFromFirebaseLinkName(fakePath); + assert.strictEqual(result, 'firebaseLinkValue'); + assert( + (client.pathTemplates.firebaseLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('googleAdsLink', () => { + const fakePath = '/rendered/path/googleAdsLink'; + const expectedParameters = { + property: 'propertyValue', + google_ads_link: 'googleAdsLinkValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.googleAdsLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.googleAdsLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('googleAdsLinkPath', () => { + const result = client.googleAdsLinkPath( + 'propertyValue', + 'googleAdsLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.googleAdsLinkPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromGoogleAdsLinkName', () => { + const result = client.matchPropertyFromGoogleAdsLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.googleAdsLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchGoogleAdsLinkFromGoogleAdsLinkName', () => { + const result = client.matchGoogleAdsLinkFromGoogleAdsLinkName(fakePath); + assert.strictEqual(result, 'googleAdsLinkValue'); + assert( + (client.pathTemplates.googleAdsLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('measurementProtocolSecret', () => { + const fakePath = '/rendered/path/measurementProtocolSecret'; + const expectedParameters = { + property: 'propertyValue', + data_stream: 'dataStreamValue', + measurement_protocol_secret: 'measurementProtocolSecretValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.measurementProtocolSecretPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.measurementProtocolSecretPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('measurementProtocolSecretPath', () => { + const result = client.measurementProtocolSecretPath( + 'propertyValue', + 'dataStreamValue', + 'measurementProtocolSecretValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromMeasurementProtocolSecretName', () => { + const result = + client.matchPropertyFromMeasurementProtocolSecretName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataStreamFromMeasurementProtocolSecretName', () => { + const result = + client.matchDataStreamFromMeasurementProtocolSecretName(fakePath); + assert.strictEqual(result, 'dataStreamValue'); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMeasurementProtocolSecretFromMeasurementProtocolSecretName', () => { + const result = + client.matchMeasurementProtocolSecretFromMeasurementProtocolSecretName( + fakePath + ); + assert.strictEqual(result, 'measurementProtocolSecretValue'); + assert( + ( + client.pathTemplates.measurementProtocolSecretPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('property', () => { + const fakePath = '/rendered/path/property'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.propertyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.propertyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('propertyPath', () => { + const result = client.propertyPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.propertyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromPropertyName', () => { + const result = client.matchPropertyFromPropertyName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.propertyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); From f57478da40b70cd625254aa88a2d1d98ce7eb596 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Jul 2022 14:58:48 -0400 Subject: [PATCH 122/142] chore(main): release 4.2.0 (#213) See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-analytics-admin/CHANGELOG.md | 7 +++++++ packages/google-analytics-admin/package.json | 2 +- .../snippet_metadata.google.analytics.admin.v1alpha.json | 2 +- .../snippet_metadata.google.analytics.admin.v1beta.json | 2 +- packages/google-analytics-admin/samples/package.json | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 46115f59141..be4318b981e 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.2.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v4.1.0...v4.2.0) (2022-07-04) + + +### Features + +* release the Google Analytics Admin API V1 Beta ([bb17208](https://github.com/googleapis/nodejs-analytics-admin/commit/bb17208fbd0a9dd945bb51e8e9281886da35a9cc)) + ## [4.1.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v4.0.0...v4.1.0) (2022-06-29) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 4ef3c5f0759..a2742d80fcd 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "4.1.0", + "version": "4.2.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index 7f85999b495..baac4ffb537 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "4.1.0", + "version": "4.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json index 218fee1aa47..2ff3d3f8dec 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json +++ b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "4.1.0", + "version": "4.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index 2ae183ac874..adc8059ecb1 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^4.1.0", + "@google-analytics/admin": "^4.2.0", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From fa154f623d177de13fd37e4851a8270a2e7040bd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 8 Jul 2022 23:08:23 +0200 Subject: [PATCH 123/142] chore(deps): update dependency linkinator to v4 (#214) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [linkinator](https://togithub.com/JustinBeckwith/linkinator) | [`^2.1.1` -> `^4.0.0`](https://renovatebot.com/diffs/npm/linkinator/2.16.2/4.0.0) | [![age](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/compatibility-slim/2.16.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/confidence-slim/2.16.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
JustinBeckwith/linkinator ### [`v4.0.0`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v4.0.0) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.1.0...v4.0.0) ##### Features - create new release with notes ([#​508](https://togithub.com/JustinBeckwith/linkinator/issues/508)) ([2cab633](https://togithub.com/JustinBeckwith/linkinator/commit/2cab633c9659eb10794a4bac06f8b0acdc3e2c0c)) ##### BREAKING CHANGES - The commits in [#​507](https://togithub.com/JustinBeckwith/linkinator/issues/507) and [#​506](https://togithub.com/JustinBeckwith/linkinator/issues/506) both had breaking changes. They included dropping support for Node.js 12.x and updating the CSV export to be streaming, and to use a new way of writing the CSV file. This is an empty to commit using the `BREAKING CHANGE` format in the commit message to ensure a release is triggered. ### [`v3.1.0`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.1.0) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.6...v3.1.0) ##### Features - allow --skip to be defined multiple times ([#​399](https://togithub.com/JustinBeckwith/linkinator/issues/399)) ([5ca5a46](https://togithub.com/JustinBeckwith/linkinator/commit/5ca5a461508e688de12e5ae6b4cfb6565f832ebf)) ### [`v3.0.6`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.6) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.5...v3.0.6) ##### Bug Fixes - **deps:** upgrade node-glob to v8 ([#​397](https://togithub.com/JustinBeckwith/linkinator/issues/397)) ([d334dc6](https://togithub.com/JustinBeckwith/linkinator/commit/d334dc6734cd7c2b73d7ed3dea0550a6c3072ad5)) ### [`v3.0.5`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.5) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.4...v3.0.5) ##### Bug Fixes - **deps:** upgrade to htmlparser2 v8.0.1 ([#​396](https://togithub.com/JustinBeckwith/linkinator/issues/396)) ([ba3b9a8](https://togithub.com/JustinBeckwith/linkinator/commit/ba3b9a8a9b19d39af6ed91790135e833b80c1eb6)) ### [`v3.0.4`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.4) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.3...v3.0.4) ##### Bug Fixes - **deps:** update dependency gaxios to v5 ([#​391](https://togithub.com/JustinBeckwith/linkinator/issues/391)) ([48af50e](https://togithub.com/JustinBeckwith/linkinator/commit/48af50e787731204aeb7eff41325c62291311e45)) ### [`v3.0.3`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.3) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.2...v3.0.3) ##### Bug Fixes - export getConfig from index ([#​371](https://togithub.com/JustinBeckwith/linkinator/issues/371)) ([0bc0355](https://togithub.com/JustinBeckwith/linkinator/commit/0bc0355c7e2ea457f247e6b52d1577b8c4ecb3a1)) ### [`v3.0.2`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.2) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.1...v3.0.2) ##### Bug Fixes - allow server root with trailing slash ([#​370](https://togithub.com/JustinBeckwith/linkinator/issues/370)) ([8adf6b0](https://togithub.com/JustinBeckwith/linkinator/commit/8adf6b025fda250e38461f1cdad40fe08c3b3b7c)) ### [`v3.0.1`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.1) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.0...v3.0.1) ##### Bug Fixes - decode path parts in local web server ([#​369](https://togithub.com/JustinBeckwith/linkinator/issues/369)) ([4696a0c](https://togithub.com/JustinBeckwith/linkinator/commit/4696a0c38c341b178ed815f47371fca955979feb)) ### [`v3.0.0`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.0) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v2.16.2...v3.0.0) ##### Bug Fixes - **deps:** update dependency chalk to v5 ([#​362](https://togithub.com/JustinBeckwith/linkinator/issues/362)) ([4b17a8d](https://togithub.com/JustinBeckwith/linkinator/commit/4b17a8d87b649eaf813428f8ee6955e1d21dae4f)) - feat!: convert to es modules, drop node 10 ([#​359](https://togithub.com/JustinBeckwith/linkinator/issues/359)) ([efee299](https://togithub.com/JustinBeckwith/linkinator/commit/efee299ab8a805accef751eecf8538915a4e7783)), closes [#​359](https://togithub.com/JustinBeckwith/linkinator/issues/359) ##### BREAKING CHANGES - this module now requires node.js 12 and above, and has moved to es modules by default.
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index a2742d80fcd..ce67ccf8fc0 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -52,7 +52,7 @@ "jsdoc": "^3.6.4", "jsdoc-fresh": "^2.0.0", "jsdoc-region-tag": "^2.0.0", - "linkinator": "^2.1.1", + "linkinator": "^4.0.0", "mocha": "^9.2.2", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", From 23e9f6eac49875992035048b9a80cb0a605a3d48 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 00:10:11 +0000 Subject: [PATCH 124/142] fix: better support for fallback mode (#216) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: https://github.com/googleapis/googleapis/commit/873ab456273d105245df0fb82a6c17a814553b80 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9 feat: add `RunAccessReport` method to the Admin API v1alpha PiperOrigin-RevId: 465589484 Source-Link: https://github.com/googleapis/googleapis/commit/80bf61314ccea09709feb8e2e681da956cd0ba95 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c015f3c725de4de9015dd83c55b2ec7eb05338dc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzAxNWYzYzcyNWRlNGRlOTAxNWRkODNjNTViMmVjN2ViMDUzMzhkYyJ9 feat: add `GetAudience`, 'ListAudience', 'CreateAudience', 'UpdateAudience', 'ArchiveAudience' methods to the Admin API v1alpha feat: add `GetAttributionSettings`, `UpdateAttributionSettings` methods to the Admin API v1alpha PiperOrigin-RevId: 465469599 Source-Link: https://github.com/googleapis/googleapis/commit/2f00b9a0691e88fcb466976a86ba79cd04313100 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f4f8a0c0633863de9411d3a110fa93d8e0a93107 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjRmOGEwYzA2MzM4NjNkZTk0MTFkM2ExMTBmYTkzZDhlMGE5MzEwNyJ9 --- .../admin/v1alpha/access_report.proto | 328 + .../admin/v1alpha/analytics_admin.proto | 292 + .../analytics/admin/v1alpha/audience.proto | 419 + .../analytics/admin/v1alpha/resources.proto | 145 +- .../google-analytics-admin/protos/protos.d.ts | 13840 ++++-- .../google-analytics-admin/protos/protos.js | 34831 +++++++++++----- .../google-analytics-admin/protos/protos.json | 1456 +- ...ervice.acknowledge_user_data_collection.js | 3 + ...splay_video360_advertiser_link_proposal.js | 3 + ...nalytics_admin_service.archive_audience.js | 61 + ..._admin_service.archive_custom_dimension.js | 3 + ...ics_admin_service.archive_custom_metric.js | 3 + ...nalytics_admin_service.audit_user_links.js | 3 + ...s_admin_service.batch_create_user_links.js | 3 + ...s_admin_service.batch_delete_user_links.js | 3 + ...tics_admin_service.batch_get_user_links.js | 3 + ...s_admin_service.batch_update_user_links.js | 3 + ...splay_video360_advertiser_link_proposal.js | 3 + ...analytics_admin_service.create_audience.js | 66 + ...s_admin_service.create_conversion_event.js | 3 + ...s_admin_service.create_custom_dimension.js | 3 + ...tics_admin_service.create_custom_metric.js | 3 + ...lytics_admin_service.create_data_stream.js | 3 + ...create_display_video360_advertiser_link.js | 3 + ...splay_video360_advertiser_link_proposal.js | 3 + ...tics_admin_service.create_firebase_link.js | 3 + ...cs_admin_service.create_google_ads_link.js | 3 + ...vice.create_measurement_protocol_secret.js | 3 + ...analytics_admin_service.create_property.js | 3 + ...nalytics_admin_service.create_user_link.js | 3 + .../analytics_admin_service.delete_account.js | 3 + ...s_admin_service.delete_conversion_event.js | 3 + ...lytics_admin_service.delete_data_stream.js | 3 + ...delete_display_video360_advertiser_link.js | 3 + ...splay_video360_advertiser_link_proposal.js | 3 + ...tics_admin_service.delete_firebase_link.js | 3 + ...cs_admin_service.delete_google_ads_link.js | 3 + ...vice.delete_measurement_protocol_secret.js | 3 + ...analytics_admin_service.delete_property.js | 3 + ...nalytics_admin_service.delete_user_link.js | 3 + .../analytics_admin_service.get_account.js | 3 + ..._admin_service.get_attribution_settings.js | 62 + .../analytics_admin_service.get_audience.js | 62 + ...tics_admin_service.get_conversion_event.js | 3 + ...tics_admin_service.get_custom_dimension.js | 3 + ...alytics_admin_service.get_custom_metric.js | 3 + ...min_service.get_data_retention_settings.js | 3 + ...admin_service.get_data_sharing_settings.js | 3 + ...analytics_admin_service.get_data_stream.js | 3 + ...ce.get_display_video360_advertiser_link.js | 3 + ...splay_video360_advertiser_link_proposal.js | 3 + ...ytics_admin_service.get_global_site_tag.js | 3 + ...min_service.get_google_signals_settings.js | 3 + ...service.get_measurement_protocol_secret.js | 3 + .../analytics_admin_service.get_property.js | 3 + .../analytics_admin_service.get_user_link.js | 3 + ...cs_admin_service.list_account_summaries.js | 3 + .../analytics_admin_service.list_accounts.js | 3 + .../analytics_admin_service.list_audiences.js | 76 + ...cs_admin_service.list_conversion_events.js | 3 + ...cs_admin_service.list_custom_dimensions.js | 3 + ...ytics_admin_service.list_custom_metrics.js | 3 + ...alytics_admin_service.list_data_streams.js | 3 + ...play_video360_advertiser_link_proposals.js | 3 + ....list_display_video360_advertiser_links.js | 3 + ...ytics_admin_service.list_firebase_links.js | 3 + ...ics_admin_service.list_google_ads_links.js | 3 + ...rvice.list_measurement_protocol_secrets.js | 3 + ...analytics_admin_service.list_properties.js | 3 + ...analytics_admin_service.list_user_links.js | 3 + ..._admin_service.provision_account_ticket.js | 3 + ...alytics_admin_service.run_access_report.js | 134 + ...in_service.search_change_history_events.js | 3 + .../analytics_admin_service.update_account.js | 3 + ...min_service.update_attribution_settings.js | 69 + ...analytics_admin_service.update_audience.js | 69 + ...s_admin_service.update_custom_dimension.js | 3 + ...tics_admin_service.update_custom_metric.js | 3 + ..._service.update_data_retention_settings.js | 3 + ...lytics_admin_service.update_data_stream.js | 3 + ...update_display_video360_advertiser_link.js | 3 + ...cs_admin_service.update_google_ads_link.js | 3 + ..._service.update_google_signals_settings.js | 3 + ...vice.update_measurement_protocol_secret.js | 3 + ...analytics_admin_service.update_property.js | 3 + ...nalytics_admin_service.update_user_link.js | 3 + ...tadata.google.analytics.admin.v1alpha.json | 522 +- ...ervice.acknowledge_user_data_collection.js | 3 + ..._admin_service.archive_custom_dimension.js | 3 + ...ics_admin_service.archive_custom_metric.js | 3 + ...s_admin_service.create_conversion_event.js | 3 + ...s_admin_service.create_custom_dimension.js | 3 + ...tics_admin_service.create_custom_metric.js | 3 + ...lytics_admin_service.create_data_stream.js | 3 + ...tics_admin_service.create_firebase_link.js | 3 + ...cs_admin_service.create_google_ads_link.js | 3 + ...vice.create_measurement_protocol_secret.js | 3 + ...analytics_admin_service.create_property.js | 3 + .../analytics_admin_service.delete_account.js | 3 + ...s_admin_service.delete_conversion_event.js | 3 + ...lytics_admin_service.delete_data_stream.js | 3 + ...tics_admin_service.delete_firebase_link.js | 3 + ...cs_admin_service.delete_google_ads_link.js | 3 + ...vice.delete_measurement_protocol_secret.js | 3 + ...analytics_admin_service.delete_property.js | 3 + .../analytics_admin_service.get_account.js | 3 + ...tics_admin_service.get_conversion_event.js | 3 + ...tics_admin_service.get_custom_dimension.js | 3 + ...alytics_admin_service.get_custom_metric.js | 3 + ...min_service.get_data_retention_settings.js | 3 + ...admin_service.get_data_sharing_settings.js | 3 + ...analytics_admin_service.get_data_stream.js | 3 + ...service.get_measurement_protocol_secret.js | 3 + .../analytics_admin_service.get_property.js | 3 + ...cs_admin_service.list_account_summaries.js | 3 + .../analytics_admin_service.list_accounts.js | 3 + ...cs_admin_service.list_conversion_events.js | 3 + ...cs_admin_service.list_custom_dimensions.js | 3 + ...ytics_admin_service.list_custom_metrics.js | 3 + ...alytics_admin_service.list_data_streams.js | 3 + ...ytics_admin_service.list_firebase_links.js | 3 + ...ics_admin_service.list_google_ads_links.js | 3 + ...rvice.list_measurement_protocol_secrets.js | 3 + ...analytics_admin_service.list_properties.js | 3 + ..._admin_service.provision_account_ticket.js | 3 + ...in_service.search_change_history_events.js | 3 + .../analytics_admin_service.update_account.js | 3 + ...s_admin_service.update_custom_dimension.js | 3 + ...tics_admin_service.update_custom_metric.js | 3 + ..._service.update_data_retention_settings.js | 3 + ...lytics_admin_service.update_data_stream.js | 3 + ...cs_admin_service.update_google_ads_link.js | 3 + ...vice.update_measurement_protocol_secret.js | 3 + ...analytics_admin_service.update_property.js | 3 + ...etadata.google.analytics.admin.v1beta.json | 94 +- .../v1alpha/analytics_admin_service_client.ts | 1529 +- ...analytics_admin_service_client_config.json | 40 + .../analytics_admin_service_proto_list.json | 2 + .../src/v1alpha/gapic_metadata.json | 84 + .../v1beta/analytics_admin_service_client.ts | 48 +- .../gapic_analytics_admin_service_v1alpha.ts | 3660 +- .../gapic_analytics_admin_service_v1beta.ts | 182 +- 142 files changed, 41266 insertions(+), 17159 deletions(-) create mode 100644 packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto create mode 100644 packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto new file mode 100644 index 00000000000..ce6a8aa154f --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto @@ -0,0 +1,328 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; +option java_multiple_files = true; +option java_outer_classname = "AccessReportProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// Dimensions are attributes of your data. For example, the dimension +// `userEmail` indicates the email of the user that accessed reporting data. +// Dimension values in report responses are strings. +message AccessDimension { + // The API name of the dimension. See [Data Access + // Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + // for the list of dimensions supported in this API. + // + // Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + string dimension_name = 1; +} + +// The quantitative measurements of a report. For example, the metric +// `accessCount` is the total number of data access records. +message AccessMetric { + // The API name of the metric. See [Data Access + // Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + // for the list of metrics supported in this API. + // + // Metrics are referenced by name in `metricFilter` & `orderBys`. + string metric_name = 1; +} + +// A contiguous range of days: startDate, startDate + 1, ..., endDate. +message AccessDateRange { + // The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + // be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + // accepted, and in that case, the date is inferred based on the current time + // in the request's time zone. + string start_date = 1; + + // The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + // be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + // also accepted, and in that case, the date is inferred based on the current + // time in the request's time zone. + string end_date = 2; +} + +// Expresses dimension or metric filters. The fields in the same expression need +// to be either all dimensions or all metrics. +message AccessFilterExpression { + // Specify one type of filter expression for `FilterExpression`. + oneof one_expression { + // Each of the FilterExpressions in the and_group has an AND relationship. + AccessFilterExpressionList and_group = 1; + + // Each of the FilterExpressions in the or_group has an OR relationship. + AccessFilterExpressionList or_group = 2; + + // The FilterExpression is NOT of not_expression. + AccessFilterExpression not_expression = 3; + + // A primitive filter. In the same FilterExpression, all of the filter's + // field names need to be either all dimensions or all metrics. + AccessFilter access_filter = 4; + } +} + +// A list of filter expressions. +message AccessFilterExpressionList { + // A list of filter expressions. + repeated AccessFilterExpression expressions = 1; +} + +// An expression to filter dimension or metric values. +message AccessFilter { + // Specify one type of filter for `Filter`. + oneof one_filter { + // Strings related filter. + AccessStringFilter string_filter = 2; + + // A filter for in list values. + AccessInListFilter in_list_filter = 3; + + // A filter for numeric or date values. + AccessNumericFilter numeric_filter = 4; + + // A filter for two values. + AccessBetweenFilter between_filter = 5; + } + + // The dimension name or metric name. + string field_name = 1; +} + +// The filter for strings. +message AccessStringFilter { + // The match type of a string filter. + enum MatchType { + // Unspecified + MATCH_TYPE_UNSPECIFIED = 0; + + // Exact match of the string value. + EXACT = 1; + + // Begins with the string value. + BEGINS_WITH = 2; + + // Ends with the string value. + ENDS_WITH = 3; + + // Contains the string value. + CONTAINS = 4; + + // Full match for the regular expression with the string value. + FULL_REGEXP = 5; + + // Partial match for the regular expression with the string value. + PARTIAL_REGEXP = 6; + } + + // The match type for this filter. + MatchType match_type = 1; + + // The string value used for the matching. + string value = 2; + + // If true, the string value is case sensitive. + bool case_sensitive = 3; +} + +// The result needs to be in a list of string values. +message AccessInListFilter { + // The list of string values. Must be non-empty. + repeated string values = 1; + + // If true, the string value is case sensitive. + bool case_sensitive = 2; +} + +// Filters for numeric or date values. +message AccessNumericFilter { + // The operation applied to a numeric filter. + enum Operation { + // Unspecified. + OPERATION_UNSPECIFIED = 0; + + // Equal + EQUAL = 1; + + // Less than + LESS_THAN = 2; + + // Less than or equal + LESS_THAN_OR_EQUAL = 3; + + // Greater than + GREATER_THAN = 4; + + // Greater than or equal + GREATER_THAN_OR_EQUAL = 5; + } + + // The operation type for this filter. + Operation operation = 1; + + // A numeric value or a date value. + NumericValue value = 2; +} + +// To express that the result needs to be between two numbers (inclusive). +message AccessBetweenFilter { + // Begins with this number. + NumericValue from_value = 1; + + // Ends with this number. + NumericValue to_value = 2; +} + +// To represent a number. +message NumericValue { + // One of a numeric value + oneof one_value { + // Integer value + int64 int64_value = 1; + + // Double value + double double_value = 2; + } +} + +// Order bys define how rows will be sorted in the response. For example, +// ordering rows by descending access count is one ordering, and ordering rows +// by the country string is a different ordering. +message AccessOrderBy { + // Sorts by metric values. + message MetricOrderBy { + // A metric name in the request to order by. + string metric_name = 1; + } + + // Sorts by dimension values. + message DimensionOrderBy { + // Rule to order the string dimension values by. + enum OrderType { + // Unspecified. + ORDER_TYPE_UNSPECIFIED = 0; + + // Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < + // "b" < "z". + ALPHANUMERIC = 1; + + // Case insensitive alphanumeric sort by lower case Unicode code point. + // For example, "2" < "A" < "b" < "X" < "z". + CASE_INSENSITIVE_ALPHANUMERIC = 2; + + // Dimension values are converted to numbers before sorting. For example + // in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + // "25". Non-numeric dimension values all have equal ordering value below + // all numeric values. + NUMERIC = 3; + } + + // A dimension name in the request to order by. + string dimension_name = 1; + + // Controls the rule for dimension value ordering. + OrderType order_type = 2; + } + + // Specify one type of order by for `OrderBy`. + oneof one_order_by { + // Sorts results by a metric's values. + MetricOrderBy metric = 1; + + // Sorts results by a dimension's values. + DimensionOrderBy dimension = 2; + } + + // If true, sorts by descending order. If false or unspecified, sorts in + // ascending order. + bool desc = 3; +} + +// Describes a dimension column in the report. Dimensions requested in a report +// produce column entries within rows and DimensionHeaders. However, dimensions +// used exclusively within filters or expressions do not produce columns in a +// report; correspondingly, those dimensions do not produce headers. +message AccessDimensionHeader { + // The dimension's name; for example 'userEmail'. + string dimension_name = 1; +} + +// Describes a metric column in the report. Visible metrics requested in a +// report produce column entries within rows and MetricHeaders. However, +// metrics used exclusively within filters or expressions do not produce columns +// in a report; correspondingly, those metrics do not produce headers. +message AccessMetricHeader { + // The metric's name; for example 'accessCount'. + string metric_name = 1; +} + +// Access report data for each row. +message AccessRow { + // List of dimension values. These values are in the same order as specified + // in the request. + repeated AccessDimensionValue dimension_values = 1; + + // List of metric values. These values are in the same order as specified + // in the request. + repeated AccessMetricValue metric_values = 2; +} + +// The value of a dimension. +message AccessDimensionValue { + // The dimension value. For example, this value may be 'France' for the + // 'country' dimension. + string value = 1; +} + +// The value of a metric. +message AccessMetricValue { + // The measurement value. For example, this value may be '13'. + string value = 1; +} + +// Current state of all quotas for this Analytics property. If any quota for a +// property is exhausted, all requests to that property will return Resource +// Exhausted errors. +message AccessQuota { + // Properties can use 250,000 tokens per day. Most requests consume fewer than + // 10 tokens. + AccessQuotaStatus tokens_per_day = 1; + + // Properties can use 50,000 tokens per hour. An API request consumes a single + // number of tokens, and that number is deducted from both the hourly and + // daily quotas. + AccessQuotaStatus tokens_per_hour = 2; + + // Properties can use up to 50 concurrent requests. + AccessQuotaStatus concurrent_requests = 3; + + // Properties and cloud project pairs can have up to 50 server errors per + // hour. + AccessQuotaStatus server_errors_per_project_per_hour = 4; +} + +// Current state for a particular quota group. +message AccessQuotaStatus { + // Quota consumed by this request. + int32 consumed = 1; + + // Quota remaining after this request. + int32 remaining = 2; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 00fe85460f6..926f91bb335 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.analytics.admin.v1alpha; +import "google/analytics/admin/v1alpha/access_report.proto"; +import "google/analytics/admin/v1alpha/audience.proto"; import "google/analytics/admin/v1alpha/resources.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; @@ -729,6 +731,190 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Lookup for a single Audience. + // Audiences created before 2020 may not be supported. + rpc GetAudience(GetAudienceRequest) returns (Audience) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/audiences/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Audiences on a property. + // Audiences created before 2020 may not be supported. + rpc ListAudiences(ListAudiencesRequest) returns (ListAudiencesResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/audiences" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates an Audience. + rpc CreateAudience(CreateAudienceRequest) returns (Audience) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/audiences" + body: "audience" + }; + option (google.api.method_signature) = "parent,audience"; + } + + // Updates an Audience on a property. + rpc UpdateAudience(UpdateAudienceRequest) returns (Audience) { + option (google.api.http) = { + patch: "/v1alpha/{audience.name=properties/*/audiences/*}" + body: "audience" + }; + option (google.api.method_signature) = "audience,update_mask"; + } + + // Archives an Audience on a property. + rpc ArchiveAudience(ArchiveAudienceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/audiences/*}:archive" + body: "*" + }; + } + + // Lookup for a AttributionSettings singleton. + rpc GetAttributionSettings(GetAttributionSettingsRequest) returns (AttributionSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/attributionSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates attribution settings on a property. + rpc UpdateAttributionSettings(UpdateAttributionSettingsRequest) returns (AttributionSettings) { + option (google.api.http) = { + patch: "/v1alpha/{attribution_settings.name=properties/*/attributionSettings}" + body: "attribution_settings" + }; + option (google.api.method_signature) = "attribution_settings,update_mask"; + } + + // Returns a customized report of data access records. The report provides + // records of each time a user reads Google Analytics reporting data. Access + // records are retained for up to 2 years. + // + // Data Access Reports can be requested for a property. The property must be + // in Google Analytics 360. This method is only available to Administrators. + // + // These data access records include GA4 UI Reporting, GA4 UI Explorations, + // GA4 Data API, and other products like Firebase & Admob that can retrieve + // data from Google Analytics through a linkage. These records don't include + // property configuration changes like adding a stream or changing a + // property's time zone. For configuration change history, see + // [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + rpc RunAccessReport(RunAccessReportRequest) returns (RunAccessReportResponse) { + option (google.api.http) = { + post: "/v1alpha/{entity=properties/*}:runAccessReport" + body: "*" + }; + } +} + +// The request for a Data Access Record Report. +message RunAccessReportRequest { + // The Data Access Report is requested for this property. + // For example if "123" is your GA4 property ID, then entity should be + // "properties/123". + string entity = 1; + + // The dimensions requested and displayed in the response. Requests are + // allowed up to 9 dimensions. + repeated AccessDimension dimensions = 2; + + // The metrics requested and displayed in the response. Requests are allowed + // up to 10 metrics. + repeated AccessMetric metrics = 3; + + // Date ranges of access records to read. If multiple date ranges are + // requested, each response row will contain a zero based date range index. If + // two date ranges overlap, the access records for the overlapping days is + // included in the response rows for both date ranges. Requests are allowed up + // to 2 date ranges. + repeated AccessDateRange date_ranges = 4; + + // Dimension filters allow you to restrict report response to specific + // dimension values which match the filter. For example, filtering on access + // records of a single user. To learn more, see [Fundamentals of Dimension + // Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + // for examples. Metrics cannot be used in this filter. + AccessFilterExpression dimension_filter = 5; + + // Metric filters allow you to restrict report response to specific metric + // values which match the filter. Metric filters are applied after aggregating + // the report's rows, similar to SQL having-clause. Dimensions cannot be used + // in this filter. + AccessFilterExpression metric_filter = 6; + + // The row count of the start row. The first row is counted as row 0. If + // offset is unspecified, it is treated as 0. If offset is zero, then this + // method will return the first page of results with `limit` entries. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int64 offset = 7; + + // The number of rows to return. If unspecified, 10,000 rows are returned. The + // API returns a maximum of 100,000 rows per request, no matter how many you + // ask for. `limit` must be positive. + // + // The API may return fewer rows than the requested `limit`, if there aren't + // as many remaining rows as the `limit`. For instance, there are fewer than + // 300 possible values for the dimension `country`, so when reporting on only + // `country`, you can't get more than 300 rows, even if you set `limit` to a + // higher value. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int64 limit = 8; + + // This request's time zone if specified. If unspecified, the property's time + // zone is used. The request's time zone is used to interpret the start & end + // dates of the report. + // + // Formatted as strings from the IANA Time Zone database + // (https://www.iana.org/time-zones); for example "America/New_York" or + // "Asia/Tokyo". + string time_zone = 9; + + // Specifies how rows are ordered in the response. + repeated AccessOrderBy order_bys = 10; + + // Toggles whether to return the current state of this Analytics Property's + // quota. Quota is returned in [AccessQuota](#AccessQuota). + bool return_entity_quota = 11; +} + +// The customized Data Access Record Report response. +message RunAccessReportResponse { + // The header for a column in the report that corresponds to a specific + // dimension. The number of DimensionHeaders and ordering of DimensionHeaders + // matches the dimensions present in rows. + repeated AccessDimensionHeader dimension_headers = 1; + + // The header for a column in the report that corresponds to a specific + // metric. The number of MetricHeaders and ordering of MetricHeaders matches + // the metrics present in rows. + repeated AccessMetricHeader metric_headers = 2; + + // Rows of dimension value combinations and metric values in the report. + repeated AccessRow rows = 3; + + // The total number of rows in the query result. `rowCount` is independent of + // the number of rows returned in the response, the `limit` request + // parameter, and the `offset` request parameter. For example if a query + // returns 175 rows and includes `limit` of 50 in the API request, the + // response will contain `rowCount` of 175 but only 50 rows. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int32 row_count = 4; + + // The quota state for this Analytics property including this request. + AccessQuota quota = 5; } // Request message for GetAccount RPC. @@ -2039,3 +2225,109 @@ message GetDataStreamRequest { } ]; } + +// Request message for GetAudience RPC. +message GetAudienceRequest { + // Required. The name of the Audience to get. + // Example format: properties/1234/audiences/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Audience" + } + ]; +} + +// Request message for ListAudiences RPC. +message ListAudiencesRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/Audience" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListAudiences` call. Provide this + // to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListAudiences` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListAudiences RPC. +message ListAudiencesResponse { + // List of Audiences. + repeated Audience audiences = 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 CreateAudience RPC. +message CreateAudienceRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/Audience" + } + ]; + + // Required. The audience to create. + Audience audience = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateAudience RPC. +message UpdateAudienceRequest { + // Required. The audience to update. + // The audience's `name` field is used to identify the audience to be updated. + Audience audience = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ArchiveAudience RPC. +message ArchiveAudienceRequest { + // Required. Example format: properties/1234/audiences/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/Audience" + } + ]; +} + +// Request message for GetAttributionSettings RPC. +message GetAttributionSettingsRequest { + // Required. The name of the attribution settings to retrieve. + // Format: properties/{property}/attributionSettings + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AttributionSettings" + } + ]; +} + +// Request message for UpdateAttributionSettings RPC +message UpdateAttributionSettingsRequest { + // Required. The attribution settings to update. + // The `name` field is used to identify the settings to be updated. + AttributionSettings attribution_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto new file mode 100644 index 00000000000..e12943e1c9d --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto @@ -0,0 +1,419 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; +option java_multiple_files = true; +option java_outer_classname = "AudienceProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// Specifies how to evaluate users for joining an Audience. +enum AudienceFilterScope { + // Scope is not specified. + AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + + // User joins the Audience if the filter condition is met within one + // event. + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + + // User joins the Audience if the filter condition is met within one + // session. + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + + // User joins the Audience if the filter condition is met by any event + // across any session. + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; +} + +// A specific filter for a single dimension or metric. +message AudienceDimensionOrMetricFilter { + // A filter for a string-type dimension that matches a particular pattern. + message StringFilter { + // The match type for the string filter. + enum MatchType { + // Unspecified + MATCH_TYPE_UNSPECIFIED = 0; + + // Exact match of the string value. + EXACT = 1; + + // Begins with the string value. + BEGINS_WITH = 2; + + // Ends with the string value. + ENDS_WITH = 3; + + // Contains the string value. + CONTAINS = 4; + + // Full regular expression matches with the string value. + FULL_REGEXP = 5; + + // Partial regular expression matches with the string value. + PARTIAL_REGEXP = 6; + } + + // Required. The match type for the string filter. + MatchType match_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The string value to be matched against. + string value = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the match is case-sensitive. If false, the match is + // case-insensitive. + bool case_sensitive = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // A filter for a string dimension that matches a particular list of options. + message InListFilter { + // Required. The list of possible string values to match against. Must be non-empty. + repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the match is case-sensitive. If false, the match is + // case-insensitive. + bool case_sensitive = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // To represent a number. + message NumericValue { + // One of a numeric value. + oneof one_value { + // Integer value. + int64 int64_value = 1; + + // Double value. + double double_value = 2; + } + } + + // A filter for numeric or date values on a dimension or metric. + message NumericFilter { + // The operation applied to a numeric filter. + enum Operation { + // Unspecified. + OPERATION_UNSPECIFIED = 0; + + // Equal. + EQUAL = 1; + + // Less than. + LESS_THAN = 2; + + // Less than or equal. + LESS_THAN_OR_EQUAL = 3; + + // Greater than. + GREATER_THAN = 4; + + // Greater than or equal. + GREATER_THAN_OR_EQUAL = 5; + } + + // Required. The operation applied to a numeric filter. + Operation operation = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The numeric or date value to match against. + NumericValue value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // A filter for numeric or date values between certain values on a dimension + // or metric. + message BetweenFilter { + // Required. Begins with this number, inclusive. + NumericValue from_value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ends with this number, inclusive. + NumericValue to_value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // One of the above filters. + oneof one_filter { + // A filter for a string-type dimension that matches a particular pattern. + StringFilter string_filter = 2; + + // A filter for a string dimension that matches a particular list of + // options. + InListFilter in_list_filter = 3; + + // A filter for numeric or date values on a dimension or metric. + NumericFilter numeric_filter = 4; + + // A filter for numeric or date values between certain values on a dimension + // or metric. + BetweenFilter between_filter = 5; + } + + // Required. Immutable. The dimension name or metric name to filter. + string field_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Indicates whether this filter needs dynamic evaluation or not. If set to + // true, users join the Audience if they ever met the condition (static + // evaluation). If unset or set to false, user evaluation for an Audience is + // dynamic; users are added to an Audience when they meet the conditions and + // then removed when they no longer meet them. + // + // This can only be set when Audience scope is ACROSS_ALL_SESSIONS. + bool at_any_point_in_time = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, specifies the time window for which to evaluate data in number of + // days. If not set, then audience data is evaluated against lifetime data + // (i.e., infinite time window). + // + // For example, if set to 1 day, only the current day's data is evaluated. The + // reference point is the current day when at_any_point_in_time is unset or + // false. + // + // It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be + // greater than 60 days. + int32 in_any_n_day_period = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// A filter that matches events of a single event name. If an event parameter +// is specified, only the subset of events that match both the single event name +// and the parameter filter expressions match this event filter. +message AudienceEventFilter { + // Required. Immutable. The name of the event to match against. + string event_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If specified, this filter matches events that match both the single + // event name and the parameter filter expressions. AudienceEventFilter + // inside the parameter filter expression cannot be set (i.e., nested + // event filters are not supported). This should be a single and_group of + // dimension_or_metric_filter or not_expression; ANDs of ORs are not + // supported. Also, if it includes a filter for "eventCount", only that one + // will be considered; all the other filters will be ignored. + AudienceFilterExpression event_parameter_filter_expression = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// A logical expression of Audience dimension, metric, or event filters. +message AudienceFilterExpression { + // The expression applied to a filter. + oneof expr { + // A list of expressions to be AND’ed together. It can only contain + // AudienceFilterExpressions with or_group. This must be set for the top + // level AudienceFilterExpression. + AudienceFilterExpressionList and_group = 1; + + // A list of expressions to OR’ed together. It cannot contain + // AudienceFilterExpressions with and_group or or_group. + AudienceFilterExpressionList or_group = 2; + + // A filter expression to be NOT'ed (i.e., inverted, complemented). It + // can only include a dimension_or_metric_filter. This cannot be set on the + // top level AudienceFilterExpression. + AudienceFilterExpression not_expression = 3; + + // A filter on a single dimension or metric. This cannot be set on the top + // level AudienceFilterExpression. + AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + + // Creates a filter that matches a specific event. This cannot be set on the + // top level AudienceFilterExpression. + AudienceEventFilter event_filter = 5; + } +} + +// A list of Audience filter expressions. +message AudienceFilterExpressionList { + // A list of Audience filter expressions. + repeated AudienceFilterExpression filter_expressions = 1; +} + +// Defines a simple filter that a user must satisfy to be a member of the +// Audience. +message AudienceSimpleFilter { + // Required. Immutable. Specifies the scope for this filter. + AudienceFilterScope scope = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. A logical expression of Audience dimension, metric, or event filters. + AudienceFilterExpression filter_expression = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; +} + +// Defines filters that must occur in a specific order for the user to be a +// member of the Audience. +message AudienceSequenceFilter { + // A condition that must occur in the specified step order for this user + // to match the sequence. + message AudienceSequenceStep { + // Required. Immutable. Specifies the scope for this step. + AudienceFilterScope scope = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If true, the event satisfying this step must be the very next event + // after the event satisfying the last step. If unset or false, this + // step indirectly follows the prior step; for example, there may be + // events between the prior step and this step. It is ignored for the + // first step. + bool immediately_follows = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set, this step must be satisfied within the constraint_duration of + // the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not + // set, there is no duration requirement (the duration is effectively + // unlimited). It is ignored for the first step. + google.protobuf.Duration constraint_duration = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. A logical expression of Audience dimension, metric, or event filters in + // each step. + AudienceFilterExpression filter_expression = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + } + + // Required. Immutable. Specifies the scope for this filter. + AudienceFilterScope scope = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Defines the time period in which the whole sequence must occur. + google.protobuf.Duration sequence_maximum_duration = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. An ordered sequence of steps. A user must complete each step in order to + // join the sequence filter. + repeated AudienceSequenceStep sequence_steps = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// A clause for defining either a simple or sequence filter. A filter can be +// inclusive (i.e., users satisfying the filter clause are included in the +// Audience) or exclusive (i.e., users satisfying the filter clause are +// excluded from the Audience). +message AudienceFilterClause { + // Specifies whether this is an include or exclude filter clause. + enum AudienceClauseType { + // Unspecified clause type. + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + + // Users will be included in the Audience if the filter clause is met. + INCLUDE = 1; + + // Users will be excluded from the Audience if the filter clause is met. + EXCLUDE = 2; + } + + oneof filter { + // A simple filter that a user must satisfy to be a member of the Audience. + AudienceSimpleFilter simple_filter = 2; + + // Filters that must occur in a specific order for the user to be a member + // of the Audience. + AudienceSequenceFilter sequence_filter = 3; + } + + // Required. Specifies whether this is an include or exclude filter clause. + AudienceClauseType clause_type = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Specifies an event to log when a user joins the Audience. +message AudienceEventTrigger { + // Determines when to log the event. + enum LogCondition { + // Log condition is not specified. + LOG_CONDITION_UNSPECIFIED = 0; + + // The event should be logged only when a user is joined. + AUDIENCE_JOINED = 1; + + // The event should be logged whenever the Audience condition is met, even + // if the user is already a member of the Audience. + AUDIENCE_MEMBERSHIP_RENEWED = 2; + } + + // Required. The event name that will be logged. + string event_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. When to log the event. + LogCondition log_condition = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A resource message representing a GA4 Audience. +message Audience { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/Audience" + pattern: "properties/{property}/audiences/{audience}" + }; + + // Specifies how long an exclusion lasts for users that meet the exclusion + // filter. + enum AudienceExclusionDurationMode { + // Not specified. + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + + // Exclude users from the Audience during periods when they meet the + // filter clause. + EXCLUDE_TEMPORARILY = 1; + + // Exclude users from the Audience if they've ever met the filter clause. + EXCLUDE_PERMANENTLY = 2; + } + + // Output only. The resource name for this Audience resource. + // Format: properties/{propertyId}/audiences/{audienceId} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the Audience. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The description of the Audience. + string description = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more + // than 540 days. + int32 membership_duration_days = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. It is automatically set by GA to false if this is an NPA Audience and is + // excluded from ads personalization. + bool ads_personalization_enabled = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Specifies an event to log when a user joins the Audience. If not set, no + // event is logged when a user joins the Audience. + AudienceEventTrigger event_trigger = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. Specifies how long an exclusion lasts for users that meet the exclusion + // filter. It is applied to all EXCLUDE filter clauses and is ignored when + // there is no EXCLUDE filter clause in the Audience. + AudienceExclusionDurationMode exclusion_duration_mode = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed + // together. + repeated AudienceFilterClause filter_clauses = 8 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = UNORDERED_LIST + ]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index d441d107462..337c7fe65fb 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -194,8 +194,14 @@ enum ChangeHistoryResourceType { // DisplayVideo360AdvertiserLinkProposal resource DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + // SearchAds360Link resource + SEARCH_ADS_360_LINK = 16; + // DataStream resource DATA_STREAM = 18; + + // AttributionSettings resource + ATTRIBUTION_SETTINGS = 20; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -272,6 +278,21 @@ enum LinkProposalState { OBSOLETE = 6; } +// Types of Property resources. +enum PropertyType { + // Unknown or unspecified property type + PROPERTY_TYPE_UNSPECIFIED = 0; + + // Ordinary GA4 property + PROPERTY_TYPE_ORDINARY = 1; + + // GA4 subproperty + PROPERTY_TYPE_SUBPROPERTY = 2; + + // GA4 rollup property + PROPERTY_TYPE_ROLLUP = 3; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -313,6 +334,12 @@ message Property { // Example: "properties/1000" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. The property type for this Property resource. When creating a property, if + // the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be + // implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created + // via Google Analytics Admin API. + PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; + // Output only. Time when the entity was originally created. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -322,8 +349,8 @@ message Property { // Immutable. Resource name of this property's logical parent. // // Note: The Property-Moving UI can be used to change the parent. - // Format: accounts/{account} - // Example: "accounts/100" + // Format: accounts/{account}, properties/{property} + // Example: "accounts/100", "properties/101" string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; // Required. Human-readable display name for this property. @@ -682,6 +709,16 @@ message PropertySummary { // Display name for the property referred to in this property summary. string display_name = 2; + + // The property's property type. + PropertyType property_type = 3; + + // Resource name of this property's logical parent. + // + // Note: The Property-Moving UI can be used to change the parent. + // Format: accounts/{account}, properties/{property} + // Example: "accounts/100", "properties/200" + string parent = 4; } // A secret value used for sending hits to Measurement Protocol. @@ -694,7 +731,7 @@ message MeasurementProtocolSecret { // Output only. Resource name of this secret. This secret may be a child of any type of // stream. // Format: - // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name for this secret. @@ -780,6 +817,9 @@ message ChangeHistoryChange { // A snapshot of a DataStream resource in change history. DataStream data_stream = 18; + + // A snapshot of AttributionSettings resource in change history. + AttributionSettings attribution_settings = 20; } } @@ -1159,3 +1199,102 @@ message DataRetentionSettings { // event from that user. bool reset_user_data_on_new_activity = 3; } + +// The attribution settings used for a given property. This is a singleton +// resource. +message AttributionSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AttributionSettings" + pattern: "properties/{property}/attributionSettings" + }; + + // How far back in time events should be considered for inclusion in a + // converting path which leads to the first install of an app or the first + // visit to a site. + enum AcquisitionConversionEventLookbackWindow { + // Lookback window size unspecified. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + + // 7-day lookback window. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + + // 30-day lookback window. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + } + + // How far back in time events should be considered for inclusion in a + // converting path for all conversions other than first app install/first site + // visit. + enum OtherConversionEventLookbackWindow { + // Lookback window size unspecified. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + + // 30-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + + // 60-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + + // 90-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + } + + // The reporting attribution model used to calculate conversion credit in this + // property's reports. + enum ReportingAttributionModel { + // Reporting attribution model unspecified. + REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + + // Data-driven attribution distributes credit for the conversion based on + // data for each conversion event. Each Data-driven model is specific to + // each advertiser and each conversion event. + CROSS_CHANNEL_DATA_DRIVEN = 1; + + // Ignores direct traffic and attributes 100% of the conversion value to the + // last channel that the customer clicked through (or engaged view through + // for YouTube) before converting. + CROSS_CHANNEL_LAST_CLICK = 2; + + // Gives all credit for the conversion to the first channel that a customer + // clicked (or engaged view through for YouTube) before converting. + CROSS_CHANNEL_FIRST_CLICK = 3; + + // Distributes the credit for the conversion equally across all the channels + // a customer clicked (or engaged view through for YouTube) before + // converting. + CROSS_CHANNEL_LINEAR = 4; + + // Attributes 40% credit to the first and last interaction, and the + // remaining 20% credit is distributed evenly to the middle interactions. + CROSS_CHANNEL_POSITION_BASED = 5; + + // Gives more credit to the touchpoints that happened closer in time to + // the conversion. + CROSS_CHANNEL_TIME_DECAY = 6; + + // Attributes 100% of the conversion value to the last Google Ads channel + // that the customer clicked through before converting. + ADS_PREFERRED_LAST_CLICK = 7; + } + + // Output only. Resource name of this attribution settings resource. + // Format: properties/{property_id}/attributionSettings + // Example: "properties/1000/attributionSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The lookback window configuration for acquisition conversion events. + // The default window size is 30 days. + AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The lookback window for all other, non-acquisition conversion events. + // The default window size is 90 days. + OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The reporting attribution model used to calculate conversion credit in this + // property's reports. + // + // Changing the attribution model will apply to both historical and future + // data. These changes will be reflected in reports with conversion and + // revenue data. User and session data will be unaffected. + ReportingAttributionModel reporting_attribution_model = 4 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 0d11bec6f28..31ebc81b692 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -26,10269 +26,15163 @@ export namespace google { /** Namespace v1alpha. */ namespace v1alpha { - /** Represents an AnalyticsAdminService */ - class AnalyticsAdminService extends $protobuf.rpc.Service { + /** Properties of an AccessDimension. */ + interface IAccessDimension { + + /** AccessDimension dimensionName */ + dimensionName?: (string|null); + } + + /** Represents an AccessDimension. */ + class AccessDimension implements IAccessDimension { /** - * Constructs a new AnalyticsAdminService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new AccessDimension. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.analytics.admin.v1alpha.IAccessDimension); + + /** AccessDimension dimensionName. */ + public dimensionName: string; /** - * Creates new AnalyticsAdminService 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. + * Creates a new AccessDimension instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessDimension instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AnalyticsAdminService; + public static create(properties?: google.analytics.admin.v1alpha.IAccessDimension): google.analytics.admin.v1alpha.AccessDimension; /** - * Calls GetAccount. - * @param request GetAccountRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Account + * Encodes the specified AccessDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimension.verify|verify} messages. + * @param message AccessDimension message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getAccount(request: google.analytics.admin.v1alpha.IGetAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccountCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessDimension, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetAccount. - * @param request GetAccountRequest message or plain object - * @returns Promise + * Encodes the specified AccessDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimension.verify|verify} messages. + * @param message AccessDimension message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getAccount(request: google.analytics.admin.v1alpha.IGetAccountRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessDimension, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListAccounts. - * @param request ListAccountsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAccountsResponse + * Decodes an AccessDimension message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listAccounts(request: google.analytics.admin.v1alpha.IListAccountsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessDimension; /** - * Calls ListAccounts. - * @param request ListAccountsRequest message or plain object - * @returns Promise + * Decodes an AccessDimension message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listAccounts(request: google.analytics.admin.v1alpha.IListAccountsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessDimension; /** - * Calls DeleteAccount. - * @param request DeleteAccountRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies an AccessDimension message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteAccount(request: google.analytics.admin.v1alpha.IDeleteAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccountCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteAccount. - * @param request DeleteAccountRequest message or plain object - * @returns Promise + * Creates an AccessDimension message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessDimension */ - public deleteAccount(request: google.analytics.admin.v1alpha.IDeleteAccountRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessDimension; /** - * Calls UpdateAccount. - * @param request UpdateAccountRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Account + * Creates a plain object from an AccessDimension message. Also converts values to other types if specified. + * @param message AccessDimension + * @param [options] Conversion options + * @returns Plain object */ - public updateAccount(request: google.analytics.admin.v1alpha.IUpdateAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccountCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessDimension, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateAccount. - * @param request UpdateAccountRequest message or plain object - * @returns Promise + * Converts this AccessDimension to JSON. + * @returns JSON object */ - public updateAccount(request: google.analytics.admin.v1alpha.IUpdateAccountRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessMetric. */ + interface IAccessMetric { + + /** AccessMetric metricName */ + metricName?: (string|null); + } + + /** Represents an AccessMetric. */ + class AccessMetric implements IAccessMetric { /** - * Calls ProvisionAccountTicket. - * @param request ProvisionAccountTicketRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse + * Constructs a new AccessMetric. + * @param [properties] Properties to set */ - public provisionAccountTicket(request: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicketCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessMetric); + + /** AccessMetric metricName. */ + public metricName: string; /** - * Calls ProvisionAccountTicket. - * @param request ProvisionAccountTicketRequest message or plain object - * @returns Promise + * Creates a new AccessMetric instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessMetric instance */ - public provisionAccountTicket(request: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessMetric): google.analytics.admin.v1alpha.AccessMetric; /** - * Calls ListAccountSummaries. - * @param request ListAccountSummariesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAccountSummariesResponse + * Encodes the specified AccessMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetric.verify|verify} messages. + * @param message AccessMetric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listAccountSummaries(request: google.analytics.admin.v1alpha.IListAccountSummariesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummariesCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListAccountSummaries. - * @param request ListAccountSummariesRequest message or plain object - * @returns Promise + * Encodes the specified AccessMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetric.verify|verify} messages. + * @param message AccessMetric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listAccountSummaries(request: google.analytics.admin.v1alpha.IListAccountSummariesRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetProperty. - * @param request GetPropertyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Property + * Decodes an AccessMetric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getProperty(request: google.analytics.admin.v1alpha.IGetPropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetPropertyCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessMetric; /** - * Calls GetProperty. - * @param request GetPropertyRequest message or plain object - * @returns Promise + * Decodes an AccessMetric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getProperty(request: google.analytics.admin.v1alpha.IGetPropertyRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessMetric; /** - * Calls ListProperties. - * @param request ListPropertiesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPropertiesResponse + * Verifies an AccessMetric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listProperties(request: google.analytics.admin.v1alpha.IListPropertiesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListPropertiesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListProperties. - * @param request ListPropertiesRequest message or plain object - * @returns Promise + * Creates an AccessMetric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessMetric */ - public listProperties(request: google.analytics.admin.v1alpha.IListPropertiesRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessMetric; /** - * Calls CreateProperty. - * @param request CreatePropertyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Property + * Creates a plain object from an AccessMetric message. Also converts values to other types if specified. + * @param message AccessMetric + * @param [options] Conversion options + * @returns Plain object */ - public createProperty(request: google.analytics.admin.v1alpha.ICreatePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreatePropertyCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessMetric, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateProperty. - * @param request CreatePropertyRequest message or plain object - * @returns Promise + * Converts this AccessMetric to JSON. + * @returns JSON object */ - public createProperty(request: google.analytics.admin.v1alpha.ICreatePropertyRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessDateRange. */ + interface IAccessDateRange { + + /** AccessDateRange startDate */ + startDate?: (string|null); + + /** AccessDateRange endDate */ + endDate?: (string|null); + } + + /** Represents an AccessDateRange. */ + class AccessDateRange implements IAccessDateRange { /** - * Calls DeleteProperty. - * @param request DeletePropertyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Property + * Constructs a new AccessDateRange. + * @param [properties] Properties to set */ - public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessDateRange); + + /** AccessDateRange startDate. */ + public startDate: string; + + /** AccessDateRange endDate. */ + public endDate: string; /** - * Calls DeleteProperty. - * @param request DeletePropertyRequest message or plain object - * @returns Promise + * Creates a new AccessDateRange instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessDateRange instance */ - public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessDateRange): google.analytics.admin.v1alpha.AccessDateRange; /** - * Calls UpdateProperty. - * @param request UpdatePropertyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Property + * Encodes the specified AccessDateRange message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDateRange.verify|verify} messages. + * @param message AccessDateRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateProperty(request: google.analytics.admin.v1alpha.IUpdatePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdatePropertyCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessDateRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateProperty. - * @param request UpdatePropertyRequest message or plain object - * @returns Promise + * Encodes the specified AccessDateRange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDateRange.verify|verify} messages. + * @param message AccessDateRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateProperty(request: google.analytics.admin.v1alpha.IUpdatePropertyRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessDateRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetUserLink. - * @param request GetUserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UserLink + * Decodes an AccessDateRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessDateRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getUserLink(request: google.analytics.admin.v1alpha.IGetUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLinkCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessDateRange; /** - * Calls GetUserLink. - * @param request GetUserLinkRequest message or plain object - * @returns Promise + * Decodes an AccessDateRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessDateRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getUserLink(request: google.analytics.admin.v1alpha.IGetUserLinkRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessDateRange; /** - * Calls BatchGetUserLinks. - * @param request BatchGetUserLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchGetUserLinksResponse + * Verifies an AccessDateRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public batchGetUserLinks(request: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinksCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls BatchGetUserLinks. - * @param request BatchGetUserLinksRequest message or plain object - * @returns Promise + * Creates an AccessDateRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessDateRange */ - public batchGetUserLinks(request: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessDateRange; /** - * Calls ListUserLinks. - * @param request ListUserLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListUserLinksResponse + * Creates a plain object from an AccessDateRange message. Also converts values to other types if specified. + * @param message AccessDateRange + * @param [options] Conversion options + * @returns Plain object */ - public listUserLinks(request: google.analytics.admin.v1alpha.IListUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinksCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessDateRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListUserLinks. - * @param request ListUserLinksRequest message or plain object - * @returns Promise + * Converts this AccessDateRange to JSON. + * @returns JSON object */ - public listUserLinks(request: google.analytics.admin.v1alpha.IListUserLinksRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessFilterExpression. */ + interface IAccessFilterExpression { + + /** AccessFilterExpression andGroup */ + andGroup?: (google.analytics.admin.v1alpha.IAccessFilterExpressionList|null); + + /** AccessFilterExpression orGroup */ + orGroup?: (google.analytics.admin.v1alpha.IAccessFilterExpressionList|null); + + /** AccessFilterExpression notExpression */ + notExpression?: (google.analytics.admin.v1alpha.IAccessFilterExpression|null); + + /** AccessFilterExpression accessFilter */ + accessFilter?: (google.analytics.admin.v1alpha.IAccessFilter|null); + } + + /** Represents an AccessFilterExpression. */ + class AccessFilterExpression implements IAccessFilterExpression { /** - * Calls AuditUserLinks. - * @param request AuditUserLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AuditUserLinksResponse + * Constructs a new AccessFilterExpression. + * @param [properties] Properties to set */ - public auditUserLinks(request: google.analytics.admin.v1alpha.IAuditUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinksCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessFilterExpression); + + /** AccessFilterExpression andGroup. */ + public andGroup?: (google.analytics.admin.v1alpha.IAccessFilterExpressionList|null); + + /** AccessFilterExpression orGroup. */ + public orGroup?: (google.analytics.admin.v1alpha.IAccessFilterExpressionList|null); + + /** AccessFilterExpression notExpression. */ + public notExpression?: (google.analytics.admin.v1alpha.IAccessFilterExpression|null); + + /** AccessFilterExpression accessFilter. */ + public accessFilter?: (google.analytics.admin.v1alpha.IAccessFilter|null); + + /** AccessFilterExpression oneExpression. */ + public oneExpression?: ("andGroup"|"orGroup"|"notExpression"|"accessFilter"); /** - * Calls AuditUserLinks. - * @param request AuditUserLinksRequest message or plain object - * @returns Promise + * Creates a new AccessFilterExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessFilterExpression instance */ - public auditUserLinks(request: google.analytics.admin.v1alpha.IAuditUserLinksRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessFilterExpression): google.analytics.admin.v1alpha.AccessFilterExpression; /** - * Calls CreateUserLink. - * @param request CreateUserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UserLink + * Encodes the specified AccessFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpression.verify|verify} messages. + * @param message AccessFilterExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createUserLink(request: google.analytics.admin.v1alpha.ICreateUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLinkCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateUserLink. - * @param request CreateUserLinkRequest message or plain object - * @returns Promise + * Encodes the specified AccessFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpression.verify|verify} messages. + * @param message AccessFilterExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createUserLink(request: google.analytics.admin.v1alpha.ICreateUserLinkRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchCreateUserLinks. - * @param request BatchCreateUserLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchCreateUserLinksResponse + * Decodes an AccessFilterExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessFilterExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchCreateUserLinks(request: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinksCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessFilterExpression; /** - * Calls BatchCreateUserLinks. - * @param request BatchCreateUserLinksRequest message or plain object - * @returns Promise + * Decodes an AccessFilterExpression message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessFilterExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchCreateUserLinks(request: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessFilterExpression; /** - * Calls UpdateUserLink. - * @param request UpdateUserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UserLink + * Verifies an AccessFilterExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateUserLink(request: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLinkCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateUserLink. - * @param request UpdateUserLinkRequest message or plain object - * @returns Promise + * Creates an AccessFilterExpression message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessFilterExpression */ - public updateUserLink(request: google.analytics.admin.v1alpha.IUpdateUserLinkRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessFilterExpression; /** - * Calls BatchUpdateUserLinks. - * @param request BatchUpdateUserLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchUpdateUserLinksResponse + * Creates a plain object from an AccessFilterExpression message. Also converts values to other types if specified. + * @param message AccessFilterExpression + * @param [options] Conversion options + * @returns Plain object */ - public batchUpdateUserLinks(request: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinksCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls BatchUpdateUserLinks. - * @param request BatchUpdateUserLinksRequest message or plain object - * @returns Promise + * Converts this AccessFilterExpression to JSON. + * @returns JSON object */ - public batchUpdateUserLinks(request: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessFilterExpressionList. */ + interface IAccessFilterExpressionList { + + /** AccessFilterExpressionList expressions */ + expressions?: (google.analytics.admin.v1alpha.IAccessFilterExpression[]|null); + } + + /** Represents an AccessFilterExpressionList. */ + class AccessFilterExpressionList implements IAccessFilterExpressionList { /** - * Calls DeleteUserLink. - * @param request DeleteUserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Constructs a new AccessFilterExpressionList. + * @param [properties] Properties to set */ - public deleteUserLink(request: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLinkCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessFilterExpressionList); + + /** AccessFilterExpressionList expressions. */ + public expressions: google.analytics.admin.v1alpha.IAccessFilterExpression[]; /** - * Calls DeleteUserLink. - * @param request DeleteUserLinkRequest message or plain object - * @returns Promise + * Creates a new AccessFilterExpressionList instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessFilterExpressionList instance */ - public deleteUserLink(request: google.analytics.admin.v1alpha.IDeleteUserLinkRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessFilterExpressionList): google.analytics.admin.v1alpha.AccessFilterExpressionList; /** - * Calls BatchDeleteUserLinks. - * @param request BatchDeleteUserLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified AccessFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpressionList.verify|verify} messages. + * @param message AccessFilterExpressionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public batchDeleteUserLinks(request: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinksCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchDeleteUserLinks. - * @param request BatchDeleteUserLinksRequest message or plain object - * @returns Promise + * Encodes the specified AccessFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpressionList.verify|verify} messages. + * @param message AccessFilterExpressionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public batchDeleteUserLinks(request: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateFirebaseLink. - * @param request CreateFirebaseLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FirebaseLink + * Decodes an AccessFilterExpressionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createFirebaseLink(request: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLinkCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessFilterExpressionList; /** - * Calls CreateFirebaseLink. - * @param request CreateFirebaseLinkRequest message or plain object - * @returns Promise + * Decodes an AccessFilterExpressionList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createFirebaseLink(request: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessFilterExpressionList; /** - * Calls DeleteFirebaseLink. - * @param request DeleteFirebaseLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies an AccessFilterExpressionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteFirebaseLink(request: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLinkCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteFirebaseLink. - * @param request DeleteFirebaseLinkRequest message or plain object - * @returns Promise + * Creates an AccessFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessFilterExpressionList */ - public deleteFirebaseLink(request: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessFilterExpressionList; /** - * Calls ListFirebaseLinks. - * @param request ListFirebaseLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse + * Creates a plain object from an AccessFilterExpressionList message. Also converts values to other types if specified. + * @param message AccessFilterExpressionList + * @param [options] Conversion options + * @returns Plain object */ - public listFirebaseLinks(request: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinksCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListFirebaseLinks. - * @param request ListFirebaseLinksRequest message or plain object - * @returns Promise + * Converts this AccessFilterExpressionList to JSON. + * @returns JSON object */ - public listFirebaseLinks(request: google.analytics.admin.v1alpha.IListFirebaseLinksRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessFilter. */ + interface IAccessFilter { + + /** AccessFilter stringFilter */ + stringFilter?: (google.analytics.admin.v1alpha.IAccessStringFilter|null); + + /** AccessFilter inListFilter */ + inListFilter?: (google.analytics.admin.v1alpha.IAccessInListFilter|null); + + /** AccessFilter numericFilter */ + numericFilter?: (google.analytics.admin.v1alpha.IAccessNumericFilter|null); + + /** AccessFilter betweenFilter */ + betweenFilter?: (google.analytics.admin.v1alpha.IAccessBetweenFilter|null); + + /** AccessFilter fieldName */ + fieldName?: (string|null); + } + + /** Represents an AccessFilter. */ + class AccessFilter implements IAccessFilter { /** - * Calls GetGlobalSiteTag. - * @param request GetGlobalSiteTagRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GlobalSiteTag + * Constructs a new AccessFilter. + * @param [properties] Properties to set */ - public getGlobalSiteTag(request: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTagCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessFilter); + + /** AccessFilter stringFilter. */ + public stringFilter?: (google.analytics.admin.v1alpha.IAccessStringFilter|null); + + /** AccessFilter inListFilter. */ + public inListFilter?: (google.analytics.admin.v1alpha.IAccessInListFilter|null); + + /** AccessFilter numericFilter. */ + public numericFilter?: (google.analytics.admin.v1alpha.IAccessNumericFilter|null); + + /** AccessFilter betweenFilter. */ + public betweenFilter?: (google.analytics.admin.v1alpha.IAccessBetweenFilter|null); + + /** AccessFilter fieldName. */ + public fieldName: string; + + /** AccessFilter oneFilter. */ + public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"); /** - * Calls GetGlobalSiteTag. - * @param request GetGlobalSiteTagRequest message or plain object - * @returns Promise + * Creates a new AccessFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessFilter instance */ - public getGlobalSiteTag(request: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessFilter): google.analytics.admin.v1alpha.AccessFilter; /** - * Calls CreateGoogleAdsLink. - * @param request CreateGoogleAdsLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + * Encodes the specified AccessFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilter.verify|verify} messages. + * @param message AccessFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createGoogleAdsLink(request: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLinkCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateGoogleAdsLink. - * @param request CreateGoogleAdsLinkRequest message or plain object - * @returns Promise + * Encodes the specified AccessFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilter.verify|verify} messages. + * @param message AccessFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createGoogleAdsLink(request: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateGoogleAdsLink. - * @param request UpdateGoogleAdsLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + * Decodes an AccessFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateGoogleAdsLink(request: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLinkCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessFilter; /** - * Calls UpdateGoogleAdsLink. - * @param request UpdateGoogleAdsLinkRequest message or plain object - * @returns Promise + * Decodes an AccessFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateGoogleAdsLink(request: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessFilter; /** - * Calls DeleteGoogleAdsLink. - * @param request DeleteGoogleAdsLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies an AccessFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteGoogleAdsLink(request: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLinkCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteGoogleAdsLink. - * @param request DeleteGoogleAdsLinkRequest message or plain object - * @returns Promise + * Creates an AccessFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessFilter */ - public deleteGoogleAdsLink(request: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessFilter; /** - * Calls ListGoogleAdsLinks. - * @param request ListGoogleAdsLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse + * Creates a plain object from an AccessFilter message. Also converts values to other types if specified. + * @param message AccessFilter + * @param [options] Conversion options + * @returns Plain object */ - public listGoogleAdsLinks(request: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinksCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListGoogleAdsLinks. - * @param request ListGoogleAdsLinksRequest message or plain object - * @returns Promise + * Converts this AccessFilter to JSON. + * @returns JSON object */ - public listGoogleAdsLinks(request: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessStringFilter. */ + interface IAccessStringFilter { + + /** AccessStringFilter matchType */ + matchType?: (google.analytics.admin.v1alpha.AccessStringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AccessStringFilter.MatchType|null); + + /** AccessStringFilter value */ + value?: (string|null); + + /** AccessStringFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents an AccessStringFilter. */ + class AccessStringFilter implements IAccessStringFilter { /** - * Calls GetDataSharingSettings. - * @param request GetDataSharingSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataSharingSettings + * Constructs a new AccessStringFilter. + * @param [properties] Properties to set */ - public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettingsCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessStringFilter); + + /** AccessStringFilter matchType. */ + public matchType: (google.analytics.admin.v1alpha.AccessStringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AccessStringFilter.MatchType); + + /** AccessStringFilter value. */ + public value: string; + + /** AccessStringFilter caseSensitive. */ + public caseSensitive: boolean; /** - * Calls GetDataSharingSettings. - * @param request GetDataSharingSettingsRequest message or plain object - * @returns Promise + * Creates a new AccessStringFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessStringFilter instance */ - public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessStringFilter): google.analytics.admin.v1alpha.AccessStringFilter; /** - * Calls GetMeasurementProtocolSecret. - * @param request GetMeasurementProtocolSecretRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * Encodes the specified AccessStringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessStringFilter.verify|verify} messages. + * @param message AccessStringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecretCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetMeasurementProtocolSecret. - * @param request GetMeasurementProtocolSecretRequest message or plain object - * @returns Promise + * Encodes the specified AccessStringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessStringFilter.verify|verify} messages. + * @param message AccessStringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListMeasurementProtocolSecrets. - * @param request ListMeasurementProtocolSecretsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse + * Decodes an AccessStringFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessStringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listMeasurementProtocolSecrets(request: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessStringFilter; /** - * Calls ListMeasurementProtocolSecrets. - * @param request ListMeasurementProtocolSecretsRequest message or plain object - * @returns Promise + * Decodes an AccessStringFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessStringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listMeasurementProtocolSecrets(request: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessStringFilter; /** - * Calls CreateMeasurementProtocolSecret. - * @param request CreateMeasurementProtocolSecretRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * Verifies an AccessStringFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateMeasurementProtocolSecret. - * @param request CreateMeasurementProtocolSecretRequest message or plain object - * @returns Promise + * Creates an AccessStringFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessStringFilter */ - public createMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessStringFilter; /** - * Calls DeleteMeasurementProtocolSecret. - * @param request DeleteMeasurementProtocolSecretRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a plain object from an AccessStringFilter message. Also converts values to other types if specified. + * @param message AccessStringFilter + * @param [options] Conversion options + * @returns Plain object */ - public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessStringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteMeasurementProtocolSecret. - * @param request DeleteMeasurementProtocolSecretRequest message or plain object - * @returns Promise + * Converts this AccessStringFilter to JSON. + * @returns JSON object */ - public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + namespace AccessStringFilter { + + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + EXACT = 1, + BEGINS_WITH = 2, + ENDS_WITH = 3, + CONTAINS = 4, + FULL_REGEXP = 5, + PARTIAL_REGEXP = 6 + } + } + + /** Properties of an AccessInListFilter. */ + interface IAccessInListFilter { + + /** AccessInListFilter values */ + values?: (string[]|null); + + /** AccessInListFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents an AccessInListFilter. */ + class AccessInListFilter implements IAccessInListFilter { /** - * Calls UpdateMeasurementProtocolSecret. - * @param request UpdateMeasurementProtocolSecretRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * Constructs a new AccessInListFilter. + * @param [properties] Properties to set */ - public updateMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessInListFilter); + + /** AccessInListFilter values. */ + public values: string[]; + + /** AccessInListFilter caseSensitive. */ + public caseSensitive: boolean; /** - * Calls UpdateMeasurementProtocolSecret. - * @param request UpdateMeasurementProtocolSecretRequest message or plain object - * @returns Promise + * Creates a new AccessInListFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessInListFilter instance */ - public updateMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessInListFilter): google.analytics.admin.v1alpha.AccessInListFilter; /** - * Calls AcknowledgeUserDataCollection. - * @param request AcknowledgeUserDataCollectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse + * Encodes the specified AccessInListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessInListFilter.verify|verify} messages. + * @param message AccessInListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public acknowledgeUserDataCollection(request: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls AcknowledgeUserDataCollection. - * @param request AcknowledgeUserDataCollectionRequest message or plain object - * @returns Promise + * Encodes the specified AccessInListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessInListFilter.verify|verify} messages. + * @param message AccessInListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public acknowledgeUserDataCollection(request: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls SearchChangeHistoryEvents. - * @param request SearchChangeHistoryEventsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + * Decodes an AccessInListFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessInListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchChangeHistoryEvents(request: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessInListFilter; /** - * Calls SearchChangeHistoryEvents. - * @param request SearchChangeHistoryEventsRequest message or plain object - * @returns Promise + * Decodes an AccessInListFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessInListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchChangeHistoryEvents(request: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessInListFilter; /** - * Calls GetGoogleSignalsSettings. - * @param request GetGoogleSignalsSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GoogleSignalsSettings + * Verifies an AccessInListFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettingsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetGoogleSignalsSettings. - * @param request GetGoogleSignalsSettingsRequest message or plain object - * @returns Promise + * Creates an AccessInListFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessInListFilter */ - public getGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessInListFilter; /** - * Calls UpdateGoogleSignalsSettings. - * @param request UpdateGoogleSignalsSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GoogleSignalsSettings + * Creates a plain object from an AccessInListFilter message. Also converts values to other types if specified. + * @param message AccessInListFilter + * @param [options] Conversion options + * @returns Plain object */ - public updateGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettingsCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessInListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateGoogleSignalsSettings. - * @param request UpdateGoogleSignalsSettingsRequest message or plain object - * @returns Promise + * Converts this AccessInListFilter to JSON. + * @returns JSON object */ - public updateGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessNumericFilter. */ + interface IAccessNumericFilter { + + /** AccessNumericFilter operation */ + operation?: (google.analytics.admin.v1alpha.AccessNumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AccessNumericFilter.Operation|null); + + /** AccessNumericFilter value */ + value?: (google.analytics.admin.v1alpha.INumericValue|null); + } + + /** Represents an AccessNumericFilter. */ + class AccessNumericFilter implements IAccessNumericFilter { /** - * Calls CreateConversionEvent. - * @param request CreateConversionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ConversionEvent + * Constructs a new AccessNumericFilter. + * @param [properties] Properties to set */ - public createConversionEvent(request: google.analytics.admin.v1alpha.ICreateConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEventCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessNumericFilter); + + /** AccessNumericFilter operation. */ + public operation: (google.analytics.admin.v1alpha.AccessNumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AccessNumericFilter.Operation); + + /** AccessNumericFilter value. */ + public value?: (google.analytics.admin.v1alpha.INumericValue|null); /** - * Calls CreateConversionEvent. - * @param request CreateConversionEventRequest message or plain object - * @returns Promise + * Creates a new AccessNumericFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessNumericFilter instance */ - public createConversionEvent(request: google.analytics.admin.v1alpha.ICreateConversionEventRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessNumericFilter): google.analytics.admin.v1alpha.AccessNumericFilter; /** - * Calls GetConversionEvent. - * @param request GetConversionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ConversionEvent + * Encodes the specified AccessNumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessNumericFilter.verify|verify} messages. + * @param message AccessNumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getConversionEvent(request: google.analytics.admin.v1alpha.IGetConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEventCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessNumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetConversionEvent. - * @param request GetConversionEventRequest message or plain object - * @returns Promise + * Encodes the specified AccessNumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessNumericFilter.verify|verify} messages. + * @param message AccessNumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getConversionEvent(request: google.analytics.admin.v1alpha.IGetConversionEventRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessNumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteConversionEvent. - * @param request DeleteConversionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes an AccessNumericFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessNumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteConversionEvent(request: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEventCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessNumericFilter; /** - * Calls DeleteConversionEvent. - * @param request DeleteConversionEventRequest message or plain object - * @returns Promise + * Decodes an AccessNumericFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessNumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteConversionEvent(request: google.analytics.admin.v1alpha.IDeleteConversionEventRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessNumericFilter; /** - * Calls ListConversionEvents. - * @param request ListConversionEventsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListConversionEventsResponse + * Verifies an AccessNumericFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listConversionEvents(request: google.analytics.admin.v1alpha.IListConversionEventsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEventsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListConversionEvents. - * @param request ListConversionEventsRequest message or plain object - * @returns Promise + * Creates an AccessNumericFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessNumericFilter */ - public listConversionEvents(request: google.analytics.admin.v1alpha.IListConversionEventsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessNumericFilter; /** - * Calls GetDisplayVideo360AdvertiserLink. - * @param request GetDisplayVideo360AdvertiserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * Creates a plain object from an AccessNumericFilter message. Also converts values to other types if specified. + * @param message AccessNumericFilter + * @param [options] Conversion options + * @returns Plain object */ - public getDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessNumericFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetDisplayVideo360AdvertiserLink. - * @param request GetDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns Promise + * Converts this AccessNumericFilter to JSON. + * @returns JSON object */ - public getDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + namespace AccessNumericFilter { + + /** Operation enum. */ + enum Operation { + OPERATION_UNSPECIFIED = 0, + EQUAL = 1, + LESS_THAN = 2, + LESS_THAN_OR_EQUAL = 3, + GREATER_THAN = 4, + GREATER_THAN_OR_EQUAL = 5 + } + } + + /** Properties of an AccessBetweenFilter. */ + interface IAccessBetweenFilter { + + /** AccessBetweenFilter fromValue */ + fromValue?: (google.analytics.admin.v1alpha.INumericValue|null); + + /** AccessBetweenFilter toValue */ + toValue?: (google.analytics.admin.v1alpha.INumericValue|null); + } + + /** Represents an AccessBetweenFilter. */ + class AccessBetweenFilter implements IAccessBetweenFilter { /** - * Calls ListDisplayVideo360AdvertiserLinks. - * @param request ListDisplayVideo360AdvertiserLinksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinksResponse + * Constructs a new AccessBetweenFilter. + * @param [properties] Properties to set */ - public listDisplayVideo360AdvertiserLinks(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinksCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IAccessBetweenFilter); + + /** AccessBetweenFilter fromValue. */ + public fromValue?: (google.analytics.admin.v1alpha.INumericValue|null); + + /** AccessBetweenFilter toValue. */ + public toValue?: (google.analytics.admin.v1alpha.INumericValue|null); /** - * Calls ListDisplayVideo360AdvertiserLinks. - * @param request ListDisplayVideo360AdvertiserLinksRequest message or plain object - * @returns Promise + * Creates a new AccessBetweenFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessBetweenFilter instance */ - public listDisplayVideo360AdvertiserLinks(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IAccessBetweenFilter): google.analytics.admin.v1alpha.AccessBetweenFilter; /** - * Calls CreateDisplayVideo360AdvertiserLink. - * @param request CreateDisplayVideo360AdvertiserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * Encodes the specified AccessBetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessBetweenFilter.verify|verify} messages. + * @param message AccessBetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IAccessBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateDisplayVideo360AdvertiserLink. - * @param request CreateDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns Promise + * Encodes the specified AccessBetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessBetweenFilter.verify|verify} messages. + * @param message AccessBetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDisplayVideo360AdvertiserLink. - * @param request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes an AccessBetweenFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessBetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessBetweenFilter; /** - * Calls DeleteDisplayVideo360AdvertiserLink. - * @param request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns Promise + * Decodes an AccessBetweenFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessBetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessBetweenFilter; /** - * Calls UpdateDisplayVideo360AdvertiserLink. - * @param request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * Verifies an AccessBetweenFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLinkCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateDisplayVideo360AdvertiserLink. - * @param request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns Promise + * Creates an AccessBetweenFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessBetweenFilter */ - public updateDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessBetweenFilter; /** - * Calls GetDisplayVideo360AdvertiserLinkProposal. - * @param request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * Creates a plain object from an AccessBetweenFilter message. Also converts values to other types if specified. + * @param message AccessBetweenFilter + * @param [options] Conversion options + * @returns Plain object */ - public getDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposalCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.AccessBetweenFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetDisplayVideo360AdvertiserLinkProposal. - * @param request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns Promise + * Converts this AccessBetweenFilter to JSON. + * @returns JSON object */ - public getDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NumericValue. */ + interface INumericValue { + + /** NumericValue int64Value */ + int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue */ + doubleValue?: (number|null); + } + + /** Represents a NumericValue. */ + class NumericValue implements INumericValue { /** - * Calls ListDisplayVideo360AdvertiserLinkProposals. - * @param request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinkProposalsResponse + * Constructs a new NumericValue. + * @param [properties] Properties to set */ - public listDisplayVideo360AdvertiserLinkProposals(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposalsCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.INumericValue); + + /** NumericValue int64Value. */ + public int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue. */ + public doubleValue?: (number|null); + + /** NumericValue oneValue. */ + public oneValue?: ("int64Value"|"doubleValue"); /** - * Calls ListDisplayVideo360AdvertiserLinkProposals. - * @param request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object - * @returns Promise + * Creates a new NumericValue instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericValue instance */ - public listDisplayVideo360AdvertiserLinkProposals(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.INumericValue): google.analytics.admin.v1alpha.NumericValue; /** - * Calls CreateDisplayVideo360AdvertiserLinkProposal. - * @param request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposalCallback): void; + public static encode(message: google.analytics.admin.v1alpha.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateDisplayVideo360AdvertiserLinkProposal. - * @param request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns Promise + * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDisplayVideo360AdvertiserLinkProposal. - * @param request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a NumericValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposalCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.NumericValue; /** - * Calls DeleteDisplayVideo360AdvertiserLinkProposal. - * @param request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns Promise + * Decodes a NumericValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.NumericValue; /** - * Calls ApproveDisplayVideo360AdvertiserLinkProposal. - * @param request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ApproveDisplayVideo360AdvertiserLinkProposalResponse + * Verifies a NumericValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public approveDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposalCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ApproveDisplayVideo360AdvertiserLinkProposal. - * @param request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns Promise + * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericValue */ - public approveDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.NumericValue; /** - * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * Creates a plain object from a NumericValue message. Also converts values to other types if specified. + * @param message NumericValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.NumericValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessOrderBy. */ + interface IAccessOrderBy { + + /** AccessOrderBy metric */ + metric?: (google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy|null); + + /** AccessOrderBy dimension */ + dimension?: (google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy|null); + + /** AccessOrderBy desc */ + desc?: (boolean|null); + } + + /** Represents an AccessOrderBy. */ + class AccessOrderBy implements IAccessOrderBy { + + /** + * Constructs a new AccessOrderBy. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessOrderBy); + + /** AccessOrderBy metric. */ + public metric?: (google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy|null); + + /** AccessOrderBy dimension. */ + public dimension?: (google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy|null); + + /** AccessOrderBy desc. */ + public desc: boolean; + + /** AccessOrderBy oneOrderBy. */ + public oneOrderBy?: ("metric"|"dimension"); + + /** + * Creates a new AccessOrderBy instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessOrderBy instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessOrderBy): google.analytics.admin.v1alpha.AccessOrderBy; + + /** + * Encodes the specified AccessOrderBy message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.verify|verify} messages. + * @param message AccessOrderBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessOrderBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessOrderBy message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.verify|verify} messages. + * @param message AccessOrderBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessOrderBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessOrderBy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessOrderBy; + + /** + * Decodes an AccessOrderBy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessOrderBy; + + /** + * Verifies an AccessOrderBy message. + * @param message Plain 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 AccessOrderBy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessOrderBy + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessOrderBy; + + /** + * Creates a plain object from an AccessOrderBy message. Also converts values to other types if specified. + * @param message AccessOrderBy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessOrderBy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessOrderBy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AccessOrderBy { + + /** Properties of a MetricOrderBy. */ + interface IMetricOrderBy { + + /** MetricOrderBy metricName */ + metricName?: (string|null); + } + + /** Represents a MetricOrderBy. */ + class MetricOrderBy implements IMetricOrderBy { + + /** + * Constructs a new MetricOrderBy. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy); + + /** MetricOrderBy metricName. */ + public metricName: string; + + /** + * Creates a new MetricOrderBy instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricOrderBy instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy): google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy; + + /** + * Encodes the specified MetricOrderBy message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.verify|verify} messages. + * @param message MetricOrderBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricOrderBy message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.verify|verify} messages. + * @param message MetricOrderBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricOrderBy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy; + + /** + * Decodes a MetricOrderBy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy; + + /** + * Verifies a MetricOrderBy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricOrderBy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricOrderBy + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy; + + /** + * Creates a plain object from a MetricOrderBy message. Also converts values to other types if specified. + * @param message MetricOrderBy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricOrderBy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DimensionOrderBy. */ + interface IDimensionOrderBy { + + /** DimensionOrderBy dimensionName */ + dimensionName?: (string|null); + + /** DimensionOrderBy orderType */ + orderType?: (google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType|keyof typeof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType|null); + } + + /** Represents a DimensionOrderBy. */ + class DimensionOrderBy implements IDimensionOrderBy { + + /** + * Constructs a new DimensionOrderBy. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy); + + /** DimensionOrderBy dimensionName. */ + public dimensionName: string; + + /** DimensionOrderBy orderType. */ + public orderType: (google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType|keyof typeof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType); + + /** + * Creates a new DimensionOrderBy instance using the specified properties. + * @param [properties] Properties to set + * @returns DimensionOrderBy instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy): google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy; + + /** + * Encodes the specified DimensionOrderBy message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.verify|verify} messages. + * @param message DimensionOrderBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DimensionOrderBy message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.verify|verify} messages. + * @param message DimensionOrderBy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DimensionOrderBy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DimensionOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy; + + /** + * Decodes a DimensionOrderBy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DimensionOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy; + + /** + * Verifies a DimensionOrderBy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DimensionOrderBy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DimensionOrderBy + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy; + + /** + * Creates a plain object from a DimensionOrderBy message. Also converts values to other types if specified. + * @param message DimensionOrderBy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DimensionOrderBy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DimensionOrderBy { + + /** OrderType enum. */ + enum OrderType { + ORDER_TYPE_UNSPECIFIED = 0, + ALPHANUMERIC = 1, + CASE_INSENSITIVE_ALPHANUMERIC = 2, + NUMERIC = 3 + } + } + } + + /** Properties of an AccessDimensionHeader. */ + interface IAccessDimensionHeader { + + /** AccessDimensionHeader dimensionName */ + dimensionName?: (string|null); + } + + /** Represents an AccessDimensionHeader. */ + class AccessDimensionHeader implements IAccessDimensionHeader { + + /** + * Constructs a new AccessDimensionHeader. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessDimensionHeader); + + /** AccessDimensionHeader dimensionName. */ + public dimensionName: string; + + /** + * Creates a new AccessDimensionHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessDimensionHeader instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessDimensionHeader): google.analytics.admin.v1alpha.AccessDimensionHeader; + + /** + * Encodes the specified AccessDimensionHeader message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionHeader.verify|verify} messages. + * @param message AccessDimensionHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessDimensionHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessDimensionHeader message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionHeader.verify|verify} messages. + * @param message AccessDimensionHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessDimensionHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessDimensionHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessDimensionHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessDimensionHeader; + + /** + * Decodes an AccessDimensionHeader message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessDimensionHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessDimensionHeader; + + /** + * Verifies an AccessDimensionHeader message. + * @param message Plain 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 AccessDimensionHeader message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessDimensionHeader + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessDimensionHeader; + + /** + * Creates a plain object from an AccessDimensionHeader message. Also converts values to other types if specified. + * @param message AccessDimensionHeader + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessDimensionHeader, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessDimensionHeader to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessMetricHeader. */ + interface IAccessMetricHeader { + + /** AccessMetricHeader metricName */ + metricName?: (string|null); + } + + /** Represents an AccessMetricHeader. */ + class AccessMetricHeader implements IAccessMetricHeader { + + /** + * Constructs a new AccessMetricHeader. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessMetricHeader); + + /** AccessMetricHeader metricName. */ + public metricName: string; + + /** + * Creates a new AccessMetricHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessMetricHeader instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessMetricHeader): google.analytics.admin.v1alpha.AccessMetricHeader; + + /** + * Encodes the specified AccessMetricHeader message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricHeader.verify|verify} messages. + * @param message AccessMetricHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessMetricHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessMetricHeader message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricHeader.verify|verify} messages. + * @param message AccessMetricHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessMetricHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessMetricHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessMetricHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessMetricHeader; + + /** + * Decodes an AccessMetricHeader message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessMetricHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessMetricHeader; + + /** + * Verifies an AccessMetricHeader message. + * @param message Plain 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 AccessMetricHeader message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessMetricHeader + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessMetricHeader; + + /** + * Creates a plain object from an AccessMetricHeader message. Also converts values to other types if specified. + * @param message AccessMetricHeader + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessMetricHeader, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessMetricHeader to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessRow. */ + interface IAccessRow { + + /** AccessRow dimensionValues */ + dimensionValues?: (google.analytics.admin.v1alpha.IAccessDimensionValue[]|null); + + /** AccessRow metricValues */ + metricValues?: (google.analytics.admin.v1alpha.IAccessMetricValue[]|null); + } + + /** Represents an AccessRow. */ + class AccessRow implements IAccessRow { + + /** + * Constructs a new AccessRow. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessRow); + + /** AccessRow dimensionValues. */ + public dimensionValues: google.analytics.admin.v1alpha.IAccessDimensionValue[]; + + /** AccessRow metricValues. */ + public metricValues: google.analytics.admin.v1alpha.IAccessMetricValue[]; + + /** + * Creates a new AccessRow instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessRow instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessRow): google.analytics.admin.v1alpha.AccessRow; + + /** + * Encodes the specified AccessRow message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessRow.verify|verify} messages. + * @param message AccessRow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessRow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessRow message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessRow.verify|verify} messages. + * @param message AccessRow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessRow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessRow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessRow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessRow; + + /** + * Decodes an AccessRow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessRow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessRow; + + /** + * Verifies an AccessRow message. + * @param message Plain 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 AccessRow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessRow + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessRow; + + /** + * Creates a plain object from an AccessRow message. Also converts values to other types if specified. + * @param message AccessRow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessRow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessRow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessDimensionValue. */ + interface IAccessDimensionValue { + + /** AccessDimensionValue value */ + value?: (string|null); + } + + /** Represents an AccessDimensionValue. */ + class AccessDimensionValue implements IAccessDimensionValue { + + /** + * Constructs a new AccessDimensionValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessDimensionValue); + + /** AccessDimensionValue value. */ + public value: string; + + /** + * Creates a new AccessDimensionValue instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessDimensionValue instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessDimensionValue): google.analytics.admin.v1alpha.AccessDimensionValue; + + /** + * Encodes the specified AccessDimensionValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionValue.verify|verify} messages. + * @param message AccessDimensionValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessDimensionValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessDimensionValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionValue.verify|verify} messages. + * @param message AccessDimensionValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessDimensionValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessDimensionValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessDimensionValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessDimensionValue; + + /** + * Decodes an AccessDimensionValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessDimensionValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessDimensionValue; + + /** + * Verifies an AccessDimensionValue message. + * @param message Plain 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 AccessDimensionValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessDimensionValue + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessDimensionValue; + + /** + * Creates a plain object from an AccessDimensionValue message. Also converts values to other types if specified. + * @param message AccessDimensionValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessDimensionValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessDimensionValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessMetricValue. */ + interface IAccessMetricValue { + + /** AccessMetricValue value */ + value?: (string|null); + } + + /** Represents an AccessMetricValue. */ + class AccessMetricValue implements IAccessMetricValue { + + /** + * Constructs a new AccessMetricValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessMetricValue); + + /** AccessMetricValue value. */ + public value: string; + + /** + * Creates a new AccessMetricValue instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessMetricValue instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessMetricValue): google.analytics.admin.v1alpha.AccessMetricValue; + + /** + * Encodes the specified AccessMetricValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricValue.verify|verify} messages. + * @param message AccessMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessMetricValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricValue.verify|verify} messages. + * @param message AccessMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessMetricValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessMetricValue; + + /** + * Decodes an AccessMetricValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessMetricValue; + + /** + * Verifies an AccessMetricValue message. + * @param message Plain 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 AccessMetricValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessMetricValue + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessMetricValue; + + /** + * Creates a plain object from an AccessMetricValue message. Also converts values to other types if specified. + * @param message AccessMetricValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessMetricValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessQuota. */ + interface IAccessQuota { + + /** AccessQuota tokensPerDay */ + tokensPerDay?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** AccessQuota tokensPerHour */ + tokensPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** AccessQuota concurrentRequests */ + concurrentRequests?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** AccessQuota serverErrorsPerProjectPerHour */ + serverErrorsPerProjectPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + } + + /** Represents an AccessQuota. */ + class AccessQuota implements IAccessQuota { + + /** + * Constructs a new AccessQuota. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessQuota); + + /** AccessQuota tokensPerDay. */ + public tokensPerDay?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** AccessQuota tokensPerHour. */ + public tokensPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** AccessQuota concurrentRequests. */ + public concurrentRequests?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** AccessQuota serverErrorsPerProjectPerHour. */ + public serverErrorsPerProjectPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** + * Creates a new AccessQuota instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessQuota instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessQuota): google.analytics.admin.v1alpha.AccessQuota; + + /** + * Encodes the specified AccessQuota message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuota.verify|verify} messages. + * @param message AccessQuota message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessQuota, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessQuota message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuota.verify|verify} messages. + * @param message AccessQuota message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessQuota, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessQuota message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessQuota + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessQuota; + + /** + * Decodes an AccessQuota message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessQuota + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessQuota; + + /** + * Verifies an AccessQuota message. + * @param message Plain 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 AccessQuota message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessQuota + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessQuota; + + /** + * Creates a plain object from an AccessQuota message. Also converts values to other types if specified. + * @param message AccessQuota + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessQuota, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessQuota to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AccessQuotaStatus. */ + interface IAccessQuotaStatus { + + /** AccessQuotaStatus consumed */ + consumed?: (number|null); + + /** AccessQuotaStatus remaining */ + remaining?: (number|null); + } + + /** Represents an AccessQuotaStatus. */ + class AccessQuotaStatus implements IAccessQuotaStatus { + + /** + * Constructs a new AccessQuotaStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccessQuotaStatus); + + /** AccessQuotaStatus consumed. */ + public consumed: number; + + /** AccessQuotaStatus remaining. */ + public remaining: number; + + /** + * Creates a new AccessQuotaStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessQuotaStatus instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccessQuotaStatus): google.analytics.admin.v1alpha.AccessQuotaStatus; + + /** + * Encodes the specified AccessQuotaStatus message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuotaStatus.verify|verify} messages. + * @param message AccessQuotaStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccessQuotaStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessQuotaStatus message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuotaStatus.verify|verify} messages. + * @param message AccessQuotaStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccessQuotaStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessQuotaStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessQuotaStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccessQuotaStatus; + + /** + * Decodes an AccessQuotaStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessQuotaStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccessQuotaStatus; + + /** + * Verifies an AccessQuotaStatus message. + * @param message Plain 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 AccessQuotaStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessQuotaStatus + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccessQuotaStatus; + + /** + * Creates a plain object from an AccessQuotaStatus message. Also converts values to other types if specified. + * @param message AccessQuotaStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AccessQuotaStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessQuotaStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Represents an AnalyticsAdminService */ + class AnalyticsAdminService extends $protobuf.rpc.Service { + + /** + * Constructs a new AnalyticsAdminService 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 AnalyticsAdminService 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): AnalyticsAdminService; + + /** + * 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.analytics.admin.v1alpha.IGetAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccountCallback): void; + + /** + * Calls GetAccount. + * @param request GetAccountRequest message or plain object + * @returns Promise + */ + public getAccount(request: google.analytics.admin.v1alpha.IGetAccountRequest): 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.analytics.admin.v1alpha.IListAccountsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountsCallback): void; + + /** + * Calls ListAccounts. + * @param request ListAccountsRequest message or plain object + * @returns Promise + */ + public listAccounts(request: google.analytics.admin.v1alpha.IListAccountsRequest): 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.analytics.admin.v1alpha.IDeleteAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccountCallback): void; + + /** + * Calls DeleteAccount. + * @param request DeleteAccountRequest message or plain object + * @returns Promise + */ + public deleteAccount(request: google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccountCallback): void; + + /** + * Calls UpdateAccount. + * @param request UpdateAccountRequest message or plain object + * @returns Promise + */ + public updateAccount(request: google.analytics.admin.v1alpha.IUpdateAccountRequest): Promise; + + /** + * Calls ProvisionAccountTicket. + * @param request ProvisionAccountTicketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse + */ + public provisionAccountTicket(request: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicketCallback): void; + + /** + * Calls ProvisionAccountTicket. + * @param request ProvisionAccountTicketRequest message or plain object + * @returns Promise + */ + public provisionAccountTicket(request: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest): Promise; + + /** + * Calls ListAccountSummaries. + * @param request ListAccountSummariesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAccountSummariesResponse + */ + public listAccountSummaries(request: google.analytics.admin.v1alpha.IListAccountSummariesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummariesCallback): void; + + /** + * Calls ListAccountSummaries. + * @param request ListAccountSummariesRequest message or plain object + * @returns Promise + */ + public listAccountSummaries(request: google.analytics.admin.v1alpha.IListAccountSummariesRequest): Promise; + + /** + * Calls GetProperty. + * @param request GetPropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public getProperty(request: google.analytics.admin.v1alpha.IGetPropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetPropertyCallback): void; + + /** + * Calls GetProperty. + * @param request GetPropertyRequest message or plain object + * @returns Promise + */ + public getProperty(request: google.analytics.admin.v1alpha.IGetPropertyRequest): Promise; + + /** + * Calls ListProperties. + * @param request ListPropertiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPropertiesResponse + */ + public listProperties(request: google.analytics.admin.v1alpha.IListPropertiesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListPropertiesCallback): void; + + /** + * Calls ListProperties. + * @param request ListPropertiesRequest message or plain object + * @returns Promise + */ + public listProperties(request: google.analytics.admin.v1alpha.IListPropertiesRequest): Promise; + + /** + * Calls CreateProperty. + * @param request CreatePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public createProperty(request: google.analytics.admin.v1alpha.ICreatePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreatePropertyCallback): void; + + /** + * Calls CreateProperty. + * @param request CreatePropertyRequest message or plain object + * @returns Promise + */ + public createProperty(request: google.analytics.admin.v1alpha.ICreatePropertyRequest): Promise; + + /** + * Calls DeleteProperty. + * @param request DeletePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback): void; + + /** + * Calls DeleteProperty. + * @param request DeletePropertyRequest message or plain object + * @returns Promise + */ + public deleteProperty(request: google.analytics.admin.v1alpha.IDeletePropertyRequest): Promise; + + /** + * Calls UpdateProperty. + * @param request UpdatePropertyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Property + */ + public updateProperty(request: google.analytics.admin.v1alpha.IUpdatePropertyRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdatePropertyCallback): void; + + /** + * Calls UpdateProperty. + * @param request UpdatePropertyRequest message or plain object + * @returns Promise + */ + public updateProperty(request: google.analytics.admin.v1alpha.IUpdatePropertyRequest): Promise; + + /** + * Calls GetUserLink. + * @param request GetUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserLink + */ + public getUserLink(request: google.analytics.admin.v1alpha.IGetUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLinkCallback): void; + + /** + * Calls GetUserLink. + * @param request GetUserLinkRequest message or plain object + * @returns Promise + */ + public getUserLink(request: google.analytics.admin.v1alpha.IGetUserLinkRequest): Promise; + + /** + * Calls BatchGetUserLinks. + * @param request BatchGetUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchGetUserLinksResponse + */ + public batchGetUserLinks(request: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinksCallback): void; + + /** + * Calls BatchGetUserLinks. + * @param request BatchGetUserLinksRequest message or plain object + * @returns Promise + */ + public batchGetUserLinks(request: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest): Promise; + + /** + * Calls ListUserLinks. + * @param request ListUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListUserLinksResponse + */ + public listUserLinks(request: google.analytics.admin.v1alpha.IListUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinksCallback): void; + + /** + * Calls ListUserLinks. + * @param request ListUserLinksRequest message or plain object + * @returns Promise + */ + public listUserLinks(request: google.analytics.admin.v1alpha.IListUserLinksRequest): Promise; + + /** + * Calls AuditUserLinks. + * @param request AuditUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AuditUserLinksResponse + */ + public auditUserLinks(request: google.analytics.admin.v1alpha.IAuditUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinksCallback): void; + + /** + * Calls AuditUserLinks. + * @param request AuditUserLinksRequest message or plain object + * @returns Promise + */ + public auditUserLinks(request: google.analytics.admin.v1alpha.IAuditUserLinksRequest): Promise; + + /** + * Calls CreateUserLink. + * @param request CreateUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserLink + */ + public createUserLink(request: google.analytics.admin.v1alpha.ICreateUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLinkCallback): void; + + /** + * Calls CreateUserLink. + * @param request CreateUserLinkRequest message or plain object + * @returns Promise + */ + public createUserLink(request: google.analytics.admin.v1alpha.ICreateUserLinkRequest): Promise; + + /** + * Calls BatchCreateUserLinks. + * @param request BatchCreateUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchCreateUserLinksResponse + */ + public batchCreateUserLinks(request: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinksCallback): void; + + /** + * Calls BatchCreateUserLinks. + * @param request BatchCreateUserLinksRequest message or plain object + * @returns Promise + */ + public batchCreateUserLinks(request: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest): Promise; + + /** + * Calls UpdateUserLink. + * @param request UpdateUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserLink + */ + public updateUserLink(request: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLinkCallback): void; + + /** + * Calls UpdateUserLink. + * @param request UpdateUserLinkRequest message or plain object + * @returns Promise + */ + public updateUserLink(request: google.analytics.admin.v1alpha.IUpdateUserLinkRequest): Promise; + + /** + * Calls BatchUpdateUserLinks. + * @param request BatchUpdateUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchUpdateUserLinksResponse + */ + public batchUpdateUserLinks(request: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinksCallback): void; + + /** + * Calls BatchUpdateUserLinks. + * @param request BatchUpdateUserLinksRequest message or plain object + * @returns Promise + */ + public batchUpdateUserLinks(request: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest): Promise; + + /** + * Calls DeleteUserLink. + * @param request DeleteUserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteUserLink(request: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLinkCallback): void; + + /** + * Calls DeleteUserLink. + * @param request DeleteUserLinkRequest message or plain object + * @returns Promise + */ + public deleteUserLink(request: google.analytics.admin.v1alpha.IDeleteUserLinkRequest): Promise; + + /** + * Calls BatchDeleteUserLinks. + * @param request BatchDeleteUserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public batchDeleteUserLinks(request: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinksCallback): void; + + /** + * Calls BatchDeleteUserLinks. + * @param request BatchDeleteUserLinksRequest message or plain object + * @returns Promise + */ + public batchDeleteUserLinks(request: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest): Promise; + + /** + * Calls CreateFirebaseLink. + * @param request CreateFirebaseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FirebaseLink + */ + public createFirebaseLink(request: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLinkCallback): void; + + /** + * Calls CreateFirebaseLink. + * @param request CreateFirebaseLinkRequest message or plain object + * @returns Promise + */ + public createFirebaseLink(request: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest): Promise; + + /** + * Calls DeleteFirebaseLink. + * @param request DeleteFirebaseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteFirebaseLink(request: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLinkCallback): void; + + /** + * Calls DeleteFirebaseLink. + * @param request DeleteFirebaseLinkRequest message or plain object + * @returns Promise + */ + public deleteFirebaseLink(request: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest): Promise; + + /** + * Calls ListFirebaseLinks. + * @param request ListFirebaseLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse + */ + public listFirebaseLinks(request: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinksCallback): void; + + /** + * Calls ListFirebaseLinks. + * @param request ListFirebaseLinksRequest message or plain object + * @returns Promise + */ + public listFirebaseLinks(request: google.analytics.admin.v1alpha.IListFirebaseLinksRequest): Promise; + + /** + * Calls GetGlobalSiteTag. + * @param request GetGlobalSiteTagRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GlobalSiteTag + */ + public getGlobalSiteTag(request: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTagCallback): void; + + /** + * Calls GetGlobalSiteTag. + * @param request GetGlobalSiteTagRequest message or plain object + * @returns Promise + */ + public getGlobalSiteTag(request: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest): Promise; + + /** + * Calls CreateGoogleAdsLink. + * @param request CreateGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + */ + public createGoogleAdsLink(request: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLinkCallback): void; + + /** + * Calls CreateGoogleAdsLink. + * @param request CreateGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public createGoogleAdsLink(request: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest): Promise; + + /** + * Calls UpdateGoogleAdsLink. + * @param request UpdateGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleAdsLink + */ + public updateGoogleAdsLink(request: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLinkCallback): void; + + /** + * Calls UpdateGoogleAdsLink. + * @param request UpdateGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public updateGoogleAdsLink(request: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest): Promise; + + /** + * Calls DeleteGoogleAdsLink. + * @param request DeleteGoogleAdsLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteGoogleAdsLink(request: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLinkCallback): void; + + /** + * Calls DeleteGoogleAdsLink. + * @param request DeleteGoogleAdsLinkRequest message or plain object + * @returns Promise + */ + public deleteGoogleAdsLink(request: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest): Promise; + + /** + * Calls ListGoogleAdsLinks. + * @param request ListGoogleAdsLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse + */ + public listGoogleAdsLinks(request: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinksCallback): void; + + /** + * Calls ListGoogleAdsLinks. + * @param request ListGoogleAdsLinksRequest message or plain object + * @returns Promise + */ + public listGoogleAdsLinks(request: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest): Promise; + + /** + * Calls GetDataSharingSettings. + * @param request GetDataSharingSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataSharingSettings + */ + public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettingsCallback): void; + + /** + * Calls GetDataSharingSettings. + * @param request GetDataSharingSettingsRequest message or plain object + * @returns Promise + */ + public getDataSharingSettings(request: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): Promise; + + /** + * Calls GetMeasurementProtocolSecret. + * @param request GetMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public getMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecretCallback): void; + + /** + * Calls GetMeasurementProtocolSecret. + * @param request GetMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public getMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest): Promise; + + /** + * Calls ListMeasurementProtocolSecrets. + * @param request ListMeasurementProtocolSecretsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse + */ + public listMeasurementProtocolSecrets(request: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback): void; + + /** + * Calls ListMeasurementProtocolSecrets. + * @param request ListMeasurementProtocolSecretsRequest message or plain object + * @returns Promise + */ + public listMeasurementProtocolSecrets(request: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest): Promise; + + /** + * Calls CreateMeasurementProtocolSecret. + * @param request CreateMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public createMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback): void; + + /** + * Calls CreateMeasurementProtocolSecret. + * @param request CreateMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public createMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest): Promise; + + /** + * Calls DeleteMeasurementProtocolSecret. + * @param request DeleteMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback): void; + + /** + * Calls DeleteMeasurementProtocolSecret. + * @param request DeleteMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public deleteMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest): Promise; + + /** + * Calls UpdateMeasurementProtocolSecret. + * @param request UpdateMeasurementProtocolSecretRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + */ + public updateMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback): void; + + /** + * Calls UpdateMeasurementProtocolSecret. + * @param request UpdateMeasurementProtocolSecretRequest message or plain object + * @returns Promise + */ + public updateMeasurementProtocolSecret(request: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest): Promise; + + /** + * Calls AcknowledgeUserDataCollection. + * @param request AcknowledgeUserDataCollectionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse + */ + public acknowledgeUserDataCollection(request: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback): void; + + /** + * Calls AcknowledgeUserDataCollection. + * @param request AcknowledgeUserDataCollectionRequest message or plain object + * @returns Promise + */ + public acknowledgeUserDataCollection(request: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest): Promise; + + /** + * Calls SearchChangeHistoryEvents. + * @param request SearchChangeHistoryEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + */ + public searchChangeHistoryEvents(request: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback): void; + + /** + * Calls SearchChangeHistoryEvents. + * @param request SearchChangeHistoryEventsRequest message or plain object + * @returns Promise + */ + public searchChangeHistoryEvents(request: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest): Promise; + + /** + * Calls GetGoogleSignalsSettings. + * @param request GetGoogleSignalsSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleSignalsSettings + */ + public getGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettingsCallback): void; + + /** + * Calls GetGoogleSignalsSettings. + * @param request GetGoogleSignalsSettingsRequest message or plain object + * @returns Promise + */ + public getGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest): Promise; + + /** + * Calls UpdateGoogleSignalsSettings. + * @param request UpdateGoogleSignalsSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GoogleSignalsSettings + */ + public updateGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettingsCallback): void; + + /** + * Calls UpdateGoogleSignalsSettings. + * @param request UpdateGoogleSignalsSettingsRequest message or plain object + * @returns Promise + */ + public updateGoogleSignalsSettings(request: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest): Promise; + + /** + * Calls CreateConversionEvent. + * @param request CreateConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ConversionEvent + */ + public createConversionEvent(request: google.analytics.admin.v1alpha.ICreateConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEventCallback): void; + + /** + * Calls CreateConversionEvent. + * @param request CreateConversionEventRequest message or plain object + * @returns Promise + */ + public createConversionEvent(request: google.analytics.admin.v1alpha.ICreateConversionEventRequest): Promise; + + /** + * Calls GetConversionEvent. + * @param request GetConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ConversionEvent + */ + public getConversionEvent(request: google.analytics.admin.v1alpha.IGetConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEventCallback): void; + + /** + * Calls GetConversionEvent. + * @param request GetConversionEventRequest message or plain object + * @returns Promise + */ + public getConversionEvent(request: google.analytics.admin.v1alpha.IGetConversionEventRequest): Promise; + + /** + * Calls DeleteConversionEvent. + * @param request DeleteConversionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteConversionEvent(request: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEventCallback): void; + + /** + * Calls DeleteConversionEvent. + * @param request DeleteConversionEventRequest message or plain object + * @returns Promise + */ + public deleteConversionEvent(request: google.analytics.admin.v1alpha.IDeleteConversionEventRequest): Promise; + + /** + * Calls ListConversionEvents. + * @param request ListConversionEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListConversionEventsResponse + */ + public listConversionEvents(request: google.analytics.admin.v1alpha.IListConversionEventsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEventsCallback): void; + + /** + * Calls ListConversionEvents. + * @param request ListConversionEventsRequest message or plain object + * @returns Promise + */ + public listConversionEvents(request: google.analytics.admin.v1alpha.IListConversionEventsRequest): Promise; + + /** + * Calls GetDisplayVideo360AdvertiserLink. + * @param request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + */ + public getDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls GetDisplayVideo360AdvertiserLink. + * @param request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public getDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls ListDisplayVideo360AdvertiserLinks. + * @param request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinksResponse + */ + public listDisplayVideo360AdvertiserLinks(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinksCallback): void; + + /** + * Calls ListDisplayVideo360AdvertiserLinks. + * @param request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @returns Promise + */ + public listDisplayVideo360AdvertiserLinks(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest): Promise; + + /** + * Calls CreateDisplayVideo360AdvertiserLink. + * @param request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + */ + public createDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls CreateDisplayVideo360AdvertiserLink. + * @param request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public createDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls DeleteDisplayVideo360AdvertiserLink. + * @param request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls DeleteDisplayVideo360AdvertiserLink. + * @param request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public deleteDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls UpdateDisplayVideo360AdvertiserLink. + * @param request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + */ + public updateDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLinkCallback): void; + + /** + * Calls UpdateDisplayVideo360AdvertiserLink. + * @param request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns Promise + */ + public updateDisplayVideo360AdvertiserLink(request: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest): Promise; + + /** + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @param request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + */ + public getDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @param request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public getDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @param request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinkProposalsResponse + */ + public listDisplayVideo360AdvertiserLinkProposals(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposalsCallback): void; + + /** + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @param request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @returns Promise + */ + public listDisplayVideo360AdvertiserLinkProposals(request: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest): Promise; + + /** + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @param request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + */ + public createDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @param request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public createDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @param request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @param request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public deleteDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @param request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ApproveDisplayVideo360AdvertiserLinkProposalResponse + */ + public approveDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @param request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public approveDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls CancelDisplayVideo360AdvertiserLinkProposal. * @param request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object * @param callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal */ - public cancelDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposalCallback): void; + public cancelDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposalCallback): void; + + /** + * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * @param request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns Promise + */ + public cancelDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest): Promise; + + /** + * Calls CreateCustomDimension. + * @param request CreateCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public createCustomDimension(request: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimensionCallback): void; + + /** + * Calls CreateCustomDimension. + * @param request CreateCustomDimensionRequest message or plain object + * @returns Promise + */ + public createCustomDimension(request: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): Promise; + + /** + * Calls UpdateCustomDimension. + * @param request UpdateCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public updateCustomDimension(request: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimensionCallback): void; + + /** + * Calls UpdateCustomDimension. + * @param request UpdateCustomDimensionRequest message or plain object + * @returns Promise + */ + public updateCustomDimension(request: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): Promise; + + /** + * Calls ListCustomDimensions. + * @param request ListCustomDimensionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse + */ + public listCustomDimensions(request: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensionsCallback): void; + + /** + * Calls ListCustomDimensions. + * @param request ListCustomDimensionsRequest message or plain object + * @returns Promise + */ + public listCustomDimensions(request: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): Promise; + + /** + * Calls ArchiveCustomDimension. + * @param request ArchiveCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public archiveCustomDimension(request: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimensionCallback): void; + + /** + * Calls ArchiveCustomDimension. + * @param request ArchiveCustomDimensionRequest message or plain object + * @returns Promise + */ + public archiveCustomDimension(request: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): Promise; + + /** + * Calls GetCustomDimension. + * @param request GetCustomDimensionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomDimension + */ + public getCustomDimension(request: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimensionCallback): void; + + /** + * Calls GetCustomDimension. + * @param request GetCustomDimensionRequest message or plain object + * @returns Promise + */ + public getCustomDimension(request: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): Promise; + + /** + * Calls CreateCustomMetric. + * @param request CreateCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public createCustomMetric(request: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetricCallback): void; + + /** + * Calls CreateCustomMetric. + * @param request CreateCustomMetricRequest message or plain object + * @returns Promise + */ + public createCustomMetric(request: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): Promise; + + /** + * Calls UpdateCustomMetric. + * @param request UpdateCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public updateCustomMetric(request: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetricCallback): void; + + /** + * Calls UpdateCustomMetric. + * @param request UpdateCustomMetricRequest message or plain object + * @returns Promise + */ + public updateCustomMetric(request: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): Promise; + + /** + * Calls ListCustomMetrics. + * @param request ListCustomMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomMetricsResponse + */ + public listCustomMetrics(request: google.analytics.admin.v1alpha.IListCustomMetricsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetricsCallback): void; + + /** + * Calls ListCustomMetrics. + * @param request ListCustomMetricsRequest message or plain object + * @returns Promise + */ + public listCustomMetrics(request: google.analytics.admin.v1alpha.IListCustomMetricsRequest): Promise; + + /** + * Calls ArchiveCustomMetric. + * @param request ArchiveCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public archiveCustomMetric(request: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetricCallback): void; + + /** + * Calls ArchiveCustomMetric. + * @param request ArchiveCustomMetricRequest message or plain object + * @returns Promise + */ + public archiveCustomMetric(request: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): Promise; + + /** + * Calls GetCustomMetric. + * @param request GetCustomMetricRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomMetric + */ + public getCustomMetric(request: google.analytics.admin.v1alpha.IGetCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetricCallback): void; + + /** + * Calls GetCustomMetric. + * @param request GetCustomMetricRequest message or plain object + * @returns Promise + */ + public getCustomMetric(request: google.analytics.admin.v1alpha.IGetCustomMetricRequest): Promise; + + /** + * Calls GetDataRetentionSettings. + * @param request GetDataRetentionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + */ + public getDataRetentionSettings(request: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettingsCallback): void; + + /** + * Calls GetDataRetentionSettings. + * @param request GetDataRetentionSettingsRequest message or plain object + * @returns Promise + */ + public getDataRetentionSettings(request: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): Promise; + + /** + * Calls UpdateDataRetentionSettings. + * @param request UpdateDataRetentionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + */ + public updateDataRetentionSettings(request: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettingsCallback): void; + + /** + * Calls UpdateDataRetentionSettings. + * @param request UpdateDataRetentionSettingsRequest message or plain object + * @returns Promise + */ + public updateDataRetentionSettings(request: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): Promise; + + /** + * Calls CreateDataStream. + * @param request CreateDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public createDataStream(request: google.analytics.admin.v1alpha.ICreateDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStreamCallback): void; + + /** + * Calls CreateDataStream. + * @param request CreateDataStreamRequest message or plain object + * @returns Promise + */ + public createDataStream(request: google.analytics.admin.v1alpha.ICreateDataStreamRequest): Promise; + + /** + * Calls DeleteDataStream. + * @param request DeleteDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDataStream(request: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStreamCallback): void; + + /** + * Calls DeleteDataStream. + * @param request DeleteDataStreamRequest message or plain object + * @returns Promise + */ + public deleteDataStream(request: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): Promise; + + /** + * Calls UpdateDataStream. + * @param request UpdateDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public updateDataStream(request: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStreamCallback): void; + + /** + * Calls UpdateDataStream. + * @param request UpdateDataStreamRequest message or plain object + * @returns Promise + */ + public updateDataStream(request: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): Promise; + + /** + * Calls ListDataStreams. + * @param request ListDataStreamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataStreamsResponse + */ + public listDataStreams(request: google.analytics.admin.v1alpha.IListDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreamsCallback): void; + + /** + * Calls ListDataStreams. + * @param request ListDataStreamsRequest message or plain object + * @returns Promise + */ + public listDataStreams(request: google.analytics.admin.v1alpha.IListDataStreamsRequest): Promise; + + /** + * Calls GetDataStream. + * @param request GetDataStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataStream + */ + public getDataStream(request: google.analytics.admin.v1alpha.IGetDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStreamCallback): void; + + /** + * Calls GetDataStream. + * @param request GetDataStreamRequest message or plain object + * @returns Promise + */ + public getDataStream(request: google.analytics.admin.v1alpha.IGetDataStreamRequest): Promise; + + /** + * Calls GetAudience. + * @param request GetAudienceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Audience + */ + public getAudience(request: google.analytics.admin.v1alpha.IGetAudienceRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudienceCallback): void; + + /** + * Calls GetAudience. + * @param request GetAudienceRequest message or plain object + * @returns Promise + */ + public getAudience(request: google.analytics.admin.v1alpha.IGetAudienceRequest): Promise; + + /** + * Calls ListAudiences. + * @param request ListAudiencesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAudiencesResponse + */ + public listAudiences(request: google.analytics.admin.v1alpha.IListAudiencesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiencesCallback): void; + + /** + * Calls ListAudiences. + * @param request ListAudiencesRequest message or plain object + * @returns Promise + */ + public listAudiences(request: google.analytics.admin.v1alpha.IListAudiencesRequest): Promise; + + /** + * Calls CreateAudience. + * @param request CreateAudienceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Audience + */ + public createAudience(request: google.analytics.admin.v1alpha.ICreateAudienceRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudienceCallback): void; + + /** + * Calls CreateAudience. + * @param request CreateAudienceRequest message or plain object + * @returns Promise + */ + public createAudience(request: google.analytics.admin.v1alpha.ICreateAudienceRequest): Promise; + + /** + * Calls UpdateAudience. + * @param request UpdateAudienceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Audience + */ + public updateAudience(request: google.analytics.admin.v1alpha.IUpdateAudienceRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudienceCallback): void; + + /** + * Calls UpdateAudience. + * @param request UpdateAudienceRequest message or plain object + * @returns Promise + */ + public updateAudience(request: google.analytics.admin.v1alpha.IUpdateAudienceRequest): Promise; + + /** + * Calls ArchiveAudience. + * @param request ArchiveAudienceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public archiveAudience(request: google.analytics.admin.v1alpha.IArchiveAudienceRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudienceCallback): void; + + /** + * Calls ArchiveAudience. + * @param request ArchiveAudienceRequest message or plain object + * @returns Promise + */ + public archiveAudience(request: google.analytics.admin.v1alpha.IArchiveAudienceRequest): Promise; + + /** + * Calls GetAttributionSettings. + * @param request GetAttributionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AttributionSettings + */ + public getAttributionSettings(request: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettingsCallback): void; + + /** + * Calls GetAttributionSettings. + * @param request GetAttributionSettingsRequest message or plain object + * @returns Promise + */ + public getAttributionSettings(request: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest): Promise; + + /** + * Calls UpdateAttributionSettings. + * @param request UpdateAttributionSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AttributionSettings + */ + public updateAttributionSettings(request: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettingsCallback): void; + + /** + * Calls UpdateAttributionSettings. + * @param request UpdateAttributionSettingsRequest message or plain object + * @returns Promise + */ + public updateAttributionSettings(request: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest): Promise; + + /** + * Calls RunAccessReport. + * @param request RunAccessReportRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RunAccessReportResponse + */ + public runAccessReport(request: google.analytics.admin.v1alpha.IRunAccessReportRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReportCallback): void; + + /** + * Calls RunAccessReport. + * @param request RunAccessReportRequest message or plain object + * @returns Promise + */ + public runAccessReport(request: google.analytics.admin.v1alpha.IRunAccessReportRequest): Promise; + } + + namespace AnalyticsAdminService { + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. + * @param error Error, if any + * @param [response] Account + */ + type GetAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. + * @param error Error, if any + * @param [response] ListAccountsResponse + */ + type ListAccountsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#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.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. + * @param error Error, if any + * @param [response] Account + */ + type UpdateAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. + * @param error Error, if any + * @param [response] ProvisionAccountTicketResponse + */ + type ProvisionAccountTicketCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. + * @param error Error, if any + * @param [response] ListAccountSummariesResponse + */ + type ListAccountSummariesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountSummariesResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. + * @param error Error, if any + * @param [response] Property + */ + type GetPropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. + * @param error Error, if any + * @param [response] ListPropertiesResponse + */ + type ListPropertiesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListPropertiesResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. + * @param error Error, if any + * @param [response] Property + */ + type CreatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. + * @param error Error, if any + * @param [response] Property + */ + type DeletePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. + * @param error Error, if any + * @param [response] Property + */ + type UpdatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. + * @param error Error, if any + * @param [response] UserLink + */ + type GetUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. + * @param error Error, if any + * @param [response] BatchGetUserLinksResponse + */ + type BatchGetUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchGetUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. + * @param error Error, if any + * @param [response] ListUserLinksResponse + */ + type ListUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. + * @param error Error, if any + * @param [response] AuditUserLinksResponse + */ + type AuditUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AuditUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. + * @param error Error, if any + * @param [response] UserLink + */ + type CreateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. + * @param error Error, if any + * @param [response] BatchCreateUserLinksResponse + */ + type BatchCreateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. + * @param error Error, if any + * @param [response] UserLink + */ + type UpdateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. + * @param error Error, if any + * @param [response] BatchUpdateUserLinksResponse + */ + type BatchUpdateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteUserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. + * @param error Error, if any + * @param [response] Empty + */ + type BatchDeleteUserLinksCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. + * @param error Error, if any + * @param [response] FirebaseLink + */ + type CreateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FirebaseLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteFirebaseLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. + * @param error Error, if any + * @param [response] ListFirebaseLinksResponse + */ + type ListFirebaseLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListFirebaseLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. + * @param error Error, if any + * @param [response] GlobalSiteTag + */ + type GetGlobalSiteTagCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GlobalSiteTag) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. + * @param error Error, if any + * @param [response] GoogleAdsLink + */ + type CreateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. + * @param error Error, if any + * @param [response] GoogleAdsLink + */ + type UpdateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteGoogleAdsLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. + * @param error Error, if any + * @param [response] ListGoogleAdsLinksResponse + */ + type ListGoogleAdsLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. + * @param error Error, if any + * @param [response] DataSharingSettings + */ + type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataSharingSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type GetMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * @param error Error, if any + * @param [response] ListMeasurementProtocolSecretsResponse + */ + type ListMeasurementProtocolSecretsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type CreateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * @param error Error, if any + * @param [response] MeasurementProtocolSecret + */ + type UpdateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. + * @param error Error, if any + * @param [response] AcknowledgeUserDataCollectionResponse + */ + type AcknowledgeUserDataCollectionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * @param error Error, if any + * @param [response] SearchChangeHistoryEventsResponse + */ + type SearchChangeHistoryEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. + * @param error Error, if any + * @param [response] GoogleSignalsSettings + */ + type GetGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. + * @param error Error, if any + * @param [response] GoogleSignalsSettings + */ + type UpdateGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. + * @param error Error, if any + * @param [response] ConversionEvent + */ + type CreateConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. + * @param error Error, if any + * @param [response] ConversionEvent + */ + type GetConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteConversionEventCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. + * @param error Error, if any + * @param [response] ListConversionEventsResponse + */ + type ListConversionEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListConversionEventsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLink + */ + type GetDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. + * @param error Error, if any + * @param [response] ListDisplayVideo360AdvertiserLinksResponse + */ + type ListDisplayVideo360AdvertiserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLink + */ + type CreateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLink + */ + type UpdateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLinkProposal + */ + type GetDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. + * @param error Error, if any + * @param [response] ListDisplayVideo360AdvertiserLinkProposalsResponse + */ + type ListDisplayVideo360AdvertiserLinkProposalsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLinkProposal + */ + type CreateDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] ApproveDisplayVideo360AdvertiserLinkProposalResponse + */ + type ApproveDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. + * @param error Error, if any + * @param [response] DisplayVideo360AdvertiserLinkProposal + */ + type CancelDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type CreateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type UpdateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. + * @param error Error, if any + * @param [response] ListCustomDimensionsResponse + */ + type ListCustomDimensionsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomDimensionsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. + * @param error Error, if any + * @param [response] Empty + */ + type ArchiveCustomDimensionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. + * @param error Error, if any + * @param [response] CustomDimension + */ + type GetCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type CreateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type UpdateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. + * @param error Error, if any + * @param [response] ListCustomMetricsResponse + */ + type ListCustomMetricsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomMetricsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. + * @param error Error, if any + * @param [response] Empty + */ + type ArchiveCustomMetricCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. + * @param error Error, if any + * @param [response] CustomMetric + */ + type GetCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. + * @param error Error, if any + * @param [response] DataRetentionSettings + */ + type GetDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. + * @param error Error, if any + * @param [response] DataRetentionSettings + */ + type UpdateDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type CreateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type UpdateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. + * @param error Error, if any + * @param [response] ListDataStreamsResponse + */ + type ListDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDataStreamsResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. + * @param error Error, if any + * @param [response] DataStream + */ + type GetDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAudience}. + * @param error Error, if any + * @param [response] Audience + */ + type GetAudienceCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Audience) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAudiences}. + * @param error Error, if any + * @param [response] ListAudiencesResponse + */ + type ListAudiencesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAudiencesResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAudience}. + * @param error Error, if any + * @param [response] Audience + */ + type CreateAudienceCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Audience) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAudience}. + * @param error Error, if any + * @param [response] Audience + */ + type UpdateAudienceCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Audience) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveAudience}. + * @param error Error, if any + * @param [response] Empty + */ + type ArchiveAudienceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAttributionSettings}. + * @param error Error, if any + * @param [response] AttributionSettings + */ + type GetAttributionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AttributionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAttributionSettings}. + * @param error Error, if any + * @param [response] AttributionSettings + */ + type UpdateAttributionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AttributionSettings) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#runAccessReport}. + * @param error Error, if any + * @param [response] RunAccessReportResponse + */ + type RunAccessReportCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.RunAccessReportResponse) => void; + } + + /** Properties of a RunAccessReportRequest. */ + interface IRunAccessReportRequest { + + /** RunAccessReportRequest entity */ + entity?: (string|null); + + /** RunAccessReportRequest dimensions */ + dimensions?: (google.analytics.admin.v1alpha.IAccessDimension[]|null); + + /** RunAccessReportRequest metrics */ + metrics?: (google.analytics.admin.v1alpha.IAccessMetric[]|null); + + /** RunAccessReportRequest dateRanges */ + dateRanges?: (google.analytics.admin.v1alpha.IAccessDateRange[]|null); + + /** RunAccessReportRequest dimensionFilter */ + dimensionFilter?: (google.analytics.admin.v1alpha.IAccessFilterExpression|null); + + /** RunAccessReportRequest metricFilter */ + metricFilter?: (google.analytics.admin.v1alpha.IAccessFilterExpression|null); + + /** RunAccessReportRequest offset */ + offset?: (number|Long|string|null); + + /** RunAccessReportRequest limit */ + limit?: (number|Long|string|null); + + /** RunAccessReportRequest timeZone */ + timeZone?: (string|null); + + /** RunAccessReportRequest orderBys */ + orderBys?: (google.analytics.admin.v1alpha.IAccessOrderBy[]|null); + + /** RunAccessReportRequest returnEntityQuota */ + returnEntityQuota?: (boolean|null); + } + + /** Represents a RunAccessReportRequest. */ + class RunAccessReportRequest implements IRunAccessReportRequest { + + /** + * Constructs a new RunAccessReportRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IRunAccessReportRequest); + + /** RunAccessReportRequest entity. */ + public entity: string; + + /** RunAccessReportRequest dimensions. */ + public dimensions: google.analytics.admin.v1alpha.IAccessDimension[]; + + /** RunAccessReportRequest metrics. */ + public metrics: google.analytics.admin.v1alpha.IAccessMetric[]; + + /** RunAccessReportRequest dateRanges. */ + public dateRanges: google.analytics.admin.v1alpha.IAccessDateRange[]; + + /** RunAccessReportRequest dimensionFilter. */ + public dimensionFilter?: (google.analytics.admin.v1alpha.IAccessFilterExpression|null); + + /** RunAccessReportRequest metricFilter. */ + public metricFilter?: (google.analytics.admin.v1alpha.IAccessFilterExpression|null); + + /** RunAccessReportRequest offset. */ + public offset: (number|Long|string); + + /** RunAccessReportRequest limit. */ + public limit: (number|Long|string); + + /** RunAccessReportRequest timeZone. */ + public timeZone: string; + + /** RunAccessReportRequest orderBys. */ + public orderBys: google.analytics.admin.v1alpha.IAccessOrderBy[]; + + /** RunAccessReportRequest returnEntityQuota. */ + public returnEntityQuota: boolean; + + /** + * Creates a new RunAccessReportRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RunAccessReportRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IRunAccessReportRequest): google.analytics.admin.v1alpha.RunAccessReportRequest; + + /** + * Encodes the specified RunAccessReportRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportRequest.verify|verify} messages. + * @param message RunAccessReportRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IRunAccessReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RunAccessReportRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportRequest.verify|verify} messages. + * @param message RunAccessReportRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IRunAccessReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunAccessReportRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunAccessReportRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.RunAccessReportRequest; + + /** + * Decodes a RunAccessReportRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunAccessReportRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.RunAccessReportRequest; + + /** + * Verifies a RunAccessReportRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RunAccessReportRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunAccessReportRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.RunAccessReportRequest; + + /** + * Creates a plain object from a RunAccessReportRequest message. Also converts values to other types if specified. + * @param message RunAccessReportRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.RunAccessReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunAccessReportRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RunAccessReportResponse. */ + interface IRunAccessReportResponse { + + /** RunAccessReportResponse dimensionHeaders */ + dimensionHeaders?: (google.analytics.admin.v1alpha.IAccessDimensionHeader[]|null); + + /** RunAccessReportResponse metricHeaders */ + metricHeaders?: (google.analytics.admin.v1alpha.IAccessMetricHeader[]|null); + + /** RunAccessReportResponse rows */ + rows?: (google.analytics.admin.v1alpha.IAccessRow[]|null); + + /** RunAccessReportResponse rowCount */ + rowCount?: (number|null); + + /** RunAccessReportResponse quota */ + quota?: (google.analytics.admin.v1alpha.IAccessQuota|null); + } + + /** Represents a RunAccessReportResponse. */ + class RunAccessReportResponse implements IRunAccessReportResponse { + + /** + * Constructs a new RunAccessReportResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IRunAccessReportResponse); + + /** RunAccessReportResponse dimensionHeaders. */ + public dimensionHeaders: google.analytics.admin.v1alpha.IAccessDimensionHeader[]; + + /** RunAccessReportResponse metricHeaders. */ + public metricHeaders: google.analytics.admin.v1alpha.IAccessMetricHeader[]; + + /** RunAccessReportResponse rows. */ + public rows: google.analytics.admin.v1alpha.IAccessRow[]; + + /** RunAccessReportResponse rowCount. */ + public rowCount: number; + + /** RunAccessReportResponse quota. */ + public quota?: (google.analytics.admin.v1alpha.IAccessQuota|null); + + /** + * Creates a new RunAccessReportResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunAccessReportResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IRunAccessReportResponse): google.analytics.admin.v1alpha.RunAccessReportResponse; + + /** + * Encodes the specified RunAccessReportResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportResponse.verify|verify} messages. + * @param message RunAccessReportResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IRunAccessReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RunAccessReportResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportResponse.verify|verify} messages. + * @param message RunAccessReportResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IRunAccessReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunAccessReportResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunAccessReportResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.RunAccessReportResponse; + + /** + * Decodes a RunAccessReportResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunAccessReportResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.RunAccessReportResponse; + + /** + * Verifies a RunAccessReportResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RunAccessReportResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunAccessReportResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.RunAccessReportResponse; + + /** + * Creates a plain object from a RunAccessReportResponse message. Also converts values to other types if specified. + * @param message RunAccessReportResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.RunAccessReportResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunAccessReportResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IGetAccountRequest): google.analytics.admin.v1alpha.GetAccountRequest; + + /** + * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IGetAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountsRequest. */ + interface IListAccountsRequest { + + /** ListAccountsRequest pageSize */ + pageSize?: (number|null); + + /** ListAccountsRequest pageToken */ + pageToken?: (string|null); + + /** ListAccountsRequest showDeleted */ + showDeleted?: (boolean|null); + } + + /** Represents a ListAccountsRequest. */ + class ListAccountsRequest implements IListAccountsRequest { + + /** + * Constructs a new ListAccountsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAccountsRequest); + + /** ListAccountsRequest pageSize. */ + public pageSize: number; + + /** ListAccountsRequest pageToken. */ + public pageToken: string; + + /** ListAccountsRequest showDeleted. */ + public showDeleted: boolean; + + /** + * Creates a new ListAccountsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAccountsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAccountsRequest): google.analytics.admin.v1alpha.ListAccountsRequest; + + /** + * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListAccountsResponse. */ + interface IListAccountsResponse { + + /** ListAccountsResponse accounts */ + accounts?: (google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsResponse); + + /** ListAccountsResponse accounts. */ + public accounts: google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsResponse): google.analytics.admin.v1alpha.ListAccountsResponse; + + /** + * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IListAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListAccountsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IDeleteAccountRequest): google.analytics.admin.v1alpha.DeleteAccountRequest; + + /** + * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IDeleteAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateAccountRequest. */ + interface IUpdateAccountRequest { + + /** UpdateAccountRequest account */ + account?: (google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest); + + /** UpdateAccountRequest account. */ + public account?: (google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest): google.analytics.admin.v1alpha.UpdateAccountRequest; + + /** + * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.IUpdateAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateAccountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ProvisionAccountTicketRequest. */ + interface IProvisionAccountTicketRequest { + + /** ProvisionAccountTicketRequest account */ + account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ProvisionAccountTicketRequest redirectUri */ + redirectUri?: (string|null); + } + + /** Represents a ProvisionAccountTicketRequest. */ + class ProvisionAccountTicketRequest implements IProvisionAccountTicketRequest { + + /** + * Constructs a new ProvisionAccountTicketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest); + + /** ProvisionAccountTicketRequest account. */ + public account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ProvisionAccountTicketRequest redirectUri. */ + public redirectUri: string; + + /** + * Creates a new ProvisionAccountTicketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProvisionAccountTicketRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * @param message ProvisionAccountTicketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. + * @param message ProvisionAccountTicketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProvisionAccountTicketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Verifies a ProvisionAccountTicketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProvisionAccountTicketRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + + /** + * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. + * @param message ProvisionAccountTicketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProvisionAccountTicketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ProvisionAccountTicketResponse. */ + interface IProvisionAccountTicketResponse { + + /** ProvisionAccountTicketResponse accountTicketId */ + accountTicketId?: (string|null); + } + + /** Represents a ProvisionAccountTicketResponse. */ + class ProvisionAccountTicketResponse implements IProvisionAccountTicketResponse { + + /** + * Constructs a new ProvisionAccountTicketResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse); + + /** ProvisionAccountTicketResponse accountTicketId. */ + public accountTicketId: string; + + /** + * Creates a new ProvisionAccountTicketResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProvisionAccountTicketResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * @param message ProvisionAccountTicketResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. + * @param message ProvisionAccountTicketResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProvisionAccountTicketResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Verifies a ProvisionAccountTicketResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProvisionAccountTicketResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + + /** + * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. + * @param message ProvisionAccountTicketResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProvisionAccountTicketResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetPropertyRequest. */ + interface IGetPropertyRequest { + + /** GetPropertyRequest name */ + name?: (string|null); + } + + /** Represents a GetPropertyRequest. */ + class GetPropertyRequest implements IGetPropertyRequest { + + /** + * Constructs a new GetPropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetPropertyRequest); + + /** GetPropertyRequest name. */ + public name: string; + + /** + * Creates a new GetPropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetPropertyRequest): google.analytics.admin.v1alpha.GetPropertyRequest; + + /** + * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * @param message GetPropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. + * @param message GetPropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetPropertyRequest; + + /** + * Decodes a GetPropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetPropertyRequest; + + /** + * Verifies a GetPropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CancelDisplayVideo360AdvertiserLinkProposal. - * @param request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns Promise + * Creates a GetPropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPropertyRequest */ - public cancelDisplayVideo360AdvertiserLinkProposal(request: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetPropertyRequest; /** - * Calls CreateCustomDimension. - * @param request CreateCustomDimensionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomDimension + * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. + * @param message GetPropertyRequest + * @param [options] Conversion options + * @returns Plain object */ - public createCustomDimension(request: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimensionCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.GetPropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateCustomDimension. - * @param request CreateCustomDimensionRequest message or plain object - * @returns Promise + * Converts this GetPropertyRequest to JSON. + * @returns JSON object */ - public createCustomDimension(request: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListPropertiesRequest. */ + interface IListPropertiesRequest { + + /** ListPropertiesRequest filter */ + filter?: (string|null); + + /** ListPropertiesRequest pageSize */ + pageSize?: (number|null); + + /** ListPropertiesRequest pageToken */ + pageToken?: (string|null); + + /** ListPropertiesRequest showDeleted */ + showDeleted?: (boolean|null); + } + + /** Represents a ListPropertiesRequest. */ + class ListPropertiesRequest implements IListPropertiesRequest { /** - * Calls UpdateCustomDimension. - * @param request UpdateCustomDimensionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomDimension + * Constructs a new ListPropertiesRequest. + * @param [properties] Properties to set */ - public updateCustomDimension(request: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimensionCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IListPropertiesRequest); + + /** ListPropertiesRequest filter. */ + public filter: string; + + /** ListPropertiesRequest pageSize. */ + public pageSize: number; + + /** ListPropertiesRequest pageToken. */ + public pageToken: string; + + /** ListPropertiesRequest showDeleted. */ + public showDeleted: boolean; /** - * Calls UpdateCustomDimension. - * @param request UpdateCustomDimensionRequest message or plain object - * @returns Promise + * Creates a new ListPropertiesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPropertiesRequest instance */ - public updateCustomDimension(request: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IListPropertiesRequest): google.analytics.admin.v1alpha.ListPropertiesRequest; /** - * Calls ListCustomDimensions. - * @param request ListCustomDimensionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse + * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * @param message ListPropertiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listCustomDimensions(request: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensionsCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListCustomDimensions. - * @param request ListCustomDimensionsRequest message or plain object - * @returns Promise + * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. + * @param message ListPropertiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listCustomDimensions(request: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ArchiveCustomDimension. - * @param request ArchiveCustomDimensionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a ListPropertiesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public archiveCustomDimension(request: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimensionCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListPropertiesRequest; /** - * Calls ArchiveCustomDimension. - * @param request ArchiveCustomDimensionRequest message or plain object - * @returns Promise + * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPropertiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public archiveCustomDimension(request: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListPropertiesRequest; /** - * Calls GetCustomDimension. - * @param request GetCustomDimensionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomDimension + * Verifies a ListPropertiesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getCustomDimension(request: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimensionCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetCustomDimension. - * @param request GetCustomDimensionRequest message or plain object - * @returns Promise + * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPropertiesRequest */ - public getCustomDimension(request: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListPropertiesRequest; /** - * Calls CreateCustomMetric. - * @param request CreateCustomMetricRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomMetric + * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. + * @param message ListPropertiesRequest + * @param [options] Conversion options + * @returns Plain object */ - public createCustomMetric(request: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetricCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.ListPropertiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateCustomMetric. - * @param request CreateCustomMetricRequest message or plain object - * @returns Promise + * Converts this ListPropertiesRequest to JSON. + * @returns JSON object */ - public createCustomMetric(request: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListPropertiesResponse. */ + interface IListPropertiesResponse { + + /** ListPropertiesResponse properties */ + properties?: (google.analytics.admin.v1alpha.IProperty[]|null); + + /** ListPropertiesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPropertiesResponse. */ + class ListPropertiesResponse implements IListPropertiesResponse { + + /** + * Constructs a new ListPropertiesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListPropertiesResponse); + + /** ListPropertiesResponse properties. */ + public properties: google.analytics.admin.v1alpha.IProperty[]; + + /** ListPropertiesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListPropertiesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPropertiesResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListPropertiesResponse): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * @param message ListPropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. + * @param message ListPropertiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPropertiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Verifies a ListPropertiesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPropertiesResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListPropertiesResponse; + + /** + * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. + * @param message ListPropertiesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListPropertiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPropertiesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdatePropertyRequest. */ + interface IUpdatePropertyRequest { + + /** UpdatePropertyRequest property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** UpdatePropertyRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdatePropertyRequest. */ + class UpdatePropertyRequest implements IUpdatePropertyRequest { /** - * Calls UpdateCustomMetric. - * @param request UpdateCustomMetricRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomMetric + * Constructs a new UpdatePropertyRequest. + * @param [properties] Properties to set */ - public updateCustomMetric(request: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetricCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IUpdatePropertyRequest); + + /** UpdatePropertyRequest property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** UpdatePropertyRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Calls UpdateCustomMetric. - * @param request UpdateCustomMetricRequest message or plain object - * @returns Promise + * Creates a new UpdatePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdatePropertyRequest instance */ - public updateCustomMetric(request: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.IUpdatePropertyRequest): google.analytics.admin.v1alpha.UpdatePropertyRequest; /** - * Calls ListCustomMetrics. - * @param request ListCustomMetricsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListCustomMetricsResponse + * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * @param message UpdatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listCustomMetrics(request: google.analytics.admin.v1alpha.IListCustomMetricsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetricsCallback): void; + public static encode(message: google.analytics.admin.v1alpha.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListCustomMetrics. - * @param request ListCustomMetricsRequest message or plain object - * @returns Promise + * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. + * @param message UpdatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listCustomMetrics(request: google.analytics.admin.v1alpha.IListCustomMetricsRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ArchiveCustomMetric. - * @param request ArchiveCustomMetricRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes an UpdatePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public archiveCustomMetric(request: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetricCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdatePropertyRequest; /** - * Calls ArchiveCustomMetric. - * @param request ArchiveCustomMetricRequest message or plain object - * @returns Promise + * Decodes an UpdatePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public archiveCustomMetric(request: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdatePropertyRequest; /** - * Calls GetCustomMetric. - * @param request GetCustomMetricRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomMetric + * Verifies an UpdatePropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getCustomMetric(request: google.analytics.admin.v1alpha.IGetCustomMetricRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetricCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetCustomMetric. - * @param request GetCustomMetricRequest message or plain object - * @returns Promise + * Creates an UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdatePropertyRequest */ - public getCustomMetric(request: google.analytics.admin.v1alpha.IGetCustomMetricRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdatePropertyRequest; /** - * Calls GetDataRetentionSettings. - * @param request GetDataRetentionSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. + * @param message UpdatePropertyRequest + * @param [options] Conversion options + * @returns Plain object */ - public getDataRetentionSettings(request: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettingsCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.UpdatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetDataRetentionSettings. - * @param request GetDataRetentionSettingsRequest message or plain object - * @returns Promise + * Converts this UpdatePropertyRequest to JSON. + * @returns JSON object */ - public getDataRetentionSettings(request: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreatePropertyRequest. */ + interface ICreatePropertyRequest { + + /** CreatePropertyRequest property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + } + + /** Represents a CreatePropertyRequest. */ + class CreatePropertyRequest implements ICreatePropertyRequest { /** - * Calls UpdateDataRetentionSettings. - * @param request UpdateDataRetentionSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataRetentionSettings + * Constructs a new CreatePropertyRequest. + * @param [properties] Properties to set */ - public updateDataRetentionSettings(request: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettingsCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.ICreatePropertyRequest); + + /** CreatePropertyRequest property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); /** - * Calls UpdateDataRetentionSettings. - * @param request UpdateDataRetentionSettingsRequest message or plain object - * @returns Promise + * Creates a new CreatePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePropertyRequest instance */ - public updateDataRetentionSettings(request: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): Promise; + public static create(properties?: google.analytics.admin.v1alpha.ICreatePropertyRequest): google.analytics.admin.v1alpha.CreatePropertyRequest; /** - * Calls CreateDataStream. - * @param request CreateDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataStream + * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * @param message CreatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createDataStream(request: google.analytics.admin.v1alpha.ICreateDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStreamCallback): void; + public static encode(message: google.analytics.admin.v1alpha.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateDataStream. - * @param request CreateDataStreamRequest message or plain object - * @returns Promise + * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. + * @param message CreatePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createDataStream(request: google.analytics.admin.v1alpha.ICreateDataStreamRequest): Promise; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDataStream. - * @param request DeleteDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a CreatePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataStream(request: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStreamCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreatePropertyRequest; /** - * Calls DeleteDataStream. - * @param request DeleteDataStreamRequest message or plain object - * @returns Promise + * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataStream(request: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreatePropertyRequest; /** - * Calls UpdateDataStream. - * @param request UpdateDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataStream + * Verifies a CreatePropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateDataStream(request: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStreamCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateDataStream. - * @param request UpdateDataStreamRequest message or plain object - * @returns Promise + * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePropertyRequest */ - public updateDataStream(request: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreatePropertyRequest; /** - * Calls ListDataStreams. - * @param request ListDataStreamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataStreamsResponse + * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. + * @param message CreatePropertyRequest + * @param [options] Conversion options + * @returns Plain object */ - public listDataStreams(request: google.analytics.admin.v1alpha.IListDataStreamsRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreamsCallback): void; + public static toObject(message: google.analytics.admin.v1alpha.CreatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListDataStreams. - * @param request ListDataStreamsRequest message or plain object - * @returns Promise + * Converts this CreatePropertyRequest to JSON. + * @returns JSON object */ - public listDataStreams(request: google.analytics.admin.v1alpha.IListDataStreamsRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeletePropertyRequest. */ + interface IDeletePropertyRequest { + + /** DeletePropertyRequest name */ + name?: (string|null); + } + + /** Represents a DeletePropertyRequest. */ + class DeletePropertyRequest implements IDeletePropertyRequest { /** - * Calls GetDataStream. - * @param request GetDataStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataStream + * Constructs a new DeletePropertyRequest. + * @param [properties] Properties to set */ - public getDataStream(request: google.analytics.admin.v1alpha.IGetDataStreamRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStreamCallback): void; + constructor(properties?: google.analytics.admin.v1alpha.IDeletePropertyRequest); + + /** DeletePropertyRequest name. */ + public name: string; /** - * Calls GetDataStream. - * @param request GetDataStreamRequest message or plain object - * @returns Promise + * Creates a new DeletePropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePropertyRequest instance */ - public getDataStream(request: google.analytics.admin.v1alpha.IGetDataStreamRequest): Promise; - } - - namespace AnalyticsAdminService { + public static create(properties?: google.analytics.admin.v1alpha.IDeletePropertyRequest): google.analytics.admin.v1alpha.DeletePropertyRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. - * @param error Error, if any - * @param [response] Account + * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * @param message DeletePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; + public static encode(message: google.analytics.admin.v1alpha.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. - * @param error Error, if any - * @param [response] ListAccountsResponse + * Encodes the specified DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. + * @param message DeletePropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListAccountsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountsResponse) => void; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAccount}. - * @param error Error, if any - * @param [response] Empty + * Decodes a DeletePropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteAccountCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeletePropertyRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. - * @param error Error, if any - * @param [response] Account + * Decodes a DeletePropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeletePropertyRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. - * @param error Error, if any - * @param [response] ProvisionAccountTicketResponse + * Verifies a DeletePropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ProvisionAccountTicketCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. - * @param error Error, if any - * @param [response] ListAccountSummariesResponse + * Creates a DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePropertyRequest */ - type ListAccountSummariesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountSummariesResponse) => void; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeletePropertyRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. - * @param error Error, if any - * @param [response] Property + * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. + * @param message DeletePropertyRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetPropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + public static toObject(message: google.analytics.admin.v1alpha.DeletePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. - * @param error Error, if any - * @param [response] ListPropertiesResponse + * Converts this DeletePropertyRequest to JSON. + * @returns JSON object */ - type ListPropertiesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListPropertiesResponse) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetUserLinkRequest. */ + interface IGetUserLinkRequest { + + /** GetUserLinkRequest name */ + name?: (string|null); + } + + /** Represents a GetUserLinkRequest. */ + class GetUserLinkRequest implements IGetUserLinkRequest { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. - * @param error Error, if any - * @param [response] Property + * Constructs a new GetUserLinkRequest. + * @param [properties] Properties to set */ - type CreatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + constructor(properties?: google.analytics.admin.v1alpha.IGetUserLinkRequest); + + /** GetUserLinkRequest name. */ + public name: string; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. - * @param error Error, if any - * @param [response] Property + * Creates a new GetUserLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetUserLinkRequest instance */ - type DeletePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + public static create(properties?: google.analytics.admin.v1alpha.IGetUserLinkRequest): google.analytics.admin.v1alpha.GetUserLinkRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. - * @param error Error, if any - * @param [response] Property + * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * @param message GetUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; + public static encode(message: google.analytics.admin.v1alpha.IGetUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. - * @param error Error, if any - * @param [response] UserLink + * Encodes the specified GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. + * @param message GetUserLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. - * @param error Error, if any - * @param [response] BatchGetUserLinksResponse + * Decodes a GetUserLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type BatchGetUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchGetUserLinksResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetUserLinkRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. - * @param error Error, if any - * @param [response] ListUserLinksResponse + * Decodes a GetUserLinkRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetUserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListUserLinksResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetUserLinkRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. - * @param error Error, if any - * @param [response] AuditUserLinksResponse + * Verifies a GetUserLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type AuditUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AuditUserLinksResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. - * @param error Error, if any - * @param [response] UserLink + * Creates a GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetUserLinkRequest */ - type CreateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetUserLinkRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. - * @param error Error, if any - * @param [response] BatchCreateUserLinksResponse + * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. + * @param message GetUserLinkRequest + * @param [options] Conversion options + * @returns Plain object */ - type BatchCreateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) => void; + public static toObject(message: google.analytics.admin.v1alpha.GetUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. - * @param error Error, if any - * @param [response] UserLink + * Converts this GetUserLinkRequest to JSON. + * @returns JSON object */ - type UpdateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchGetUserLinksRequest. */ + interface IBatchGetUserLinksRequest { + + /** BatchGetUserLinksRequest parent */ + parent?: (string|null); + + /** BatchGetUserLinksRequest names */ + names?: (string[]|null); + } + + /** Represents a BatchGetUserLinksRequest. */ + class BatchGetUserLinksRequest implements IBatchGetUserLinksRequest { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. - * @param error Error, if any - * @param [response] BatchUpdateUserLinksResponse + * Constructs a new BatchGetUserLinksRequest. + * @param [properties] Properties to set */ - type BatchUpdateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) => void; + constructor(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest); + + /** BatchGetUserLinksRequest parent. */ + public parent: string; + + /** BatchGetUserLinksRequest names. */ + public names: string[]; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. - * @param error Error, if any - * @param [response] Empty + * Creates a new BatchGetUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchGetUserLinksRequest instance */ - type DeleteUserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. - * @param error Error, if any - * @param [response] Empty + * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * @param message BatchGetUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type BatchDeleteUserLinksCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encode(message: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. - * @param error Error, if any - * @param [response] FirebaseLink + * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. + * @param message BatchGetUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FirebaseLink) => void; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. - * @param error Error, if any - * @param [response] Empty + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchGetUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteFirebaseLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. - * @param error Error, if any - * @param [response] ListFirebaseLinksResponse + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchGetUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListFirebaseLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListFirebaseLinksResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. - * @param error Error, if any - * @param [response] GlobalSiteTag + * Verifies a BatchGetUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetGlobalSiteTagCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GlobalSiteTag) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. - * @param error Error, if any - * @param [response] GoogleAdsLink + * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchGetUserLinksRequest */ - type CreateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. - * @param error Error, if any - * @param [response] GoogleAdsLink + * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchGetUserLinksRequest + * @param [options] Conversion options + * @returns Plain object */ - type UpdateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; + public static toObject(message: google.analytics.admin.v1alpha.BatchGetUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. - * @param error Error, if any - * @param [response] Empty + * Converts this BatchGetUserLinksRequest to JSON. + * @returns JSON object */ - type DeleteGoogleAdsLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchGetUserLinksResponse. */ + interface IBatchGetUserLinksResponse { + + /** BatchGetUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + } - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. - * @param error Error, if any - * @param [response] ListGoogleAdsLinksResponse - */ - type ListGoogleAdsLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) => void; + /** Represents a BatchGetUserLinksResponse. */ + class BatchGetUserLinksResponse implements IBatchGetUserLinksResponse { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. - * @param error Error, if any - * @param [response] DataSharingSettings + * Constructs a new BatchGetUserLinksResponse. + * @param [properties] Properties to set */ - type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataSharingSettings) => void; + constructor(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse); - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. - * @param error Error, if any - * @param [response] MeasurementProtocolSecret - */ - type GetMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + /** BatchGetUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. - * @param error Error, if any - * @param [response] ListMeasurementProtocolSecretsResponse + * Creates a new BatchGetUserLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchGetUserLinksResponse instance */ - type ListMeasurementProtocolSecretsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) => void; + public static create(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. - * @param error Error, if any - * @param [response] MeasurementProtocolSecret + * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * @param message BatchGetUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + public static encode(message: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. - * @param error Error, if any - * @param [response] Empty + * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. + * @param message BatchGetUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. - * @param error Error, if any - * @param [response] MeasurementProtocolSecret + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchGetUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. - * @param error Error, if any - * @param [response] AcknowledgeUserDataCollectionResponse + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchGetUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type AcknowledgeUserDataCollectionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. - * @param error Error, if any - * @param [response] SearchChangeHistoryEventsResponse + * Verifies a BatchGetUserLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type SearchChangeHistoryEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. - * @param error Error, if any - * @param [response] GoogleSignalsSettings + * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchGetUserLinksResponse */ - type GetGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. - * @param error Error, if any - * @param [response] GoogleSignalsSettings + * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. + * @param message BatchGetUserLinksResponse + * @param [options] Conversion options + * @returns Plain object */ - type UpdateGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; + public static toObject(message: google.analytics.admin.v1alpha.BatchGetUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. - * @param error Error, if any - * @param [response] ConversionEvent + * Converts this BatchGetUserLinksResponse to JSON. + * @returns JSON object */ - type CreateConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListUserLinksRequest. */ + interface IListUserLinksRequest { + + /** ListUserLinksRequest parent */ + parent?: (string|null); + + /** ListUserLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListUserLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListUserLinksRequest. */ + class ListUserLinksRequest implements IListUserLinksRequest { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. - * @param error Error, if any - * @param [response] ConversionEvent + * Constructs a new ListUserLinksRequest. + * @param [properties] Properties to set */ - type GetConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; + constructor(properties?: google.analytics.admin.v1alpha.IListUserLinksRequest); + + /** ListUserLinksRequest parent. */ + public parent: string; + + /** ListUserLinksRequest pageSize. */ + public pageSize: number; + + /** ListUserLinksRequest pageToken. */ + public pageToken: string; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. - * @param error Error, if any - * @param [response] Empty + * Creates a new ListUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListUserLinksRequest instance */ - type DeleteConversionEventCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.analytics.admin.v1alpha.IListUserLinksRequest): google.analytics.admin.v1alpha.ListUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. - * @param error Error, if any - * @param [response] ListConversionEventsResponse + * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * @param message ListUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListConversionEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListConversionEventsResponse) => void; + public static encode(message: google.analytics.admin.v1alpha.IListUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. - * @param error Error, if any - * @param [response] DisplayVideo360AdvertiserLink + * Encodes the specified ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. + * @param message ListUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. - * @param error Error, if any - * @param [response] ListDisplayVideo360AdvertiserLinksResponse + * Decodes a ListUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListDisplayVideo360AdvertiserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. - * @param error Error, if any - * @param [response] DisplayVideo360AdvertiserLink + * Decodes a ListUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. - * @param error Error, if any - * @param [response] Empty + * Verifies a ListUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DeleteDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. - * @param error Error, if any - * @param [response] DisplayVideo360AdvertiserLink + * Creates a ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListUserLinksRequest */ - type UpdateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. - * @param error Error, if any - * @param [response] DisplayVideo360AdvertiserLinkProposal + * Creates a plain object from a ListUserLinksRequest message. Also converts values to other types if specified. + * @param message ListUserLinksRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + public static toObject(message: google.analytics.admin.v1alpha.ListUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. - * @param error Error, if any - * @param [response] ListDisplayVideo360AdvertiserLinkProposalsResponse + * Converts this ListUserLinksRequest to JSON. + * @returns JSON object */ - type ListDisplayVideo360AdvertiserLinkProposalsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListUserLinksResponse. */ + interface IListUserLinksResponse { + + /** ListUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + + /** ListUserLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListUserLinksResponse. */ + class ListUserLinksResponse implements IListUserLinksResponse { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. - * @param error Error, if any - * @param [response] DisplayVideo360AdvertiserLinkProposal + * Constructs a new ListUserLinksResponse. + * @param [properties] Properties to set */ - type CreateDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + constructor(properties?: google.analytics.admin.v1alpha.IListUserLinksResponse); + + /** ListUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + + /** ListUserLinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. - * @param error Error, if any - * @param [response] Empty + * Creates a new ListUserLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListUserLinksResponse instance */ - type DeleteDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.analytics.admin.v1alpha.IListUserLinksResponse): google.analytics.admin.v1alpha.ListUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. - * @param error Error, if any - * @param [response] ApproveDisplayVideo360AdvertiserLinkProposalResponse + * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + * @param message ListUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ApproveDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) => void; + public static encode(message: google.analytics.admin.v1alpha.IListUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. - * @param error Error, if any - * @param [response] DisplayVideo360AdvertiserLinkProposal + * Encodes the specified ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. + * @param message ListUserLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CancelDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. - * @param error Error, if any - * @param [response] CustomDimension + * Decodes a ListUserLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. - * @param error Error, if any - * @param [response] CustomDimension + * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListUserLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. - * @param error Error, if any - * @param [response] ListCustomDimensionsResponse + * Verifies a ListUserLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListCustomDimensionsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomDimensionsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. - * @param error Error, if any - * @param [response] Empty + * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListUserLinksResponse */ - type ArchiveCustomDimensionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListUserLinksResponse; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. - * @param error Error, if any - * @param [response] CustomDimension + * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. + * @param message ListUserLinksResponse + * @param [options] Conversion options + * @returns Plain object */ - type GetCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; + public static toObject(message: google.analytics.admin.v1alpha.ListUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. - * @param error Error, if any - * @param [response] CustomMetric + * Converts this ListUserLinksResponse to JSON. + * @returns JSON object */ - type CreateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + public toJSON(): { [k: string]: any }; + } - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. - * @param error Error, if any - * @param [response] CustomMetric - */ - type UpdateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + /** Properties of an AuditUserLinksRequest. */ + interface IAuditUserLinksRequest { + + /** AuditUserLinksRequest parent */ + parent?: (string|null); + + /** AuditUserLinksRequest pageSize */ + pageSize?: (number|null); + + /** AuditUserLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents an AuditUserLinksRequest. */ + class AuditUserLinksRequest implements IAuditUserLinksRequest { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. - * @param error Error, if any - * @param [response] ListCustomMetricsResponse + * Constructs a new AuditUserLinksRequest. + * @param [properties] Properties to set */ - type ListCustomMetricsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomMetricsResponse) => void; + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLinksRequest); + + /** AuditUserLinksRequest parent. */ + public parent: string; + + /** AuditUserLinksRequest pageSize. */ + public pageSize: number; + + /** AuditUserLinksRequest pageToken. */ + public pageToken: string; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. - * @param error Error, if any - * @param [response] Empty + * Creates a new AuditUserLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditUserLinksRequest instance */ - type ArchiveCustomMetricCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLinksRequest): google.analytics.admin.v1alpha.AuditUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. - * @param error Error, if any - * @param [response] CustomMetric + * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * @param message AuditUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. - * @param error Error, if any - * @param [response] DataRetentionSettings + * Encodes the specified AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. + * @param message AuditUserLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. - * @param error Error, if any - * @param [response] DataRetentionSettings + * Decodes an AuditUserLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. - * @param error Error, if any - * @param [response] DataStream + * Decodes an AuditUserLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditUserLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. - * @param error Error, if any - * @param [response] Empty + * Verifies an AuditUserLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DeleteDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. - * @param error Error, if any - * @param [response] DataStream + * Creates an AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditUserLinksRequest */ - type UpdateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLinksRequest; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. - * @param error Error, if any - * @param [response] ListDataStreamsResponse + * Creates a plain object from an AuditUserLinksRequest message. Also converts values to other types if specified. + * @param message AuditUserLinksRequest + * @param [options] Conversion options + * @returns Plain object */ - type ListDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDataStreamsResponse) => void; + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. - * @param error Error, if any - * @param [response] DataStream + * Converts this AuditUserLinksRequest to JSON. + * @returns JSON object */ - type GetDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a GetAccountRequest. */ - interface IGetAccountRequest { + /** Properties of an AuditUserLinksResponse. */ + interface IAuditUserLinksResponse { - /** GetAccountRequest name */ - name?: (string|null); + /** AuditUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IAuditUserLink[]|null); + + /** AuditUserLinksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetAccountRequest. */ - class GetAccountRequest implements IGetAccountRequest { + /** Represents an AuditUserLinksResponse. */ + class AuditUserLinksResponse implements IAuditUserLinksResponse { /** - * Constructs a new GetAccountRequest. + * Constructs a new AuditUserLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetAccountRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLinksResponse); - /** GetAccountRequest name. */ - public name: string; + /** AuditUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IAuditUserLink[]; + + /** AuditUserLinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetAccountRequest instance using the specified properties. + * Creates a new AuditUserLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetAccountRequest instance + * @returns AuditUserLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetAccountRequest): google.analytics.admin.v1alpha.GetAccountRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLinksResponse): google.analytics.admin.v1alpha.AuditUserLinksResponse; /** - * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. - * @param message GetAccountRequest message or plain object to encode + * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * @param message AuditUserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. - * @param message GetAccountRequest message or plain object to encode + * Encodes the specified AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. + * @param message AuditUserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAccountRequest message from the specified reader or buffer. + * Decodes an AuditUserLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAccountRequest + * @returns AuditUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetAccountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLinksResponse; /** - * Decodes a GetAccountRequest message from the specified reader or buffer, length delimited. + * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAccountRequest + * @returns AuditUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetAccountRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLinksResponse; /** - * Verifies a GetAccountRequest message. + * Verifies an AuditUserLinksResponse message. * @param message Plain object 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. + * Creates an AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAccountRequest + * @returns AuditUserLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAccountRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLinksResponse; /** - * Creates a plain object from a GetAccountRequest message. Also converts values to other types if specified. - * @param message GetAccountRequest + * Creates a plain object from an AuditUserLinksResponse message. Also converts values to other types if specified. + * @param message AuditUserLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAccountRequest to JSON. + * Converts this AuditUserLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAccountsRequest. */ - interface IListAccountsRequest { + /** Properties of a CreateUserLinkRequest. */ + interface ICreateUserLinkRequest { - /** ListAccountsRequest pageSize */ - pageSize?: (number|null); + /** CreateUserLinkRequest parent */ + parent?: (string|null); - /** ListAccountsRequest pageToken */ - pageToken?: (string|null); + /** CreateUserLinkRequest notifyNewUser */ + notifyNewUser?: (boolean|null); - /** ListAccountsRequest showDeleted */ - showDeleted?: (boolean|null); + /** CreateUserLinkRequest userLink */ + userLink?: (google.analytics.admin.v1alpha.IUserLink|null); } - /** Represents a ListAccountsRequest. */ - class ListAccountsRequest implements IListAccountsRequest { + /** Represents a CreateUserLinkRequest. */ + class CreateUserLinkRequest implements ICreateUserLinkRequest { /** - * Constructs a new ListAccountsRequest. + * Constructs a new CreateUserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListAccountsRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateUserLinkRequest); - /** ListAccountsRequest pageSize. */ - public pageSize: number; + /** CreateUserLinkRequest parent. */ + public parent: string; - /** ListAccountsRequest pageToken. */ - public pageToken: string; + /** CreateUserLinkRequest notifyNewUser. */ + public notifyNewUser: boolean; - /** ListAccountsRequest showDeleted. */ - public showDeleted: boolean; + /** CreateUserLinkRequest userLink. */ + public userLink?: (google.analytics.admin.v1alpha.IUserLink|null); /** - * Creates a new ListAccountsRequest instance using the specified properties. + * Creates a new CreateUserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAccountsRequest instance + * @returns CreateUserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListAccountsRequest): google.analytics.admin.v1alpha.ListAccountsRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateUserLinkRequest): google.analytics.admin.v1alpha.CreateUserLinkRequest; /** - * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. - * @param message ListAccountsRequest message or plain object to encode + * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * @param message CreateUserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. - * @param message ListAccountsRequest message or plain object to encode + * Encodes the specified CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. + * @param message CreateUserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAccountsRequest message from the specified reader or buffer. + * Decodes a CreateUserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAccountsRequest + * @returns CreateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateUserLinkRequest; /** - * Decodes a ListAccountsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAccountsRequest + * @returns CreateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateUserLinkRequest; /** - * Verifies a ListAccountsRequest message. + * Verifies a CreateUserLinkRequest message. * @param message Plain object 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. + * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAccountsRequest + * @returns CreateUserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateUserLinkRequest; /** - * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified. - * @param message ListAccountsRequest + * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. + * @param message CreateUserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListAccountsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAccountsRequest to JSON. + * Converts this CreateUserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAccountsResponse. */ - interface IListAccountsResponse { + /** Properties of a BatchCreateUserLinksRequest. */ + interface IBatchCreateUserLinksRequest { - /** ListAccountsResponse accounts */ - accounts?: (google.analytics.admin.v1alpha.IAccount[]|null); + /** BatchCreateUserLinksRequest parent */ + parent?: (string|null); - /** ListAccountsResponse nextPageToken */ - nextPageToken?: (string|null); + /** BatchCreateUserLinksRequest notifyNewUsers */ + notifyNewUsers?: (boolean|null); + + /** BatchCreateUserLinksRequest requests */ + requests?: (google.analytics.admin.v1alpha.ICreateUserLinkRequest[]|null); } - /** Represents a ListAccountsResponse. */ - class ListAccountsResponse implements IListAccountsResponse { + /** Represents a BatchCreateUserLinksRequest. */ + class BatchCreateUserLinksRequest implements IBatchCreateUserLinksRequest { /** - * Constructs a new ListAccountsResponse. + * Constructs a new BatchCreateUserLinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListAccountsResponse); + constructor(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest); - /** ListAccountsResponse accounts. */ - public accounts: google.analytics.admin.v1alpha.IAccount[]; + /** BatchCreateUserLinksRequest parent. */ + public parent: string; - /** ListAccountsResponse nextPageToken. */ - public nextPageToken: string; + /** BatchCreateUserLinksRequest notifyNewUsers. */ + public notifyNewUsers: boolean; + + /** BatchCreateUserLinksRequest requests. */ + public requests: google.analytics.admin.v1alpha.ICreateUserLinkRequest[]; /** - * Creates a new ListAccountsResponse instance using the specified properties. + * Creates a new BatchCreateUserLinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAccountsResponse instance + * @returns BatchCreateUserLinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListAccountsResponse): google.analytics.admin.v1alpha.ListAccountsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; /** - * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. - * @param message ListAccountsResponse message or plain object to encode + * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * @param message BatchCreateUserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. - * @param message ListAccountsResponse message or plain object to encode + * Encodes the specified BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * @param message BatchCreateUserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAccountsResponse message from the specified reader or buffer. + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAccountsResponse + * @returns BatchCreateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; /** - * Decodes a ListAccountsResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAccountsResponse + * @returns BatchCreateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; /** - * Verifies a ListAccountsResponse message. + * Verifies a BatchCreateUserLinksRequest message. * @param message Plain object 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. + * Creates a BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAccountsResponse + * @returns BatchCreateUserLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; /** - * Creates a plain object from a ListAccountsResponse message. Also converts values to other types if specified. - * @param message ListAccountsResponse + * Creates a plain object from a BatchCreateUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchCreateUserLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListAccountsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAccountsResponse to JSON. + * Converts this BatchCreateUserLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteAccountRequest. */ - interface IDeleteAccountRequest { + /** Properties of a BatchCreateUserLinksResponse. */ + interface IBatchCreateUserLinksResponse { - /** DeleteAccountRequest name */ - name?: (string|null); + /** BatchCreateUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); } - /** Represents a DeleteAccountRequest. */ - class DeleteAccountRequest implements IDeleteAccountRequest { + /** Represents a BatchCreateUserLinksResponse. */ + class BatchCreateUserLinksResponse implements IBatchCreateUserLinksResponse { /** - * Constructs a new DeleteAccountRequest. + * Constructs a new BatchCreateUserLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteAccountRequest); + constructor(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse); - /** DeleteAccountRequest name. */ - public name: string; + /** BatchCreateUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; /** - * Creates a new DeleteAccountRequest instance using the specified properties. + * Creates a new BatchCreateUserLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteAccountRequest instance + * @returns BatchCreateUserLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteAccountRequest): google.analytics.admin.v1alpha.DeleteAccountRequest; + public static create(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; /** - * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. - * @param message DeleteAccountRequest message or plain object to encode + * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * @param message BatchCreateUserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. - * @param message DeleteAccountRequest message or plain object to encode + * Encodes the specified BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * @param message BatchCreateUserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteAccountRequest message from the specified reader or buffer. + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteAccountRequest + * @returns BatchCreateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteAccountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; /** - * Decodes a DeleteAccountRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteAccountRequest + * @returns BatchCreateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteAccountRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; /** - * Verifies a DeleteAccountRequest message. + * Verifies a BatchCreateUserLinksResponse message. * @param message Plain object 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. + * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteAccountRequest + * @returns BatchCreateUserLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteAccountRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; /** - * Creates a plain object from a DeleteAccountRequest message. Also converts values to other types if specified. - * @param message DeleteAccountRequest + * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. + * @param message BatchCreateUserLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.BatchCreateUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteAccountRequest to JSON. + * Converts this BatchCreateUserLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateAccountRequest. */ - interface IUpdateAccountRequest { - - /** UpdateAccountRequest account */ - account?: (google.analytics.admin.v1alpha.IAccount|null); + /** Properties of an UpdateUserLinkRequest. */ + interface IUpdateUserLinkRequest { - /** UpdateAccountRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** UpdateUserLinkRequest userLink */ + userLink?: (google.analytics.admin.v1alpha.IUserLink|null); } - /** Represents an UpdateAccountRequest. */ - class UpdateAccountRequest implements IUpdateAccountRequest { + /** Represents an UpdateUserLinkRequest. */ + class UpdateUserLinkRequest implements IUpdateUserLinkRequest { /** - * Constructs a new UpdateAccountRequest. + * Constructs a new UpdateUserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateAccountRequest); - - /** UpdateAccountRequest account. */ - public account?: (google.analytics.admin.v1alpha.IAccount|null); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateUserLinkRequest); - /** UpdateAccountRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** UpdateUserLinkRequest userLink. */ + public userLink?: (google.analytics.admin.v1alpha.IUserLink|null); /** - * Creates a new UpdateAccountRequest instance using the specified properties. + * Creates a new UpdateUserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateAccountRequest instance + * @returns UpdateUserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateAccountRequest): google.analytics.admin.v1alpha.UpdateAccountRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateUserLinkRequest): google.analytics.admin.v1alpha.UpdateUserLinkRequest; /** - * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. - * @param message UpdateAccountRequest message or plain object to encode + * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * @param message UpdateUserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. - * @param message UpdateAccountRequest message or plain object to encode + * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * @param message UpdateUserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateAccountRequest message from the specified reader or buffer. + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateAccountRequest + * @returns UpdateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateAccountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateUserLinkRequest; /** - * Decodes an UpdateAccountRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateAccountRequest + * @returns UpdateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateAccountRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateUserLinkRequest; /** - * Verifies an UpdateAccountRequest message. + * Verifies an UpdateUserLinkRequest message. * @param message Plain 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. + * Creates an UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateAccountRequest + * @returns UpdateUserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAccountRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateUserLinkRequest; /** - * Creates a plain object from an UpdateAccountRequest message. Also converts values to other types if specified. - * @param message UpdateAccountRequest + * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. + * @param message UpdateUserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateAccountRequest to JSON. + * Converts this UpdateUserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ProvisionAccountTicketRequest. */ - interface IProvisionAccountTicketRequest { + /** Properties of a BatchUpdateUserLinksRequest. */ + interface IBatchUpdateUserLinksRequest { - /** ProvisionAccountTicketRequest account */ - account?: (google.analytics.admin.v1alpha.IAccount|null); + /** BatchUpdateUserLinksRequest parent */ + parent?: (string|null); - /** ProvisionAccountTicketRequest redirectUri */ - redirectUri?: (string|null); + /** BatchUpdateUserLinksRequest requests */ + requests?: (google.analytics.admin.v1alpha.IUpdateUserLinkRequest[]|null); } - /** Represents a ProvisionAccountTicketRequest. */ - class ProvisionAccountTicketRequest implements IProvisionAccountTicketRequest { + /** Represents a BatchUpdateUserLinksRequest. */ + class BatchUpdateUserLinksRequest implements IBatchUpdateUserLinksRequest { /** - * Constructs a new ProvisionAccountTicketRequest. + * Constructs a new BatchUpdateUserLinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest); + constructor(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest); - /** ProvisionAccountTicketRequest account. */ - public account?: (google.analytics.admin.v1alpha.IAccount|null); + /** BatchUpdateUserLinksRequest parent. */ + public parent: string; - /** ProvisionAccountTicketRequest redirectUri. */ - public redirectUri: string; + /** BatchUpdateUserLinksRequest requests. */ + public requests: google.analytics.admin.v1alpha.IUpdateUserLinkRequest[]; /** - * Creates a new ProvisionAccountTicketRequest instance using the specified properties. + * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ProvisionAccountTicketRequest instance + * @returns BatchUpdateUserLinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + public static create(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; /** - * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. - * @param message ProvisionAccountTicketRequest message or plain object to encode + * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * @param message BatchUpdateUserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. - * @param message ProvisionAccountTicketRequest message or plain object to encode + * Encodes the specified BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * @param message BatchUpdateUserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IProvisionAccountTicketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProvisionAccountTicketRequest + * @returns BatchUpdateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; /** - * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ProvisionAccountTicketRequest + * @returns BatchUpdateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; /** - * Verifies a ProvisionAccountTicketRequest message. + * Verifies a BatchUpdateUserLinksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProvisionAccountTicketRequest + * @returns BatchUpdateUserLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; /** - * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. - * @param message ProvisionAccountTicketRequest + * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchUpdateUserLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProvisionAccountTicketRequest to JSON. + * Converts this BatchUpdateUserLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ProvisionAccountTicketResponse. */ - interface IProvisionAccountTicketResponse { + /** Properties of a BatchUpdateUserLinksResponse. */ + interface IBatchUpdateUserLinksResponse { - /** ProvisionAccountTicketResponse accountTicketId */ - accountTicketId?: (string|null); + /** BatchUpdateUserLinksResponse userLinks */ + userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); } - /** Represents a ProvisionAccountTicketResponse. */ - class ProvisionAccountTicketResponse implements IProvisionAccountTicketResponse { + /** Represents a BatchUpdateUserLinksResponse. */ + class BatchUpdateUserLinksResponse implements IBatchUpdateUserLinksResponse { /** - * Constructs a new ProvisionAccountTicketResponse. + * Constructs a new BatchUpdateUserLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse); + constructor(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse); - /** ProvisionAccountTicketResponse accountTicketId. */ - public accountTicketId: string; + /** BatchUpdateUserLinksResponse userLinks. */ + public userLinks: google.analytics.admin.v1alpha.IUserLink[]; /** - * Creates a new ProvisionAccountTicketResponse instance using the specified properties. + * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ProvisionAccountTicketResponse instance + * @returns BatchUpdateUserLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + public static create(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; /** - * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. - * @param message ProvisionAccountTicketResponse message or plain object to encode + * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * @param message BatchUpdateUserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. - * @param message ProvisionAccountTicketResponse message or plain object to encode + * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * @param message BatchUpdateUserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IProvisionAccountTicketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProvisionAccountTicketResponse + * @returns BatchUpdateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; /** - * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ProvisionAccountTicketResponse + * @returns BatchUpdateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; /** - * Verifies a ProvisionAccountTicketResponse message. + * Verifies a BatchUpdateUserLinksResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProvisionAccountTicketResponse + * @returns BatchUpdateUserLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; /** - * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. - * @param message ProvisionAccountTicketResponse + * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. + * @param message BatchUpdateUserLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProvisionAccountTicketResponse to JSON. + * Converts this BatchUpdateUserLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetPropertyRequest. */ - interface IGetPropertyRequest { + /** Properties of a DeleteUserLinkRequest. */ + interface IDeleteUserLinkRequest { - /** GetPropertyRequest name */ + /** DeleteUserLinkRequest name */ name?: (string|null); } - /** Represents a GetPropertyRequest. */ - class GetPropertyRequest implements IGetPropertyRequest { + /** Represents a DeleteUserLinkRequest. */ + class DeleteUserLinkRequest implements IDeleteUserLinkRequest { /** - * Constructs a new GetPropertyRequest. + * Constructs a new DeleteUserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetPropertyRequest); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteUserLinkRequest); - /** GetPropertyRequest name. */ + /** DeleteUserLinkRequest name. */ public name: string; /** - * Creates a new GetPropertyRequest instance using the specified properties. + * Creates a new DeleteUserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPropertyRequest instance + * @returns DeleteUserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetPropertyRequest): google.analytics.admin.v1alpha.GetPropertyRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteUserLinkRequest): google.analytics.admin.v1alpha.DeleteUserLinkRequest; /** - * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. - * @param message GetPropertyRequest message or plain object to encode + * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * @param message DeleteUserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. - * @param message GetPropertyRequest message or plain object to encode + * Encodes the specified DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * @param message DeleteUserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetPropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPropertyRequest message from the specified reader or buffer. + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPropertyRequest + * @returns DeleteUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetPropertyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteUserLinkRequest; /** - * Decodes a GetPropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPropertyRequest + * @returns DeleteUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetPropertyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteUserLinkRequest; /** - * Verifies a GetPropertyRequest message. + * Verifies a DeleteUserLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetPropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPropertyRequest + * @returns DeleteUserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetPropertyRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteUserLinkRequest; /** - * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. - * @param message GetPropertyRequest + * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. + * @param message DeleteUserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetPropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPropertyRequest to JSON. + * Converts this DeleteUserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListPropertiesRequest. */ - interface IListPropertiesRequest { - - /** ListPropertiesRequest filter */ - filter?: (string|null); - - /** ListPropertiesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a BatchDeleteUserLinksRequest. */ + interface IBatchDeleteUserLinksRequest { - /** ListPropertiesRequest pageToken */ - pageToken?: (string|null); + /** BatchDeleteUserLinksRequest parent */ + parent?: (string|null); - /** ListPropertiesRequest showDeleted */ - showDeleted?: (boolean|null); + /** BatchDeleteUserLinksRequest requests */ + requests?: (google.analytics.admin.v1alpha.IDeleteUserLinkRequest[]|null); } - /** Represents a ListPropertiesRequest. */ - class ListPropertiesRequest implements IListPropertiesRequest { + /** Represents a BatchDeleteUserLinksRequest. */ + class BatchDeleteUserLinksRequest implements IBatchDeleteUserLinksRequest { /** - * Constructs a new ListPropertiesRequest. + * Constructs a new BatchDeleteUserLinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListPropertiesRequest); - - /** ListPropertiesRequest filter. */ - public filter: string; - - /** ListPropertiesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest); - /** ListPropertiesRequest pageToken. */ - public pageToken: string; + /** BatchDeleteUserLinksRequest parent. */ + public parent: string; - /** ListPropertiesRequest showDeleted. */ - public showDeleted: boolean; + /** BatchDeleteUserLinksRequest requests. */ + public requests: google.analytics.admin.v1alpha.IDeleteUserLinkRequest[]; /** - * Creates a new ListPropertiesRequest instance using the specified properties. + * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPropertiesRequest instance + * @returns BatchDeleteUserLinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListPropertiesRequest): google.analytics.admin.v1alpha.ListPropertiesRequest; + public static create(properties?: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; /** - * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. - * @param message ListPropertiesRequest message or plain object to encode + * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * @param message BatchDeleteUserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. - * @param message ListPropertiesRequest message or plain object to encode + * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * @param message BatchDeleteUserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListPropertiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPropertiesRequest message from the specified reader or buffer. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPropertiesRequest + * @returns BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListPropertiesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; /** - * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPropertiesRequest + * @returns BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListPropertiesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; /** - * Verifies a ListPropertiesRequest message. + * Verifies a BatchDeleteUserLinksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPropertiesRequest + * @returns BatchDeleteUserLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListPropertiesRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; /** - * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. - * @param message ListPropertiesRequest + * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. + * @param message BatchDeleteUserLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListPropertiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPropertiesRequest to JSON. + * Converts this BatchDeleteUserLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListPropertiesResponse. */ - interface IListPropertiesResponse { + /** Properties of a CreateFirebaseLinkRequest. */ + interface ICreateFirebaseLinkRequest { - /** ListPropertiesResponse properties */ - properties?: (google.analytics.admin.v1alpha.IProperty[]|null); + /** CreateFirebaseLinkRequest parent */ + parent?: (string|null); - /** ListPropertiesResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateFirebaseLinkRequest firebaseLink */ + firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); } - /** Represents a ListPropertiesResponse. */ - class ListPropertiesResponse implements IListPropertiesResponse { + /** Represents a CreateFirebaseLinkRequest. */ + class CreateFirebaseLinkRequest implements ICreateFirebaseLinkRequest { /** - * Constructs a new ListPropertiesResponse. + * Constructs a new CreateFirebaseLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListPropertiesResponse); + constructor(properties?: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest); - /** ListPropertiesResponse properties. */ - public properties: google.analytics.admin.v1alpha.IProperty[]; + /** CreateFirebaseLinkRequest parent. */ + public parent: string; - /** ListPropertiesResponse nextPageToken. */ - public nextPageToken: string; + /** CreateFirebaseLinkRequest firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); /** - * Creates a new ListPropertiesResponse instance using the specified properties. + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPropertiesResponse instance + * @returns CreateFirebaseLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListPropertiesResponse): google.analytics.admin.v1alpha.ListPropertiesResponse; + public static create(properties?: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; /** - * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. - * @param message ListPropertiesResponse message or plain object to encode + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * @param message CreateFirebaseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. - * @param message ListPropertiesResponse message or plain object to encode + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * @param message CreateFirebaseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListPropertiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPropertiesResponse message from the specified reader or buffer. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPropertiesResponse + * @returns CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListPropertiesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; /** - * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPropertiesResponse + * @returns CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListPropertiesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; /** - * Verifies a ListPropertiesResponse message. + * Verifies a CreateFirebaseLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPropertiesResponse + * @returns CreateFirebaseLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListPropertiesResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; /** - * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. - * @param message ListPropertiesResponse + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * @param message CreateFirebaseLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListPropertiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPropertiesResponse to JSON. + * Converts this CreateFirebaseLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdatePropertyRequest. */ - interface IUpdatePropertyRequest { - - /** UpdatePropertyRequest property */ - property?: (google.analytics.admin.v1alpha.IProperty|null); + /** Properties of a DeleteFirebaseLinkRequest. */ + interface IDeleteFirebaseLinkRequest { - /** UpdatePropertyRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteFirebaseLinkRequest name */ + name?: (string|null); } - /** Represents an UpdatePropertyRequest. */ - class UpdatePropertyRequest implements IUpdatePropertyRequest { + /** Represents a DeleteFirebaseLinkRequest. */ + class DeleteFirebaseLinkRequest implements IDeleteFirebaseLinkRequest { /** - * Constructs a new UpdatePropertyRequest. + * Constructs a new DeleteFirebaseLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdatePropertyRequest); - - /** UpdatePropertyRequest property. */ - public property?: (google.analytics.admin.v1alpha.IProperty|null); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest); - /** UpdatePropertyRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteFirebaseLinkRequest name. */ + public name: string; /** - * Creates a new UpdatePropertyRequest instance using the specified properties. + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdatePropertyRequest instance + * @returns DeleteFirebaseLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdatePropertyRequest): google.analytics.admin.v1alpha.UpdatePropertyRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; /** - * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. - * @param message UpdatePropertyRequest message or plain object to encode + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * @param message DeleteFirebaseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. - * @param message UpdatePropertyRequest message or plain object to encode + * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * @param message DeleteFirebaseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdatePropertyRequest message from the specified reader or buffer. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdatePropertyRequest + * @returns DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdatePropertyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; /** - * Decodes an UpdatePropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdatePropertyRequest + * @returns DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdatePropertyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; /** - * Verifies an UpdatePropertyRequest message. + * Verifies a DeleteFirebaseLinkRequest message. * @param message Plain 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 UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdatePropertyRequest + * @returns DeleteFirebaseLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdatePropertyRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; /** - * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. - * @param message UpdatePropertyRequest + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * @param message DeleteFirebaseLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdatePropertyRequest to JSON. + * Converts this DeleteFirebaseLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreatePropertyRequest. */ - interface ICreatePropertyRequest { + /** Properties of a ListFirebaseLinksRequest. */ + interface IListFirebaseLinksRequest { - /** CreatePropertyRequest property */ - property?: (google.analytics.admin.v1alpha.IProperty|null); + /** ListFirebaseLinksRequest parent */ + parent?: (string|null); + + /** ListFirebaseLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListFirebaseLinksRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreatePropertyRequest. */ - class CreatePropertyRequest implements ICreatePropertyRequest { + /** Represents a ListFirebaseLinksRequest. */ + class ListFirebaseLinksRequest implements IListFirebaseLinksRequest { /** - * Constructs a new CreatePropertyRequest. + * Constructs a new ListFirebaseLinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreatePropertyRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksRequest); - /** CreatePropertyRequest property. */ - public property?: (google.analytics.admin.v1alpha.IProperty|null); + /** ListFirebaseLinksRequest parent. */ + public parent: string; + + /** ListFirebaseLinksRequest pageSize. */ + public pageSize: number; + + /** ListFirebaseLinksRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreatePropertyRequest instance using the specified properties. + * Creates a new ListFirebaseLinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePropertyRequest instance + * @returns ListFirebaseLinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreatePropertyRequest): google.analytics.admin.v1alpha.CreatePropertyRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksRequest): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; /** - * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. - * @param message CreatePropertyRequest message or plain object to encode + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * @param message ListFirebaseLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. - * @param message CreatePropertyRequest message or plain object to encode + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * @param message ListFirebaseLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreatePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePropertyRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePropertyRequest + * @returns ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreatePropertyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; /** - * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePropertyRequest + * @returns ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreatePropertyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; /** - * Verifies a CreatePropertyRequest message. + * Verifies a ListFirebaseLinksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePropertyRequest + * @returns ListFirebaseLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreatePropertyRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; /** - * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. - * @param message CreatePropertyRequest + * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * @param message ListFirebaseLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreatePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListFirebaseLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePropertyRequest to JSON. + * Converts this ListFirebaseLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeletePropertyRequest. */ - interface IDeletePropertyRequest { + /** Properties of a ListFirebaseLinksResponse. */ + interface IListFirebaseLinksResponse { - /** DeletePropertyRequest name */ - name?: (string|null); + /** ListFirebaseLinksResponse firebaseLinks */ + firebaseLinks?: (google.analytics.admin.v1alpha.IFirebaseLink[]|null); + + /** ListFirebaseLinksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeletePropertyRequest. */ - class DeletePropertyRequest implements IDeletePropertyRequest { + /** Represents a ListFirebaseLinksResponse. */ + class ListFirebaseLinksResponse implements IListFirebaseLinksResponse { /** - * Constructs a new DeletePropertyRequest. + * Constructs a new ListFirebaseLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeletePropertyRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksResponse); - /** DeletePropertyRequest name. */ - public name: string; + /** ListFirebaseLinksResponse firebaseLinks. */ + public firebaseLinks: google.analytics.admin.v1alpha.IFirebaseLink[]; + + /** ListFirebaseLinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeletePropertyRequest instance using the specified properties. + * Creates a new ListFirebaseLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePropertyRequest instance + * @returns ListFirebaseLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeletePropertyRequest): google.analytics.admin.v1alpha.DeletePropertyRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksResponse): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; /** - * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. - * @param message DeletePropertyRequest message or plain object to encode + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * @param message ListFirebaseLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. - * @param message DeletePropertyRequest message or plain object to encode + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * @param message ListFirebaseLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeletePropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePropertyRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePropertyRequest + * @returns ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeletePropertyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; /** - * Decodes a DeletePropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePropertyRequest + * @returns ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeletePropertyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; /** - * Verifies a DeletePropertyRequest message. + * Verifies a ListFirebaseLinksResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePropertyRequest + * @returns ListFirebaseLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeletePropertyRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; /** - * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. - * @param message DeletePropertyRequest + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * @param message ListFirebaseLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeletePropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListFirebaseLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePropertyRequest to JSON. + * Converts this ListFirebaseLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetUserLinkRequest. */ - interface IGetUserLinkRequest { + /** Properties of a GetGlobalSiteTagRequest. */ + interface IGetGlobalSiteTagRequest { - /** GetUserLinkRequest name */ + /** GetGlobalSiteTagRequest name */ name?: (string|null); } - /** Represents a GetUserLinkRequest. */ - class GetUserLinkRequest implements IGetUserLinkRequest { + /** Represents a GetGlobalSiteTagRequest. */ + class GetGlobalSiteTagRequest implements IGetGlobalSiteTagRequest { /** - * Constructs a new GetUserLinkRequest. + * Constructs a new GetGlobalSiteTagRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetUserLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest); - /** GetUserLinkRequest name. */ + /** GetGlobalSiteTagRequest name. */ public name: string; /** - * Creates a new GetUserLinkRequest instance using the specified properties. + * Creates a new GetGlobalSiteTagRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetUserLinkRequest instance + * @returns GetGlobalSiteTagRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetUserLinkRequest): google.analytics.admin.v1alpha.GetUserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; /** - * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. - * @param message GetUserLinkRequest message or plain object to encode + * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * @param message GetGlobalSiteTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. - * @param message GetUserLinkRequest message or plain object to encode + * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * @param message GetGlobalSiteTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetUserLinkRequest message from the specified reader or buffer. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetUserLinkRequest + * @returns GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetUserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; /** - * Decodes a GetUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetUserLinkRequest + * @returns GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetUserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; /** - * Verifies a GetUserLinkRequest message. + * Verifies a GetGlobalSiteTagRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetUserLinkRequest + * @returns GetGlobalSiteTagRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetUserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; /** - * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. - * @param message GetUserLinkRequest + * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. + * @param message GetGlobalSiteTagRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetUserLinkRequest to JSON. + * Converts this GetGlobalSiteTagRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchGetUserLinksRequest. */ - interface IBatchGetUserLinksRequest { + /** Properties of a CreateGoogleAdsLinkRequest. */ + interface ICreateGoogleAdsLinkRequest { - /** BatchGetUserLinksRequest parent */ + /** CreateGoogleAdsLinkRequest parent */ parent?: (string|null); - /** BatchGetUserLinksRequest names */ - names?: (string[]|null); + /** CreateGoogleAdsLinkRequest googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); } - /** Represents a BatchGetUserLinksRequest. */ - class BatchGetUserLinksRequest implements IBatchGetUserLinksRequest { + /** Represents a CreateGoogleAdsLinkRequest. */ + class CreateGoogleAdsLinkRequest implements ICreateGoogleAdsLinkRequest { /** - * Constructs a new BatchGetUserLinksRequest. + * Constructs a new CreateGoogleAdsLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest); - /** BatchGetUserLinksRequest parent. */ + /** CreateGoogleAdsLinkRequest parent. */ public parent: string; - /** BatchGetUserLinksRequest names. */ - public names: string[]; + /** CreateGoogleAdsLinkRequest googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); /** - * Creates a new BatchGetUserLinksRequest instance using the specified properties. + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchGetUserLinksRequest instance + * @returns CreateGoogleAdsLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; /** - * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. - * @param message BatchGetUserLinksRequest message or plain object to encode + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @param message CreateGoogleAdsLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. - * @param message BatchGetUserLinksRequest message or plain object to encode + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * @param message CreateGoogleAdsLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchGetUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchGetUserLinksRequest + * @returns CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; /** - * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchGetUserLinksRequest + * @returns CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; /** - * Verifies a BatchGetUserLinksRequest message. + * Verifies a CreateGoogleAdsLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchGetUserLinksRequest + * @returns CreateGoogleAdsLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchGetUserLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; /** - * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. - * @param message BatchGetUserLinksRequest + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message CreateGoogleAdsLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.BatchGetUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchGetUserLinksRequest to JSON. + * Converts this CreateGoogleAdsLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchGetUserLinksResponse. */ - interface IBatchGetUserLinksResponse { + /** Properties of an UpdateGoogleAdsLinkRequest. */ + interface IUpdateGoogleAdsLinkRequest { - /** BatchGetUserLinksResponse userLinks */ - userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + /** UpdateGoogleAdsLinkRequest googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** UpdateGoogleAdsLinkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a BatchGetUserLinksResponse. */ - class BatchGetUserLinksResponse implements IBatchGetUserLinksResponse { + /** Represents an UpdateGoogleAdsLinkRequest. */ + class UpdateGoogleAdsLinkRequest implements IUpdateGoogleAdsLinkRequest { /** - * Constructs a new BatchGetUserLinksResponse. + * Constructs a new UpdateGoogleAdsLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest); - /** BatchGetUserLinksResponse userLinks. */ - public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + /** UpdateGoogleAdsLinkRequest googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** UpdateGoogleAdsLinkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new BatchGetUserLinksResponse instance using the specified properties. + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchGetUserLinksResponse instance + * @returns UpdateGoogleAdsLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; /** - * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. - * @param message BatchGetUserLinksResponse message or plain object to encode + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @param message UpdateGoogleAdsLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. - * @param message BatchGetUserLinksResponse message or plain object to encode + * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * @param message UpdateGoogleAdsLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchGetUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchGetUserLinksResponse + * @returns UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; /** - * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchGetUserLinksResponse + * @returns UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; /** - * Verifies a BatchGetUserLinksResponse message. + * Verifies an UpdateGoogleAdsLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchGetUserLinksResponse + * @returns UpdateGoogleAdsLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchGetUserLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; /** - * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. - * @param message BatchGetUserLinksResponse + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message UpdateGoogleAdsLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.BatchGetUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchGetUserLinksResponse to JSON. + * Converts this UpdateGoogleAdsLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListUserLinksRequest. */ - interface IListUserLinksRequest { - - /** ListUserLinksRequest parent */ - parent?: (string|null); - - /** ListUserLinksRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeleteGoogleAdsLinkRequest. */ + interface IDeleteGoogleAdsLinkRequest { - /** ListUserLinksRequest pageToken */ - pageToken?: (string|null); + /** DeleteGoogleAdsLinkRequest name */ + name?: (string|null); } - /** Represents a ListUserLinksRequest. */ - class ListUserLinksRequest implements IListUserLinksRequest { + /** Represents a DeleteGoogleAdsLinkRequest. */ + class DeleteGoogleAdsLinkRequest implements IDeleteGoogleAdsLinkRequest { /** - * Constructs a new ListUserLinksRequest. + * Constructs a new DeleteGoogleAdsLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListUserLinksRequest); - - /** ListUserLinksRequest parent. */ - public parent: string; - - /** ListUserLinksRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest); - /** ListUserLinksRequest pageToken. */ - public pageToken: string; + /** DeleteGoogleAdsLinkRequest name. */ + public name: string; /** - * Creates a new ListUserLinksRequest instance using the specified properties. + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListUserLinksRequest instance + * @returns DeleteGoogleAdsLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListUserLinksRequest): google.analytics.admin.v1alpha.ListUserLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; /** - * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. - * @param message ListUserLinksRequest message or plain object to encode + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @param message DeleteGoogleAdsLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. - * @param message ListUserLinksRequest message or plain object to encode + * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * @param message DeleteGoogleAdsLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListUserLinksRequest message from the specified reader or buffer. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListUserLinksRequest + * @returns DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListUserLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; /** - * Decodes a ListUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListUserLinksRequest + * @returns DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListUserLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; /** - * Verifies a ListUserLinksRequest message. + * Verifies a DeleteGoogleAdsLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListUserLinksRequest + * @returns DeleteGoogleAdsLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListUserLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; /** - * Creates a plain object from a ListUserLinksRequest message. Also converts values to other types if specified. - * @param message ListUserLinksRequest + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * @param message DeleteGoogleAdsLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListUserLinksRequest to JSON. + * Converts this DeleteGoogleAdsLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListUserLinksResponse. */ - interface IListUserLinksResponse { + /** Properties of a ListGoogleAdsLinksRequest. */ + interface IListGoogleAdsLinksRequest { - /** ListUserLinksResponse userLinks */ - userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + /** ListGoogleAdsLinksRequest parent */ + parent?: (string|null); - /** ListUserLinksResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListGoogleAdsLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListGoogleAdsLinksRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListUserLinksResponse. */ - class ListUserLinksResponse implements IListUserLinksResponse { + /** Represents a ListGoogleAdsLinksRequest. */ + class ListGoogleAdsLinksRequest implements IListGoogleAdsLinksRequest { /** - * Constructs a new ListUserLinksResponse. + * Constructs a new ListGoogleAdsLinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListUserLinksResponse); + constructor(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest); - /** ListUserLinksResponse userLinks. */ - public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + /** ListGoogleAdsLinksRequest parent. */ + public parent: string; - /** ListUserLinksResponse nextPageToken. */ - public nextPageToken: string; + /** ListGoogleAdsLinksRequest pageSize. */ + public pageSize: number; + + /** ListGoogleAdsLinksRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListUserLinksResponse instance using the specified properties. + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListUserLinksResponse instance + * @returns ListGoogleAdsLinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListUserLinksResponse): google.analytics.admin.v1alpha.ListUserLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; /** - * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. - * @param message ListUserLinksResponse message or plain object to encode + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * @param message ListGoogleAdsLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. - * @param message ListUserLinksResponse message or plain object to encode + * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * @param message ListGoogleAdsLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListUserLinksResponse message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListUserLinksResponse + * @returns ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListUserLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; /** - * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListUserLinksResponse + * @returns ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListUserLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; /** - * Verifies a ListUserLinksResponse message. + * Verifies a ListGoogleAdsLinksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListUserLinksResponse + * @returns ListGoogleAdsLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListUserLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; /** - * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. - * @param message ListUserLinksResponse + * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * @param message ListGoogleAdsLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListUserLinksResponse to JSON. + * Converts this ListGoogleAdsLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AuditUserLinksRequest. */ - interface IAuditUserLinksRequest { - - /** AuditUserLinksRequest parent */ - parent?: (string|null); + /** Properties of a ListGoogleAdsLinksResponse. */ + interface IListGoogleAdsLinksResponse { - /** AuditUserLinksRequest pageSize */ - pageSize?: (number|null); + /** ListGoogleAdsLinksResponse googleAdsLinks */ + googleAdsLinks?: (google.analytics.admin.v1alpha.IGoogleAdsLink[]|null); - /** AuditUserLinksRequest pageToken */ - pageToken?: (string|null); + /** ListGoogleAdsLinksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AuditUserLinksRequest. */ - class AuditUserLinksRequest implements IAuditUserLinksRequest { + /** Represents a ListGoogleAdsLinksResponse. */ + class ListGoogleAdsLinksResponse implements IListGoogleAdsLinksResponse { /** - * Constructs a new AuditUserLinksRequest. + * Constructs a new ListGoogleAdsLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLinksRequest); - - /** AuditUserLinksRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse); - /** AuditUserLinksRequest pageSize. */ - public pageSize: number; + /** ListGoogleAdsLinksResponse googleAdsLinks. */ + public googleAdsLinks: google.analytics.admin.v1alpha.IGoogleAdsLink[]; - /** AuditUserLinksRequest pageToken. */ - public pageToken: string; + /** ListGoogleAdsLinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AuditUserLinksRequest instance using the specified properties. + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AuditUserLinksRequest instance + * @returns ListGoogleAdsLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLinksRequest): google.analytics.admin.v1alpha.AuditUserLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; /** - * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. - * @param message AuditUserLinksRequest message or plain object to encode + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * @param message ListGoogleAdsLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAuditUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. - * @param message AuditUserLinksRequest message or plain object to encode + * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * @param message ListGoogleAdsLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuditUserLinksRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuditUserLinksRequest + * @returns ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; /** - * Decodes an AuditUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuditUserLinksRequest + * @returns ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; /** - * Verifies an AuditUserLinksRequest message. + * Verifies a ListGoogleAdsLinksResponse message. * @param message Plain 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 AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuditUserLinksRequest + * @returns ListGoogleAdsLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; /** - * Creates a plain object from an AuditUserLinksRequest message. Also converts values to other types if specified. - * @param message AuditUserLinksRequest + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * @param message ListGoogleAdsLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AuditUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuditUserLinksRequest to JSON. + * Converts this ListGoogleAdsLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AuditUserLinksResponse. */ - interface IAuditUserLinksResponse { - - /** AuditUserLinksResponse userLinks */ - userLinks?: (google.analytics.admin.v1alpha.IAuditUserLink[]|null); + /** Properties of a GetDataSharingSettingsRequest. */ + interface IGetDataSharingSettingsRequest { - /** AuditUserLinksResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetDataSharingSettingsRequest name */ + name?: (string|null); } - /** Represents an AuditUserLinksResponse. */ - class AuditUserLinksResponse implements IAuditUserLinksResponse { + /** Represents a GetDataSharingSettingsRequest. */ + class GetDataSharingSettingsRequest implements IGetDataSharingSettingsRequest { /** - * Constructs a new AuditUserLinksResponse. + * Constructs a new GetDataSharingSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLinksResponse); - - /** AuditUserLinksResponse userLinks. */ - public userLinks: google.analytics.admin.v1alpha.IAuditUserLink[]; + constructor(properties?: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest); - /** AuditUserLinksResponse nextPageToken. */ - public nextPageToken: string; + /** GetDataSharingSettingsRequest name. */ + public name: string; /** - * Creates a new AuditUserLinksResponse instance using the specified properties. + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AuditUserLinksResponse instance + * @returns GetDataSharingSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLinksResponse): google.analytics.admin.v1alpha.AuditUserLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; /** - * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. - * @param message AuditUserLinksResponse message or plain object to encode + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * @param message GetDataSharingSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAuditUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. - * @param message AuditUserLinksResponse message or plain object to encode + * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * @param message GetDataSharingSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuditUserLinksResponse message from the specified reader or buffer. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuditUserLinksResponse + * @returns GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AuditUserLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; /** - * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuditUserLinksResponse + * @returns GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; /** - * Verifies an AuditUserLinksResponse message. + * Verifies a GetDataSharingSettingsRequest message. * @param message Plain 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 AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuditUserLinksResponse + * @returns GetDataSharingSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; /** - * Creates a plain object from an AuditUserLinksResponse message. Also converts values to other types if specified. - * @param message AuditUserLinksResponse + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * @param message GetDataSharingSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AuditUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuditUserLinksResponse to JSON. + * Converts this GetDataSharingSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateUserLinkRequest. */ - interface ICreateUserLinkRequest { - - /** CreateUserLinkRequest parent */ - parent?: (string|null); + /** Properties of a ListAccountSummariesRequest. */ + interface IListAccountSummariesRequest { - /** CreateUserLinkRequest notifyNewUser */ - notifyNewUser?: (boolean|null); + /** ListAccountSummariesRequest pageSize */ + pageSize?: (number|null); - /** CreateUserLinkRequest userLink */ - userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + /** ListAccountSummariesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateUserLinkRequest. */ - class CreateUserLinkRequest implements ICreateUserLinkRequest { + /** Represents a ListAccountSummariesRequest. */ + class ListAccountSummariesRequest implements IListAccountSummariesRequest { /** - * Constructs a new CreateUserLinkRequest. + * Constructs a new ListAccountSummariesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateUserLinkRequest); - - /** CreateUserLinkRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IListAccountSummariesRequest); - /** CreateUserLinkRequest notifyNewUser. */ - public notifyNewUser: boolean; + /** ListAccountSummariesRequest pageSize. */ + public pageSize: number; - /** CreateUserLinkRequest userLink. */ - public userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + /** ListAccountSummariesRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateUserLinkRequest instance using the specified properties. + * Creates a new ListAccountSummariesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateUserLinkRequest instance + * @returns ListAccountSummariesRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateUserLinkRequest): google.analytics.admin.v1alpha.CreateUserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListAccountSummariesRequest): google.analytics.admin.v1alpha.ListAccountSummariesRequest; /** - * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. - * @param message CreateUserLinkRequest message or plain object to encode + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * @param message ListAccountSummariesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. - * @param message CreateUserLinkRequest message or plain object to encode + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * @param message ListAccountSummariesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateUserLinkRequest message from the specified reader or buffer. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateUserLinkRequest + * @returns ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateUserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountSummariesRequest; /** - * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateUserLinkRequest + * @returns ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateUserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountSummariesRequest; /** - * Verifies a CreateUserLinkRequest message. + * Verifies a ListAccountSummariesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateUserLinkRequest + * @returns ListAccountSummariesRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateUserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountSummariesRequest; /** - * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. - * @param message CreateUserLinkRequest + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. + * @param message ListAccountSummariesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListAccountSummariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateUserLinkRequest to JSON. + * Converts this ListAccountSummariesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchCreateUserLinksRequest. */ - interface IBatchCreateUserLinksRequest { - - /** BatchCreateUserLinksRequest parent */ - parent?: (string|null); + /** Properties of a ListAccountSummariesResponse. */ + interface IListAccountSummariesResponse { - /** BatchCreateUserLinksRequest notifyNewUsers */ - notifyNewUsers?: (boolean|null); + /** ListAccountSummariesResponse accountSummaries */ + accountSummaries?: (google.analytics.admin.v1alpha.IAccountSummary[]|null); - /** BatchCreateUserLinksRequest requests */ - requests?: (google.analytics.admin.v1alpha.ICreateUserLinkRequest[]|null); + /** ListAccountSummariesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchCreateUserLinksRequest. */ - class BatchCreateUserLinksRequest implements IBatchCreateUserLinksRequest { + /** Represents a ListAccountSummariesResponse. */ + class ListAccountSummariesResponse implements IListAccountSummariesResponse { /** - * Constructs a new BatchCreateUserLinksRequest. + * Constructs a new ListAccountSummariesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest); - - /** BatchCreateUserLinksRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IListAccountSummariesResponse); - /** BatchCreateUserLinksRequest notifyNewUsers. */ - public notifyNewUsers: boolean; + /** ListAccountSummariesResponse accountSummaries. */ + public accountSummaries: google.analytics.admin.v1alpha.IAccountSummary[]; - /** BatchCreateUserLinksRequest requests. */ - public requests: google.analytics.admin.v1alpha.ICreateUserLinkRequest[]; + /** ListAccountSummariesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchCreateUserLinksRequest instance using the specified properties. + * Creates a new ListAccountSummariesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateUserLinksRequest instance + * @returns ListAccountSummariesResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListAccountSummariesResponse): google.analytics.admin.v1alpha.ListAccountSummariesResponse; /** - * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. - * @param message BatchCreateUserLinksRequest message or plain object to encode + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * @param message ListAccountSummariesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. - * @param message BatchCreateUserLinksRequest message or plain object to encode + * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * @param message ListAccountSummariesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateUserLinksRequest + * @returns ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountSummariesResponse; /** - * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateUserLinksRequest + * @returns ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountSummariesResponse; /** - * Verifies a BatchCreateUserLinksRequest message. + * Verifies a ListAccountSummariesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateUserLinksRequest + * @returns ListAccountSummariesResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountSummariesResponse; /** - * Creates a plain object from a BatchCreateUserLinksRequest message. Also converts values to other types if specified. - * @param message BatchCreateUserLinksRequest + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. + * @param message ListAccountSummariesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListAccountSummariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateUserLinksRequest to JSON. + * Converts this ListAccountSummariesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchCreateUserLinksResponse. */ - interface IBatchCreateUserLinksResponse { + /** Properties of an AcknowledgeUserDataCollectionRequest. */ + interface IAcknowledgeUserDataCollectionRequest { - /** BatchCreateUserLinksResponse userLinks */ - userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + /** AcknowledgeUserDataCollectionRequest property */ + property?: (string|null); + + /** AcknowledgeUserDataCollectionRequest acknowledgement */ + acknowledgement?: (string|null); } - /** Represents a BatchCreateUserLinksResponse. */ - class BatchCreateUserLinksResponse implements IBatchCreateUserLinksResponse { + /** Represents an AcknowledgeUserDataCollectionRequest. */ + class AcknowledgeUserDataCollectionRequest implements IAcknowledgeUserDataCollectionRequest { /** - * Constructs a new BatchCreateUserLinksResponse. + * Constructs a new AcknowledgeUserDataCollectionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse); + constructor(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest); - /** BatchCreateUserLinksResponse userLinks. */ - public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + /** AcknowledgeUserDataCollectionRequest property. */ + public property: string; + + /** AcknowledgeUserDataCollectionRequest acknowledgement. */ + public acknowledgement: string; /** - * Creates a new BatchCreateUserLinksResponse instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateUserLinksResponse instance + * @returns AcknowledgeUserDataCollectionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; /** - * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. - * @param message BatchCreateUserLinksResponse message or plain object to encode + * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. - * @param message BatchCreateUserLinksResponse message or plain object to encode + * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateUserLinksResponse + * @returns AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; /** - * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateUserLinksResponse + * @returns AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; /** - * Verifies a BatchCreateUserLinksResponse message. + * Verifies an AcknowledgeUserDataCollectionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateUserLinksResponse + * @returns AcknowledgeUserDataCollectionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; /** - * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. - * @param message BatchCreateUserLinksResponse + * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. + * @param message AcknowledgeUserDataCollectionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.BatchCreateUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateUserLinksResponse to JSON. + * Converts this AcknowledgeUserDataCollectionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateUserLinkRequest. */ - interface IUpdateUserLinkRequest { - - /** UpdateUserLinkRequest userLink */ - userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + /** Properties of an AcknowledgeUserDataCollectionResponse. */ + interface IAcknowledgeUserDataCollectionResponse { } - /** Represents an UpdateUserLinkRequest. */ - class UpdateUserLinkRequest implements IUpdateUserLinkRequest { + /** Represents an AcknowledgeUserDataCollectionResponse. */ + class AcknowledgeUserDataCollectionResponse implements IAcknowledgeUserDataCollectionResponse { /** - * Constructs a new UpdateUserLinkRequest. + * Constructs a new AcknowledgeUserDataCollectionResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateUserLinkRequest); - - /** UpdateUserLinkRequest userLink. */ - public userLink?: (google.analytics.admin.v1alpha.IUserLink|null); + constructor(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse); /** - * Creates a new UpdateUserLinkRequest instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateUserLinkRequest instance + * @returns AcknowledgeUserDataCollectionResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateUserLinkRequest): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; /** - * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. - * @param message UpdateUserLinkRequest message or plain object to encode + * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. - * @param message UpdateUserLinkRequest message or plain object to encode + * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateUserLinkRequest + * @returns AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; /** - * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateUserLinkRequest + * @returns AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; /** - * Verifies an UpdateUserLinkRequest message. + * Verifies an AcknowledgeUserDataCollectionResponse message. * @param message Plain 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 UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateUserLinkRequest + * @returns AcknowledgeUserDataCollectionResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateUserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; /** - * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. - * @param message UpdateUserLinkRequest + * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. + * @param message AcknowledgeUserDataCollectionResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateUserLinkRequest to JSON. + * Converts this AcknowledgeUserDataCollectionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchUpdateUserLinksRequest. */ - interface IBatchUpdateUserLinksRequest { + /** Properties of a SearchChangeHistoryEventsRequest. */ + interface ISearchChangeHistoryEventsRequest { - /** BatchUpdateUserLinksRequest parent */ - parent?: (string|null); + /** SearchChangeHistoryEventsRequest account */ + account?: (string|null); - /** BatchUpdateUserLinksRequest requests */ - requests?: (google.analytics.admin.v1alpha.IUpdateUserLinkRequest[]|null); + /** SearchChangeHistoryEventsRequest property */ + property?: (string|null); + + /** SearchChangeHistoryEventsRequest resourceType */ + resourceType?: (google.analytics.admin.v1alpha.ChangeHistoryResourceType[]|null); + + /** SearchChangeHistoryEventsRequest action */ + action?: (google.analytics.admin.v1alpha.ActionType[]|null); + + /** SearchChangeHistoryEventsRequest actorEmail */ + actorEmail?: (string[]|null); + + /** SearchChangeHistoryEventsRequest earliestChangeTime */ + earliestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest latestChangeTime */ + latestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest pageSize */ + pageSize?: (number|null); + + /** SearchChangeHistoryEventsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a BatchUpdateUserLinksRequest. */ - class BatchUpdateUserLinksRequest implements IBatchUpdateUserLinksRequest { + /** Represents a SearchChangeHistoryEventsRequest. */ + class SearchChangeHistoryEventsRequest implements ISearchChangeHistoryEventsRequest { /** - * Constructs a new BatchUpdateUserLinksRequest. + * Constructs a new SearchChangeHistoryEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest); + constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest); - /** BatchUpdateUserLinksRequest parent. */ - public parent: string; + /** SearchChangeHistoryEventsRequest account. */ + public account: string; - /** BatchUpdateUserLinksRequest requests. */ - public requests: google.analytics.admin.v1alpha.IUpdateUserLinkRequest[]; + /** SearchChangeHistoryEventsRequest property. */ + public property: string; + + /** SearchChangeHistoryEventsRequest resourceType. */ + public resourceType: google.analytics.admin.v1alpha.ChangeHistoryResourceType[]; + + /** SearchChangeHistoryEventsRequest action. */ + public action: google.analytics.admin.v1alpha.ActionType[]; + + /** SearchChangeHistoryEventsRequest actorEmail. */ + public actorEmail: string[]; + + /** SearchChangeHistoryEventsRequest earliestChangeTime. */ + public earliestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest latestChangeTime. */ + public latestChangeTime?: (google.protobuf.ITimestamp|null); + + /** SearchChangeHistoryEventsRequest pageSize. */ + public pageSize: number; + + /** SearchChangeHistoryEventsRequest pageToken. */ + public pageToken: string; /** - * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchUpdateUserLinksRequest instance + * @returns SearchChangeHistoryEventsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; /** - * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. - * @param message BatchUpdateUserLinksRequest message or plain object to encode + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @param message SearchChangeHistoryEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. - * @param message BatchUpdateUserLinksRequest message or plain object to encode + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * @param message SearchChangeHistoryEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchUpdateUserLinksRequest + * @returns SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; /** - * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchUpdateUserLinksRequest + * @returns SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; /** - * Verifies a BatchUpdateUserLinksRequest message. + * Verifies a SearchChangeHistoryEventsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchUpdateUserLinksRequest + * @returns SearchChangeHistoryEventsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; /** - * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. - * @param message BatchUpdateUserLinksRequest + * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. + * @param message SearchChangeHistoryEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchUpdateUserLinksRequest to JSON. + * Converts this SearchChangeHistoryEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchUpdateUserLinksResponse. */ - interface IBatchUpdateUserLinksResponse { + /** Properties of a SearchChangeHistoryEventsResponse. */ + interface ISearchChangeHistoryEventsResponse { - /** BatchUpdateUserLinksResponse userLinks */ - userLinks?: (google.analytics.admin.v1alpha.IUserLink[]|null); + /** SearchChangeHistoryEventsResponse changeHistoryEvents */ + changeHistoryEvents?: (google.analytics.admin.v1alpha.IChangeHistoryEvent[]|null); + + /** SearchChangeHistoryEventsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchUpdateUserLinksResponse. */ - class BatchUpdateUserLinksResponse implements IBatchUpdateUserLinksResponse { + /** Represents a SearchChangeHistoryEventsResponse. */ + class SearchChangeHistoryEventsResponse implements ISearchChangeHistoryEventsResponse { /** - * Constructs a new BatchUpdateUserLinksResponse. + * Constructs a new SearchChangeHistoryEventsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse); + constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse); - /** BatchUpdateUserLinksResponse userLinks. */ - public userLinks: google.analytics.admin.v1alpha.IUserLink[]; + /** SearchChangeHistoryEventsResponse changeHistoryEvents. */ + public changeHistoryEvents: google.analytics.admin.v1alpha.IChangeHistoryEvent[]; + + /** SearchChangeHistoryEventsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchUpdateUserLinksResponse instance + * @returns SearchChangeHistoryEventsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; /** - * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. - * @param message BatchUpdateUserLinksResponse message or plain object to encode + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @param message SearchChangeHistoryEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. - * @param message BatchUpdateUserLinksResponse message or plain object to encode + * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * @param message SearchChangeHistoryEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchUpdateUserLinksResponse + * @returns SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; /** - * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchUpdateUserLinksResponse + * @returns SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; /** - * Verifies a BatchUpdateUserLinksResponse message. + * Verifies a SearchChangeHistoryEventsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchUpdateUserLinksResponse + * @returns SearchChangeHistoryEventsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; /** - * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. - * @param message BatchUpdateUserLinksResponse + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * @param message SearchChangeHistoryEventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchUpdateUserLinksResponse to JSON. + * Converts this SearchChangeHistoryEventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteUserLinkRequest. */ - interface IDeleteUserLinkRequest { + /** Properties of a GetMeasurementProtocolSecretRequest. */ + interface IGetMeasurementProtocolSecretRequest { - /** DeleteUserLinkRequest name */ + /** GetMeasurementProtocolSecretRequest name */ name?: (string|null); } - /** Represents a DeleteUserLinkRequest. */ - class DeleteUserLinkRequest implements IDeleteUserLinkRequest { + /** Represents a GetMeasurementProtocolSecretRequest. */ + class GetMeasurementProtocolSecretRequest implements IGetMeasurementProtocolSecretRequest { /** - * Constructs a new DeleteUserLinkRequest. + * Constructs a new GetMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteUserLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest); - /** DeleteUserLinkRequest name. */ + /** GetMeasurementProtocolSecretRequest name. */ public name: string; /** - * Creates a new DeleteUserLinkRequest instance using the specified properties. + * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteUserLinkRequest instance + * @returns GetMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteUserLinkRequest): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. - * @param message DeleteUserLinkRequest message or plain object to encode + * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message GetMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. - * @param message DeleteUserLinkRequest message or plain object to encode + * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message GetMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteUserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteUserLinkRequest + * @returns GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Decodes a DeleteUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteUserLinkRequest + * @returns GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Verifies a DeleteUserLinkRequest message. + * Verifies a GetMeasurementProtocolSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteUserLinkRequest + * @returns GetMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteUserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; /** - * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. - * @param message DeleteUserLinkRequest + * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message GetMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteUserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteUserLinkRequest to JSON. + * Converts this GetMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchDeleteUserLinksRequest. */ - interface IBatchDeleteUserLinksRequest { + /** Properties of a CreateMeasurementProtocolSecretRequest. */ + interface ICreateMeasurementProtocolSecretRequest { - /** BatchDeleteUserLinksRequest parent */ + /** CreateMeasurementProtocolSecretRequest parent */ parent?: (string|null); - /** BatchDeleteUserLinksRequest requests */ - requests?: (google.analytics.admin.v1alpha.IDeleteUserLinkRequest[]|null); + /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); } - /** Represents a BatchDeleteUserLinksRequest. */ - class BatchDeleteUserLinksRequest implements IBatchDeleteUserLinksRequest { + /** Represents a CreateMeasurementProtocolSecretRequest. */ + class CreateMeasurementProtocolSecretRequest implements ICreateMeasurementProtocolSecretRequest { /** - * Constructs a new BatchDeleteUserLinksRequest. + * Constructs a new CreateMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest); - /** BatchDeleteUserLinksRequest parent. */ + /** CreateMeasurementProtocolSecretRequest parent. */ public parent: string; - /** BatchDeleteUserLinksRequest requests. */ - public requests: google.analytics.admin.v1alpha.IDeleteUserLinkRequest[]; + /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); /** - * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. + * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeleteUserLinksRequest instance + * @returns CreateMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. - * @param message BatchDeleteUserLinksRequest message or plain object to encode + * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. - * @param message BatchDeleteUserLinksRequest message or plain object to encode + * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDeleteUserLinksRequest + * @returns CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDeleteUserLinksRequest + * @returns CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Verifies a BatchDeleteUserLinksRequest message. + * Verifies a CreateMeasurementProtocolSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDeleteUserLinksRequest + * @returns CreateMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; /** - * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. - * @param message BatchDeleteUserLinksRequest + * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message CreateMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeleteUserLinksRequest to JSON. + * Converts this CreateMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateFirebaseLinkRequest. */ - interface ICreateFirebaseLinkRequest { - - /** CreateFirebaseLinkRequest parent */ - parent?: (string|null); + /** Properties of a DeleteMeasurementProtocolSecretRequest. */ + interface IDeleteMeasurementProtocolSecretRequest { - /** CreateFirebaseLinkRequest firebaseLink */ - firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + /** DeleteMeasurementProtocolSecretRequest name */ + name?: (string|null); } - /** Represents a CreateFirebaseLinkRequest. */ - class CreateFirebaseLinkRequest implements ICreateFirebaseLinkRequest { + /** Represents a DeleteMeasurementProtocolSecretRequest. */ + class DeleteMeasurementProtocolSecretRequest implements IDeleteMeasurementProtocolSecretRequest { /** - * Constructs a new CreateFirebaseLinkRequest. + * Constructs a new DeleteMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest); - - /** CreateFirebaseLinkRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest); - /** CreateFirebaseLinkRequest firebaseLink. */ - public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + /** DeleteMeasurementProtocolSecretRequest name. */ + public name: string; /** - * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFirebaseLinkRequest instance + * @returns DeleteMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. - * @param message CreateFirebaseLinkRequest message or plain object to encode + * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. - * @param message CreateFirebaseLinkRequest message or plain object to encode + * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFirebaseLinkRequest + * @returns DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFirebaseLinkRequest + * @returns DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Verifies a CreateFirebaseLinkRequest message. + * Verifies a DeleteMeasurementProtocolSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFirebaseLinkRequest + * @returns DeleteMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; /** - * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. - * @param message CreateFirebaseLinkRequest + * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message DeleteMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFirebaseLinkRequest to JSON. + * Converts this DeleteMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteFirebaseLinkRequest. */ - interface IDeleteFirebaseLinkRequest { + /** Properties of an UpdateMeasurementProtocolSecretRequest. */ + interface IUpdateMeasurementProtocolSecretRequest { - /** DeleteFirebaseLinkRequest name */ - name?: (string|null); + /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** UpdateMeasurementProtocolSecretRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteFirebaseLinkRequest. */ - class DeleteFirebaseLinkRequest implements IDeleteFirebaseLinkRequest { + /** Represents an UpdateMeasurementProtocolSecretRequest. */ + class UpdateMeasurementProtocolSecretRequest implements IUpdateMeasurementProtocolSecretRequest { /** - * Constructs a new DeleteFirebaseLinkRequest. + * Constructs a new UpdateMeasurementProtocolSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest); - /** DeleteFirebaseLinkRequest name. */ - public name: string; + /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** UpdateMeasurementProtocolSecretRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFirebaseLinkRequest instance + * @returns UpdateMeasurementProtocolSecretRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. - * @param message DeleteFirebaseLinkRequest message or plain object to encode + * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. - * @param message DeleteFirebaseLinkRequest message or plain object to encode + * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFirebaseLinkRequest + * @returns UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFirebaseLinkRequest + * @returns UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Verifies a DeleteFirebaseLinkRequest message. + * Verifies an UpdateMeasurementProtocolSecretRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFirebaseLinkRequest + * @returns UpdateMeasurementProtocolSecretRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; /** - * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. - * @param message DeleteFirebaseLinkRequest + * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * @param message UpdateMeasurementProtocolSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFirebaseLinkRequest to JSON. + * Converts this UpdateMeasurementProtocolSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListFirebaseLinksRequest. */ - interface IListFirebaseLinksRequest { + /** Properties of a ListMeasurementProtocolSecretsRequest. */ + interface IListMeasurementProtocolSecretsRequest { - /** ListFirebaseLinksRequest parent */ + /** ListMeasurementProtocolSecretsRequest parent */ parent?: (string|null); - /** ListFirebaseLinksRequest pageSize */ + /** ListMeasurementProtocolSecretsRequest pageSize */ pageSize?: (number|null); - /** ListFirebaseLinksRequest pageToken */ + /** ListMeasurementProtocolSecretsRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListFirebaseLinksRequest. */ - class ListFirebaseLinksRequest implements IListFirebaseLinksRequest { + /** Represents a ListMeasurementProtocolSecretsRequest. */ + class ListMeasurementProtocolSecretsRequest implements IListMeasurementProtocolSecretsRequest { /** - * Constructs a new ListFirebaseLinksRequest. + * Constructs a new ListMeasurementProtocolSecretsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest); - /** ListFirebaseLinksRequest parent. */ + /** ListMeasurementProtocolSecretsRequest parent. */ public parent: string; - /** ListFirebaseLinksRequest pageSize. */ + /** ListMeasurementProtocolSecretsRequest pageSize. */ public pageSize: number; - /** ListFirebaseLinksRequest pageToken. */ + /** ListMeasurementProtocolSecretsRequest pageToken. */ public pageToken: string; /** - * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFirebaseLinksRequest instance + * @returns ListMeasurementProtocolSecretsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksRequest): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. - * @param message ListFirebaseLinksRequest message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. - * @param message ListFirebaseLinksRequest message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListFirebaseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFirebaseLinksRequest + * @returns ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFirebaseLinksRequest + * @returns ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Verifies a ListFirebaseLinksRequest message. + * Verifies a ListMeasurementProtocolSecretsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFirebaseLinksRequest + * @returns ListMeasurementProtocolSecretsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListFirebaseLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; /** - * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. - * @param message ListFirebaseLinksRequest + * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. + * @param message ListMeasurementProtocolSecretsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListFirebaseLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFirebaseLinksRequest to JSON. + * Converts this ListMeasurementProtocolSecretsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListFirebaseLinksResponse. */ - interface IListFirebaseLinksResponse { + /** Properties of a ListMeasurementProtocolSecretsResponse. */ + interface IListMeasurementProtocolSecretsResponse { - /** ListFirebaseLinksResponse firebaseLinks */ - firebaseLinks?: (google.analytics.admin.v1alpha.IFirebaseLink[]|null); + /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets */ + measurementProtocolSecrets?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret[]|null); - /** ListFirebaseLinksResponse nextPageToken */ + /** ListMeasurementProtocolSecretsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListFirebaseLinksResponse. */ - class ListFirebaseLinksResponse implements IListFirebaseLinksResponse { + /** Represents a ListMeasurementProtocolSecretsResponse. */ + class ListMeasurementProtocolSecretsResponse implements IListMeasurementProtocolSecretsResponse { /** - * Constructs a new ListFirebaseLinksResponse. + * Constructs a new ListMeasurementProtocolSecretsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksResponse); + constructor(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse); - /** ListFirebaseLinksResponse firebaseLinks. */ - public firebaseLinks: google.analytics.admin.v1alpha.IFirebaseLink[]; + /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. */ + public measurementProtocolSecrets: google.analytics.admin.v1alpha.IMeasurementProtocolSecret[]; - /** ListFirebaseLinksResponse nextPageToken. */ + /** ListMeasurementProtocolSecretsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListFirebaseLinksResponse instance + * @returns ListMeasurementProtocolSecretsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListFirebaseLinksResponse): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. - * @param message ListFirebaseLinksResponse message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. - * @param message ListFirebaseLinksResponse message or plain object to encode + * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListFirebaseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFirebaseLinksResponse + * @returns ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFirebaseLinksResponse + * @returns ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Verifies a ListFirebaseLinksResponse message. + * Verifies a ListMeasurementProtocolSecretsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFirebaseLinksResponse + * @returns ListMeasurementProtocolSecretsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListFirebaseLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; /** - * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. - * @param message ListFirebaseLinksResponse + * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. + * @param message ListMeasurementProtocolSecretsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListFirebaseLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFirebaseLinksResponse to JSON. + * Converts this ListMeasurementProtocolSecretsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetGlobalSiteTagRequest. */ - interface IGetGlobalSiteTagRequest { + /** Properties of a GetGoogleSignalsSettingsRequest. */ + interface IGetGoogleSignalsSettingsRequest { - /** GetGlobalSiteTagRequest name */ + /** GetGoogleSignalsSettingsRequest name */ name?: (string|null); } - /** Represents a GetGlobalSiteTagRequest. */ - class GetGlobalSiteTagRequest implements IGetGlobalSiteTagRequest { - + /** Represents a GetGoogleSignalsSettingsRequest. */ + class GetGoogleSignalsSettingsRequest implements IGetGoogleSignalsSettingsRequest { + /** - * Constructs a new GetGlobalSiteTagRequest. + * Constructs a new GetGoogleSignalsSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest); - /** GetGlobalSiteTagRequest name. */ + /** GetGoogleSignalsSettingsRequest name. */ public name: string; /** - * Creates a new GetGlobalSiteTagRequest instance using the specified properties. + * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetGlobalSiteTagRequest instance + * @returns GetGoogleSignalsSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. - * @param message GetGlobalSiteTagRequest message or plain object to encode + * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message GetGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. - * @param message GetGlobalSiteTagRequest message or plain object to encode + * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message GetGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetGlobalSiteTagRequest + * @returns GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetGlobalSiteTagRequest + * @returns GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Verifies a GetGlobalSiteTagRequest message. + * Verifies a GetGoogleSignalsSettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetGlobalSiteTagRequest + * @returns GetGoogleSignalsSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; /** - * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. - * @param message GetGlobalSiteTagRequest + * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * @param message GetGoogleSignalsSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetGlobalSiteTagRequest to JSON. + * Converts this GetGoogleSignalsSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateGoogleAdsLinkRequest. */ - interface ICreateGoogleAdsLinkRequest { + /** Properties of an UpdateGoogleSignalsSettingsRequest. */ + interface IUpdateGoogleSignalsSettingsRequest { - /** CreateGoogleAdsLinkRequest parent */ - parent?: (string|null); + /** UpdateGoogleSignalsSettingsRequest googleSignalsSettings */ + googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - /** CreateGoogleAdsLinkRequest googleAdsLink */ - googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + /** UpdateGoogleSignalsSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateGoogleAdsLinkRequest. */ - class CreateGoogleAdsLinkRequest implements ICreateGoogleAdsLinkRequest { + /** Represents an UpdateGoogleSignalsSettingsRequest. */ + class UpdateGoogleSignalsSettingsRequest implements IUpdateGoogleSignalsSettingsRequest { /** - * Constructs a new CreateGoogleAdsLinkRequest. + * Constructs a new UpdateGoogleSignalsSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest); - /** CreateGoogleAdsLinkRequest parent. */ - public parent: string; + /** UpdateGoogleSignalsSettingsRequest googleSignalsSettings. */ + public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - /** CreateGoogleAdsLinkRequest googleAdsLink. */ - public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + /** UpdateGoogleSignalsSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateGoogleAdsLinkRequest instance + * @returns UpdateGoogleSignalsSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. - * @param message CreateGoogleAdsLinkRequest message or plain object to encode + * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. - * @param message CreateGoogleAdsLinkRequest message or plain object to encode + * Encodes the specified UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * @param message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateGoogleAdsLinkRequest + * @returns UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateGoogleAdsLinkRequest + * @returns UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Verifies a CreateGoogleAdsLinkRequest message. + * Verifies an UpdateGoogleSignalsSettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateGoogleAdsLinkRequest + * @returns UpdateGoogleSignalsSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; /** - * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. - * @param message CreateGoogleAdsLinkRequest + * Creates a plain object from an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateGoogleSignalsSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateGoogleAdsLinkRequest to JSON. + * Converts this UpdateGoogleSignalsSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateGoogleAdsLinkRequest. */ - interface IUpdateGoogleAdsLinkRequest { + /** Properties of a CreateConversionEventRequest. */ + interface ICreateConversionEventRequest { - /** UpdateGoogleAdsLinkRequest googleAdsLink */ - googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + /** CreateConversionEventRequest conversionEvent */ + conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - /** UpdateGoogleAdsLinkRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateConversionEventRequest parent */ + parent?: (string|null); } - /** Represents an UpdateGoogleAdsLinkRequest. */ - class UpdateGoogleAdsLinkRequest implements IUpdateGoogleAdsLinkRequest { + /** Represents a CreateConversionEventRequest. */ + class CreateConversionEventRequest implements ICreateConversionEventRequest { /** - * Constructs a new UpdateGoogleAdsLinkRequest. + * Constructs a new CreateConversionEventRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateConversionEventRequest); - /** UpdateGoogleAdsLinkRequest googleAdsLink. */ - public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + /** CreateConversionEventRequest conversionEvent. */ + public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - /** UpdateGoogleAdsLinkRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateConversionEventRequest parent. */ + public parent: string; /** - * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * Creates a new CreateConversionEventRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateGoogleAdsLinkRequest instance + * @returns CreateConversionEventRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateConversionEventRequest): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. - * @param message UpdateGoogleAdsLinkRequest message or plain object to encode + * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * @param message CreateConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. - * @param message UpdateGoogleAdsLinkRequest message or plain object to encode + * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * @param message CreateConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateGoogleAdsLinkRequest + * @returns CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateGoogleAdsLinkRequest + * @returns CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Verifies an UpdateGoogleAdsLinkRequest message. + * Verifies a CreateConversionEventRequest message. * @param message Plain 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 UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateGoogleAdsLinkRequest + * @returns CreateConversionEventRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateConversionEventRequest; /** - * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. - * @param message UpdateGoogleAdsLinkRequest + * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. + * @param message CreateConversionEventRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateGoogleAdsLinkRequest to JSON. + * Converts this CreateConversionEventRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteGoogleAdsLinkRequest. */ - interface IDeleteGoogleAdsLinkRequest { + /** Properties of a GetConversionEventRequest. */ + interface IGetConversionEventRequest { - /** DeleteGoogleAdsLinkRequest name */ + /** GetConversionEventRequest name */ name?: (string|null); } - /** Represents a DeleteGoogleAdsLinkRequest. */ - class DeleteGoogleAdsLinkRequest implements IDeleteGoogleAdsLinkRequest { + /** Represents a GetConversionEventRequest. */ + class GetConversionEventRequest implements IGetConversionEventRequest { /** - * Constructs a new DeleteGoogleAdsLinkRequest. + * Constructs a new GetConversionEventRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetConversionEventRequest); - /** DeleteGoogleAdsLinkRequest name. */ + /** GetConversionEventRequest name. */ public name: string; /** - * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * Creates a new GetConversionEventRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteGoogleAdsLinkRequest instance + * @returns GetConversionEventRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetConversionEventRequest): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. - * @param message DeleteGoogleAdsLinkRequest message or plain object to encode + * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * @param message GetConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. - * @param message DeleteGoogleAdsLinkRequest message or plain object to encode + * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * @param message GetConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a GetConversionEventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteGoogleAdsLinkRequest + * @returns GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteGoogleAdsLinkRequest + * @returns GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Verifies a DeleteGoogleAdsLinkRequest message. + * Verifies a GetConversionEventRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteGoogleAdsLinkRequest + * @returns GetConversionEventRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetConversionEventRequest; /** - * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. - * @param message DeleteGoogleAdsLinkRequest + * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. + * @param message GetConversionEventRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteGoogleAdsLinkRequest to JSON. + * Converts this GetConversionEventRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListGoogleAdsLinksRequest. */ - interface IListGoogleAdsLinksRequest { - - /** ListGoogleAdsLinksRequest parent */ - parent?: (string|null); - - /** ListGoogleAdsLinksRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeleteConversionEventRequest. */ + interface IDeleteConversionEventRequest { - /** ListGoogleAdsLinksRequest pageToken */ - pageToken?: (string|null); + /** DeleteConversionEventRequest name */ + name?: (string|null); } - /** Represents a ListGoogleAdsLinksRequest. */ - class ListGoogleAdsLinksRequest implements IListGoogleAdsLinksRequest { + /** Represents a DeleteConversionEventRequest. */ + class DeleteConversionEventRequest implements IDeleteConversionEventRequest { /** - * Constructs a new ListGoogleAdsLinksRequest. + * Constructs a new DeleteConversionEventRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest); - - /** ListGoogleAdsLinksRequest parent. */ - public parent: string; - - /** ListGoogleAdsLinksRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IDeleteConversionEventRequest); - /** ListGoogleAdsLinksRequest pageToken. */ - public pageToken: string; + /** DeleteConversionEventRequest name. */ + public name: string; /** - * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * Creates a new DeleteConversionEventRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListGoogleAdsLinksRequest instance + * @returns DeleteConversionEventRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteConversionEventRequest): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. - * @param message ListGoogleAdsLinksRequest message or plain object to encode + * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * @param message DeleteConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. - * @param message ListGoogleAdsLinksRequest message or plain object to encode + * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * @param message DeleteConversionEventRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListGoogleAdsLinksRequest + * @returns DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListGoogleAdsLinksRequest + * @returns DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Verifies a ListGoogleAdsLinksRequest message. + * Verifies a DeleteConversionEventRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListGoogleAdsLinksRequest + * @returns DeleteConversionEventRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteConversionEventRequest; /** - * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. - * @param message ListGoogleAdsLinksRequest + * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. + * @param message DeleteConversionEventRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListGoogleAdsLinksRequest to JSON. + * Converts this DeleteConversionEventRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListGoogleAdsLinksResponse. */ - interface IListGoogleAdsLinksResponse { + /** Properties of a ListConversionEventsRequest. */ + interface IListConversionEventsRequest { - /** ListGoogleAdsLinksResponse googleAdsLinks */ - googleAdsLinks?: (google.analytics.admin.v1alpha.IGoogleAdsLink[]|null); + /** ListConversionEventsRequest parent */ + parent?: (string|null); - /** ListGoogleAdsLinksResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListConversionEventsRequest pageSize */ + pageSize?: (number|null); + + /** ListConversionEventsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListGoogleAdsLinksResponse. */ - class ListGoogleAdsLinksResponse implements IListGoogleAdsLinksResponse { + /** Represents a ListConversionEventsRequest. */ + class ListConversionEventsRequest implements IListConversionEventsRequest { /** - * Constructs a new ListGoogleAdsLinksResponse. + * Constructs a new ListConversionEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse); + constructor(properties?: google.analytics.admin.v1alpha.IListConversionEventsRequest); - /** ListGoogleAdsLinksResponse googleAdsLinks. */ - public googleAdsLinks: google.analytics.admin.v1alpha.IGoogleAdsLink[]; + /** ListConversionEventsRequest parent. */ + public parent: string; - /** ListGoogleAdsLinksResponse nextPageToken. */ - public nextPageToken: string; + /** ListConversionEventsRequest pageSize. */ + public pageSize: number; + + /** ListConversionEventsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * Creates a new ListConversionEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListGoogleAdsLinksResponse instance + * @returns ListConversionEventsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.IListConversionEventsRequest): google.analytics.admin.v1alpha.ListConversionEventsRequest; /** - * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. - * @param message ListGoogleAdsLinksResponse message or plain object to encode + * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * @param message ListConversionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. - * @param message ListGoogleAdsLinksResponse message or plain object to encode + * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * @param message ListConversionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListGoogleAdsLinksResponse + * @returns ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListConversionEventsRequest; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListGoogleAdsLinksResponse + * @returns ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListConversionEventsRequest; /** - * Verifies a ListGoogleAdsLinksResponse message. + * Verifies a ListConversionEventsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListGoogleAdsLinksResponse + * @returns ListConversionEventsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListConversionEventsRequest; /** - * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. - * @param message ListGoogleAdsLinksResponse + * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. + * @param message ListConversionEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListConversionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListGoogleAdsLinksResponse to JSON. + * Converts this ListConversionEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDataSharingSettingsRequest. */ - interface IGetDataSharingSettingsRequest { + /** Properties of a ListConversionEventsResponse. */ + interface IListConversionEventsResponse { - /** GetDataSharingSettingsRequest name */ - name?: (string|null); + /** ListConversionEventsResponse conversionEvents */ + conversionEvents?: (google.analytics.admin.v1alpha.IConversionEvent[]|null); + + /** ListConversionEventsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetDataSharingSettingsRequest. */ - class GetDataSharingSettingsRequest implements IGetDataSharingSettingsRequest { + /** Represents a ListConversionEventsResponse. */ + class ListConversionEventsResponse implements IListConversionEventsResponse { /** - * Constructs a new GetDataSharingSettingsRequest. + * Constructs a new ListConversionEventsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListConversionEventsResponse); - /** GetDataSharingSettingsRequest name. */ - public name: string; + /** ListConversionEventsResponse conversionEvents. */ + public conversionEvents: google.analytics.admin.v1alpha.IConversionEvent[]; + + /** ListConversionEventsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * Creates a new ListConversionEventsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataSharingSettingsRequest instance + * @returns ListConversionEventsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListConversionEventsResponse): google.analytics.admin.v1alpha.ListConversionEventsResponse; /** - * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. - * @param message GetDataSharingSettingsRequest message or plain object to encode + * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * @param message ListConversionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. - * @param message GetDataSharingSettingsRequest message or plain object to encode + * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * @param message ListConversionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataSharingSettingsRequest + * @returns ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListConversionEventsResponse; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataSharingSettingsRequest + * @returns ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListConversionEventsResponse; /** - * Verifies a GetDataSharingSettingsRequest message. + * Verifies a ListConversionEventsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataSharingSettingsRequest + * @returns ListConversionEventsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListConversionEventsResponse; /** - * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. - * @param message GetDataSharingSettingsRequest + * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. + * @param message ListConversionEventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListConversionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataSharingSettingsRequest to JSON. + * Converts this ListConversionEventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAccountSummariesRequest. */ - interface IListAccountSummariesRequest { - - /** ListAccountSummariesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetDisplayVideo360AdvertiserLinkRequest. */ + interface IGetDisplayVideo360AdvertiserLinkRequest { - /** ListAccountSummariesRequest pageToken */ - pageToken?: (string|null); + /** GetDisplayVideo360AdvertiserLinkRequest name */ + name?: (string|null); } - /** Represents a ListAccountSummariesRequest. */ - class ListAccountSummariesRequest implements IListAccountSummariesRequest { + /** Represents a GetDisplayVideo360AdvertiserLinkRequest. */ + class GetDisplayVideo360AdvertiserLinkRequest implements IGetDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new ListAccountSummariesRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListAccountSummariesRequest); - - /** ListAccountSummariesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest); - /** ListAccountSummariesRequest pageToken. */ - public pageToken: string; + /** GetDisplayVideo360AdvertiserLinkRequest name. */ + public name: string; /** - * Creates a new ListAccountSummariesRequest instance using the specified properties. + * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAccountSummariesRequest instance + * @returns GetDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListAccountSummariesRequest): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. - * @param message ListAccountSummariesRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. - * @param message ListAccountSummariesRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountSummariesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAccountSummariesRequest + * @returns GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAccountSummariesRequest + * @returns GetDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Verifies a ListAccountSummariesRequest message. + * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAccountSummariesRequest + * @returns GetDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountSummariesRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. - * @param message ListAccountSummariesRequest + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message GetDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListAccountSummariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAccountSummariesRequest to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAccountSummariesResponse. */ - interface IListAccountSummariesResponse { + /** Properties of a ListDisplayVideo360AdvertiserLinksRequest. */ + interface IListDisplayVideo360AdvertiserLinksRequest { - /** ListAccountSummariesResponse accountSummaries */ - accountSummaries?: (google.analytics.admin.v1alpha.IAccountSummary[]|null); + /** ListDisplayVideo360AdvertiserLinksRequest parent */ + parent?: (string|null); - /** ListAccountSummariesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListDisplayVideo360AdvertiserLinksRequest pageSize */ + pageSize?: (number|null); + + /** ListDisplayVideo360AdvertiserLinksRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListAccountSummariesResponse. */ - class ListAccountSummariesResponse implements IListAccountSummariesResponse { + /** Represents a ListDisplayVideo360AdvertiserLinksRequest. */ + class ListDisplayVideo360AdvertiserLinksRequest implements IListDisplayVideo360AdvertiserLinksRequest { /** - * Constructs a new ListAccountSummariesResponse. + * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListAccountSummariesResponse); + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest); - /** ListAccountSummariesResponse accountSummaries. */ - public accountSummaries: google.analytics.admin.v1alpha.IAccountSummary[]; + /** ListDisplayVideo360AdvertiserLinksRequest parent. */ + public parent: string; - /** ListAccountSummariesResponse nextPageToken. */ - public nextPageToken: string; + /** ListDisplayVideo360AdvertiserLinksRequest pageSize. */ + public pageSize: number; + + /** ListDisplayVideo360AdvertiserLinksRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListAccountSummariesResponse instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAccountSummariesResponse instance + * @returns ListDisplayVideo360AdvertiserLinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListAccountSummariesResponse): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. - * @param message ListAccountSummariesResponse message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. - * @param message ListAccountSummariesResponse message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAccountSummariesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAccountSummariesResponse + * @returns ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAccountSummariesResponse + * @returns ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Verifies a ListAccountSummariesResponse message. + * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAccountSummariesResponse + * @returns ListDisplayVideo360AdvertiserLinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAccountSummariesResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; /** - * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. - * @param message ListAccountSummariesResponse + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListAccountSummariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAccountSummariesResponse to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AcknowledgeUserDataCollectionRequest. */ - interface IAcknowledgeUserDataCollectionRequest { + /** Properties of a ListDisplayVideo360AdvertiserLinksResponse. */ + interface IListDisplayVideo360AdvertiserLinksResponse { - /** AcknowledgeUserDataCollectionRequest property */ - property?: (string|null); + /** ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks */ + displayVideo_360AdvertiserLinks?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[]|null); - /** AcknowledgeUserDataCollectionRequest acknowledgement */ - acknowledgement?: (string|null); + /** ListDisplayVideo360AdvertiserLinksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AcknowledgeUserDataCollectionRequest. */ - class AcknowledgeUserDataCollectionRequest implements IAcknowledgeUserDataCollectionRequest { + /** Represents a ListDisplayVideo360AdvertiserLinksResponse. */ + class ListDisplayVideo360AdvertiserLinksResponse implements IListDisplayVideo360AdvertiserLinksResponse { /** - * Constructs a new AcknowledgeUserDataCollectionRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse); - /** AcknowledgeUserDataCollectionRequest property. */ - public property: string; + /** ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. */ + public displayVideo_360AdvertiserLinks: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[]; - /** AcknowledgeUserDataCollectionRequest acknowledgement. */ - public acknowledgement: string; + /** ListDisplayVideo360AdvertiserLinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AcknowledgeUserDataCollectionRequest instance + * @returns ListDisplayVideo360AdvertiserLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. - * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. - * @param message AcknowledgeUserDataCollectionRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AcknowledgeUserDataCollectionRequest + * @returns ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AcknowledgeUserDataCollectionRequest + * @returns ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Verifies an AcknowledgeUserDataCollectionRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. * @param message Plain 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 AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AcknowledgeUserDataCollectionRequest + * @returns ListDisplayVideo360AdvertiserLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; /** - * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. - * @param message AcknowledgeUserDataCollectionRequest + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AcknowledgeUserDataCollectionRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AcknowledgeUserDataCollectionResponse. */ - interface IAcknowledgeUserDataCollectionResponse { + /** Properties of a CreateDisplayVideo360AdvertiserLinkRequest. */ + interface ICreateDisplayVideo360AdvertiserLinkRequest { + + /** CreateDisplayVideo360AdvertiserLinkRequest parent */ + parent?: (string|null); + + /** CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); } - /** Represents an AcknowledgeUserDataCollectionResponse. */ - class AcknowledgeUserDataCollectionResponse implements IAcknowledgeUserDataCollectionResponse { + /** Represents a CreateDisplayVideo360AdvertiserLinkRequest. */ + class CreateDisplayVideo360AdvertiserLinkRequest implements ICreateDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new AcknowledgeUserDataCollectionResponse. + * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse); + constructor(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest); + + /** CreateDisplayVideo360AdvertiserLinkRequest parent. */ + public parent: string; + + /** CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); /** - * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. + * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AcknowledgeUserDataCollectionResponse instance + * @returns CreateDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + public static create(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. - * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. - * @param message AcknowledgeUserDataCollectionResponse message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AcknowledgeUserDataCollectionResponse + * @returns CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AcknowledgeUserDataCollectionResponse + * @returns CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Verifies an AcknowledgeUserDataCollectionResponse message. + * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. * @param message Plain 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 AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AcknowledgeUserDataCollectionResponse + * @returns CreateDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. - * @param message AcknowledgeUserDataCollectionResponse + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message CreateDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AcknowledgeUserDataCollectionResponse to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SearchChangeHistoryEventsRequest. */ - interface ISearchChangeHistoryEventsRequest { - - /** SearchChangeHistoryEventsRequest account */ - account?: (string|null); - - /** SearchChangeHistoryEventsRequest property */ - property?: (string|null); - - /** SearchChangeHistoryEventsRequest resourceType */ - resourceType?: (google.analytics.admin.v1alpha.ChangeHistoryResourceType[]|null); - - /** SearchChangeHistoryEventsRequest action */ - action?: (google.analytics.admin.v1alpha.ActionType[]|null); - - /** SearchChangeHistoryEventsRequest actorEmail */ - actorEmail?: (string[]|null); - - /** SearchChangeHistoryEventsRequest earliestChangeTime */ - earliestChangeTime?: (google.protobuf.ITimestamp|null); - - /** SearchChangeHistoryEventsRequest latestChangeTime */ - latestChangeTime?: (google.protobuf.ITimestamp|null); - - /** SearchChangeHistoryEventsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. */ + interface IDeleteDisplayVideo360AdvertiserLinkRequest { - /** SearchChangeHistoryEventsRequest pageToken */ - pageToken?: (string|null); + /** DeleteDisplayVideo360AdvertiserLinkRequest name */ + name?: (string|null); } - /** Represents a SearchChangeHistoryEventsRequest. */ - class SearchChangeHistoryEventsRequest implements ISearchChangeHistoryEventsRequest { + /** Represents a DeleteDisplayVideo360AdvertiserLinkRequest. */ + class DeleteDisplayVideo360AdvertiserLinkRequest implements IDeleteDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new SearchChangeHistoryEventsRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest); - - /** SearchChangeHistoryEventsRequest account. */ - public account: string; - - /** SearchChangeHistoryEventsRequest property. */ - public property: string; - - /** SearchChangeHistoryEventsRequest resourceType. */ - public resourceType: google.analytics.admin.v1alpha.ChangeHistoryResourceType[]; - - /** SearchChangeHistoryEventsRequest action. */ - public action: google.analytics.admin.v1alpha.ActionType[]; - - /** SearchChangeHistoryEventsRequest actorEmail. */ - public actorEmail: string[]; - - /** SearchChangeHistoryEventsRequest earliestChangeTime. */ - public earliestChangeTime?: (google.protobuf.ITimestamp|null); - - /** SearchChangeHistoryEventsRequest latestChangeTime. */ - public latestChangeTime?: (google.protobuf.ITimestamp|null); - - /** SearchChangeHistoryEventsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest); - /** SearchChangeHistoryEventsRequest pageToken. */ - public pageToken: string; + /** DeleteDisplayVideo360AdvertiserLinkRequest name. */ + public name: string; /** - * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchChangeHistoryEventsRequest instance + * @returns DeleteDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. - * @param message SearchChangeHistoryEventsRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. - * @param message SearchChangeHistoryEventsRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchChangeHistoryEventsRequest + * @returns DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchChangeHistoryEventsRequest + * @returns DeleteDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Verifies a SearchChangeHistoryEventsRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchChangeHistoryEventsRequest + * @returns DeleteDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. - * @param message SearchChangeHistoryEventsRequest + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message DeleteDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchChangeHistoryEventsRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SearchChangeHistoryEventsResponse. */ - interface ISearchChangeHistoryEventsResponse { + /** Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. */ + interface IUpdateDisplayVideo360AdvertiserLinkRequest { - /** SearchChangeHistoryEventsResponse changeHistoryEvents */ - changeHistoryEvents?: (google.analytics.admin.v1alpha.IChangeHistoryEvent[]|null); + /** UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); - /** SearchChangeHistoryEventsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateDisplayVideo360AdvertiserLinkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a SearchChangeHistoryEventsResponse. */ - class SearchChangeHistoryEventsResponse implements ISearchChangeHistoryEventsResponse { + /** Represents an UpdateDisplayVideo360AdvertiserLinkRequest. */ + class UpdateDisplayVideo360AdvertiserLinkRequest implements IUpdateDisplayVideo360AdvertiserLinkRequest { /** - * Constructs a new SearchChangeHistoryEventsResponse. + * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest); - /** SearchChangeHistoryEventsResponse changeHistoryEvents. */ - public changeHistoryEvents: google.analytics.admin.v1alpha.IChangeHistoryEvent[]; + /** UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); - /** SearchChangeHistoryEventsResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateDisplayVideo360AdvertiserLinkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchChangeHistoryEventsResponse instance + * @returns UpdateDisplayVideo360AdvertiserLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. - * @param message SearchChangeHistoryEventsResponse message or plain object to encode + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. - * @param message SearchChangeHistoryEventsResponse message or plain object to encode + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @param message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchChangeHistoryEventsResponse + * @returns UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchChangeHistoryEventsResponse + * @returns UpdateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Verifies a SearchChangeHistoryEventsResponse message. + * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchChangeHistoryEventsResponse + * @returns UpdateDisplayVideo360AdvertiserLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; /** - * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. - * @param message SearchChangeHistoryEventsResponse + * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @param message UpdateDisplayVideo360AdvertiserLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchChangeHistoryEventsResponse to JSON. + * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetMeasurementProtocolSecretRequest. */ - interface IGetMeasurementProtocolSecretRequest { + /** Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. */ + interface IGetDisplayVideo360AdvertiserLinkProposalRequest { - /** GetMeasurementProtocolSecretRequest name */ + /** GetDisplayVideo360AdvertiserLinkProposalRequest name */ name?: (string|null); } - /** Represents a GetMeasurementProtocolSecretRequest. */ - class GetMeasurementProtocolSecretRequest implements IGetMeasurementProtocolSecretRequest { + /** Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. */ + class GetDisplayVideo360AdvertiserLinkProposalRequest implements IGetDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new GetMeasurementProtocolSecretRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest); - /** GetMeasurementProtocolSecretRequest name. */ + /** GetDisplayVideo360AdvertiserLinkProposalRequest name. */ public name: string; /** - * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetMeasurementProtocolSecretRequest instance + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message GetMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message GetMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMeasurementProtocolSecretRequest + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMeasurementProtocolSecretRequest + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies a GetMeasurementProtocolSecretRequest message. + * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMeasurementProtocolSecretRequest + * @returns GetDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. - * @param message GetMeasurementProtocolSecretRequest + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message GetDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMeasurementProtocolSecretRequest to JSON. + * Converts this GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateMeasurementProtocolSecretRequest. */ - interface ICreateMeasurementProtocolSecretRequest { + /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. */ + interface IListDisplayVideo360AdvertiserLinkProposalsRequest { - /** CreateMeasurementProtocolSecretRequest parent */ + /** ListDisplayVideo360AdvertiserLinkProposalsRequest parent */ parent?: (string|null); - /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret */ - measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize */ + pageSize?: (number|null); + + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateMeasurementProtocolSecretRequest. */ - class CreateMeasurementProtocolSecretRequest implements ICreateMeasurementProtocolSecretRequest { + /** Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. */ + class ListDisplayVideo360AdvertiserLinkProposalsRequest implements IListDisplayVideo360AdvertiserLinkProposalsRequest { /** - * Constructs a new CreateMeasurementProtocolSecretRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest); - /** CreateMeasurementProtocolSecretRequest parent. */ + /** ListDisplayVideo360AdvertiserLinkProposalsRequest parent. */ public parent: string; - /** CreateMeasurementProtocolSecretRequest measurementProtocolSecret. */ - public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. */ + public pageSize: number; + + /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMeasurementProtocolSecretRequest instance + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message CreateMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMeasurementProtocolSecretRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMeasurementProtocolSecretRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Verifies a CreateMeasurementProtocolSecretRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMeasurementProtocolSecretRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; /** - * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. - * @param message CreateMeasurementProtocolSecretRequest + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMeasurementProtocolSecretRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteMeasurementProtocolSecretRequest. */ - interface IDeleteMeasurementProtocolSecretRequest { + /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. */ + interface IListDisplayVideo360AdvertiserLinkProposalsResponse { - /** DeleteMeasurementProtocolSecretRequest name */ - name?: (string|null); + /** ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals */ + displayVideo_360AdvertiserLinkProposals?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[]|null); + + /** ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteMeasurementProtocolSecretRequest. */ - class DeleteMeasurementProtocolSecretRequest implements IDeleteMeasurementProtocolSecretRequest { + /** Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. */ + class ListDisplayVideo360AdvertiserLinkProposalsResponse implements IListDisplayVideo360AdvertiserLinkProposalsResponse { /** - * Constructs a new DeleteMeasurementProtocolSecretRequest. + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse); - /** DeleteMeasurementProtocolSecretRequest name. */ - public name: string; + /** ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. */ + public displayVideo_360AdvertiserLinkProposals: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[]; + + /** ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMeasurementProtocolSecretRequest instance + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMeasurementProtocolSecretRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMeasurementProtocolSecretRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Verifies a DeleteMeasurementProtocolSecretRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMeasurementProtocolSecretRequest + * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; /** - * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. - * @param message DeleteMeasurementProtocolSecretRequest + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. + * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMeasurementProtocolSecretRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateMeasurementProtocolSecretRequest. */ - interface IUpdateMeasurementProtocolSecretRequest { + /** Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. */ + interface ICreateDisplayVideo360AdvertiserLinkProposalRequest { - /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret */ - measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + /** CreateDisplayVideo360AdvertiserLinkProposalRequest parent */ + parent?: (string|null); - /** UpdateMeasurementProtocolSecretRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal */ + displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); } - /** Represents an UpdateMeasurementProtocolSecretRequest. */ - class UpdateMeasurementProtocolSecretRequest implements IUpdateMeasurementProtocolSecretRequest { + /** Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. */ + class CreateDisplayVideo360AdvertiserLinkProposalRequest implements ICreateDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new UpdateMeasurementProtocolSecretRequest. + * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest); - /** UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. */ - public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + /** CreateDisplayVideo360AdvertiserLinkProposalRequest parent. */ + public parent: string; - /** UpdateMeasurementProtocolSecretRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. */ + public displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); /** - * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateMeasurementProtocolSecretRequest instance + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. - * @param message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateMeasurementProtocolSecretRequest + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateMeasurementProtocolSecretRequest + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies an UpdateMeasurementProtocolSecretRequest message. + * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain 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 UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateMeasurementProtocolSecretRequest + * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. - * @param message UpdateMeasurementProtocolSecretRequest + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateMeasurementProtocolSecretRequest to JSON. + * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListMeasurementProtocolSecretsRequest. */ - interface IListMeasurementProtocolSecretsRequest { - - /** ListMeasurementProtocolSecretsRequest parent */ - parent?: (string|null); - - /** ListMeasurementProtocolSecretsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. */ + interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest { - /** ListMeasurementProtocolSecretsRequest pageToken */ - pageToken?: (string|null); + /** DeleteDisplayVideo360AdvertiserLinkProposalRequest name */ + name?: (string|null); } - /** Represents a ListMeasurementProtocolSecretsRequest. */ - class ListMeasurementProtocolSecretsRequest implements IListMeasurementProtocolSecretsRequest { - + /** Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. */ + class DeleteDisplayVideo360AdvertiserLinkProposalRequest implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest { + /** - * Constructs a new ListMeasurementProtocolSecretsRequest. + * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest); - - /** ListMeasurementProtocolSecretsRequest parent. */ - public parent: string; - - /** ListMeasurementProtocolSecretsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest); - /** ListMeasurementProtocolSecretsRequest pageToken. */ - public pageToken: string; + /** DeleteDisplayVideo360AdvertiserLinkProposalRequest name. */ + public name: string; /** - * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. + * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMeasurementProtocolSecretsRequest instance + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. - * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. - * @param message ListMeasurementProtocolSecretsRequest message or plain object to encode + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMeasurementProtocolSecretsRequest + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMeasurementProtocolSecretsRequest + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies a ListMeasurementProtocolSecretsRequest message. + * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMeasurementProtocolSecretsRequest + * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. - * @param message ListMeasurementProtocolSecretsRequest + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMeasurementProtocolSecretsRequest to JSON. + * Converts this DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListMeasurementProtocolSecretsResponse. */ - interface IListMeasurementProtocolSecretsResponse { - - /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets */ - measurementProtocolSecrets?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret[]|null); + /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. */ + interface IApproveDisplayVideo360AdvertiserLinkProposalRequest { - /** ListMeasurementProtocolSecretsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ApproveDisplayVideo360AdvertiserLinkProposalRequest name */ + name?: (string|null); } - /** Represents a ListMeasurementProtocolSecretsResponse. */ - class ListMeasurementProtocolSecretsResponse implements IListMeasurementProtocolSecretsResponse { + /** Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. */ + class ApproveDisplayVideo360AdvertiserLinkProposalRequest implements IApproveDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new ListMeasurementProtocolSecretsResponse. + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse); - - /** ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. */ - public measurementProtocolSecrets: google.analytics.admin.v1alpha.IMeasurementProtocolSecret[]; + constructor(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest); - /** ListMeasurementProtocolSecretsResponse nextPageToken. */ - public nextPageToken: string; + /** ApproveDisplayVideo360AdvertiserLinkProposalRequest name. */ + public name: string; /** - * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMeasurementProtocolSecretsResponse instance + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. - * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. - * @param message ListMeasurementProtocolSecretsResponse message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMeasurementProtocolSecretsResponse + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMeasurementProtocolSecretsResponse + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies a ListMeasurementProtocolSecretsResponse message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMeasurementProtocolSecretsResponse + * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. - * @param message ListMeasurementProtocolSecretsResponse + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMeasurementProtocolSecretsResponse to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetGoogleSignalsSettingsRequest. */ - interface IGetGoogleSignalsSettingsRequest { + /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. */ + interface IApproveDisplayVideo360AdvertiserLinkProposalResponse { - /** GetGoogleSignalsSettingsRequest name */ - name?: (string|null); + /** ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); } - /** Represents a GetGoogleSignalsSettingsRequest. */ - class GetGoogleSignalsSettingsRequest implements IGetGoogleSignalsSettingsRequest { + /** Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. */ + class ApproveDisplayVideo360AdvertiserLinkProposalResponse implements IApproveDisplayVideo360AdvertiserLinkProposalResponse { /** - * Constructs a new GetGoogleSignalsSettingsRequest. + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse); - /** GetGoogleSignalsSettingsRequest name. */ - public name: string; + /** ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); /** - * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetGoogleSignalsSettingsRequest instance + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. - * @param message GetGoogleSignalsSettingsRequest message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. - * @param message GetGoogleSignalsSettingsRequest message or plain object to encode + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetGoogleSignalsSettingsRequest + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetGoogleSignalsSettingsRequest + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Verifies a GetGoogleSignalsSettingsRequest message. + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetGoogleSignalsSettingsRequest + * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; /** - * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. - * @param message GetGoogleSignalsSettingsRequest + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. + * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetGoogleSignalsSettingsRequest to JSON. + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateGoogleSignalsSettingsRequest. */ - interface IUpdateGoogleSignalsSettingsRequest { - - /** UpdateGoogleSignalsSettingsRequest googleSignalsSettings */ - googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + /** Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. */ + interface ICancelDisplayVideo360AdvertiserLinkProposalRequest { - /** UpdateGoogleSignalsSettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CancelDisplayVideo360AdvertiserLinkProposalRequest name */ + name?: (string|null); } - /** Represents an UpdateGoogleSignalsSettingsRequest. */ - class UpdateGoogleSignalsSettingsRequest implements IUpdateGoogleSignalsSettingsRequest { + /** Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. */ + class CancelDisplayVideo360AdvertiserLinkProposalRequest implements ICancelDisplayVideo360AdvertiserLinkProposalRequest { /** - * Constructs a new UpdateGoogleSignalsSettingsRequest. + * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest); - - /** UpdateGoogleSignalsSettingsRequest googleSignalsSettings. */ - public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + constructor(properties?: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest); - /** UpdateGoogleSignalsSettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CancelDisplayVideo360AdvertiserLinkProposalRequest name. */ + public name: string; /** - * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. + * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateGoogleSignalsSettingsRequest instance + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. - * @param message UpdateGoogleSignalsSettingsRequest message or plain object to encode + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. - * @param message UpdateGoogleSignalsSettingsRequest message or plain object to encode + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateGoogleSignalsSettingsRequest + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateGoogleSignalsSettingsRequest + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Verifies an UpdateGoogleSignalsSettingsRequest message. + * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. * @param message Plain 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 UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateGoogleSignalsSettingsRequest + * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; /** - * Creates a plain object from an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateGoogleSignalsSettingsRequest + * Creates a plain object from a CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateGoogleSignalsSettingsRequest to JSON. + * Converts this CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateConversionEventRequest. */ - interface ICreateConversionEventRequest { - - /** CreateConversionEventRequest conversionEvent */ - conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + /** Properties of a CreateCustomDimensionRequest. */ + interface ICreateCustomDimensionRequest { - /** CreateConversionEventRequest parent */ + /** CreateCustomDimensionRequest parent */ parent?: (string|null); + + /** CreateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); } - /** Represents a CreateConversionEventRequest. */ - class CreateConversionEventRequest implements ICreateConversionEventRequest { + /** Represents a CreateCustomDimensionRequest. */ + class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { /** - * Constructs a new CreateConversionEventRequest. + * Constructs a new CreateCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateConversionEventRequest); - - /** CreateConversionEventRequest conversionEvent. */ - public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest); - /** CreateConversionEventRequest parent. */ + /** CreateCustomDimensionRequest parent. */ public parent: string; + /** CreateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** - * Creates a new CreateConversionEventRequest instance using the specified properties. + * Creates a new CreateCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateConversionEventRequest instance + * @returns CreateCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateConversionEventRequest): google.analytics.admin.v1alpha.CreateConversionEventRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. - * @param message CreateConversionEventRequest message or plain object to encode + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. - * @param message CreateConversionEventRequest message or plain object to encode + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateConversionEventRequest message from the specified reader or buffer. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateConversionEventRequest + * @returns CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateConversionEventRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateConversionEventRequest + * @returns CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateConversionEventRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Verifies a CreateConversionEventRequest message. + * Verifies a CreateCustomDimensionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateConversionEventRequest + * @returns CreateCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateConversionEventRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. - * @param message CreateConversionEventRequest + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message CreateCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateConversionEventRequest to JSON. + * Converts this CreateCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetConversionEventRequest. */ - interface IGetConversionEventRequest { + /** Properties of an UpdateCustomDimensionRequest. */ + interface IUpdateCustomDimensionRequest { - /** GetConversionEventRequest name */ - name?: (string|null); + /** UpdateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** UpdateCustomDimensionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetConversionEventRequest. */ - class GetConversionEventRequest implements IGetConversionEventRequest { + /** Represents an UpdateCustomDimensionRequest. */ + class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { /** - * Constructs a new GetConversionEventRequest. + * Constructs a new UpdateCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetConversionEventRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest); - /** GetConversionEventRequest name. */ - public name: string; + /** UpdateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** UpdateCustomDimensionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetConversionEventRequest instance using the specified properties. + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetConversionEventRequest instance + * @returns UpdateCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetConversionEventRequest): google.analytics.admin.v1alpha.GetConversionEventRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. - * @param message GetConversionEventRequest message or plain object to encode + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. - * @param message GetConversionEventRequest message or plain object to encode + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetConversionEventRequest message from the specified reader or buffer. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetConversionEventRequest + * @returns UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetConversionEventRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetConversionEventRequest + * @returns UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetConversionEventRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Verifies a GetConversionEventRequest message. + * Verifies an UpdateCustomDimensionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetConversionEventRequest + * @returns UpdateCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetConversionEventRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. - * @param message GetConversionEventRequest + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message UpdateCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetConversionEventRequest to JSON. + * Converts this UpdateCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteConversionEventRequest. */ - interface IDeleteConversionEventRequest { + /** Properties of a ListCustomDimensionsRequest. */ + interface IListCustomDimensionsRequest { - /** DeleteConversionEventRequest name */ - name?: (string|null); + /** ListCustomDimensionsRequest parent */ + parent?: (string|null); + + /** ListCustomDimensionsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomDimensionsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a DeleteConversionEventRequest. */ - class DeleteConversionEventRequest implements IDeleteConversionEventRequest { + /** Represents a ListCustomDimensionsRequest. */ + class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { /** - * Constructs a new DeleteConversionEventRequest. + * Constructs a new ListCustomDimensionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteConversionEventRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest); - /** DeleteConversionEventRequest name. */ - public name: string; + /** ListCustomDimensionsRequest parent. */ + public parent: string; + + /** ListCustomDimensionsRequest pageSize. */ + public pageSize: number; + + /** ListCustomDimensionsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteConversionEventRequest instance using the specified properties. + * Creates a new ListCustomDimensionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteConversionEventRequest instance + * @returns ListCustomDimensionsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteConversionEventRequest): google.analytics.admin.v1alpha.DeleteConversionEventRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. - * @param message DeleteConversionEventRequest message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. - * @param message DeleteConversionEventRequest message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteConversionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteConversionEventRequest + * @returns ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteConversionEventRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteConversionEventRequest + * @returns ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteConversionEventRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Verifies a DeleteConversionEventRequest message. + * Verifies a ListCustomDimensionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteConversionEventRequest + * @returns ListCustomDimensionsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteConversionEventRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. - * @param message DeleteConversionEventRequest + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @param message ListCustomDimensionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteConversionEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteConversionEventRequest to JSON. + * Converts this ListCustomDimensionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListConversionEventsRequest. */ - interface IListConversionEventsRequest { - - /** ListConversionEventsRequest parent */ - parent?: (string|null); + /** Properties of a ListCustomDimensionsResponse. */ + interface IListCustomDimensionsResponse { - /** ListConversionEventsRequest pageSize */ - pageSize?: (number|null); + /** ListCustomDimensionsResponse customDimensions */ + customDimensions?: (google.analytics.admin.v1alpha.ICustomDimension[]|null); - /** ListConversionEventsRequest pageToken */ - pageToken?: (string|null); + /** ListCustomDimensionsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListConversionEventsRequest. */ - class ListConversionEventsRequest implements IListConversionEventsRequest { + /** Represents a ListCustomDimensionsResponse. */ + class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { /** - * Constructs a new ListConversionEventsRequest. + * Constructs a new ListCustomDimensionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListConversionEventsRequest); - - /** ListConversionEventsRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse); - /** ListConversionEventsRequest pageSize. */ - public pageSize: number; + /** ListCustomDimensionsResponse customDimensions. */ + public customDimensions: google.analytics.admin.v1alpha.ICustomDimension[]; - /** ListConversionEventsRequest pageToken. */ - public pageToken: string; + /** ListCustomDimensionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListConversionEventsRequest instance using the specified properties. + * Creates a new ListCustomDimensionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListConversionEventsRequest instance + * @returns ListCustomDimensionsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListConversionEventsRequest): google.analytics.admin.v1alpha.ListConversionEventsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. - * @param message ListConversionEventsRequest message or plain object to encode + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. - * @param message ListConversionEventsRequest message or plain object to encode + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListConversionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListConversionEventsRequest message from the specified reader or buffer. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListConversionEventsRequest + * @returns ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListConversionEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListConversionEventsRequest + * @returns ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListConversionEventsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Verifies a ListConversionEventsRequest message. + * Verifies a ListCustomDimensionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListConversionEventsRequest + * @returns ListCustomDimensionsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListConversionEventsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. - * @param message ListConversionEventsRequest + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @param message ListCustomDimensionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListConversionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListConversionEventsRequest to JSON. + * Converts this ListCustomDimensionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListConversionEventsResponse. */ - interface IListConversionEventsResponse { - - /** ListConversionEventsResponse conversionEvents */ - conversionEvents?: (google.analytics.admin.v1alpha.IConversionEvent[]|null); + /** Properties of an ArchiveCustomDimensionRequest. */ + interface IArchiveCustomDimensionRequest { - /** ListConversionEventsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ArchiveCustomDimensionRequest name */ + name?: (string|null); } - /** Represents a ListConversionEventsResponse. */ - class ListConversionEventsResponse implements IListConversionEventsResponse { + /** Represents an ArchiveCustomDimensionRequest. */ + class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { /** - * Constructs a new ListConversionEventsResponse. + * Constructs a new ArchiveCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListConversionEventsResponse); - - /** ListConversionEventsResponse conversionEvents. */ - public conversionEvents: google.analytics.admin.v1alpha.IConversionEvent[]; + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest); - /** ListConversionEventsResponse nextPageToken. */ - public nextPageToken: string; + /** ArchiveCustomDimensionRequest name. */ + public name: string; /** - * Creates a new ListConversionEventsResponse instance using the specified properties. + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListConversionEventsResponse instance + * @returns ArchiveCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListConversionEventsResponse): google.analytics.admin.v1alpha.ListConversionEventsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. - * @param message ListConversionEventsResponse message or plain object to encode + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. - * @param message ListConversionEventsResponse message or plain object to encode + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListConversionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListConversionEventsResponse message from the specified reader or buffer. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListConversionEventsResponse + * @returns ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListConversionEventsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListConversionEventsResponse + * @returns ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListConversionEventsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Verifies a ListConversionEventsResponse message. + * Verifies an ArchiveCustomDimensionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListConversionEventsResponse + * @returns ArchiveCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListConversionEventsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. - * @param message ListConversionEventsResponse + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListConversionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListConversionEventsResponse to JSON. + * Converts this ArchiveCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDisplayVideo360AdvertiserLinkRequest. */ - interface IGetDisplayVideo360AdvertiserLinkRequest { + /** Properties of a GetCustomDimensionRequest. */ + interface IGetCustomDimensionRequest { - /** GetDisplayVideo360AdvertiserLinkRequest name */ + /** GetCustomDimensionRequest name */ name?: (string|null); } - /** Represents a GetDisplayVideo360AdvertiserLinkRequest. */ - class GetDisplayVideo360AdvertiserLinkRequest implements IGetDisplayVideo360AdvertiserLinkRequest { + /** Represents a GetCustomDimensionRequest. */ + class GetCustomDimensionRequest implements IGetCustomDimensionRequest { /** - * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. + * Constructs a new GetCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest); - /** GetDisplayVideo360AdvertiserLinkRequest name. */ + /** GetCustomDimensionRequest name. */ public name: string; /** - * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new GetCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDisplayVideo360AdvertiserLinkRequest instance + * @returns GetCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDisplayVideo360AdvertiserLinkRequest + * @returns GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDisplayVideo360AdvertiserLinkRequest + * @returns GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. + * Verifies a GetCustomDimensionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDisplayVideo360AdvertiserLinkRequest + * @returns GetCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Creates a plain object from a GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. - * @param message GetDisplayVideo360AdvertiserLinkRequest + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @param message GetCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this GetCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDisplayVideo360AdvertiserLinksRequest. */ - interface IListDisplayVideo360AdvertiserLinksRequest { + /** Properties of a CreateCustomMetricRequest. */ + interface ICreateCustomMetricRequest { - /** ListDisplayVideo360AdvertiserLinksRequest parent */ + /** CreateCustomMetricRequest parent */ parent?: (string|null); - /** ListDisplayVideo360AdvertiserLinksRequest pageSize */ - pageSize?: (number|null); - - /** ListDisplayVideo360AdvertiserLinksRequest pageToken */ - pageToken?: (string|null); + /** CreateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); } - /** Represents a ListDisplayVideo360AdvertiserLinksRequest. */ - class ListDisplayVideo360AdvertiserLinksRequest implements IListDisplayVideo360AdvertiserLinksRequest { + /** Represents a CreateCustomMetricRequest. */ + class CreateCustomMetricRequest implements ICreateCustomMetricRequest { /** - * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. + * Constructs a new CreateCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest); - /** ListDisplayVideo360AdvertiserLinksRequest parent. */ + /** CreateCustomMetricRequest parent. */ public parent: string; - /** ListDisplayVideo360AdvertiserLinksRequest pageSize. */ - public pageSize: number; - - /** ListDisplayVideo360AdvertiserLinksRequest pageToken. */ - public pageToken: string; + /** CreateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); /** - * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. + * Creates a new CreateCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDisplayVideo360AdvertiserLinksRequest instance + * @returns CreateCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDisplayVideo360AdvertiserLinksRequest + * @returns CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDisplayVideo360AdvertiserLinksRequest + * @returns CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. + * Verifies a CreateCustomMetricRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDisplayVideo360AdvertiserLinksRequest + * @returns CreateCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. - * @param message ListDisplayVideo360AdvertiserLinksRequest + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @param message CreateCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. + * Converts this CreateCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDisplayVideo360AdvertiserLinksResponse. */ - interface IListDisplayVideo360AdvertiserLinksResponse { + /** Properties of an UpdateCustomMetricRequest. */ + interface IUpdateCustomMetricRequest { - /** ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks */ - displayVideo_360AdvertiserLinks?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[]|null); + /** UpdateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - /** ListDisplayVideo360AdvertiserLinksResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateCustomMetricRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListDisplayVideo360AdvertiserLinksResponse. */ - class ListDisplayVideo360AdvertiserLinksResponse implements IListDisplayVideo360AdvertiserLinksResponse { + /** Represents an UpdateCustomMetricRequest. */ + class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { /** - * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. + * Constructs a new UpdateCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest); - /** ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. */ - public displayVideo_360AdvertiserLinks: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[]; + /** UpdateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - /** ListDisplayVideo360AdvertiserLinksResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateCustomMetricRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. + * Creates a new UpdateCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDisplayVideo360AdvertiserLinksResponse instance + * @returns UpdateCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDisplayVideo360AdvertiserLinksResponse + * @returns UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDisplayVideo360AdvertiserLinksResponse + * @returns UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. + * Verifies an UpdateCustomMetricRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDisplayVideo360AdvertiserLinksResponse + * @returns UpdateCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. - * @param message ListDisplayVideo360AdvertiserLinksResponse + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @param message UpdateCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. + * Converts this UpdateCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateDisplayVideo360AdvertiserLinkRequest. */ - interface ICreateDisplayVideo360AdvertiserLinkRequest { + /** Properties of a ListCustomMetricsRequest. */ + interface IListCustomMetricsRequest { - /** CreateDisplayVideo360AdvertiserLinkRequest parent */ + /** ListCustomMetricsRequest parent */ parent?: (string|null); - /** CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ - displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + /** ListCustomMetricsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomMetricsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateDisplayVideo360AdvertiserLinkRequest. */ - class CreateDisplayVideo360AdvertiserLinkRequest implements ICreateDisplayVideo360AdvertiserLinkRequest { + /** Represents a ListCustomMetricsRequest. */ + class ListCustomMetricsRequest implements IListCustomMetricsRequest { /** - * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. + * Constructs a new ListCustomMetricsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest); - /** CreateDisplayVideo360AdvertiserLinkRequest parent. */ + /** ListCustomMetricsRequest parent. */ public parent: string; - /** CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. */ - public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + /** ListCustomMetricsRequest pageSize. */ + public pageSize: number; + + /** ListCustomMetricsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new ListCustomMetricsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDisplayVideo360AdvertiserLinkRequest instance + * @returns ListCustomMetricsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDisplayVideo360AdvertiserLinkRequest + * @returns ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDisplayVideo360AdvertiserLinkRequest + * @returns ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. + * Verifies a ListCustomMetricsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDisplayVideo360AdvertiserLinkRequest + * @returns ListCustomMetricsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. - * @param message CreateDisplayVideo360AdvertiserLinkRequest + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * @param message ListCustomMetricsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this ListCustomMetricsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. */ - interface IDeleteDisplayVideo360AdvertiserLinkRequest { + /** Properties of a ListCustomMetricsResponse. */ + interface IListCustomMetricsResponse { - /** DeleteDisplayVideo360AdvertiserLinkRequest name */ - name?: (string|null); + /** ListCustomMetricsResponse customMetrics */ + customMetrics?: (google.analytics.admin.v1alpha.ICustomMetric[]|null); + + /** ListCustomMetricsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteDisplayVideo360AdvertiserLinkRequest. */ - class DeleteDisplayVideo360AdvertiserLinkRequest implements IDeleteDisplayVideo360AdvertiserLinkRequest { + /** Represents a ListCustomMetricsResponse. */ + class ListCustomMetricsResponse implements IListCustomMetricsResponse { /** - * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. + * Constructs a new ListCustomMetricsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse); - /** DeleteDisplayVideo360AdvertiserLinkRequest name. */ - public name: string; + /** ListCustomMetricsResponse customMetrics. */ + public customMetrics: google.analytics.admin.v1alpha.ICustomMetric[]; + + /** ListCustomMetricsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new ListCustomMetricsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDisplayVideo360AdvertiserLinkRequest instance + * @returns ListCustomMetricsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDisplayVideo360AdvertiserLinkRequest + * @returns ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDisplayVideo360AdvertiserLinkRequest + * @returns ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. + * Verifies a ListCustomMetricsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDisplayVideo360AdvertiserLinkRequest + * @returns ListCustomMetricsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. - * @param message DeleteDisplayVideo360AdvertiserLinkRequest + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @param message ListCustomMetricsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this ListCustomMetricsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. */ - interface IUpdateDisplayVideo360AdvertiserLinkRequest { - - /** UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ - displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + /** Properties of an ArchiveCustomMetricRequest. */ + interface IArchiveCustomMetricRequest { - /** UpdateDisplayVideo360AdvertiserLinkRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ArchiveCustomMetricRequest name */ + name?: (string|null); } - /** Represents an UpdateDisplayVideo360AdvertiserLinkRequest. */ - class UpdateDisplayVideo360AdvertiserLinkRequest implements IUpdateDisplayVideo360AdvertiserLinkRequest { + /** Represents an ArchiveCustomMetricRequest. */ + class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { /** - * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. + * Constructs a new ArchiveCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest); - - /** UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. */ - public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest); - /** UpdateDisplayVideo360AdvertiserLinkRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ArchiveCustomMetricRequest name. */ + public name: string; /** - * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDisplayVideo360AdvertiserLinkRequest instance + * @returns ArchiveCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. - * @param message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDisplayVideo360AdvertiserLinkRequest + * @returns ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDisplayVideo360AdvertiserLinkRequest + * @returns ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. + * Verifies an ArchiveCustomMetricRequest message. * @param message Plain 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 UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDisplayVideo360AdvertiserLinkRequest + * @returns ArchiveCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. - * @param message UpdateDisplayVideo360AdvertiserLinkRequest + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this ArchiveCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. */ - interface IGetDisplayVideo360AdvertiserLinkProposalRequest { + /** Properties of a GetCustomMetricRequest. */ + interface IGetCustomMetricRequest { - /** GetDisplayVideo360AdvertiserLinkProposalRequest name */ + /** GetCustomMetricRequest name */ name?: (string|null); } - /** Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. */ - class GetDisplayVideo360AdvertiserLinkProposalRequest implements IGetDisplayVideo360AdvertiserLinkProposalRequest { + /** Represents a GetCustomMetricRequest. */ + class GetCustomMetricRequest implements IGetCustomMetricRequest { /** - * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new GetCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest); - /** GetDisplayVideo360AdvertiserLinkProposalRequest name. */ + /** GetCustomMetricRequest name. */ public name: string; /** - * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new GetCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDisplayVideo360AdvertiserLinkProposalRequest instance + * @returns GetCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a GetCustomMetricRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns GetCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Creates a plain object from a GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. - * @param message GetDisplayVideo360AdvertiserLinkProposalRequest + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @param message GetCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this GetCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. */ - interface IListDisplayVideo360AdvertiserLinkProposalsRequest { - - /** ListDisplayVideo360AdvertiserLinkProposalsRequest parent */ - parent?: (string|null); - - /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetDataRetentionSettingsRequest. */ + interface IGetDataRetentionSettingsRequest { - /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken */ - pageToken?: (string|null); + /** GetDataRetentionSettingsRequest name */ + name?: (string|null); } - /** Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. */ - class ListDisplayVideo360AdvertiserLinkProposalsRequest implements IListDisplayVideo360AdvertiserLinkProposalsRequest { + /** Represents a GetDataRetentionSettingsRequest. */ + class GetDataRetentionSettingsRequest implements IGetDataRetentionSettingsRequest { /** - * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. + * Constructs a new GetDataRetentionSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest); - - /** ListDisplayVideo360AdvertiserLinkProposalsRequest parent. */ - public parent: string; - - /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest); - /** ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. */ - public pageToken: string; + /** GetDataRetentionSettingsRequest name. */ + public name: string; /** - * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest instance + * @returns GetDataRetentionSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. + * Verifies a GetDataRetentionSettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns GetDataRetentionSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. - * @param message ListDisplayVideo360AdvertiserLinkProposalsRequest + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message GetDataRetentionSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. + * Converts this GetDataRetentionSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. */ - interface IListDisplayVideo360AdvertiserLinkProposalsResponse { + /** Properties of an UpdateDataRetentionSettingsRequest. */ + interface IUpdateDataRetentionSettingsRequest { - /** ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals */ - displayVideo_360AdvertiserLinkProposals?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[]|null); + /** UpdateDataRetentionSettingsRequest dataRetentionSettings */ + dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); - /** ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateDataRetentionSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. */ - class ListDisplayVideo360AdvertiserLinkProposalsResponse implements IListDisplayVideo360AdvertiserLinkProposalsResponse { + /** Represents an UpdateDataRetentionSettingsRequest. */ + class UpdateDataRetentionSettingsRequest implements IUpdateDataRetentionSettingsRequest { /** - * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. + * Constructs a new UpdateDataRetentionSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest); - /** ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. */ - public displayVideo_360AdvertiserLinkProposals: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[]; + /** UpdateDataRetentionSettingsRequest dataRetentionSettings. */ + public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); - /** ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateDataRetentionSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse instance + * @returns UpdateDataRetentionSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. - * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. + * Verifies an UpdateDataRetentionSettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns UpdateDataRetentionSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. - * @param message ListDisplayVideo360AdvertiserLinkProposalsResponse + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateDataRetentionSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. + * Converts this UpdateDataRetentionSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. */ - interface ICreateDisplayVideo360AdvertiserLinkProposalRequest { + /** Properties of a CreateDataStreamRequest. */ + interface ICreateDataStreamRequest { - /** CreateDisplayVideo360AdvertiserLinkProposalRequest parent */ + /** CreateDataStreamRequest parent */ parent?: (string|null); - /** CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal */ - displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); + /** CreateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); } - /** Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. */ - class CreateDisplayVideo360AdvertiserLinkProposalRequest implements ICreateDisplayVideo360AdvertiserLinkProposalRequest { + /** Represents a CreateDataStreamRequest. */ + class CreateDataStreamRequest implements ICreateDataStreamRequest { /** - * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new CreateDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest); - /** CreateDisplayVideo360AdvertiserLinkProposalRequest parent. */ + /** CreateDataStreamRequest parent. */ public parent: string; - /** CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. */ - public displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); + /** CreateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); /** - * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new CreateDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest instance + * @returns CreateDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns CreateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns CreateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a CreateDataStreamRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns CreateDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. - * @param message CreateDisplayVideo360AdvertiserLinkProposalRequest + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * @param message CreateDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this CreateDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. */ - interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest { + /** Properties of a DeleteDataStreamRequest. */ + interface IDeleteDataStreamRequest { - /** DeleteDisplayVideo360AdvertiserLinkProposalRequest name */ + /** DeleteDataStreamRequest name */ name?: (string|null); } - /** Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. */ - class DeleteDisplayVideo360AdvertiserLinkProposalRequest implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest { + /** Represents a DeleteDataStreamRequest. */ + class DeleteDataStreamRequest implements IDeleteDataStreamRequest { /** - * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new DeleteDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest); - /** DeleteDisplayVideo360AdvertiserLinkProposalRequest name. */ + /** DeleteDataStreamRequest name. */ public name: string; /** - * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new DeleteDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest instance + * @returns DeleteDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a DeleteDataStreamRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns DeleteDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. - * @param message DeleteDisplayVideo360AdvertiserLinkProposalRequest + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * @param message DeleteDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this DeleteDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. */ - interface IApproveDisplayVideo360AdvertiserLinkProposalRequest { + /** Properties of an UpdateDataStreamRequest. */ + interface IUpdateDataStreamRequest { - /** ApproveDisplayVideo360AdvertiserLinkProposalRequest name */ - name?: (string|null); + /** UpdateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + + /** UpdateDataStreamRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. */ - class ApproveDisplayVideo360AdvertiserLinkProposalRequest implements IApproveDisplayVideo360AdvertiserLinkProposalRequest { + /** Represents an UpdateDataStreamRequest. */ + class UpdateDataStreamRequest implements IUpdateDataStreamRequest { /** - * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new UpdateDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest); - /** ApproveDisplayVideo360AdvertiserLinkProposalRequest name. */ - public name: string; + /** UpdateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + + /** UpdateDataStreamRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new UpdateDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest instance + * @returns UpdateDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies an UpdateDataStreamRequest message. * @param message Plain 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 ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns UpdateDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. - * @param message ApproveDisplayVideo360AdvertiserLinkProposalRequest + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * @param message UpdateDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this UpdateDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. */ - interface IApproveDisplayVideo360AdvertiserLinkProposalResponse { + /** Properties of a ListDataStreamsRequest. */ + interface IListDataStreamsRequest { - /** ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink */ - displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + /** ListDataStreamsRequest parent */ + parent?: (string|null); + + /** ListDataStreamsRequest pageSize */ + pageSize?: (number|null); + + /** ListDataStreamsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. */ - class ApproveDisplayVideo360AdvertiserLinkProposalResponse implements IApproveDisplayVideo360AdvertiserLinkProposalResponse { + /** Represents a ListDataStreamsRequest. */ + class ListDataStreamsRequest implements IListDataStreamsRequest { /** - * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * Constructs a new ListDataStreamsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse); + constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest); - /** ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. */ - public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + /** ListDataStreamsRequest parent. */ + public parent: string; + + /** ListDataStreamsRequest pageSize. */ + public pageSize: number; + + /** ListDataStreamsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. + * Creates a new ListDataStreamsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse instance + * @returns ListDataStreamsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; + public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. - * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. - * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. + * Verifies a ListDataStreamsRequest message. * @param message Plain 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 ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns ListDataStreamsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. - * @param message ApproveDisplayVideo360AdvertiserLinkProposalResponse + * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. + * @param message ListDataStreamsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. + * Converts this ListDataStreamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. */ - interface ICancelDisplayVideo360AdvertiserLinkProposalRequest { + /** Properties of a ListDataStreamsResponse. */ + interface IListDataStreamsResponse { - /** CancelDisplayVideo360AdvertiserLinkProposalRequest name */ - name?: (string|null); + /** ListDataStreamsResponse dataStreams */ + dataStreams?: (google.analytics.admin.v1alpha.IDataStream[]|null); + + /** ListDataStreamsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. */ - class CancelDisplayVideo360AdvertiserLinkProposalRequest implements ICancelDisplayVideo360AdvertiserLinkProposalRequest { + /** Represents a ListDataStreamsResponse. */ + class ListDataStreamsResponse implements IListDataStreamsResponse { /** - * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new ListDataStreamsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse); - /** CancelDisplayVideo360AdvertiserLinkProposalRequest name. */ - public name: string; + /** ListDataStreamsResponse dataStreams. */ + public dataStreams: google.analytics.admin.v1alpha.IDataStream[]; + + /** ListDataStreamsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new ListDataStreamsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest instance + * @returns ListDataStreamsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. - * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns ListDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns ListDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a ListDataStreamsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns ListDataStreamsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Creates a plain object from a CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. - * @param message CancelDisplayVideo360AdvertiserLinkProposalRequest + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * @param message ListDataStreamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this ListDataStreamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateCustomDimensionRequest. */ - interface ICreateCustomDimensionRequest { - - /** CreateCustomDimensionRequest parent */ - parent?: (string|null); + /** Properties of a GetDataStreamRequest. */ + interface IGetDataStreamRequest { - /** CreateCustomDimensionRequest customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** GetDataStreamRequest name */ + name?: (string|null); } - /** Represents a CreateCustomDimensionRequest. */ - class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { + /** Represents a GetDataStreamRequest. */ + class GetDataStreamRequest implements IGetDataStreamRequest { /** - * Constructs a new CreateCustomDimensionRequest. + * Constructs a new GetDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest); - - /** CreateCustomDimensionRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest); - /** CreateCustomDimensionRequest customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** GetDataStreamRequest name. */ + public name: string; /** - * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * Creates a new GetDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomDimensionRequest instance + * @returns GetDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. - * @param message CreateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. - * @param message CreateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomDimensionRequest + * @returns GetDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomDimensionRequest + * @returns GetDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Verifies a CreateCustomDimensionRequest message. + * Verifies a GetDataStreamRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomDimensionRequest + * @returns GetDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. - * @param message CreateCustomDimensionRequest + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @param message GetDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomDimensionRequest to JSON. + * Converts this GetDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateCustomDimensionRequest. */ - interface IUpdateCustomDimensionRequest { - - /** UpdateCustomDimensionRequest customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** Properties of a GetAudienceRequest. */ + interface IGetAudienceRequest { - /** UpdateCustomDimensionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** GetAudienceRequest name */ + name?: (string|null); } - /** Represents an UpdateCustomDimensionRequest. */ - class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { + /** Represents a GetAudienceRequest. */ + class GetAudienceRequest implements IGetAudienceRequest { /** - * Constructs a new UpdateCustomDimensionRequest. + * Constructs a new GetAudienceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest); - - /** UpdateCustomDimensionRequest customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + constructor(properties?: google.analytics.admin.v1alpha.IGetAudienceRequest); - /** UpdateCustomDimensionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** GetAudienceRequest name. */ + public name: string; /** - * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * Creates a new GetAudienceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCustomDimensionRequest instance + * @returns GetAudienceRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetAudienceRequest): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. - * @param message UpdateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * @param message GetAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. - * @param message UpdateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * @param message GetAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetAudienceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateCustomDimensionRequest + * @returns GetAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAudienceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCustomDimensionRequest + * @returns GetAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Verifies an UpdateCustomDimensionRequest message. + * Verifies a GetAudienceRequest message. * @param message Plain 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 UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAudienceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCustomDimensionRequest + * @returns GetAudienceRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. - * @param message UpdateCustomDimensionRequest + * Creates a plain object from a GetAudienceRequest message. Also converts values to other types if specified. + * @param message GetAudienceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCustomDimensionRequest to JSON. + * Converts this GetAudienceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomDimensionsRequest. */ - interface IListCustomDimensionsRequest { + /** Properties of a ListAudiencesRequest. */ + interface IListAudiencesRequest { - /** ListCustomDimensionsRequest parent */ + /** ListAudiencesRequest parent */ parent?: (string|null); - /** ListCustomDimensionsRequest pageSize */ + /** ListAudiencesRequest pageSize */ pageSize?: (number|null); - /** ListCustomDimensionsRequest pageToken */ + /** ListAudiencesRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListCustomDimensionsRequest. */ - class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { + /** Represents a ListAudiencesRequest. */ + class ListAudiencesRequest implements IListAudiencesRequest { /** - * Constructs a new ListCustomDimensionsRequest. + * Constructs a new ListAudiencesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListAudiencesRequest); - /** ListCustomDimensionsRequest parent. */ + /** ListAudiencesRequest parent. */ public parent: string; - /** ListCustomDimensionsRequest pageSize. */ + /** ListAudiencesRequest pageSize. */ public pageSize: number; - /** ListCustomDimensionsRequest pageToken. */ + /** ListAudiencesRequest pageToken. */ public pageToken: string; /** - * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * Creates a new ListAudiencesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomDimensionsRequest instance + * @returns ListAudiencesRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListAudiencesRequest): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @param message ListCustomDimensionsRequest message or plain object to encode + * Encodes the specified ListAudiencesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * @param message ListAudiencesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListAudiencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @param message ListCustomDimensionsRequest message or plain object to encode + * Encodes the specified ListAudiencesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * @param message ListAudiencesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAudiencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * Decodes a ListAudiencesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomDimensionsRequest + * @returns ListAudiencesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAudiencesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomDimensionsRequest + * @returns ListAudiencesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Verifies a ListCustomDimensionsRequest message. + * Verifies a ListAudiencesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAudiencesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomDimensionsRequest + * @returns ListAudiencesRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. - * @param message ListCustomDimensionsRequest + * Creates a plain object from a ListAudiencesRequest message. Also converts values to other types if specified. + * @param message ListAudiencesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListAudiencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomDimensionsRequest to JSON. + * Converts this ListAudiencesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomDimensionsResponse. */ - interface IListCustomDimensionsResponse { + /** Properties of a ListAudiencesResponse. */ + interface IListAudiencesResponse { - /** ListCustomDimensionsResponse customDimensions */ - customDimensions?: (google.analytics.admin.v1alpha.ICustomDimension[]|null); + /** ListAudiencesResponse audiences */ + audiences?: (google.analytics.admin.v1alpha.IAudience[]|null); - /** ListCustomDimensionsResponse nextPageToken */ + /** ListAudiencesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListCustomDimensionsResponse. */ - class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { + /** Represents a ListAudiencesResponse. */ + class ListAudiencesResponse implements IListAudiencesResponse { /** - * Constructs a new ListCustomDimensionsResponse. + * Constructs a new ListAudiencesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse); + constructor(properties?: google.analytics.admin.v1alpha.IListAudiencesResponse); - /** ListCustomDimensionsResponse customDimensions. */ - public customDimensions: google.analytics.admin.v1alpha.ICustomDimension[]; + /** ListAudiencesResponse audiences. */ + public audiences: google.analytics.admin.v1alpha.IAudience[]; - /** ListCustomDimensionsResponse nextPageToken. */ + /** ListAudiencesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * Creates a new ListAudiencesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomDimensionsResponse instance + * @returns ListAudiencesResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IListAudiencesResponse): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @param message ListCustomDimensionsResponse message or plain object to encode + * Encodes the specified ListAudiencesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * @param message ListAudiencesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListAudiencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @param message ListCustomDimensionsResponse message or plain object to encode + * Encodes the specified ListAudiencesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * @param message ListAudiencesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAudiencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * Decodes a ListAudiencesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomDimensionsResponse + * @returns ListAudiencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListAudiencesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomDimensionsResponse + * @returns ListAudiencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Verifies a ListCustomDimensionsResponse message. + * Verifies a ListAudiencesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListAudiencesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomDimensionsResponse + * @returns ListAudiencesResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. - * @param message ListCustomDimensionsResponse + * Creates a plain object from a ListAudiencesResponse message. Also converts values to other types if specified. + * @param message ListAudiencesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListAudiencesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomDimensionsResponse to JSON. + * Converts this ListAudiencesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ArchiveCustomDimensionRequest. */ - interface IArchiveCustomDimensionRequest { + /** Properties of a CreateAudienceRequest. */ + interface ICreateAudienceRequest { - /** ArchiveCustomDimensionRequest name */ - name?: (string|null); + /** CreateAudienceRequest parent */ + parent?: (string|null); + + /** CreateAudienceRequest audience */ + audience?: (google.analytics.admin.v1alpha.IAudience|null); } - /** Represents an ArchiveCustomDimensionRequest. */ - class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { + /** Represents a CreateAudienceRequest. */ + class CreateAudienceRequest implements ICreateAudienceRequest { /** - * Constructs a new ArchiveCustomDimensionRequest. + * Constructs a new CreateAudienceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateAudienceRequest); - /** ArchiveCustomDimensionRequest name. */ - public name: string; + /** CreateAudienceRequest parent. */ + public parent: string; + + /** CreateAudienceRequest audience. */ + public audience?: (google.analytics.admin.v1alpha.IAudience|null); /** - * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * Creates a new CreateAudienceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ArchiveCustomDimensionRequest instance + * @returns CreateAudienceRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateAudienceRequest): google.analytics.admin.v1alpha.CreateAudienceRequest; /** - * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @param message ArchiveCustomDimensionRequest message or plain object to encode + * Encodes the specified CreateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @param message CreateAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @param message ArchiveCustomDimensionRequest message or plain object to encode + * Encodes the specified CreateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @param message CreateAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * Decodes a CreateAudienceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArchiveCustomDimensionRequest + * @returns CreateAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateAudienceRequest; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateAudienceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ArchiveCustomDimensionRequest + * @returns CreateAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateAudienceRequest; /** - * Verifies an ArchiveCustomDimensionRequest message. + * Verifies a CreateAudienceRequest message. * @param message Plain 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 ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateAudienceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ArchiveCustomDimensionRequest + * @returns CreateAudienceRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateAudienceRequest; /** - * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. - * @param message ArchiveCustomDimensionRequest + * Creates a plain object from a CreateAudienceRequest message. Also converts values to other types if specified. + * @param message CreateAudienceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ArchiveCustomDimensionRequest to JSON. + * Converts this CreateAudienceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCustomDimensionRequest. */ - interface IGetCustomDimensionRequest { + /** Properties of an UpdateAudienceRequest. */ + interface IUpdateAudienceRequest { - /** GetCustomDimensionRequest name */ - name?: (string|null); + /** UpdateAudienceRequest audience */ + audience?: (google.analytics.admin.v1alpha.IAudience|null); + + /** UpdateAudienceRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetCustomDimensionRequest. */ - class GetCustomDimensionRequest implements IGetCustomDimensionRequest { + /** Represents an UpdateAudienceRequest. */ + class UpdateAudienceRequest implements IUpdateAudienceRequest { /** - * Constructs a new GetCustomDimensionRequest. + * Constructs a new UpdateAudienceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateAudienceRequest); - /** GetCustomDimensionRequest name. */ - public name: string; + /** UpdateAudienceRequest audience. */ + public audience?: (google.analytics.admin.v1alpha.IAudience|null); + + /** UpdateAudienceRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetCustomDimensionRequest instance using the specified properties. + * Creates a new UpdateAudienceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomDimensionRequest instance + * @returns UpdateAudienceRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateAudienceRequest): google.analytics.admin.v1alpha.UpdateAudienceRequest; /** - * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @param message GetCustomDimensionRequest message or plain object to encode + * Encodes the specified UpdateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @param message UpdateAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @param message GetCustomDimensionRequest message or plain object to encode + * Encodes the specified UpdateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @param message UpdateAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * Decodes an UpdateAudienceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomDimensionRequest + * @returns UpdateAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateAudienceRequest; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateAudienceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomDimensionRequest + * @returns UpdateAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateAudienceRequest; /** - * Verifies a GetCustomDimensionRequest message. + * Verifies an UpdateAudienceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateAudienceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomDimensionRequest + * @returns UpdateAudienceRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAudienceRequest; /** - * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. - * @param message GetCustomDimensionRequest + * Creates a plain object from an UpdateAudienceRequest message. Also converts values to other types if specified. + * @param message UpdateAudienceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomDimensionRequest to JSON. + * Converts this UpdateAudienceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateCustomMetricRequest. */ - interface ICreateCustomMetricRequest { - - /** CreateCustomMetricRequest parent */ - parent?: (string|null); + /** Properties of an ArchiveAudienceRequest. */ + interface IArchiveAudienceRequest { - /** CreateCustomMetricRequest customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** ArchiveAudienceRequest name */ + name?: (string|null); } - /** Represents a CreateCustomMetricRequest. */ - class CreateCustomMetricRequest implements ICreateCustomMetricRequest { + /** Represents an ArchiveAudienceRequest. */ + class ArchiveAudienceRequest implements IArchiveAudienceRequest { /** - * Constructs a new CreateCustomMetricRequest. + * Constructs a new ArchiveAudienceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest); - - /** CreateCustomMetricRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IArchiveAudienceRequest); - /** CreateCustomMetricRequest customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** ArchiveAudienceRequest name. */ + public name: string; /** - * Creates a new CreateCustomMetricRequest instance using the specified properties. + * Creates a new ArchiveAudienceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomMetricRequest instance + * @returns ArchiveAudienceRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IArchiveAudienceRequest): google.analytics.admin.v1alpha.ArchiveAudienceRequest; /** - * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @param message CreateCustomMetricRequest message or plain object to encode + * Encodes the specified ArchiveAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @param message ArchiveAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IArchiveAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @param message CreateCustomMetricRequest message or plain object to encode + * Encodes the specified ArchiveAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @param message ArchiveAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * Decodes an ArchiveAudienceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomMetricRequest + * @returns ArchiveAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveAudienceRequest; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an ArchiveAudienceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomMetricRequest + * @returns ArchiveAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveAudienceRequest; /** - * Verifies a CreateCustomMetricRequest message. + * Verifies an ArchiveAudienceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveAudienceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomMetricRequest + * @returns ArchiveAudienceRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveAudienceRequest; /** - * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. - * @param message CreateCustomMetricRequest + * Creates a plain object from an ArchiveAudienceRequest message. Also converts values to other types if specified. + * @param message ArchiveAudienceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ArchiveAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomMetricRequest to JSON. + * Converts this ArchiveAudienceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateCustomMetricRequest. */ - interface IUpdateCustomMetricRequest { - - /** UpdateCustomMetricRequest customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** Properties of a GetAttributionSettingsRequest. */ + interface IGetAttributionSettingsRequest { - /** UpdateCustomMetricRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** GetAttributionSettingsRequest name */ + name?: (string|null); } - /** Represents an UpdateCustomMetricRequest. */ - class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { + /** Represents a GetAttributionSettingsRequest. */ + class GetAttributionSettingsRequest implements IGetAttributionSettingsRequest { /** - * Constructs a new UpdateCustomMetricRequest. + * Constructs a new GetAttributionSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest); - - /** UpdateCustomMetricRequest customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + constructor(properties?: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest); - /** UpdateCustomMetricRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** GetAttributionSettingsRequest name. */ + public name: string; /** - * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * Creates a new GetAttributionSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCustomMetricRequest instance + * @returns GetAttributionSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; /** - * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @param message UpdateCustomMetricRequest message or plain object to encode + * Encodes the specified GetAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @param message GetAttributionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @param message UpdateCustomMetricRequest message or plain object to encode + * Encodes the specified GetAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @param message GetAttributionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateCustomMetricRequest + * @returns GetAttributionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCustomMetricRequest + * @returns GetAttributionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; /** - * Verifies an UpdateCustomMetricRequest message. + * Verifies a GetAttributionSettingsRequest message. * @param message Plain 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCustomMetricRequest + * @returns GetAttributionSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; /** - * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. - * @param message UpdateCustomMetricRequest + * Creates a plain object from a GetAttributionSettingsRequest message. Also converts values to other types if specified. + * @param message GetAttributionSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetAttributionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCustomMetricRequest to JSON. + * Converts this GetAttributionSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomMetricsRequest. */ - interface IListCustomMetricsRequest { - - /** ListCustomMetricsRequest parent */ - parent?: (string|null); + /** Properties of an UpdateAttributionSettingsRequest. */ + interface IUpdateAttributionSettingsRequest { - /** ListCustomMetricsRequest pageSize */ - pageSize?: (number|null); + /** UpdateAttributionSettingsRequest attributionSettings */ + attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); - /** ListCustomMetricsRequest pageToken */ - pageToken?: (string|null); + /** UpdateAttributionSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListCustomMetricsRequest. */ - class ListCustomMetricsRequest implements IListCustomMetricsRequest { + /** Represents an UpdateAttributionSettingsRequest. */ + class UpdateAttributionSettingsRequest implements IUpdateAttributionSettingsRequest { /** - * Constructs a new ListCustomMetricsRequest. + * Constructs a new UpdateAttributionSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest); - - /** ListCustomMetricsRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest); - /** ListCustomMetricsRequest pageSize. */ - public pageSize: number; + /** UpdateAttributionSettingsRequest attributionSettings. */ + public attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); - /** ListCustomMetricsRequest pageToken. */ - public pageToken: string; + /** UpdateAttributionSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListCustomMetricsRequest instance using the specified properties. + * Creates a new UpdateAttributionSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomMetricsRequest instance + * @returns UpdateAttributionSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; /** - * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @param message ListCustomMetricsRequest message or plain object to encode + * Encodes the specified UpdateAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * @param message UpdateAttributionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @param message ListCustomMetricsRequest message or plain object to encode + * Encodes the specified UpdateAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * @param message UpdateAttributionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomMetricsRequest + * @returns UpdateAttributionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomMetricsRequest + * @returns UpdateAttributionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; /** - * Verifies a ListCustomMetricsRequest message. + * Verifies an UpdateAttributionSettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomMetricsRequest + * @returns UpdateAttributionSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; /** - * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. - * @param message ListCustomMetricsRequest + * Creates a plain object from an UpdateAttributionSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateAttributionSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomMetricsRequest to JSON. + * Converts this UpdateAttributionSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomMetricsResponse. */ - interface IListCustomMetricsResponse { + /** AudienceFilterScope enum. */ + enum AudienceFilterScope { + AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0, + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1, + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2, + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3 + } - /** ListCustomMetricsResponse customMetrics */ - customMetrics?: (google.analytics.admin.v1alpha.ICustomMetric[]|null); + /** Properties of an AudienceDimensionOrMetricFilter. */ + interface IAudienceDimensionOrMetricFilter { - /** ListCustomMetricsResponse nextPageToken */ - nextPageToken?: (string|null); + /** AudienceDimensionOrMetricFilter stringFilter */ + stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); + + /** AudienceDimensionOrMetricFilter inListFilter */ + inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); + + /** AudienceDimensionOrMetricFilter numericFilter */ + numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); + + /** AudienceDimensionOrMetricFilter betweenFilter */ + betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); + + /** AudienceDimensionOrMetricFilter fieldName */ + fieldName?: (string|null); + + /** AudienceDimensionOrMetricFilter atAnyPointInTime */ + atAnyPointInTime?: (boolean|null); + + /** AudienceDimensionOrMetricFilter inAnyNDayPeriod */ + inAnyNDayPeriod?: (number|null); } - /** Represents a ListCustomMetricsResponse. */ - class ListCustomMetricsResponse implements IListCustomMetricsResponse { + /** Represents an AudienceDimensionOrMetricFilter. */ + class AudienceDimensionOrMetricFilter implements IAudienceDimensionOrMetricFilter { /** - * Constructs a new ListCustomMetricsResponse. + * Constructs a new AudienceDimensionOrMetricFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter); - /** ListCustomMetricsResponse customMetrics. */ - public customMetrics: google.analytics.admin.v1alpha.ICustomMetric[]; + /** AudienceDimensionOrMetricFilter stringFilter. */ + public stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); - /** ListCustomMetricsResponse nextPageToken. */ - public nextPageToken: string; + /** AudienceDimensionOrMetricFilter inListFilter. */ + public inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); + + /** AudienceDimensionOrMetricFilter numericFilter. */ + public numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); + + /** AudienceDimensionOrMetricFilter betweenFilter. */ + public betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); + + /** AudienceDimensionOrMetricFilter fieldName. */ + public fieldName: string; + + /** AudienceDimensionOrMetricFilter atAnyPointInTime. */ + public atAnyPointInTime: boolean; + + /** AudienceDimensionOrMetricFilter inAnyNDayPeriod. */ + public inAnyNDayPeriod: number; + + /** AudienceDimensionOrMetricFilter oneFilter. */ + public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"); /** - * Creates a new ListCustomMetricsResponse instance using the specified properties. + * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomMetricsResponse instance + * @returns AudienceDimensionOrMetricFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @param message ListCustomMetricsResponse message or plain object to encode + * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @param message AudienceDimensionOrMetricFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @param message ListCustomMetricsResponse message or plain object to encode + * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @param message AudienceDimensionOrMetricFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomMetricsResponse + * @returns AudienceDimensionOrMetricFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomMetricsResponse + * @returns AudienceDimensionOrMetricFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Verifies a ListCustomMetricsResponse message. + * Verifies an AudienceDimensionOrMetricFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomMetricsResponse + * @returns AudienceDimensionOrMetricFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. - * @param message ListCustomMetricsResponse + * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. + * @param message AudienceDimensionOrMetricFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomMetricsResponse to JSON. + * Converts this AudienceDimensionOrMetricFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ArchiveCustomMetricRequest. */ - interface IArchiveCustomMetricRequest { + namespace AudienceDimensionOrMetricFilter { - /** ArchiveCustomMetricRequest name */ - name?: (string|null); - } + /** Properties of a StringFilter. */ + interface IStringFilter { - /** Represents an ArchiveCustomMetricRequest. */ - class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { + /** StringFilter matchType */ + matchType?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null); - /** - * Constructs a new ArchiveCustomMetricRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest); + /** StringFilter value */ + value?: (string|null); - /** ArchiveCustomMetricRequest name. */ - public name: string; + /** StringFilter caseSensitive */ + caseSensitive?: (boolean|null); + } - /** - * Creates a new ArchiveCustomMetricRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ArchiveCustomMetricRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + /** Represents a StringFilter. */ + class StringFilter implements IStringFilter { + + /** + * Constructs a new StringFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter); + + /** StringFilter matchType. */ + public matchType: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType); + + /** StringFilter value. */ + public value: string; + + /** StringFilter caseSensitive. */ + public caseSensitive: boolean; + + /** + * Creates a new StringFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns StringFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Verifies a StringFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StringFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @param message StringFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StringFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace StringFilter { + + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + EXACT = 1, + BEGINS_WITH = 2, + ENDS_WITH = 3, + CONTAINS = 4, + FULL_REGEXP = 5, + PARTIAL_REGEXP = 6 + } + } + + /** Properties of an InListFilter. */ + interface IInListFilter { + + /** InListFilter values */ + values?: (string[]|null); + + /** InListFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents an InListFilter. */ + class InListFilter implements IInListFilter { + + /** + * Constructs a new InListFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter); + + /** InListFilter values. */ + public values: string[]; + + /** InListFilter caseSensitive. */ + public caseSensitive: boolean; + + /** + * Creates a new InListFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns InListFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Verifies an InListFilter message. + * @param message Plain 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 InListFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InListFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @param message InListFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InListFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NumericValue. */ + interface INumericValue { + + /** NumericValue int64Value */ + int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue */ + doubleValue?: (number|null); + } + + /** Represents a NumericValue. */ + class NumericValue implements INumericValue { + + /** + * Constructs a new NumericValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue); + + /** NumericValue int64Value. */ + public int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue. */ + public doubleValue?: (number|null); + + /** NumericValue oneValue. */ + public oneValue?: ("int64Value"|"doubleValue"); + + /** + * Creates a new NumericValue instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericValue instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Decodes a NumericValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Verifies a NumericValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericValue + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Creates a plain object from a NumericValue message. Also converts values to other types if specified. + * @param message NumericValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NumericFilter. */ + interface INumericFilter { + + /** NumericFilter operation */ + operation?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null); + + /** NumericFilter value */ + value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + } + + /** Represents a NumericFilter. */ + class NumericFilter implements INumericFilter { + + /** + * Constructs a new NumericFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter); + + /** NumericFilter operation. */ + public operation: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation); + + /** NumericFilter value. */ + public value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** + * Creates a new NumericFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @param message NumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @param message NumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @param message ArchiveCustomMetricRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a NumericFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; - /** - * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @param message ArchiveCustomMetricRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a NumericFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; - /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArchiveCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + /** + * Verifies a NumericFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ArchiveCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + /** + * Creates a NumericFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; - /** - * Verifies an ArchiveCustomMetricRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. + * @param message NumericFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ArchiveCustomMetricRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + /** + * Converts this NumericFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. - * @param message ArchiveCustomMetricRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace NumericFilter { + + /** Operation enum. */ + enum Operation { + OPERATION_UNSPECIFIED = 0, + EQUAL = 1, + LESS_THAN = 2, + LESS_THAN_OR_EQUAL = 3, + GREATER_THAN = 4, + GREATER_THAN_OR_EQUAL = 5 + } + } - /** - * Converts this ArchiveCustomMetricRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a BetweenFilter. */ + interface IBetweenFilter { - /** Properties of a GetCustomMetricRequest. */ - interface IGetCustomMetricRequest { + /** BetweenFilter fromValue */ + fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - /** GetCustomMetricRequest name */ - name?: (string|null); - } + /** BetweenFilter toValue */ + toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + } - /** Represents a GetCustomMetricRequest. */ - class GetCustomMetricRequest implements IGetCustomMetricRequest { + /** Represents a BetweenFilter. */ + class BetweenFilter implements IBetweenFilter { - /** - * Constructs a new GetCustomMetricRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest); + /** + * Constructs a new BetweenFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter); - /** GetCustomMetricRequest name. */ - public name: string; + /** BetweenFilter fromValue. */ + public fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - /** - * Creates a new GetCustomMetricRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCustomMetricRequest instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest): google.analytics.admin.v1alpha.GetCustomMetricRequest; + /** BetweenFilter toValue. */ + public toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - /** - * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @param message GetCustomMetricRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new BetweenFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns BetweenFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; - /** - * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @param message GetCustomMetricRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @param message BetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomMetricRequest; + /** + * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @param message BetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCustomMetricRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomMetricRequest; + /** + * Decodes a BetweenFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; - /** - * Verifies a GetCustomMetricRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; - /** - * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCustomMetricRequest - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomMetricRequest; + /** + * Verifies a BetweenFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. - * @param message GetCustomMetricRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a BetweenFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BetweenFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; - /** - * Converts this GetCustomMetricRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. + * @param message BetweenFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BetweenFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a GetDataRetentionSettingsRequest. */ - interface IGetDataRetentionSettingsRequest { + /** Properties of an AudienceEventFilter. */ + interface IAudienceEventFilter { - /** GetDataRetentionSettingsRequest name */ - name?: (string|null); + /** AudienceEventFilter eventName */ + eventName?: (string|null); + + /** AudienceEventFilter eventParameterFilterExpression */ + eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); } - /** Represents a GetDataRetentionSettingsRequest. */ - class GetDataRetentionSettingsRequest implements IGetDataRetentionSettingsRequest { + /** Represents an AudienceEventFilter. */ + class AudienceEventFilter implements IAudienceEventFilter { /** - * Constructs a new GetDataRetentionSettingsRequest. + * Constructs a new AudienceEventFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter); - /** GetDataRetentionSettingsRequest name. */ - public name: string; + /** AudienceEventFilter eventName. */ + public eventName: string; + + /** AudienceEventFilter eventParameterFilterExpression. */ + public eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); /** - * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. + * Creates a new AudienceEventFilter instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataRetentionSettingsRequest instance + * @returns AudienceEventFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter): google.analytics.admin.v1alpha.AudienceEventFilter; /** - * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @param message GetDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * @param message AudienceEventFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @param message GetDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * @param message AudienceEventFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. + * Decodes an AudienceEventFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataRetentionSettingsRequest + * @returns AudienceEventFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceEventFilter; /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataRetentionSettingsRequest + * @returns AudienceEventFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceEventFilter; /** - * Verifies a GetDataRetentionSettingsRequest message. + * Verifies an AudienceEventFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataRetentionSettingsRequest + * @returns AudienceEventFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventFilter; /** - * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. - * @param message GetDataRetentionSettingsRequest + * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. + * @param message AudienceEventFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceEventFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataRetentionSettingsRequest to JSON. + * Converts this AudienceEventFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateDataRetentionSettingsRequest. */ - interface IUpdateDataRetentionSettingsRequest { + /** Properties of an AudienceFilterExpression. */ + interface IAudienceFilterExpression { - /** UpdateDataRetentionSettingsRequest dataRetentionSettings */ - dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + /** AudienceFilterExpression andGroup */ + andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - /** UpdateDataRetentionSettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** AudienceFilterExpression orGroup */ + orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression notExpression */ + notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** AudienceFilterExpression dimensionOrMetricFilter */ + dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); + + /** AudienceFilterExpression eventFilter */ + eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); } - /** Represents an UpdateDataRetentionSettingsRequest. */ - class UpdateDataRetentionSettingsRequest implements IUpdateDataRetentionSettingsRequest { + /** Represents an AudienceFilterExpression. */ + class AudienceFilterExpression implements IAudienceFilterExpression { /** - * Constructs a new UpdateDataRetentionSettingsRequest. + * Constructs a new AudienceFilterExpression. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression); + + /** AudienceFilterExpression andGroup. */ + public andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - /** UpdateDataRetentionSettingsRequest dataRetentionSettings. */ - public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + /** AudienceFilterExpression orGroup. */ + public orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - /** UpdateDataRetentionSettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** AudienceFilterExpression notExpression. */ + public notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** AudienceFilterExpression dimensionOrMetricFilter. */ + public dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); + + /** AudienceFilterExpression eventFilter. */ + public eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); + + /** AudienceFilterExpression expr. */ + public expr?: ("andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"); /** - * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * Creates a new AudienceFilterExpression instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDataRetentionSettingsRequest instance + * @returns AudienceFilterExpression instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression): google.analytics.admin.v1alpha.AudienceFilterExpression; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. - * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * @param message AudienceFilterExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. - * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * @param message AudienceFilterExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * Decodes an AudienceFilterExpression message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDataRetentionSettingsRequest + * @returns AudienceFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterExpression; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDataRetentionSettingsRequest + * @returns AudienceFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterExpression; /** - * Verifies an UpdateDataRetentionSettingsRequest message. + * Verifies an AudienceFilterExpression message. * @param message Plain 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 UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDataRetentionSettingsRequest + * @returns AudienceFilterExpression */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpression; /** - * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateDataRetentionSettingsRequest + * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. + * @param message AudienceFilterExpression * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDataRetentionSettingsRequest to JSON. + * Converts this AudienceFilterExpression to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateDataStreamRequest. */ - interface ICreateDataStreamRequest { - - /** CreateDataStreamRequest parent */ - parent?: (string|null); + /** Properties of an AudienceFilterExpressionList. */ + interface IAudienceFilterExpressionList { - /** CreateDataStreamRequest dataStream */ - dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** AudienceFilterExpressionList filterExpressions */ + filterExpressions?: (google.analytics.admin.v1alpha.IAudienceFilterExpression[]|null); } - /** Represents a CreateDataStreamRequest. */ - class CreateDataStreamRequest implements ICreateDataStreamRequest { + /** Represents an AudienceFilterExpressionList. */ + class AudienceFilterExpressionList implements IAudienceFilterExpressionList { /** - * Constructs a new CreateDataStreamRequest. + * Constructs a new AudienceFilterExpressionList. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest); - - /** CreateDataStreamRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList); - /** CreateDataStreamRequest dataStream. */ - public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** AudienceFilterExpressionList filterExpressions. */ + public filterExpressions: google.analytics.admin.v1alpha.IAudienceFilterExpression[]; /** - * Creates a new CreateDataStreamRequest instance using the specified properties. + * Creates a new AudienceFilterExpressionList instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDataStreamRequest instance + * @returns AudienceFilterExpressionList instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest): google.analytics.admin.v1alpha.CreateDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList): google.analytics.admin.v1alpha.AudienceFilterExpressionList; /** - * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. - * @param message CreateDataStreamRequest message or plain object to encode + * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @param message AudienceFilterExpressionList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. - * @param message CreateDataStreamRequest message or plain object to encode + * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @param message AudienceFilterExpressionList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDataStreamRequest + * @returns AudienceFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterExpressionList; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDataStreamRequest + * @returns AudienceFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterExpressionList; /** - * Verifies a CreateDataStreamRequest message. + * Verifies an AudienceFilterExpressionList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDataStreamRequest + * @returns AudienceFilterExpressionList */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpressionList; /** - * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. - * @param message CreateDataStreamRequest + * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. + * @param message AudienceFilterExpressionList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDataStreamRequest to JSON. + * Converts this AudienceFilterExpressionList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteDataStreamRequest. */ - interface IDeleteDataStreamRequest { + /** Properties of an AudienceSimpleFilter. */ + interface IAudienceSimpleFilter { - /** DeleteDataStreamRequest name */ - name?: (string|null); + /** AudienceSimpleFilter scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + + /** AudienceSimpleFilter filterExpression */ + filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); } - /** Represents a DeleteDataStreamRequest. */ - class DeleteDataStreamRequest implements IDeleteDataStreamRequest { + /** Represents an AudienceSimpleFilter. */ + class AudienceSimpleFilter implements IAudienceSimpleFilter { /** - * Constructs a new DeleteDataStreamRequest. + * Constructs a new AudienceSimpleFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter); - /** DeleteDataStreamRequest name. */ - public name: string; + /** AudienceSimpleFilter scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + + /** AudienceSimpleFilter filterExpression. */ + public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); /** - * Creates a new DeleteDataStreamRequest instance using the specified properties. + * Creates a new AudienceSimpleFilter instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDataStreamRequest instance + * @returns AudienceSimpleFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): google.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter): google.analytics.admin.v1alpha.AudienceSimpleFilter; /** - * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. - * @param message DeleteDataStreamRequest message or plain object to encode + * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @param message AudienceSimpleFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. - * @param message DeleteDataStreamRequest message or plain object to encode + * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @param message AudienceSimpleFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. + * Decodes an AudienceSimpleFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDataStreamRequest + * @returns AudienceSimpleFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSimpleFilter; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDataStreamRequest + * @returns AudienceSimpleFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSimpleFilter; /** - * Verifies a DeleteDataStreamRequest message. + * Verifies an AudienceSimpleFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDataStreamRequest + * @returns AudienceSimpleFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSimpleFilter; /** - * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. - * @param message DeleteDataStreamRequest + * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. + * @param message AudienceSimpleFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceSimpleFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDataStreamRequest to JSON. + * Converts this AudienceSimpleFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateDataStreamRequest. */ - interface IUpdateDataStreamRequest { + /** Properties of an AudienceSequenceFilter. */ + interface IAudienceSequenceFilter { - /** UpdateDataStreamRequest dataStream */ - dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** AudienceSequenceFilter scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); - /** UpdateDataStreamRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** AudienceSequenceFilter sequenceMaximumDuration */ + sequenceMaximumDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceFilter sequenceSteps */ + sequenceSteps?: (google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]|null); } - /** Represents an UpdateDataStreamRequest. */ - class UpdateDataStreamRequest implements IUpdateDataStreamRequest { + /** Represents an AudienceSequenceFilter. */ + class AudienceSequenceFilter implements IAudienceSequenceFilter { /** - * Constructs a new UpdateDataStreamRequest. + * Constructs a new AudienceSequenceFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter); - /** UpdateDataStreamRequest dataStream. */ - public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** AudienceSequenceFilter scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); - /** UpdateDataStreamRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** AudienceSequenceFilter sequenceMaximumDuration. */ + public sequenceMaximumDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceFilter sequenceSteps. */ + public sequenceSteps: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]; /** - * Creates a new UpdateDataStreamRequest instance using the specified properties. + * Creates a new AudienceSequenceFilter instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDataStreamRequest instance + * @returns AudienceSequenceFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): google.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter): google.analytics.admin.v1alpha.AudienceSequenceFilter; /** - * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. - * @param message UpdateDataStreamRequest message or plain object to encode + * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * @param message AudienceSequenceFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. - * @param message UpdateDataStreamRequest message or plain object to encode + * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * @param message AudienceSequenceFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDataStreamRequest + * @returns AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSequenceFilter; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDataStreamRequest + * @returns AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSequenceFilter; /** - * Verifies an UpdateDataStreamRequest message. + * Verifies an AudienceSequenceFilter message. * @param message Plain 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 UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDataStreamRequest + * @returns AudienceSequenceFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter; /** - * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. - * @param message UpdateDataStreamRequest + * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. + * @param message AudienceSequenceFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDataStreamRequest to JSON. + * Converts this AudienceSequenceFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDataStreamsRequest. */ - interface IListDataStreamsRequest { + namespace AudienceSequenceFilter { - /** ListDataStreamsRequest parent */ - parent?: (string|null); + /** Properties of an AudienceSequenceStep. */ + interface IAudienceSequenceStep { - /** ListDataStreamsRequest pageSize */ - pageSize?: (number|null); + /** AudienceSequenceStep scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); - /** ListDataStreamsRequest pageToken */ - pageToken?: (string|null); + /** AudienceSequenceStep immediatelyFollows */ + immediatelyFollows?: (boolean|null); + + /** AudienceSequenceStep constraintDuration */ + constraintDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceStep filterExpression */ + filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + } + + /** Represents an AudienceSequenceStep. */ + class AudienceSequenceStep implements IAudienceSequenceStep { + + /** + * Constructs a new AudienceSequenceStep. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep); + + /** AudienceSequenceStep scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + + /** AudienceSequenceStep immediatelyFollows. */ + public immediatelyFollows: boolean; + + /** AudienceSequenceStep constraintDuration. */ + public constraintDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceStep filterExpression. */ + public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** + * Creates a new AudienceSequenceStep instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceSequenceStep instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @param message AudienceSequenceStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @param message AudienceSequenceStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Verifies an AudienceSequenceStep message. + * @param message Plain 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 AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceSequenceStep + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. + * @param message AudienceSequenceStep + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceSequenceStep to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ListDataStreamsRequest. */ - class ListDataStreamsRequest implements IListDataStreamsRequest { + /** Properties of an AudienceFilterClause. */ + interface IAudienceFilterClause { + + /** AudienceFilterClause simpleFilter */ + simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); + + /** AudienceFilterClause sequenceFilter */ + sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); + + /** AudienceFilterClause clauseType */ + clauseType?: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null); + } + + /** Represents an AudienceFilterClause. */ + class AudienceFilterClause implements IAudienceFilterClause { /** - * Constructs a new ListDataStreamsRequest. + * Constructs a new AudienceFilterClause. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause); - /** ListDataStreamsRequest parent. */ - public parent: string; + /** AudienceFilterClause simpleFilter. */ + public simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); - /** ListDataStreamsRequest pageSize. */ - public pageSize: number; + /** AudienceFilterClause sequenceFilter. */ + public sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); - /** ListDataStreamsRequest pageToken. */ - public pageToken: string; + /** AudienceFilterClause clauseType. */ + public clauseType: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType); + + /** AudienceFilterClause filter. */ + public filter?: ("simpleFilter"|"sequenceFilter"); /** - * Creates a new ListDataStreamsRequest instance using the specified properties. + * Creates a new AudienceFilterClause instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataStreamsRequest instance + * @returns AudienceFilterClause instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest): google.analytics.admin.v1alpha.ListDataStreamsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. - * @param message ListDataStreamsRequest message or plain object to encode + * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * @param message AudienceFilterClause message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. - * @param message ListDataStreamsRequest message or plain object to encode + * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * @param message AudienceFilterClause message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer. + * Decodes an AudienceFilterClause message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataStreamsRequest + * @returns AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataStreamsRequest + * @returns AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Verifies a ListDataStreamsRequest message. + * Verifies an AudienceFilterClause message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataStreamsRequest + * @returns AudienceFilterClause */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. - * @param message ListDataStreamsRequest + * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. + * @param message AudienceFilterClause * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterClause, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataStreamsRequest to JSON. + * Converts this AudienceFilterClause to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDataStreamsResponse. */ - interface IListDataStreamsResponse { + namespace AudienceFilterClause { + + /** AudienceClauseType enum. */ + enum AudienceClauseType { + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0, + INCLUDE = 1, + EXCLUDE = 2 + } + } + + /** Properties of an AudienceEventTrigger. */ + interface IAudienceEventTrigger { - /** ListDataStreamsResponse dataStreams */ - dataStreams?: (google.analytics.admin.v1alpha.IDataStream[]|null); + /** AudienceEventTrigger eventName */ + eventName?: (string|null); - /** ListDataStreamsResponse nextPageToken */ - nextPageToken?: (string|null); + /** AudienceEventTrigger logCondition */ + logCondition?: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null); } - /** Represents a ListDataStreamsResponse. */ - class ListDataStreamsResponse implements IListDataStreamsResponse { + /** Represents an AudienceEventTrigger. */ + class AudienceEventTrigger implements IAudienceEventTrigger { /** - * Constructs a new ListDataStreamsResponse. + * Constructs a new AudienceEventTrigger. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger); - /** ListDataStreamsResponse dataStreams. */ - public dataStreams: google.analytics.admin.v1alpha.IDataStream[]; + /** AudienceEventTrigger eventName. */ + public eventName: string; - /** ListDataStreamsResponse nextPageToken. */ - public nextPageToken: string; + /** AudienceEventTrigger logCondition. */ + public logCondition: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition); /** - * Creates a new ListDataStreamsResponse instance using the specified properties. + * Creates a new AudienceEventTrigger instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataStreamsResponse instance + * @returns AudienceEventTrigger instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse): google.analytics.admin.v1alpha.ListDataStreamsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. - * @param message ListDataStreamsResponse message or plain object to encode + * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * @param message AudienceEventTrigger message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. - * @param message ListDataStreamsResponse message or plain object to encode + * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * @param message AudienceEventTrigger message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * Decodes an AudienceEventTrigger message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataStreamsResponse + * @returns AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataStreamsResponse + * @returns AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Verifies a ListDataStreamsResponse message. + * Verifies an AudienceEventTrigger message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataStreamsResponse + * @returns AudienceEventTrigger */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. - * @param message ListDataStreamsResponse + * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. + * @param message AudienceEventTrigger * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceEventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataStreamsResponse to JSON. + * Converts this AudienceEventTrigger to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDataStreamRequest. */ - interface IGetDataStreamRequest { + namespace AudienceEventTrigger { - /** GetDataStreamRequest name */ + /** LogCondition enum. */ + enum LogCondition { + LOG_CONDITION_UNSPECIFIED = 0, + AUDIENCE_JOINED = 1, + AUDIENCE_MEMBERSHIP_RENEWED = 2 + } + } + + /** Properties of an Audience. */ + interface IAudience { + + /** Audience name */ name?: (string|null); + + /** Audience displayName */ + displayName?: (string|null); + + /** Audience description */ + description?: (string|null); + + /** Audience membershipDurationDays */ + membershipDurationDays?: (number|null); + + /** Audience adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (boolean|null); + + /** Audience eventTrigger */ + eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + + /** Audience exclusionDurationMode */ + exclusionDurationMode?: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null); + + /** Audience filterClauses */ + filterClauses?: (google.analytics.admin.v1alpha.IAudienceFilterClause[]|null); } - /** Represents a GetDataStreamRequest. */ - class GetDataStreamRequest implements IGetDataStreamRequest { + /** Represents an Audience. */ + class Audience implements IAudience { /** - * Constructs a new GetDataStreamRequest. + * Constructs a new Audience. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest); + constructor(properties?: google.analytics.admin.v1alpha.IAudience); - /** GetDataStreamRequest name. */ + /** Audience name. */ public name: string; + /** Audience displayName. */ + public displayName: string; + + /** Audience description. */ + public description: string; + + /** Audience membershipDurationDays. */ + public membershipDurationDays: number; + + /** Audience adsPersonalizationEnabled. */ + public adsPersonalizationEnabled: boolean; + + /** Audience eventTrigger. */ + public eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + + /** Audience exclusionDurationMode. */ + public exclusionDurationMode: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode); + + /** Audience filterClauses. */ + public filterClauses: google.analytics.admin.v1alpha.IAudienceFilterClause[]; + /** - * Creates a new GetDataStreamRequest instance using the specified properties. + * Creates a new Audience instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataStreamRequest instance + * @returns Audience instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest): google.analytics.admin.v1alpha.GetDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IAudience): google.analytics.admin.v1alpha.Audience; /** - * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. - * @param message GetDataStreamRequest message or plain object to encode + * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * @param message Audience message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. - * @param message GetDataStreamRequest message or plain object to encode + * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * @param message Audience message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * Decodes an Audience message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataStreamRequest + * @returns Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Audience; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an Audience message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataStreamRequest + * @returns Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Audience; /** - * Verifies a GetDataStreamRequest message. + * Verifies an Audience message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Audience message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataStreamRequest + * @returns Audience */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Audience; /** - * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. - * @param message GetDataStreamRequest + * Creates a plain object from an Audience message. Also converts values to other types if specified. + * @param message Audience * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.Audience, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataStreamRequest to JSON. + * Converts this Audience to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + namespace Audience { + + /** AudienceExclusionDurationMode enum. */ + enum AudienceExclusionDurationMode { + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0, + EXCLUDE_TEMPORARILY = 1, + EXCLUDE_PERMANENTLY = 2 + } + } + /** IndustryCategory enum. */ enum IndustryCategory { INDUSTRY_CATEGORY_UNSPECIFIED = 0, @@ -10358,7 +15252,9 @@ export namespace google { DATA_RETENTION_SETTINGS = 13, DISPLAY_VIDEO_360_ADVERTISER_LINK = 14, DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15, - DATA_STREAM = 18 + SEARCH_ADS_360_LINK = 16, + DATA_STREAM = 18, + ATTRIBUTION_SETTINGS = 20 } /** GoogleSignalsState enum. */ @@ -10393,6 +15289,14 @@ export namespace google { OBSOLETE = 6 } + /** PropertyType enum. */ + enum PropertyType { + PROPERTY_TYPE_UNSPECIFIED = 0, + PROPERTY_TYPE_ORDINARY = 1, + PROPERTY_TYPE_SUBPROPERTY = 2, + PROPERTY_TYPE_ROLLUP = 3 + } + /** Properties of an Account. */ interface IAccount { @@ -10519,6 +15423,9 @@ export namespace google { /** Property name */ name?: (string|null); + /** Property propertyType */ + propertyType?: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType|null); + /** Property createTime */ createTime?: (google.protobuf.ITimestamp|null); @@ -10565,6 +15472,9 @@ export namespace google { /** Property name. */ public name: string; + /** Property propertyType. */ + public propertyType: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType); + /** Property createTime. */ public createTime?: (google.protobuf.ITimestamp|null); @@ -11879,6 +16789,12 @@ export namespace google { /** PropertySummary displayName */ displayName?: (string|null); + + /** PropertySummary propertyType */ + propertyType?: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType|null); + + /** PropertySummary parent */ + parent?: (string|null); } /** Represents a PropertySummary. */ @@ -11896,6 +16812,12 @@ export namespace google { /** PropertySummary displayName. */ public displayName: string; + /** PropertySummary propertyType. */ + public propertyType: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType); + + /** PropertySummary parent. */ + public parent: string; + /** * Creates a new PropertySummary instance using the specified properties. * @param [properties] Properties to set @@ -12340,6 +17262,9 @@ export namespace google { /** ChangeHistoryResource dataStream */ dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + + /** ChangeHistoryResource attributionSettings */ + attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); } /** Represents a ChangeHistoryResource. */ @@ -12390,8 +17315,11 @@ export namespace google { /** ChangeHistoryResource dataStream. */ public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** ChangeHistoryResource attributionSettings. */ + public attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); + /** ChangeHistoryResource resource. */ - public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"); + public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"|"attributionSettings"); /** * Creates a new ChangeHistoryResource instance using the specified properties. @@ -13436,6 +18364,144 @@ export namespace google { FIFTY_MONTHS = 6 } } + + /** Properties of an AttributionSettings. */ + interface IAttributionSettings { + + /** AttributionSettings name */ + name?: (string|null); + + /** AttributionSettings acquisitionConversionEventLookbackWindow */ + acquisitionConversionEventLookbackWindow?: (google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|null); + + /** AttributionSettings otherConversionEventLookbackWindow */ + otherConversionEventLookbackWindow?: (google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|null); + + /** AttributionSettings reportingAttributionModel */ + reportingAttributionModel?: (google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|null); + } + + /** Represents an AttributionSettings. */ + class AttributionSettings implements IAttributionSettings { + + /** + * Constructs a new AttributionSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAttributionSettings); + + /** AttributionSettings name. */ + public name: string; + + /** AttributionSettings acquisitionConversionEventLookbackWindow. */ + public acquisitionConversionEventLookbackWindow: (google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow); + + /** AttributionSettings otherConversionEventLookbackWindow. */ + public otherConversionEventLookbackWindow: (google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow); + + /** AttributionSettings reportingAttributionModel. */ + public reportingAttributionModel: (google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel); + + /** + * Creates a new AttributionSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns AttributionSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAttributionSettings): google.analytics.admin.v1alpha.AttributionSettings; + + /** + * Encodes the specified AttributionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * @param message AttributionSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAttributionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AttributionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * @param message AttributionSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAttributionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AttributionSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AttributionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AttributionSettings; + + /** + * Decodes an AttributionSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AttributionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AttributionSettings; + + /** + * Verifies an AttributionSettings message. + * @param message Plain 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 AttributionSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AttributionSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AttributionSettings; + + /** + * Creates a plain object from an AttributionSettings message. Also converts values to other types if specified. + * @param message AttributionSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AttributionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AttributionSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AttributionSettings { + + /** AcquisitionConversionEventLookbackWindow enum. */ + enum AcquisitionConversionEventLookbackWindow { + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0, + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1, + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2 + } + + /** OtherConversionEventLookbackWindow enum. */ + enum OtherConversionEventLookbackWindow { + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0, + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1, + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2, + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3 + } + + /** ReportingAttributionModel enum. */ + enum ReportingAttributionModel { + REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0, + CROSS_CHANNEL_DATA_DRIVEN = 1, + CROSS_CHANNEL_LAST_CLICK = 2, + CROSS_CHANNEL_FIRST_CLICK = 3, + CROSS_CHANNEL_LINEAR = 4, + CROSS_CHANNEL_POSITION_BASED = 5, + CROSS_CHANNEL_TIME_DECAY = 6, + ADS_PREFERRED_LAST_CLICK = 7 + } + } } /** Namespace v1beta. */ @@ -26256,6 +31322,102 @@ export namespace google { } } + /** 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 }; + } + /** Properties of a Timestamp. */ interface ITimestamp { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index cb7dd3846c7..0870f5c7f03 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -66,2402 +66,3801 @@ */ var v1alpha = {}; - v1alpha.AnalyticsAdminService = (function() { + v1alpha.AccessDimension = (function() { /** - * Constructs a new AnalyticsAdminService service. + * Properties of an AccessDimension. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AnalyticsAdminService - * @extends $protobuf.rpc.Service + * @interface IAccessDimension + * @property {string|null} [dimensionName] AccessDimension dimensionName + */ + + /** + * Constructs a new AccessDimension. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessDimension. + * @implements IAccessDimension * @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 + * @param {google.analytics.admin.v1alpha.IAccessDimension=} [properties] Properties to set */ - function AnalyticsAdminService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function AccessDimension(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]]; } - (AnalyticsAdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AnalyticsAdminService; + /** + * AccessDimension dimensionName. + * @member {string} dimensionName + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @instance + */ + AccessDimension.prototype.dimensionName = ""; /** - * Creates new AnalyticsAdminService service using the specified rpc implementation. + * Creates a new AccessDimension instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @memberof google.analytics.admin.v1alpha.AccessDimension * @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 {AnalyticsAdminService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.analytics.admin.v1alpha.IAccessDimension=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessDimension} AccessDimension instance */ - AnalyticsAdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + AccessDimension.create = function create(properties) { + return new AccessDimension(properties); }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetAccountCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.Account} [response] Account + * Encodes the specified AccessDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimension.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {google.analytics.admin.v1alpha.IAccessDimension} message AccessDimension message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessDimension.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dimensionName != null && Object.hasOwnProperty.call(message, "dimensionName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimensionName); + return writer; + }; /** - * Calls GetAccount. - * @function getAccount - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetAccountRequest} request GetAccountRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccountCallback} callback Node-style callback called with the error, if any, and Account - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimension.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {google.analytics.admin.v1alpha.IAccessDimension} message AccessDimension message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.getAccount = function getAccount(request, callback) { - return this.rpcCall(getAccount, $root.google.analytics.admin.v1alpha.GetAccountRequest, $root.google.analytics.admin.v1alpha.Account, request, callback); - }, "name", { value: "GetAccount" }); + AccessDimension.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls GetAccount. - * @function getAccount - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetAccountRequest} request GetAccountRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes an AccessDimension message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessDimension} AccessDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessDimension.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.analytics.admin.v1alpha.AccessDimension(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dimensionName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListAccountsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListAccountsResponse} [response] ListAccountsResponse + * Decodes an AccessDimension message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessDimension} AccessDimension + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessDimension.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListAccounts. - * @function listAccounts - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListAccountsRequest} request ListAccountsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountsCallback} callback Node-style callback called with the error, if any, and ListAccountsResponse - * @returns {undefined} - * @variation 1 + * Verifies an AccessDimension message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(AnalyticsAdminService.prototype.listAccounts = function listAccounts(request, callback) { - return this.rpcCall(listAccounts, $root.google.analytics.admin.v1alpha.ListAccountsRequest, $root.google.analytics.admin.v1alpha.ListAccountsResponse, request, callback); - }, "name", { value: "ListAccounts" }); + AccessDimension.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dimensionName != null && message.hasOwnProperty("dimensionName")) + if (!$util.isString(message.dimensionName)) + return "dimensionName: string expected"; + return null; + }; /** - * Calls ListAccounts. - * @function listAccounts - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListAccountsRequest} request ListAccountsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates an AccessDimension message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessDimension} AccessDimension */ + AccessDimension.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessDimension) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessDimension(); + if (object.dimensionName != null) + message.dimensionName = String(object.dimensionName); + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAccount}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteAccountCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from an AccessDimension message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {google.analytics.admin.v1alpha.AccessDimension} message AccessDimension + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + AccessDimension.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.dimensionName = ""; + if (message.dimensionName != null && message.hasOwnProperty("dimensionName")) + object.dimensionName = message.dimensionName; + return object; + }; /** - * Calls DeleteAccount. - * @function deleteAccount - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessDimension to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessDimension * @instance - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} request DeleteAccountRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccountCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteAccount = function deleteAccount(request, callback) { - return this.rpcCall(deleteAccount, $root.google.analytics.admin.v1alpha.DeleteAccountRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteAccount" }); + AccessDimension.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccessDimension; + })(); + + v1alpha.AccessMetric = (function() { /** - * Calls DeleteAccount. - * @function deleteAccount - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} request DeleteAccountRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of an AccessMetric. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessMetric + * @property {string|null} [metricName] AccessMetric metricName */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateAccountCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.Account} [response] Account + * Constructs a new AccessMetric. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessMetric. + * @implements IAccessMetric + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessMetric=} [properties] Properties to set */ + function AccessMetric(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]]; + } /** - * Calls UpdateAccount. - * @function updateAccount - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessMetric metricName. + * @member {string} metricName + * @memberof google.analytics.admin.v1alpha.AccessMetric * @instance - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} request UpdateAccountRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccountCallback} callback Node-style callback called with the error, if any, and Account - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.updateAccount = function updateAccount(request, callback) { - return this.rpcCall(updateAccount, $root.google.analytics.admin.v1alpha.UpdateAccountRequest, $root.google.analytics.admin.v1alpha.Account, request, callback); - }, "name", { value: "UpdateAccount" }); + AccessMetric.prototype.metricName = ""; /** - * Calls UpdateAccount. - * @function updateAccount - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} request UpdateAccountRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new AccessMetric instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {google.analytics.admin.v1alpha.IAccessMetric=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessMetric} AccessMetric instance */ + AccessMetric.create = function create(properties) { + return new AccessMetric(properties); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ProvisionAccountTicketCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} [response] ProvisionAccountTicketResponse + * Encodes the specified AccessMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetric.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {google.analytics.admin.v1alpha.IAccessMetric} message AccessMetric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessMetric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricName != null && Object.hasOwnProperty.call(message, "metricName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricName); + return writer; + }; /** - * Calls ProvisionAccountTicket. - * @function provisionAccountTicket - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicketCallback} callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {google.analytics.admin.v1alpha.IAccessMetric} message AccessMetric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.provisionAccountTicket = function provisionAccountTicket(request, callback) { - return this.rpcCall(provisionAccountTicket, $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse, request, callback); - }, "name", { value: "ProvisionAccountTicket" }); + AccessMetric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ProvisionAccountTicket. - * @function provisionAccountTicket - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes an AccessMetric message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessMetric} AccessMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessMetric.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.analytics.admin.v1alpha.AccessMetric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metricName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListAccountSummariesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} [response] ListAccountSummariesResponse + * Decodes an AccessMetric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessMetric} AccessMetric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessMetric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListAccountSummaries. - * @function listAccountSummaries - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummariesCallback} callback Node-style callback called with the error, if any, and ListAccountSummariesResponse - * @returns {undefined} - * @variation 1 + * Verifies an AccessMetric message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(AnalyticsAdminService.prototype.listAccountSummaries = function listAccountSummaries(request, callback) { - return this.rpcCall(listAccountSummaries, $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest, $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse, request, callback); - }, "name", { value: "ListAccountSummaries" }); + AccessMetric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricName != null && message.hasOwnProperty("metricName")) + if (!$util.isString(message.metricName)) + return "metricName: string expected"; + return null; + }; /** - * Calls ListAccountSummaries. - * @function listAccountSummaries - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates an AccessMetric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessMetric} AccessMetric */ + AccessMetric.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessMetric) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessMetric(); + if (object.metricName != null) + message.metricName = String(object.metricName); + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetPropertyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.Property} [response] Property + * Creates a plain object from an AccessMetric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {google.analytics.admin.v1alpha.AccessMetric} message AccessMetric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + AccessMetric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metricName = ""; + if (message.metricName != null && message.hasOwnProperty("metricName")) + object.metricName = message.metricName; + return object; + }; /** - * Calls GetProperty. - * @function getProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessMetric to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessMetric * @instance - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} request GetPropertyRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetPropertyCallback} callback Node-style callback called with the error, if any, and Property - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(AnalyticsAdminService.prototype.getProperty = function getProperty(request, callback) { - return this.rpcCall(getProperty, $root.google.analytics.admin.v1alpha.GetPropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); - }, "name", { value: "GetProperty" }); + AccessMetric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccessMetric; + })(); + + v1alpha.AccessDateRange = (function() { /** - * Calls GetProperty. - * @function getProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} request GetPropertyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of an AccessDateRange. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessDateRange + * @property {string|null} [startDate] AccessDateRange startDate + * @property {string|null} [endDate] AccessDateRange endDate */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListPropertiesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} [response] ListPropertiesResponse + * Constructs a new AccessDateRange. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessDateRange. + * @implements IAccessDateRange + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessDateRange=} [properties] Properties to set */ + function AccessDateRange(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]]; + } /** - * Calls ListProperties. - * @function listProperties - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessDateRange startDate. + * @member {string} startDate + * @memberof google.analytics.admin.v1alpha.AccessDateRange * @instance - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} request ListPropertiesRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListPropertiesCallback} callback Node-style callback called with the error, if any, and ListPropertiesResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.listProperties = function listProperties(request, callback) { - return this.rpcCall(listProperties, $root.google.analytics.admin.v1alpha.ListPropertiesRequest, $root.google.analytics.admin.v1alpha.ListPropertiesResponse, request, callback); - }, "name", { value: "ListProperties" }); + AccessDateRange.prototype.startDate = ""; /** - * Calls ListProperties. - * @function listProperties - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessDateRange endDate. + * @member {string} endDate + * @memberof google.analytics.admin.v1alpha.AccessDateRange * @instance - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} request ListPropertiesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessDateRange.prototype.endDate = ""; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreatePropertyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.Property} [response] Property + * Creates a new AccessDateRange instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {google.analytics.admin.v1alpha.IAccessDateRange=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessDateRange} AccessDateRange instance */ + AccessDateRange.create = function create(properties) { + return new AccessDateRange(properties); + }; /** - * Calls CreateProperty. - * @function createProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} request CreatePropertyRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreatePropertyCallback} callback Node-style callback called with the error, if any, and Property - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessDateRange message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDateRange.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {google.analytics.admin.v1alpha.IAccessDateRange} message AccessDateRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.createProperty = function createProperty(request, callback) { - return this.rpcCall(createProperty, $root.google.analytics.admin.v1alpha.CreatePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); - }, "name", { value: "CreateProperty" }); + AccessDateRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startDate != null && Object.hasOwnProperty.call(message, "startDate")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.startDate); + if (message.endDate != null && Object.hasOwnProperty.call(message, "endDate")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.endDate); + return writer; + }; /** - * Calls CreateProperty. - * @function createProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} request CreatePropertyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessDateRange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDateRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {google.analytics.admin.v1alpha.IAccessDateRange} message AccessDateRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessDateRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeletePropertyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.Property} [response] Property + * Decodes an AccessDateRange message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessDateRange} AccessDateRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessDateRange.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.analytics.admin.v1alpha.AccessDateRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startDate = reader.string(); + break; + case 2: + message.endDate = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteProperty. - * @function deleteProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback} callback Node-style callback called with the error, if any, and Property - * @returns {undefined} - * @variation 1 + * Decodes an AccessDateRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessDateRange} AccessDateRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteProperty = function deleteProperty(request, callback) { - return this.rpcCall(deleteProperty, $root.google.analytics.admin.v1alpha.DeletePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); - }, "name", { value: "DeleteProperty" }); + AccessDateRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteProperty. - * @function deleteProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessDateRange message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessDateRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startDate != null && message.hasOwnProperty("startDate")) + if (!$util.isString(message.startDate)) + return "startDate: string expected"; + if (message.endDate != null && message.hasOwnProperty("endDate")) + if (!$util.isString(message.endDate)) + return "endDate: string expected"; + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdatePropertyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.Property} [response] Property + * Creates an AccessDateRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessDateRange} AccessDateRange */ + AccessDateRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessDateRange) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessDateRange(); + if (object.startDate != null) + message.startDate = String(object.startDate); + if (object.endDate != null) + message.endDate = String(object.endDate); + return message; + }; /** - * Calls UpdateProperty. - * @function updateProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdatePropertyCallback} callback Node-style callback called with the error, if any, and Property - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessDateRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {google.analytics.admin.v1alpha.AccessDateRange} message AccessDateRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.updateProperty = function updateProperty(request, callback) { - return this.rpcCall(updateProperty, $root.google.analytics.admin.v1alpha.UpdatePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); - }, "name", { value: "UpdateProperty" }); + AccessDateRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.startDate = ""; + object.endDate = ""; + } + if (message.startDate != null && message.hasOwnProperty("startDate")) + object.startDate = message.startDate; + if (message.endDate != null && message.hasOwnProperty("endDate")) + object.endDate = message.endDate; + return object; + }; /** - * Calls UpdateProperty. - * @function updateProperty - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessDateRange to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessDateRange * @instance - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessDateRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccessDateRange; + })(); + + v1alpha.AccessFilterExpression = (function() { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetUserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink + * Properties of an AccessFilterExpression. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessFilterExpression + * @property {google.analytics.admin.v1alpha.IAccessFilterExpressionList|null} [andGroup] AccessFilterExpression andGroup + * @property {google.analytics.admin.v1alpha.IAccessFilterExpressionList|null} [orGroup] AccessFilterExpression orGroup + * @property {google.analytics.admin.v1alpha.IAccessFilterExpression|null} [notExpression] AccessFilterExpression notExpression + * @property {google.analytics.admin.v1alpha.IAccessFilter|null} [accessFilter] AccessFilterExpression accessFilter */ /** - * Calls GetUserLink. - * @function getUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Constructs a new AccessFilterExpression. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessFilterExpression. + * @implements IAccessFilterExpression + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessFilterExpression=} [properties] Properties to set + */ + function AccessFilterExpression(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]]; + } + + /** + * AccessFilterExpression andGroup. + * @member {google.analytics.admin.v1alpha.IAccessFilterExpressionList|null|undefined} andGroup + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression * @instance - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} request GetUserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.getUserLink = function getUserLink(request, callback) { - return this.rpcCall(getUserLink, $root.google.analytics.admin.v1alpha.GetUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); - }, "name", { value: "GetUserLink" }); + AccessFilterExpression.prototype.andGroup = null; /** - * Calls GetUserLink. - * @function getUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilterExpression orGroup. + * @member {google.analytics.admin.v1alpha.IAccessFilterExpressionList|null|undefined} orGroup + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression * @instance - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} request GetUserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessFilterExpression.prototype.orGroup = null; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef BatchGetUserLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} [response] BatchGetUserLinksResponse + * AccessFilterExpression notExpression. + * @member {google.analytics.admin.v1alpha.IAccessFilterExpression|null|undefined} notExpression + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @instance */ + AccessFilterExpression.prototype.notExpression = null; /** - * Calls BatchGetUserLinks. - * @function batchGetUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilterExpression accessFilter. + * @member {google.analytics.admin.v1alpha.IAccessFilter|null|undefined} accessFilter + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression * @instance - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} request BatchGetUserLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinksCallback} callback Node-style callback called with the error, if any, and BatchGetUserLinksResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.batchGetUserLinks = function batchGetUserLinks(request, callback) { - return this.rpcCall(batchGetUserLinks, $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse, request, callback); - }, "name", { value: "BatchGetUserLinks" }); + AccessFilterExpression.prototype.accessFilter = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls BatchGetUserLinks. - * @function batchGetUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilterExpression oneExpression. + * @member {"andGroup"|"orGroup"|"notExpression"|"accessFilter"|undefined} oneExpression + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression * @instance - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} request BatchGetUserLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + Object.defineProperty(AccessFilterExpression.prototype, "oneExpression", { + get: $util.oneOfGetter($oneOfFields = ["andGroup", "orGroup", "notExpression", "accessFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListUserLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} [response] ListUserLinksResponse + * Creates a new AccessFilterExpression instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilterExpression=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessFilterExpression} AccessFilterExpression instance */ + AccessFilterExpression.create = function create(properties) { + return new AccessFilterExpression(properties); + }; /** - * Calls ListUserLinks. - * @function listUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} request ListUserLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinksCallback} callback Node-style callback called with the error, if any, and ListUserLinksResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpression.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilterExpression} message AccessFilterExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.listUserLinks = function listUserLinks(request, callback) { - return this.rpcCall(listUserLinks, $root.google.analytics.admin.v1alpha.ListUserLinksRequest, $root.google.analytics.admin.v1alpha.ListUserLinksResponse, request, callback); - }, "name", { value: "ListUserLinks" }); + AccessFilterExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.andGroup != null && Object.hasOwnProperty.call(message, "andGroup")) + $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.encode(message.andGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.orGroup != null && Object.hasOwnProperty.call(message, "orGroup")) + $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.encode(message.orGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.notExpression != null && Object.hasOwnProperty.call(message, "notExpression")) + $root.google.analytics.admin.v1alpha.AccessFilterExpression.encode(message.notExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.accessFilter != null && Object.hasOwnProperty.call(message, "accessFilter")) + $root.google.analytics.admin.v1alpha.AccessFilter.encode(message.accessFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; /** - * Calls ListUserLinks. - * @function listUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} request ListUserLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpression.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilterExpression} message AccessFilterExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessFilterExpression.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef AuditUserLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} [response] AuditUserLinksResponse + * Decodes an AccessFilterExpression message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessFilterExpression} AccessFilterExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessFilterExpression.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.analytics.admin.v1alpha.AccessFilterExpression(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.andGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.decode(reader, reader.uint32()); + break; + case 2: + message.orGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.decode(reader, reader.uint32()); + break; + case 3: + message.notExpression = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); + break; + case 4: + message.accessFilter = $root.google.analytics.admin.v1alpha.AccessFilter.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls AuditUserLinks. - * @function auditUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} request AuditUserLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinksCallback} callback Node-style callback called with the error, if any, and AuditUserLinksResponse - * @returns {undefined} - * @variation 1 + * Decodes an AccessFilterExpression message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessFilterExpression} AccessFilterExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.auditUserLinks = function auditUserLinks(request, callback) { - return this.rpcCall(auditUserLinks, $root.google.analytics.admin.v1alpha.AuditUserLinksRequest, $root.google.analytics.admin.v1alpha.AuditUserLinksResponse, request, callback); - }, "name", { value: "AuditUserLinks" }); + AccessFilterExpression.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls AuditUserLinks. - * @function auditUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} request AuditUserLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessFilterExpression message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessFilterExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + properties.oneExpression = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.verify(message.andGroup); + if (error) + return "andGroup." + error; + } + } + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + if (properties.oneExpression === 1) + return "oneExpression: multiple values"; + properties.oneExpression = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.verify(message.orGroup); + if (error) + return "orGroup." + error; + } + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + if (properties.oneExpression === 1) + return "oneExpression: multiple values"; + properties.oneExpression = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessFilterExpression.verify(message.notExpression); + if (error) + return "notExpression." + error; + } + } + if (message.accessFilter != null && message.hasOwnProperty("accessFilter")) { + if (properties.oneExpression === 1) + return "oneExpression: multiple values"; + properties.oneExpression = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessFilter.verify(message.accessFilter); + if (error) + return "accessFilter." + error; + } + } + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateUserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink + * Creates an AccessFilterExpression message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessFilterExpression} AccessFilterExpression */ + AccessFilterExpression.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessFilterExpression) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessFilterExpression(); + if (object.andGroup != null) { + if (typeof object.andGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilterExpression.andGroup: object expected"); + message.andGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.fromObject(object.andGroup); + } + if (object.orGroup != null) { + if (typeof object.orGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilterExpression.orGroup: object expected"); + message.orGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.fromObject(object.orGroup); + } + if (object.notExpression != null) { + if (typeof object.notExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilterExpression.notExpression: object expected"); + message.notExpression = $root.google.analytics.admin.v1alpha.AccessFilterExpression.fromObject(object.notExpression); + } + if (object.accessFilter != null) { + if (typeof object.accessFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilterExpression.accessFilter: object expected"); + message.accessFilter = $root.google.analytics.admin.v1alpha.AccessFilter.fromObject(object.accessFilter); + } + return message; + }; /** - * Calls CreateUserLink. - * @function createUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} request CreateUserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessFilterExpression message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {google.analytics.admin.v1alpha.AccessFilterExpression} message AccessFilterExpression + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.createUserLink = function createUserLink(request, callback) { - return this.rpcCall(createUserLink, $root.google.analytics.admin.v1alpha.CreateUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); - }, "name", { value: "CreateUserLink" }); + AccessFilterExpression.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + object.andGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.toObject(message.andGroup, options); + if (options.oneofs) + object.oneExpression = "andGroup"; + } + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + object.orGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.toObject(message.orGroup, options); + if (options.oneofs) + object.oneExpression = "orGroup"; + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + object.notExpression = $root.google.analytics.admin.v1alpha.AccessFilterExpression.toObject(message.notExpression, options); + if (options.oneofs) + object.oneExpression = "notExpression"; + } + if (message.accessFilter != null && message.hasOwnProperty("accessFilter")) { + object.accessFilter = $root.google.analytics.admin.v1alpha.AccessFilter.toObject(message.accessFilter, options); + if (options.oneofs) + object.oneExpression = "accessFilter"; + } + return object; + }; /** - * Calls CreateUserLink. - * @function createUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessFilterExpression to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression * @instance - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} request CreateUserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessFilterExpression.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccessFilterExpression; + })(); + + v1alpha.AccessFilterExpressionList = (function() { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef BatchCreateUserLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} [response] BatchCreateUserLinksResponse + * Properties of an AccessFilterExpressionList. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessFilterExpressionList + * @property {Array.|null} [expressions] AccessFilterExpressionList expressions */ /** - * Calls BatchCreateUserLinks. - * @function batchCreateUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} request BatchCreateUserLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinksCallback} callback Node-style callback called with the error, if any, and BatchCreateUserLinksResponse - * @returns {undefined} - * @variation 1 + * Constructs a new AccessFilterExpressionList. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessFilterExpressionList. + * @implements IAccessFilterExpressionList + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessFilterExpressionList=} [properties] Properties to set */ - Object.defineProperty(AnalyticsAdminService.prototype.batchCreateUserLinks = function batchCreateUserLinks(request, callback) { - return this.rpcCall(batchCreateUserLinks, $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse, request, callback); - }, "name", { value: "BatchCreateUserLinks" }); + function AccessFilterExpressionList(properties) { + this.expressions = []; + 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]]; + } /** - * Calls BatchCreateUserLinks. - * @function batchCreateUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilterExpressionList expressions. + * @member {Array.} expressions + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList * @instance - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} request BatchCreateUserLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessFilterExpressionList.prototype.expressions = $util.emptyArray; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateUserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink + * Creates a new AccessFilterExpressionList instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilterExpressionList=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessFilterExpressionList} AccessFilterExpressionList instance */ + AccessFilterExpressionList.create = function create(properties) { + return new AccessFilterExpressionList(properties); + }; /** - * Calls UpdateUserLink. - * @function updateUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} request UpdateUserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpressionList.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilterExpressionList} message AccessFilterExpressionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.updateUserLink = function updateUserLink(request, callback) { - return this.rpcCall(updateUserLink, $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); - }, "name", { value: "UpdateUserLink" }); + AccessFilterExpressionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.expressions != null && message.expressions.length) + for (var i = 0; i < message.expressions.length; ++i) + $root.google.analytics.admin.v1alpha.AccessFilterExpression.encode(message.expressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Calls UpdateUserLink. - * @function updateUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} request UpdateUserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilterExpressionList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilterExpressionList} message AccessFilterExpressionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef BatchUpdateUserLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} [response] BatchUpdateUserLinksResponse + * Decodes an AccessFilterExpressionList message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessFilterExpressionList} AccessFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessFilterExpressionList.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.analytics.admin.v1alpha.AccessFilterExpressionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.expressions && message.expressions.length)) + message.expressions = []; + message.expressions.push($root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls BatchUpdateUserLinks. - * @function batchUpdateUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} request BatchUpdateUserLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinksCallback} callback Node-style callback called with the error, if any, and BatchUpdateUserLinksResponse - * @returns {undefined} - * @variation 1 + * Decodes an AccessFilterExpressionList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessFilterExpressionList} AccessFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.batchUpdateUserLinks = function batchUpdateUserLinks(request, callback) { - return this.rpcCall(batchUpdateUserLinks, $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse, request, callback); - }, "name", { value: "BatchUpdateUserLinks" }); + AccessFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls BatchUpdateUserLinks. - * @function batchUpdateUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} request BatchUpdateUserLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessFilterExpressionList message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessFilterExpressionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.expressions != null && message.hasOwnProperty("expressions")) { + if (!Array.isArray(message.expressions)) + return "expressions: array expected"; + for (var i = 0; i < message.expressions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessFilterExpression.verify(message.expressions[i]); + if (error) + return "expressions." + error; + } + } + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteUserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates an AccessFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessFilterExpressionList} AccessFilterExpressionList */ + AccessFilterExpressionList.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessFilterExpressionList) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessFilterExpressionList(); + if (object.expressions) { + if (!Array.isArray(object.expressions)) + throw TypeError(".google.analytics.admin.v1alpha.AccessFilterExpressionList.expressions: array expected"); + message.expressions = []; + for (var i = 0; i < object.expressions.length; ++i) { + if (typeof object.expressions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilterExpressionList.expressions: object expected"); + message.expressions[i] = $root.google.analytics.admin.v1alpha.AccessFilterExpression.fromObject(object.expressions[i]); + } + } + return message; + }; /** - * Calls DeleteUserLink. - * @function deleteUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} request DeleteUserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLinkCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessFilterExpressionList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.AccessFilterExpressionList} message AccessFilterExpressionList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteUserLink = function deleteUserLink(request, callback) { - return this.rpcCall(deleteUserLink, $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteUserLink" }); + AccessFilterExpressionList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.expressions = []; + if (message.expressions && message.expressions.length) { + object.expressions = []; + for (var j = 0; j < message.expressions.length; ++j) + object.expressions[j] = $root.google.analytics.admin.v1alpha.AccessFilterExpression.toObject(message.expressions[j], options); + } + return object; + }; /** - * Calls DeleteUserLink. - * @function deleteUserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessFilterExpressionList to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList * @instance - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} request DeleteUserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessFilterExpressionList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccessFilterExpressionList; + })(); + + v1alpha.AccessFilter = (function() { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef BatchDeleteUserLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Properties of an AccessFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessFilter + * @property {google.analytics.admin.v1alpha.IAccessStringFilter|null} [stringFilter] AccessFilter stringFilter + * @property {google.analytics.admin.v1alpha.IAccessInListFilter|null} [inListFilter] AccessFilter inListFilter + * @property {google.analytics.admin.v1alpha.IAccessNumericFilter|null} [numericFilter] AccessFilter numericFilter + * @property {google.analytics.admin.v1alpha.IAccessBetweenFilter|null} [betweenFilter] AccessFilter betweenFilter + * @property {string|null} [fieldName] AccessFilter fieldName */ /** - * Calls BatchDeleteUserLinks. - * @function batchDeleteUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} request BatchDeleteUserLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinksCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Constructs a new AccessFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessFilter. + * @implements IAccessFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessFilter=} [properties] Properties to set */ - Object.defineProperty(AnalyticsAdminService.prototype.batchDeleteUserLinks = function batchDeleteUserLinks(request, callback) { - return this.rpcCall(batchDeleteUserLinks, $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "BatchDeleteUserLinks" }); + function AccessFilter(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]]; + } /** - * Calls BatchDeleteUserLinks. - * @function batchDeleteUserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilter stringFilter. + * @member {google.analytics.admin.v1alpha.IAccessStringFilter|null|undefined} stringFilter + * @memberof google.analytics.admin.v1alpha.AccessFilter * @instance - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} request BatchDeleteUserLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessFilter.prototype.stringFilter = null; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateFirebaseLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.FirebaseLink} [response] FirebaseLink + * AccessFilter inListFilter. + * @member {google.analytics.admin.v1alpha.IAccessInListFilter|null|undefined} inListFilter + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @instance */ + AccessFilter.prototype.inListFilter = null; /** - * Calls CreateFirebaseLink. - * @function createFirebaseLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilter numericFilter. + * @member {google.analytics.admin.v1alpha.IAccessNumericFilter|null|undefined} numericFilter + * @memberof google.analytics.admin.v1alpha.AccessFilter * @instance - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLinkCallback} callback Node-style callback called with the error, if any, and FirebaseLink - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.createFirebaseLink = function createFirebaseLink(request, callback) { - return this.rpcCall(createFirebaseLink, $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, $root.google.analytics.admin.v1alpha.FirebaseLink, request, callback); - }, "name", { value: "CreateFirebaseLink" }); + AccessFilter.prototype.numericFilter = null; /** - * Calls CreateFirebaseLink. - * @function createFirebaseLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilter betweenFilter. + * @member {google.analytics.admin.v1alpha.IAccessBetweenFilter|null|undefined} betweenFilter + * @memberof google.analytics.admin.v1alpha.AccessFilter * @instance - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessFilter.prototype.betweenFilter = null; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteFirebaseLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * AccessFilter fieldName. + * @member {string} fieldName + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @instance */ + AccessFilter.prototype.fieldName = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls DeleteFirebaseLink. - * @function deleteFirebaseLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessFilter oneFilter. + * @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter + * @memberof google.analytics.admin.v1alpha.AccessFilter * @instance - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLinkCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteFirebaseLink = function deleteFirebaseLink(request, callback) { - return this.rpcCall(deleteFirebaseLink, $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteFirebaseLink" }); + Object.defineProperty(AccessFilter.prototype, "oneFilter", { + get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Calls DeleteFirebaseLink. - * @function deleteFirebaseLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new AccessFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessFilter} AccessFilter instance */ + AccessFilter.create = function create(properties) { + return new AccessFilter(properties); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListFirebaseLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} [response] ListFirebaseLinksResponse + * Encodes the specified AccessFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilter} message AccessFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) + $root.google.analytics.admin.v1alpha.AccessStringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) + $root.google.analytics.admin.v1alpha.AccessInListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.numericFilter != null && Object.hasOwnProperty.call(message, "numericFilter")) + $root.google.analytics.admin.v1alpha.AccessNumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter")) + $root.google.analytics.admin.v1alpha.AccessBetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; /** - * Calls ListFirebaseLinks. - * @function listFirebaseLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinksCallback} callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessFilter} message AccessFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.listFirebaseLinks = function listFirebaseLinks(request, callback) { - return this.rpcCall(listFirebaseLinks, $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse, request, callback); - }, "name", { value: "ListFirebaseLinks" }); + AccessFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListFirebaseLinks. - * @function listFirebaseLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes an AccessFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessFilter} AccessFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessFilter.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.analytics.admin.v1alpha.AccessFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.stringFilter = $root.google.analytics.admin.v1alpha.AccessStringFilter.decode(reader, reader.uint32()); + break; + case 3: + message.inListFilter = $root.google.analytics.admin.v1alpha.AccessInListFilter.decode(reader, reader.uint32()); + break; + case 4: + message.numericFilter = $root.google.analytics.admin.v1alpha.AccessNumericFilter.decode(reader, reader.uint32()); + break; + case 5: + message.betweenFilter = $root.google.analytics.admin.v1alpha.AccessBetweenFilter.decode(reader, reader.uint32()); + break; + case 1: + message.fieldName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetGlobalSiteTagCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.GlobalSiteTag} [response] GlobalSiteTag + * Decodes an AccessFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessFilter} AccessFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetGlobalSiteTag. - * @function getGlobalSiteTag - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} request GetGlobalSiteTagRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTagCallback} callback Node-style callback called with the error, if any, and GlobalSiteTag - * @returns {undefined} - * @variation 1 + * Verifies an AccessFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(AnalyticsAdminService.prototype.getGlobalSiteTag = function getGlobalSiteTag(request, callback) { - return this.rpcCall(getGlobalSiteTag, $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, $root.google.analytics.admin.v1alpha.GlobalSiteTag, request, callback); - }, "name", { value: "GetGlobalSiteTag" }); + AccessFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessStringFilter.verify(message.stringFilter); + if (error) + return "stringFilter." + error; + } + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessInListFilter.verify(message.inListFilter); + if (error) + return "inListFilter." + error; + } + } + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessNumericFilter.verify(message.numericFilter); + if (error) + return "numericFilter." + error; + } + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessBetweenFilter.verify(message.betweenFilter); + if (error) + return "betweenFilter." + error; + } + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; + return null; + }; /** - * Calls GetGlobalSiteTag. - * @function getGlobalSiteTag - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} request GetGlobalSiteTagRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates an AccessFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessFilter} AccessFilter */ + AccessFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessFilter(); + if (object.stringFilter != null) { + if (typeof object.stringFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilter.stringFilter: object expected"); + message.stringFilter = $root.google.analytics.admin.v1alpha.AccessStringFilter.fromObject(object.stringFilter); + } + if (object.inListFilter != null) { + if (typeof object.inListFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilter.inListFilter: object expected"); + message.inListFilter = $root.google.analytics.admin.v1alpha.AccessInListFilter.fromObject(object.inListFilter); + } + if (object.numericFilter != null) { + if (typeof object.numericFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilter.numericFilter: object expected"); + message.numericFilter = $root.google.analytics.admin.v1alpha.AccessNumericFilter.fromObject(object.numericFilter); + } + if (object.betweenFilter != null) { + if (typeof object.betweenFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessFilter.betweenFilter: object expected"); + message.betweenFilter = $root.google.analytics.admin.v1alpha.AccessBetweenFilter.fromObject(object.betweenFilter); + } + if (object.fieldName != null) + message.fieldName = String(object.fieldName); + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateGoogleAdsLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} [response] GoogleAdsLink + * Creates a plain object from an AccessFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {google.analytics.admin.v1alpha.AccessFilter} message AccessFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + AccessFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.fieldName = ""; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + object.stringFilter = $root.google.analytics.admin.v1alpha.AccessStringFilter.toObject(message.stringFilter, options); + if (options.oneofs) + object.oneFilter = "stringFilter"; + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + object.inListFilter = $root.google.analytics.admin.v1alpha.AccessInListFilter.toObject(message.inListFilter, options); + if (options.oneofs) + object.oneFilter = "inListFilter"; + } + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + object.numericFilter = $root.google.analytics.admin.v1alpha.AccessNumericFilter.toObject(message.numericFilter, options); + if (options.oneofs) + object.oneFilter = "numericFilter"; + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + object.betweenFilter = $root.google.analytics.admin.v1alpha.AccessBetweenFilter.toObject(message.betweenFilter, options); + if (options.oneofs) + object.oneFilter = "betweenFilter"; + } + return object; + }; /** - * Calls CreateGoogleAdsLink. - * @function createGoogleAdsLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessFilter * @instance - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(AnalyticsAdminService.prototype.createGoogleAdsLink = function createGoogleAdsLink(request, callback) { - return this.rpcCall(createGoogleAdsLink, $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, $root.google.analytics.admin.v1alpha.GoogleAdsLink, request, callback); - }, "name", { value: "CreateGoogleAdsLink" }); + AccessFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls CreateGoogleAdsLink. - * @function createGoogleAdsLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return AccessFilter; + })(); + + v1alpha.AccessStringFilter = (function() { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateGoogleAdsLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} [response] GoogleAdsLink + * Properties of an AccessStringFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessStringFilter + * @property {google.analytics.admin.v1alpha.AccessStringFilter.MatchType|null} [matchType] AccessStringFilter matchType + * @property {string|null} [value] AccessStringFilter value + * @property {boolean|null} [caseSensitive] AccessStringFilter caseSensitive */ /** - * Calls UpdateGoogleAdsLink. - * @function updateGoogleAdsLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink - * @returns {undefined} - * @variation 1 + * Constructs a new AccessStringFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessStringFilter. + * @implements IAccessStringFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessStringFilter=} [properties] Properties to set */ - Object.defineProperty(AnalyticsAdminService.prototype.updateGoogleAdsLink = function updateGoogleAdsLink(request, callback) { - return this.rpcCall(updateGoogleAdsLink, $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, $root.google.analytics.admin.v1alpha.GoogleAdsLink, request, callback); - }, "name", { value: "UpdateGoogleAdsLink" }); + function AccessStringFilter(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]]; + } /** - * Calls UpdateGoogleAdsLink. - * @function updateGoogleAdsLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessStringFilter matchType. + * @member {google.analytics.admin.v1alpha.AccessStringFilter.MatchType} matchType + * @memberof google.analytics.admin.v1alpha.AccessStringFilter * @instance - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessStringFilter.prototype.matchType = 0; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteGoogleAdsLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * AccessStringFilter value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @instance */ + AccessStringFilter.prototype.value = ""; /** - * Calls DeleteGoogleAdsLink. - * @function deleteGoogleAdsLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessStringFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AccessStringFilter * @instance - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteGoogleAdsLink = function deleteGoogleAdsLink(request, callback) { - return this.rpcCall(deleteGoogleAdsLink, $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteGoogleAdsLink" }); + AccessStringFilter.prototype.caseSensitive = false; /** - * Calls DeleteGoogleAdsLink. - * @function deleteGoogleAdsLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new AccessStringFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessStringFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessStringFilter} AccessStringFilter instance */ + AccessStringFilter.create = function create(properties) { + return new AccessStringFilter(properties); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListGoogleAdsLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} [response] ListGoogleAdsLinksResponse + * Encodes the specified AccessStringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessStringFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessStringFilter} message AccessStringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessStringFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.caseSensitive); + return writer; + }; /** - * Calls ListGoogleAdsLinks. - * @function listGoogleAdsLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinksCallback} callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessStringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessStringFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessStringFilter} message AccessStringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.listGoogleAdsLinks = function listGoogleAdsLinks(request, callback) { - return this.rpcCall(listGoogleAdsLinks, $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse, request, callback); - }, "name", { value: "ListGoogleAdsLinks" }); + AccessStringFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListGoogleAdsLinks. - * @function listGoogleAdsLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes an AccessStringFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessStringFilter} AccessStringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessStringFilter.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.analytics.admin.v1alpha.AccessStringFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.matchType = reader.int32(); + break; + case 2: + message.value = reader.string(); + break; + case 3: + message.caseSensitive = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetDataSharingSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DataSharingSettings} [response] DataSharingSettings + * Decodes an AccessStringFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessStringFilter} AccessStringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessStringFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetDataSharingSettings. - * @function getDataSharingSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettingsCallback} callback Node-style callback called with the error, if any, and DataSharingSettings - * @returns {undefined} - * @variation 1 + * Verifies an AccessStringFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(AnalyticsAdminService.prototype.getDataSharingSettings = function getDataSharingSettings(request, callback) { - return this.rpcCall(getDataSharingSettings, $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, $root.google.analytics.admin.v1alpha.DataSharingSettings, request, callback); - }, "name", { value: "GetDataSharingSettings" }); + AccessStringFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; /** - * Calls GetDataSharingSettings. - * @function getDataSharingSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates an AccessStringFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessStringFilter} AccessStringFilter */ + AccessStringFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessStringFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessStringFilter(); + switch (object.matchType) { + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "EXACT": + case 1: + message.matchType = 1; + break; + case "BEGINS_WITH": + case 2: + message.matchType = 2; + break; + case "ENDS_WITH": + case 3: + message.matchType = 3; + break; + case "CONTAINS": + case 4: + message.matchType = 4; + break; + case "FULL_REGEXP": + case 5: + message.matchType = 5; + break; + case "PARTIAL_REGEXP": + case 6: + message.matchType = 6; + break; + } + if (object.value != null) + message.value = String(object.value); + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetMeasurementProtocolSecretCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret + * Creates a plain object from an AccessStringFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {google.analytics.admin.v1alpha.AccessStringFilter} message AccessStringFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + AccessStringFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.value = ""; + object.caseSensitive = false; + } + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessStringFilter.MatchType[message.matchType] : message.matchType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; /** - * Calls GetMeasurementProtocolSecret. - * @function getMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessStringFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessStringFilter * @instance - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(AnalyticsAdminService.prototype.getMeasurementProtocolSecret = function getMeasurementProtocolSecret(request, callback) { - return this.rpcCall(getMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); - }, "name", { value: "GetMeasurementProtocolSecret" }); + AccessStringFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls GetMeasurementProtocolSecret. - * @function getMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * MatchType enum. + * @name google.analytics.admin.v1alpha.AccessStringFilter.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} EXACT=1 EXACT value + * @property {number} BEGINS_WITH=2 BEGINS_WITH value + * @property {number} ENDS_WITH=3 ENDS_WITH value + * @property {number} CONTAINS=4 CONTAINS value + * @property {number} FULL_REGEXP=5 FULL_REGEXP value + * @property {number} PARTIAL_REGEXP=6 PARTIAL_REGEXP value + */ + AccessStringFilter.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXACT"] = 1; + values[valuesById[2] = "BEGINS_WITH"] = 2; + values[valuesById[3] = "ENDS_WITH"] = 3; + values[valuesById[4] = "CONTAINS"] = 4; + values[valuesById[5] = "FULL_REGEXP"] = 5; + values[valuesById[6] = "PARTIAL_REGEXP"] = 6; + return values; + })(); + + return AccessStringFilter; + })(); + + v1alpha.AccessInListFilter = (function() { + + /** + * Properties of an AccessInListFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessInListFilter + * @property {Array.|null} [values] AccessInListFilter values + * @property {boolean|null} [caseSensitive] AccessInListFilter caseSensitive */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListMeasurementProtocolSecretsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} [response] ListMeasurementProtocolSecretsResponse + * Constructs a new AccessInListFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessInListFilter. + * @implements IAccessInListFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessInListFilter=} [properties] Properties to set */ + function AccessInListFilter(properties) { + this.values = []; + 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]]; + } /** - * Calls ListMeasurementProtocolSecrets. - * @function listMeasurementProtocolSecrets - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessInListFilter values. + * @member {Array.} values + * @memberof google.analytics.admin.v1alpha.AccessInListFilter * @instance - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback} callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.listMeasurementProtocolSecrets = function listMeasurementProtocolSecrets(request, callback) { - return this.rpcCall(listMeasurementProtocolSecrets, $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse, request, callback); - }, "name", { value: "ListMeasurementProtocolSecrets" }); + AccessInListFilter.prototype.values = $util.emptyArray; /** - * Calls ListMeasurementProtocolSecrets. - * @function listMeasurementProtocolSecrets - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessInListFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AccessInListFilter * @instance - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessInListFilter.prototype.caseSensitive = false; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateMeasurementProtocolSecretCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret + * Creates a new AccessInListFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessInListFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessInListFilter} AccessInListFilter instance */ + AccessInListFilter.create = function create(properties) { + return new AccessInListFilter(properties); + }; /** - * Calls CreateMeasurementProtocolSecret. - * @function createMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessInListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessInListFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessInListFilter} message AccessInListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.createMeasurementProtocolSecret = function createMeasurementProtocolSecret(request, callback) { - return this.rpcCall(createMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); - }, "name", { value: "CreateMeasurementProtocolSecret" }); + AccessInListFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.caseSensitive); + return writer; + }; /** - * Calls CreateMeasurementProtocolSecret. - * @function createMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessInListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessInListFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessInListFilter} message AccessInListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessInListFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteMeasurementProtocolSecretCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Decodes an AccessInListFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessInListFilter} AccessInListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessInListFilter.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.analytics.admin.v1alpha.AccessInListFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + case 2: + message.caseSensitive = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteMeasurementProtocolSecret. - * @function deleteMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Decodes an AccessInListFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessInListFilter} AccessInListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteMeasurementProtocolSecret = function deleteMeasurementProtocolSecret(request, callback) { - return this.rpcCall(deleteMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteMeasurementProtocolSecret" }); + AccessInListFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteMeasurementProtocolSecret. - * @function deleteMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessInListFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessInListFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateMeasurementProtocolSecretCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret + * Creates an AccessInListFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessInListFilter} AccessInListFilter */ + AccessInListFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessInListFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessInListFilter(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.analytics.admin.v1alpha.AccessInListFilter.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; /** - * Calls UpdateMeasurementProtocolSecret. - * @function updateMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessInListFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {google.analytics.admin.v1alpha.AccessInListFilter} message AccessInListFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.updateMeasurementProtocolSecret = function updateMeasurementProtocolSecret(request, callback) { - return this.rpcCall(updateMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); - }, "name", { value: "UpdateMeasurementProtocolSecret" }); + AccessInListFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) + object.caseSensitive = false; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; /** - * Calls UpdateMeasurementProtocolSecret. - * @function updateMeasurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessInListFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessInListFilter * @instance - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessInListFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef AcknowledgeUserDataCollectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} [response] AcknowledgeUserDataCollectionResponse - */ + return AccessInListFilter; + })(); - /** - * Calls AcknowledgeUserDataCollection. - * @function acknowledgeUserDataCollection - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback} callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.acknowledgeUserDataCollection = function acknowledgeUserDataCollection(request, callback) { - return this.rpcCall(acknowledgeUserDataCollection, $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse, request, callback); - }, "name", { value: "AcknowledgeUserDataCollection" }); + v1alpha.AccessNumericFilter = (function() { /** - * Calls AcknowledgeUserDataCollection. - * @function acknowledgeUserDataCollection - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of an AccessNumericFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessNumericFilter + * @property {google.analytics.admin.v1alpha.AccessNumericFilter.Operation|null} [operation] AccessNumericFilter operation + * @property {google.analytics.admin.v1alpha.INumericValue|null} [value] AccessNumericFilter value */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef SearchChangeHistoryEventsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} [response] SearchChangeHistoryEventsResponse + * Constructs a new AccessNumericFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessNumericFilter. + * @implements IAccessNumericFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessNumericFilter=} [properties] Properties to set */ + function AccessNumericFilter(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]]; + } /** - * Calls SearchChangeHistoryEvents. - * @function searchChangeHistoryEvents - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessNumericFilter operation. + * @member {google.analytics.admin.v1alpha.AccessNumericFilter.Operation} operation + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter * @instance - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback} callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.searchChangeHistoryEvents = function searchChangeHistoryEvents(request, callback) { - return this.rpcCall(searchChangeHistoryEvents, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, request, callback); - }, "name", { value: "SearchChangeHistoryEvents" }); + AccessNumericFilter.prototype.operation = 0; /** - * Calls SearchChangeHistoryEvents. - * @function searchChangeHistoryEvents - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessNumericFilter value. + * @member {google.analytics.admin.v1alpha.INumericValue|null|undefined} value + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter * @instance - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessNumericFilter.prototype.value = null; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetGoogleSignalsSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} [response] GoogleSignalsSettings + * Creates a new AccessNumericFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessNumericFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessNumericFilter} AccessNumericFilter instance */ + AccessNumericFilter.create = function create(properties) { + return new AccessNumericFilter(properties); + }; /** - * Calls GetGoogleSignalsSettings. - * @function getGoogleSignalsSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} request GetGoogleSignalsSettingsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettingsCallback} callback Node-style callback called with the error, if any, and GoogleSignalsSettings - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessNumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessNumericFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessNumericFilter} message AccessNumericFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.getGoogleSignalsSettings = function getGoogleSignalsSettings(request, callback) { - return this.rpcCall(getGoogleSignalsSettings, $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, $root.google.analytics.admin.v1alpha.GoogleSignalsSettings, request, callback); - }, "name", { value: "GetGoogleSignalsSettings" }); + AccessNumericFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operation); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.analytics.admin.v1alpha.NumericValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls GetGoogleSignalsSettings. - * @function getGoogleSignalsSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} request GetGoogleSignalsSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessNumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessNumericFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessNumericFilter} message AccessNumericFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessNumericFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateGoogleSignalsSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} [response] GoogleSignalsSettings + * Decodes an AccessNumericFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessNumericFilter} AccessNumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessNumericFilter.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.analytics.admin.v1alpha.AccessNumericFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operation = reader.int32(); + break; + case 2: + message.value = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UpdateGoogleSignalsSettings. - * @function updateGoogleSignalsSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} request UpdateGoogleSignalsSettingsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettingsCallback} callback Node-style callback called with the error, if any, and GoogleSignalsSettings - * @returns {undefined} - * @variation 1 + * Decodes an AccessNumericFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessNumericFilter} AccessNumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.updateGoogleSignalsSettings = function updateGoogleSignalsSettings(request, callback) { - return this.rpcCall(updateGoogleSignalsSettings, $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, $root.google.analytics.admin.v1alpha.GoogleSignalsSettings, request, callback); - }, "name", { value: "UpdateGoogleSignalsSettings" }); + AccessNumericFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateGoogleSignalsSettings. - * @function updateGoogleSignalsSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} request UpdateGoogleSignalsSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessNumericFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessNumericFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operation != null && message.hasOwnProperty("operation")) + switch (message.operation) { + default: + return "operation: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.analytics.admin.v1alpha.NumericValue.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateConversionEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ConversionEvent} [response] ConversionEvent + * Creates an AccessNumericFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessNumericFilter} AccessNumericFilter */ + AccessNumericFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessNumericFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessNumericFilter(); + switch (object.operation) { + case "OPERATION_UNSPECIFIED": + case 0: + message.operation = 0; + break; + case "EQUAL": + case 1: + message.operation = 1; + break; + case "LESS_THAN": + case 2: + message.operation = 2; + break; + case "LESS_THAN_OR_EQUAL": + case 3: + message.operation = 3; + break; + case "GREATER_THAN": + case 4: + message.operation = 4; + break; + case "GREATER_THAN_OR_EQUAL": + case 5: + message.operation = 5; + break; + } + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessNumericFilter.value: object expected"); + message.value = $root.google.analytics.admin.v1alpha.NumericValue.fromObject(object.value); + } + return message; + }; /** - * Calls CreateConversionEvent. - * @function createConversionEvent - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessNumericFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {google.analytics.admin.v1alpha.AccessNumericFilter} message AccessNumericFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.createConversionEvent = function createConversionEvent(request, callback) { - return this.rpcCall(createConversionEvent, $root.google.analytics.admin.v1alpha.CreateConversionEventRequest, $root.google.analytics.admin.v1alpha.ConversionEvent, request, callback); - }, "name", { value: "CreateConversionEvent" }); + AccessNumericFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.operation = options.enums === String ? "OPERATION_UNSPECIFIED" : 0; + object.value = null; + } + if (message.operation != null && message.hasOwnProperty("operation")) + object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessNumericFilter.Operation[message.operation] : message.operation; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.analytics.admin.v1alpha.NumericValue.toObject(message.value, options); + return object; + }; /** - * Calls CreateConversionEvent. - * @function createConversionEvent - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessNumericFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter * @instance - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessNumericFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetConversionEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ConversionEvent} [response] ConversionEvent - */ + * Operation enum. + * @name google.analytics.admin.v1alpha.AccessNumericFilter.Operation + * @enum {number} + * @property {number} OPERATION_UNSPECIFIED=0 OPERATION_UNSPECIFIED value + * @property {number} EQUAL=1 EQUAL value + * @property {number} LESS_THAN=2 LESS_THAN value + * @property {number} LESS_THAN_OR_EQUAL=3 LESS_THAN_OR_EQUAL value + * @property {number} GREATER_THAN=4 GREATER_THAN value + * @property {number} GREATER_THAN_OR_EQUAL=5 GREATER_THAN_OR_EQUAL value + */ + AccessNumericFilter.Operation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OPERATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "EQUAL"] = 1; + values[valuesById[2] = "LESS_THAN"] = 2; + values[valuesById[3] = "LESS_THAN_OR_EQUAL"] = 3; + values[valuesById[4] = "GREATER_THAN"] = 4; + values[valuesById[5] = "GREATER_THAN_OR_EQUAL"] = 5; + return values; + })(); - /** - * Calls GetConversionEvent. - * @function getConversionEvent - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} request GetConversionEventRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.getConversionEvent = function getConversionEvent(request, callback) { - return this.rpcCall(getConversionEvent, $root.google.analytics.admin.v1alpha.GetConversionEventRequest, $root.google.analytics.admin.v1alpha.ConversionEvent, request, callback); - }, "name", { value: "GetConversionEvent" }); + return AccessNumericFilter; + })(); + + v1alpha.AccessBetweenFilter = (function() { /** - * Calls GetConversionEvent. - * @function getConversionEvent - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} request GetConversionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of an AccessBetweenFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessBetweenFilter + * @property {google.analytics.admin.v1alpha.INumericValue|null} [fromValue] AccessBetweenFilter fromValue + * @property {google.analytics.admin.v1alpha.INumericValue|null} [toValue] AccessBetweenFilter toValue */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteConversionEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Constructs a new AccessBetweenFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessBetweenFilter. + * @implements IAccessBetweenFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessBetweenFilter=} [properties] Properties to set */ + function AccessBetweenFilter(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]]; + } /** - * Calls DeleteConversionEvent. - * @function deleteConversionEvent - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessBetweenFilter fromValue. + * @member {google.analytics.admin.v1alpha.INumericValue|null|undefined} fromValue + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter * @instance - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEventCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteConversionEvent = function deleteConversionEvent(request, callback) { - return this.rpcCall(deleteConversionEvent, $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteConversionEvent" }); + AccessBetweenFilter.prototype.fromValue = null; /** - * Calls DeleteConversionEvent. - * @function deleteConversionEvent - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessBetweenFilter toValue. + * @member {google.analytics.admin.v1alpha.INumericValue|null|undefined} toValue + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter * @instance - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessBetweenFilter.prototype.toValue = null; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListConversionEventsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} [response] ListConversionEventsResponse + * Creates a new AccessBetweenFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessBetweenFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessBetweenFilter} AccessBetweenFilter instance */ + AccessBetweenFilter.create = function create(properties) { + return new AccessBetweenFilter(properties); + }; /** - * Calls ListConversionEvents. - * @function listConversionEvents - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEventsCallback} callback Node-style callback called with the error, if any, and ListConversionEventsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessBetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessBetweenFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessBetweenFilter} message AccessBetweenFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.listConversionEvents = function listConversionEvents(request, callback) { - return this.rpcCall(listConversionEvents, $root.google.analytics.admin.v1alpha.ListConversionEventsRequest, $root.google.analytics.admin.v1alpha.ListConversionEventsResponse, request, callback); - }, "name", { value: "ListConversionEvents" }); + AccessBetweenFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fromValue != null && Object.hasOwnProperty.call(message, "fromValue")) + $root.google.analytics.admin.v1alpha.NumericValue.encode(message.fromValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.toValue != null && Object.hasOwnProperty.call(message, "toValue")) + $root.google.analytics.admin.v1alpha.NumericValue.encode(message.toValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls ListConversionEvents. - * @function listConversionEvents - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessBetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessBetweenFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.IAccessBetweenFilter} message AccessBetweenFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessBetweenFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetDisplayVideo360AdvertiserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink + * Decodes an AccessBetweenFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessBetweenFilter} AccessBetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessBetweenFilter.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.analytics.admin.v1alpha.AccessBetweenFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromValue = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); + break; + case 2: + message.toValue = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GetDisplayVideo360AdvertiserLink. - * @function getDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} request GetDisplayVideo360AdvertiserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink - * @returns {undefined} - * @variation 1 + * Decodes an AccessBetweenFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessBetweenFilter} AccessBetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.getDisplayVideo360AdvertiserLink = function getDisplayVideo360AdvertiserLink(request, callback) { - return this.rpcCall(getDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); - }, "name", { value: "GetDisplayVideo360AdvertiserLink" }); + AccessBetweenFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetDisplayVideo360AdvertiserLink. - * @function getDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} request GetDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessBetweenFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessBetweenFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fromValue != null && message.hasOwnProperty("fromValue")) { + var error = $root.google.analytics.admin.v1alpha.NumericValue.verify(message.fromValue); + if (error) + return "fromValue." + error; + } + if (message.toValue != null && message.hasOwnProperty("toValue")) { + var error = $root.google.analytics.admin.v1alpha.NumericValue.verify(message.toValue); + if (error) + return "toValue." + error; + } + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListDisplayVideo360AdvertiserLinksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} [response] ListDisplayVideo360AdvertiserLinksResponse + * Creates an AccessBetweenFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessBetweenFilter} AccessBetweenFilter */ + AccessBetweenFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessBetweenFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessBetweenFilter(); + if (object.fromValue != null) { + if (typeof object.fromValue !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessBetweenFilter.fromValue: object expected"); + message.fromValue = $root.google.analytics.admin.v1alpha.NumericValue.fromObject(object.fromValue); + } + if (object.toValue != null) { + if (typeof object.toValue !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessBetweenFilter.toValue: object expected"); + message.toValue = $root.google.analytics.admin.v1alpha.NumericValue.fromObject(object.toValue); + } + return message; + }; /** - * Calls ListDisplayVideo360AdvertiserLinks. - * @function listDisplayVideo360AdvertiserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} request ListDisplayVideo360AdvertiserLinksRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinksCallback} callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinksResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessBetweenFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.AccessBetweenFilter} message AccessBetweenFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.listDisplayVideo360AdvertiserLinks = function listDisplayVideo360AdvertiserLinks(request, callback) { - return this.rpcCall(listDisplayVideo360AdvertiserLinks, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse, request, callback); - }, "name", { value: "ListDisplayVideo360AdvertiserLinks" }); + AccessBetweenFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fromValue = null; + object.toValue = null; + } + if (message.fromValue != null && message.hasOwnProperty("fromValue")) + object.fromValue = $root.google.analytics.admin.v1alpha.NumericValue.toObject(message.fromValue, options); + if (message.toValue != null && message.hasOwnProperty("toValue")) + object.toValue = $root.google.analytics.admin.v1alpha.NumericValue.toObject(message.toValue, options); + return object; + }; /** - * Calls ListDisplayVideo360AdvertiserLinks. - * @function listDisplayVideo360AdvertiserLinks - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessBetweenFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter * @instance - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} request ListDisplayVideo360AdvertiserLinksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessBetweenFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateDisplayVideo360AdvertiserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink - */ + return AccessBetweenFilter; + })(); - /** - * Calls CreateDisplayVideo360AdvertiserLink. - * @function createDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} request CreateDisplayVideo360AdvertiserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.createDisplayVideo360AdvertiserLink = function createDisplayVideo360AdvertiserLink(request, callback) { - return this.rpcCall(createDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); - }, "name", { value: "CreateDisplayVideo360AdvertiserLink" }); + v1alpha.NumericValue = (function() { /** - * Calls CreateDisplayVideo360AdvertiserLink. - * @function createDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} request CreateDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a NumericValue. + * @memberof google.analytics.admin.v1alpha + * @interface INumericValue + * @property {number|Long|null} [int64Value] NumericValue int64Value + * @property {number|null} [doubleValue] NumericValue doubleValue */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteDisplayVideo360AdvertiserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Constructs a new NumericValue. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a NumericValue. + * @implements INumericValue + * @constructor + * @param {google.analytics.admin.v1alpha.INumericValue=} [properties] Properties to set */ + function NumericValue(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]]; + } /** - * Calls DeleteDisplayVideo360AdvertiserLink. - * @function deleteDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * NumericValue int64Value. + * @member {number|Long|null|undefined} int64Value + * @memberof google.analytics.admin.v1alpha.NumericValue * @instance - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteDisplayVideo360AdvertiserLink = function deleteDisplayVideo360AdvertiserLink(request, callback) { - return this.rpcCall(deleteDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteDisplayVideo360AdvertiserLink" }); + NumericValue.prototype.int64Value = null; /** - * Calls DeleteDisplayVideo360AdvertiserLink. - * @function deleteDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * NumericValue doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.analytics.admin.v1alpha.NumericValue * @instance - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NumericValue.prototype.doubleValue = null; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateDisplayVideo360AdvertiserLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls UpdateDisplayVideo360AdvertiserLink. - * @function updateDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * NumericValue oneValue. + * @member {"int64Value"|"doubleValue"|undefined} oneValue + * @memberof google.analytics.admin.v1alpha.NumericValue * @instance - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.updateDisplayVideo360AdvertiserLink = function updateDisplayVideo360AdvertiserLink(request, callback) { - return this.rpcCall(updateDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); - }, "name", { value: "UpdateDisplayVideo360AdvertiserLink" }); + Object.defineProperty(NumericValue.prototype, "oneValue", { + get: $util.oneOfGetter($oneOfFields = ["int64Value", "doubleValue"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Calls UpdateDisplayVideo360AdvertiserLink. - * @function updateDisplayVideo360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new NumericValue instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.INumericValue=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.NumericValue} NumericValue instance */ + NumericValue.create = function create(properties) { + return new NumericValue(properties); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetDisplayVideo360AdvertiserLinkProposalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal + * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.NumericValue.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.INumericValue} message NumericValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + NumericValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.int64Value); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + return writer; + }; /** - * Calls GetDisplayVideo360AdvertiserLinkProposal. - * @function getDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal - * @returns {undefined} - * @variation 1 + * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.NumericValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.INumericValue} message NumericValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.getDisplayVideo360AdvertiserLinkProposal = function getDisplayVideo360AdvertiserLinkProposal(request, callback) { - return this.rpcCall(getDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); - }, "name", { value: "GetDisplayVideo360AdvertiserLinkProposal" }); + NumericValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls GetDisplayVideo360AdvertiserLinkProposal. - * @function getDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a NumericValue message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.NumericValue} NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NumericValue.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.analytics.admin.v1alpha.NumericValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.int64Value = reader.int64(); + break; + case 2: + message.doubleValue = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListDisplayVideo360AdvertiserLinkProposalsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} [response] ListDisplayVideo360AdvertiserLinkProposalsResponse + * Decodes a NumericValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.NumericValue} NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NumericValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListDisplayVideo360AdvertiserLinkProposals. - * @function listDisplayVideo360AdvertiserLinkProposals - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposalsCallback} callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinkProposalsResponse - * @returns {undefined} - * @variation 1 + * Verifies a NumericValue message. + * @function verify + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(AnalyticsAdminService.prototype.listDisplayVideo360AdvertiserLinkProposals = function listDisplayVideo360AdvertiserLinkProposals(request, callback) { - return this.rpcCall(listDisplayVideo360AdvertiserLinkProposals, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse, request, callback); - }, "name", { value: "ListDisplayVideo360AdvertiserLinkProposals" }); + NumericValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + properties.oneValue = 1; + if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) + return "int64Value: integer|Long expected"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.oneValue === 1) + return "oneValue: multiple values"; + properties.oneValue = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + return null; + }; /** - * Calls ListDisplayVideo360AdvertiserLinkProposals. - * @function listDisplayVideo360AdvertiserLinkProposals - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.NumericValue} NumericValue */ + NumericValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.NumericValue) + return object; + var message = new $root.google.analytics.admin.v1alpha.NumericValue(); + if (object.int64Value != null) + if ($util.Long) + (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; + else if (typeof object.int64Value === "string") + message.int64Value = parseInt(object.int64Value, 10); + else if (typeof object.int64Value === "number") + message.int64Value = object.int64Value; + else if (typeof object.int64Value === "object") + message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + return message; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateDisplayVideo360AdvertiserLinkProposalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal + * Creates a plain object from a NumericValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.NumericValue} message NumericValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + NumericValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + if (typeof message.int64Value === "number") + object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; + else + object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; + if (options.oneofs) + object.oneValue = "int64Value"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.oneValue = "doubleValue"; + } + return object; + }; /** - * Calls CreateDisplayVideo360AdvertiserLinkProposal. - * @function createDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this NumericValue to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.NumericValue * @instance - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(AnalyticsAdminService.prototype.createDisplayVideo360AdvertiserLinkProposal = function createDisplayVideo360AdvertiserLinkProposal(request, callback) { - return this.rpcCall(createDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); - }, "name", { value: "CreateDisplayVideo360AdvertiserLinkProposal" }); + NumericValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls CreateDisplayVideo360AdvertiserLinkProposal. - * @function createDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return NumericValue; + })(); + + v1alpha.AccessOrderBy = (function() { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteDisplayVideo360AdvertiserLinkProposalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Properties of an AccessOrderBy. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessOrderBy + * @property {google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy|null} [metric] AccessOrderBy metric + * @property {google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy|null} [dimension] AccessOrderBy dimension + * @property {boolean|null} [desc] AccessOrderBy desc */ /** - * Calls DeleteDisplayVideo360AdvertiserLinkProposal. - * @function deleteDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Constructs a new AccessOrderBy. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessOrderBy. + * @implements IAccessOrderBy + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessOrderBy=} [properties] Properties to set */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteDisplayVideo360AdvertiserLinkProposal = function deleteDisplayVideo360AdvertiserLinkProposal(request, callback) { - return this.rpcCall(deleteDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteDisplayVideo360AdvertiserLinkProposal" }); + function AccessOrderBy(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]]; + } /** - * Calls DeleteDisplayVideo360AdvertiserLinkProposal. - * @function deleteDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessOrderBy metric. + * @member {google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy|null|undefined} metric + * @memberof google.analytics.admin.v1alpha.AccessOrderBy * @instance - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessOrderBy.prototype.metric = null; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ApproveDisplayVideo360AdvertiserLinkProposalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} [response] ApproveDisplayVideo360AdvertiserLinkProposalResponse + * AccessOrderBy dimension. + * @member {google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy|null|undefined} dimension + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @instance */ + AccessOrderBy.prototype.dimension = null; /** - * Calls ApproveDisplayVideo360AdvertiserLinkProposal. - * @function approveDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessOrderBy desc. + * @member {boolean} desc + * @memberof google.analytics.admin.v1alpha.AccessOrderBy * @instance - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and ApproveDisplayVideo360AdvertiserLinkProposalResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AnalyticsAdminService.prototype.approveDisplayVideo360AdvertiserLinkProposal = function approveDisplayVideo360AdvertiserLinkProposal(request, callback) { - return this.rpcCall(approveDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse, request, callback); - }, "name", { value: "ApproveDisplayVideo360AdvertiserLinkProposal" }); + AccessOrderBy.prototype.desc = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls ApproveDisplayVideo360AdvertiserLinkProposal. - * @function approveDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessOrderBy oneOrderBy. + * @member {"metric"|"dimension"|undefined} oneOrderBy + * @memberof google.analytics.admin.v1alpha.AccessOrderBy * @instance - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + Object.defineProperty(AccessOrderBy.prototype, "oneOrderBy", { + get: $util.oneOfGetter($oneOfFields = ["metric", "dimension"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CancelDisplayVideo360AdvertiserLinkProposalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal + * Creates a new AccessOrderBy instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {google.analytics.admin.v1alpha.IAccessOrderBy=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessOrderBy} AccessOrderBy instance */ + AccessOrderBy.create = function create(properties) { + return new AccessOrderBy(properties); + }; /** - * Calls CancelDisplayVideo360AdvertiserLinkProposal. - * @function cancelDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessOrderBy message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {google.analytics.admin.v1alpha.IAccessOrderBy} message AccessOrderBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.cancelDisplayVideo360AdvertiserLinkProposal = function cancelDisplayVideo360AdvertiserLinkProposal(request, callback) { - return this.rpcCall(cancelDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); - }, "name", { value: "CancelDisplayVideo360AdvertiserLinkProposal" }); + AccessOrderBy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) + $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.encode(message.metric, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) + $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.encode(message.dimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.desc != null && Object.hasOwnProperty.call(message, "desc")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.desc); + return writer; + }; /** - * Calls CancelDisplayVideo360AdvertiserLinkProposal. - * @function cancelDisplayVideo360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessOrderBy message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {google.analytics.admin.v1alpha.IAccessOrderBy} message AccessOrderBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessOrderBy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateCustomDimensionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension + * Decodes an AccessOrderBy message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessOrderBy} AccessOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessOrderBy.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.analytics.admin.v1alpha.AccessOrderBy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metric = $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.decode(reader, reader.uint32()); + break; + case 2: + message.dimension = $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.decode(reader, reader.uint32()); + break; + case 3: + message.desc = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls CreateCustomDimension. - * @function createCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension - * @returns {undefined} - * @variation 1 + * Decodes an AccessOrderBy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessOrderBy} AccessOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.createCustomDimension = function createCustomDimension(request, callback) { - return this.rpcCall(createCustomDimension, $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); - }, "name", { value: "CreateCustomDimension" }); + AccessOrderBy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateCustomDimension. - * @function createCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessOrderBy message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessOrderBy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.metric != null && message.hasOwnProperty("metric")) { + properties.oneOrderBy = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.verify(message.metric); + if (error) + return "metric." + error; + } + } + if (message.dimension != null && message.hasOwnProperty("dimension")) { + if (properties.oneOrderBy === 1) + return "oneOrderBy: multiple values"; + properties.oneOrderBy = 1; + { + var error = $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.verify(message.dimension); + if (error) + return "dimension." + error; + } + } + if (message.desc != null && message.hasOwnProperty("desc")) + if (typeof message.desc !== "boolean") + return "desc: boolean expected"; + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateCustomDimensionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension + * Creates an AccessOrderBy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessOrderBy} AccessOrderBy */ + AccessOrderBy.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessOrderBy) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessOrderBy(); + if (object.metric != null) { + if (typeof object.metric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessOrderBy.metric: object expected"); + message.metric = $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.fromObject(object.metric); + } + if (object.dimension != null) { + if (typeof object.dimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessOrderBy.dimension: object expected"); + message.dimension = $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.fromObject(object.dimension); + } + if (object.desc != null) + message.desc = Boolean(object.desc); + return message; + }; /** - * Calls UpdateCustomDimension. - * @function updateCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessOrderBy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy} message AccessOrderBy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.updateCustomDimension = function updateCustomDimension(request, callback) { - return this.rpcCall(updateCustomDimension, $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); - }, "name", { value: "UpdateCustomDimension" }); + AccessOrderBy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.desc = false; + if (message.metric != null && message.hasOwnProperty("metric")) { + object.metric = $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.toObject(message.metric, options); + if (options.oneofs) + object.oneOrderBy = "metric"; + } + if (message.dimension != null && message.hasOwnProperty("dimension")) { + object.dimension = $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.toObject(message.dimension, options); + if (options.oneofs) + object.oneOrderBy = "dimension"; + } + if (message.desc != null && message.hasOwnProperty("desc")) + object.desc = message.desc; + return object; + }; /** - * Calls UpdateCustomDimension. - * @function updateCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessOrderBy to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessOrderBy * @instance - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessOrderBy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListCustomDimensionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} [response] ListCustomDimensionsResponse - */ + AccessOrderBy.MetricOrderBy = (function() { - /** - * Calls ListCustomDimensions. - * @function listCustomDimensions - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensionsCallback} callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.listCustomDimensions = function listCustomDimensions(request, callback) { - return this.rpcCall(listCustomDimensions, $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse, request, callback); - }, "name", { value: "ListCustomDimensions" }); + /** + * Properties of a MetricOrderBy. + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @interface IMetricOrderBy + * @property {string|null} [metricName] MetricOrderBy metricName + */ - /** - * Calls ListCustomDimensions. - * @function listCustomDimensions - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new MetricOrderBy. + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @classdesc Represents a MetricOrderBy. + * @implements IMetricOrderBy + * @constructor + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy=} [properties] Properties to set + */ + function MetricOrderBy(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]]; + } + + /** + * MetricOrderBy metricName. + * @member {string} metricName + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @instance + */ + MetricOrderBy.prototype.metricName = ""; + + /** + * Creates a new MetricOrderBy instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} MetricOrderBy instance + */ + MetricOrderBy.create = function create(properties) { + return new MetricOrderBy(properties); + }; + + /** + * Encodes the specified MetricOrderBy message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy} message MetricOrderBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricOrderBy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricName != null && Object.hasOwnProperty.call(message, "metricName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricName); + return writer; + }; + + /** + * Encodes the specified MetricOrderBy message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IMetricOrderBy} message MetricOrderBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricOrderBy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricOrderBy message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} MetricOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricOrderBy.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.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metricName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricOrderBy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} MetricOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricOrderBy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricOrderBy message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricOrderBy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricName != null && message.hasOwnProperty("metricName")) + if (!$util.isString(message.metricName)) + return "metricName: string expected"; + return null; + }; + + /** + * Creates a MetricOrderBy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} MetricOrderBy + */ + MetricOrderBy.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(); + if (object.metricName != null) + message.metricName = String(object.metricName); + return message; + }; + + /** + * Creates a plain object from a MetricOrderBy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} message MetricOrderBy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricOrderBy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metricName = ""; + if (message.metricName != null && message.hasOwnProperty("metricName")) + object.metricName = message.metricName; + return object; + }; + + /** + * Converts this MetricOrderBy to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @instance + * @returns {Object.} JSON object + */ + MetricOrderBy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MetricOrderBy; + })(); + + AccessOrderBy.DimensionOrderBy = (function() { + + /** + * Properties of a DimensionOrderBy. + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @interface IDimensionOrderBy + * @property {string|null} [dimensionName] DimensionOrderBy dimensionName + * @property {google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType|null} [orderType] DimensionOrderBy orderType + */ + + /** + * Constructs a new DimensionOrderBy. + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @classdesc Represents a DimensionOrderBy. + * @implements IDimensionOrderBy + * @constructor + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy=} [properties] Properties to set + */ + function DimensionOrderBy(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]]; + } + + /** + * DimensionOrderBy dimensionName. + * @member {string} dimensionName + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @instance + */ + DimensionOrderBy.prototype.dimensionName = ""; + + /** + * DimensionOrderBy orderType. + * @member {google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType} orderType + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @instance + */ + DimensionOrderBy.prototype.orderType = 0; + + /** + * Creates a new DimensionOrderBy instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} DimensionOrderBy instance + */ + DimensionOrderBy.create = function create(properties) { + return new DimensionOrderBy(properties); + }; + + /** + * Encodes the specified DimensionOrderBy message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy} message DimensionOrderBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DimensionOrderBy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dimensionName != null && Object.hasOwnProperty.call(message, "dimensionName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimensionName); + if (message.orderType != null && Object.hasOwnProperty.call(message, "orderType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.orderType); + return writer; + }; + + /** + * Encodes the specified DimensionOrderBy message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.IDimensionOrderBy} message DimensionOrderBy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DimensionOrderBy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DimensionOrderBy message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} DimensionOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DimensionOrderBy.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.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dimensionName = reader.string(); + break; + case 2: + message.orderType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DimensionOrderBy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} DimensionOrderBy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DimensionOrderBy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DimensionOrderBy message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DimensionOrderBy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dimensionName != null && message.hasOwnProperty("dimensionName")) + if (!$util.isString(message.dimensionName)) + return "dimensionName: string expected"; + if (message.orderType != null && message.hasOwnProperty("orderType")) + switch (message.orderType) { + default: + return "orderType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates a DimensionOrderBy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} DimensionOrderBy + */ + DimensionOrderBy.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(); + if (object.dimensionName != null) + message.dimensionName = String(object.dimensionName); + switch (object.orderType) { + case "ORDER_TYPE_UNSPECIFIED": + case 0: + message.orderType = 0; + break; + case "ALPHANUMERIC": + case 1: + message.orderType = 1; + break; + case "CASE_INSENSITIVE_ALPHANUMERIC": + case 2: + message.orderType = 2; + break; + case "NUMERIC": + case 3: + message.orderType = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a DimensionOrderBy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} message DimensionOrderBy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DimensionOrderBy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dimensionName = ""; + object.orderType = options.enums === String ? "ORDER_TYPE_UNSPECIFIED" : 0; + } + if (message.dimensionName != null && message.hasOwnProperty("dimensionName")) + object.dimensionName = message.dimensionName; + if (message.orderType != null && message.hasOwnProperty("orderType")) + object.orderType = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType[message.orderType] : message.orderType; + return object; + }; + + /** + * Converts this DimensionOrderBy to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @instance + * @returns {Object.} JSON object + */ + DimensionOrderBy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * OrderType enum. + * @name google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + * @enum {number} + * @property {number} ORDER_TYPE_UNSPECIFIED=0 ORDER_TYPE_UNSPECIFIED value + * @property {number} ALPHANUMERIC=1 ALPHANUMERIC value + * @property {number} CASE_INSENSITIVE_ALPHANUMERIC=2 CASE_INSENSITIVE_ALPHANUMERIC value + * @property {number} NUMERIC=3 NUMERIC value + */ + DimensionOrderBy.OrderType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ORDER_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ALPHANUMERIC"] = 1; + values[valuesById[2] = "CASE_INSENSITIVE_ALPHANUMERIC"] = 2; + values[valuesById[3] = "NUMERIC"] = 3; + return values; + })(); + + return DimensionOrderBy; + })(); + + return AccessOrderBy; + })(); + + v1alpha.AccessDimensionHeader = (function() { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ArchiveCustomDimensionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Properties of an AccessDimensionHeader. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessDimensionHeader + * @property {string|null} [dimensionName] AccessDimensionHeader dimensionName */ /** - * Calls ArchiveCustomDimension. - * @function archiveCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimensionCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Constructs a new AccessDimensionHeader. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessDimensionHeader. + * @implements IAccessDimensionHeader + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessDimensionHeader=} [properties] Properties to set */ - Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomDimension = function archiveCustomDimension(request, callback) { - return this.rpcCall(archiveCustomDimension, $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "ArchiveCustomDimension" }); + function AccessDimensionHeader(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]]; + } /** - * Calls ArchiveCustomDimension. - * @function archiveCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessDimensionHeader dimensionName. + * @member {string} dimensionName + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader * @instance - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessDimensionHeader.prototype.dimensionName = ""; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetCustomDimensionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension + * Creates a new AccessDimensionHeader instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {google.analytics.admin.v1alpha.IAccessDimensionHeader=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessDimensionHeader} AccessDimensionHeader instance */ + AccessDimensionHeader.create = function create(properties) { + return new AccessDimensionHeader(properties); + }; /** - * Calls GetCustomDimension. - * @function getCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessDimensionHeader message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionHeader.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {google.analytics.admin.v1alpha.IAccessDimensionHeader} message AccessDimensionHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.getCustomDimension = function getCustomDimension(request, callback) { - return this.rpcCall(getCustomDimension, $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); - }, "name", { value: "GetCustomDimension" }); + AccessDimensionHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dimensionName != null && Object.hasOwnProperty.call(message, "dimensionName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimensionName); + return writer; + }; /** - * Calls GetCustomDimension. - * @function getCustomDimension - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessDimensionHeader message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionHeader.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {google.analytics.admin.v1alpha.IAccessDimensionHeader} message AccessDimensionHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessDimensionHeader.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateCustomMetricCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric + * Decodes an AccessDimensionHeader message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessDimensionHeader} AccessDimensionHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessDimensionHeader.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.analytics.admin.v1alpha.AccessDimensionHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dimensionName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls CreateCustomMetric. - * @function createCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric - * @returns {undefined} - * @variation 1 + * Decodes an AccessDimensionHeader message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessDimensionHeader} AccessDimensionHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.createCustomMetric = function createCustomMetric(request, callback) { - return this.rpcCall(createCustomMetric, $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); - }, "name", { value: "CreateCustomMetric" }); + AccessDimensionHeader.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateCustomMetric. - * @function createCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessDimensionHeader message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessDimensionHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dimensionName != null && message.hasOwnProperty("dimensionName")) + if (!$util.isString(message.dimensionName)) + return "dimensionName: string expected"; + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateCustomMetricCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric + * Creates an AccessDimensionHeader message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessDimensionHeader} AccessDimensionHeader */ + AccessDimensionHeader.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessDimensionHeader) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessDimensionHeader(); + if (object.dimensionName != null) + message.dimensionName = String(object.dimensionName); + return message; + }; /** - * Calls UpdateCustomMetric. - * @function updateCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessDimensionHeader message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {google.analytics.admin.v1alpha.AccessDimensionHeader} message AccessDimensionHeader + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.updateCustomMetric = function updateCustomMetric(request, callback) { - return this.rpcCall(updateCustomMetric, $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); - }, "name", { value: "UpdateCustomMetric" }); + AccessDimensionHeader.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.dimensionName = ""; + if (message.dimensionName != null && message.hasOwnProperty("dimensionName")) + object.dimensionName = message.dimensionName; + return object; + }; /** - * Calls UpdateCustomMetric. - * @function updateCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessDimensionHeader to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader * @instance - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessDimensionHeader.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AccessDimensionHeader; + })(); + + v1alpha.AccessMetricHeader = (function() { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListCustomMetricsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} [response] ListCustomMetricsResponse + * Properties of an AccessMetricHeader. + * @memberof google.analytics.admin.v1alpha + * @interface IAccessMetricHeader + * @property {string|null} [metricName] AccessMetricHeader metricName */ /** - * Calls ListCustomMetrics. - * @function listCustomMetrics - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetricsCallback} callback Node-style callback called with the error, if any, and ListCustomMetricsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new AccessMetricHeader. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccessMetricHeader. + * @implements IAccessMetricHeader + * @constructor + * @param {google.analytics.admin.v1alpha.IAccessMetricHeader=} [properties] Properties to set */ - Object.defineProperty(AnalyticsAdminService.prototype.listCustomMetrics = function listCustomMetrics(request, callback) { - return this.rpcCall(listCustomMetrics, $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest, $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse, request, callback); - }, "name", { value: "ListCustomMetrics" }); + function AccessMetricHeader(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]]; + } /** - * Calls ListCustomMetrics. - * @function listCustomMetrics - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * AccessMetricHeader metricName. + * @member {string} metricName + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader * @instance - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + AccessMetricHeader.prototype.metricName = ""; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ArchiveCustomMetricCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a new AccessMetricHeader instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {google.analytics.admin.v1alpha.IAccessMetricHeader=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessMetricHeader} AccessMetricHeader instance */ + AccessMetricHeader.create = function create(properties) { + return new AccessMetricHeader(properties); + }; /** - * Calls ArchiveCustomMetric. - * @function archiveCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetricCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomMetric = function archiveCustomMetric(request, callback) { - return this.rpcCall(archiveCustomMetric, $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "ArchiveCustomMetric" }); - - /** - * Calls ArchiveCustomMetric. - * @function archiveCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetCustomMetricCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric - */ - - /** - * Calls GetCustomMetric. - * @function getCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.getCustomMetric = function getCustomMetric(request, callback) { - return this.rpcCall(getCustomMetric, $root.google.analytics.admin.v1alpha.GetCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); - }, "name", { value: "GetCustomMetric" }); - - /** - * Calls GetCustomMetric. - * @function getCustomMetric - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetDataRetentionSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DataRetentionSettings} [response] DataRetentionSettings - */ - - /** - * Calls GetDataRetentionSettings. - * @function getDataRetentionSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.getDataRetentionSettings = function getDataRetentionSettings(request, callback) { - return this.rpcCall(getDataRetentionSettings, $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, $root.google.analytics.admin.v1alpha.DataRetentionSettings, request, callback); - }, "name", { value: "GetDataRetentionSettings" }); - - /** - * Calls GetDataRetentionSettings. - * @function getDataRetentionSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateDataRetentionSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DataRetentionSettings} [response] DataRetentionSettings - */ - - /** - * Calls UpdateDataRetentionSettings. - * @function updateDataRetentionSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.updateDataRetentionSettings = function updateDataRetentionSettings(request, callback) { - return this.rpcCall(updateDataRetentionSettings, $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, $root.google.analytics.admin.v1alpha.DataRetentionSettings, request, callback); - }, "name", { value: "UpdateDataRetentionSettings" }); - - /** - * Calls UpdateDataRetentionSettings. - * @function updateDataRetentionSettings - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef CreateDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream - */ - - /** - * Calls CreateDataStream. - * @function createDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.createDataStream = function createDataStream(request, callback) { - return this.rpcCall(createDataStream, $root.google.analytics.admin.v1alpha.CreateDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); - }, "name", { value: "CreateDataStream" }); - - /** - * Calls CreateDataStream. - * @function createDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef DeleteDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteDataStream. - * @function deleteDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStreamCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AnalyticsAdminService.prototype.deleteDataStream = function deleteDataStream(request, callback) { - return this.rpcCall(deleteDataStream, $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteDataStream" }); - - /** - * Calls DeleteDataStream. - * @function deleteDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef UpdateDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream - */ - - /** - * Calls UpdateDataStream. - * @function updateDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream - * @returns {undefined} - * @variation 1 + * Encodes the specified AccessMetricHeader message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricHeader.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {google.analytics.admin.v1alpha.IAccessMetricHeader} message AccessMetricHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(AnalyticsAdminService.prototype.updateDataStream = function updateDataStream(request, callback) { - return this.rpcCall(updateDataStream, $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); - }, "name", { value: "UpdateDataStream" }); + AccessMetricHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricName != null && Object.hasOwnProperty.call(message, "metricName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricName); + return writer; + }; /** - * Calls UpdateDataStream. - * @function updateDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified AccessMetricHeader message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricHeader.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {google.analytics.admin.v1alpha.IAccessMetricHeader} message AccessMetricHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + AccessMetricHeader.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef ListDataStreamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} [response] ListDataStreamsResponse + * Decodes an AccessMetricHeader message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccessMetricHeader} AccessMetricHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + AccessMetricHeader.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.analytics.admin.v1alpha.AccessMetricHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metricName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListDataStreams. - * @function listDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreamsCallback} callback Node-style callback called with the error, if any, and ListDataStreamsResponse - * @returns {undefined} - * @variation 1 + * Decodes an AccessMetricHeader message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccessMetricHeader} AccessMetricHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(AnalyticsAdminService.prototype.listDataStreams = function listDataStreams(request, callback) { - return this.rpcCall(listDataStreams, $root.google.analytics.admin.v1alpha.ListDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListDataStreamsResponse, request, callback); - }, "name", { value: "ListDataStreams" }); + AccessMetricHeader.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListDataStreams. - * @function listDataStreams - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an AccessMetricHeader message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + AccessMetricHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricName != null && message.hasOwnProperty("metricName")) + if (!$util.isString(message.metricName)) + return "metricName: string expected"; + return null; + }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @typedef GetDataStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream + * Creates an AccessMetricHeader message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccessMetricHeader} AccessMetricHeader */ + AccessMetricHeader.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessMetricHeader) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccessMetricHeader(); + if (object.metricName != null) + message.metricName = String(object.metricName); + return message; + }; /** - * Calls GetDataStream. - * @function getDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService - * @instance - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} request GetDataStreamRequest message or plain object - * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream - * @returns {undefined} - * @variation 1 + * Creates a plain object from an AccessMetricHeader message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {google.analytics.admin.v1alpha.AccessMetricHeader} message AccessMetricHeader + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(AnalyticsAdminService.prototype.getDataStream = function getDataStream(request, callback) { - return this.rpcCall(getDataStream, $root.google.analytics.admin.v1alpha.GetDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); - }, "name", { value: "GetDataStream" }); + AccessMetricHeader.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metricName = ""; + if (message.metricName != null && message.hasOwnProperty("metricName")) + object.metricName = message.metricName; + return object; + }; /** - * Calls GetDataStream. - * @function getDataStream - * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * Converts this AccessMetricHeader to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader * @instance - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} request GetDataStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + AccessMetricHeader.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return AnalyticsAdminService; + return AccessMetricHeader; })(); - v1alpha.GetAccountRequest = (function() { + v1alpha.AccessRow = (function() { /** - * Properties of a GetAccountRequest. + * Properties of an AccessRow. * @memberof google.analytics.admin.v1alpha - * @interface IGetAccountRequest - * @property {string|null} [name] GetAccountRequest name + * @interface IAccessRow + * @property {Array.|null} [dimensionValues] AccessRow dimensionValues + * @property {Array.|null} [metricValues] AccessRow metricValues */ /** - * Constructs a new GetAccountRequest. + * Constructs a new AccessRow. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetAccountRequest. - * @implements IGetAccountRequest + * @classdesc Represents an AccessRow. + * @implements IAccessRow * @constructor - * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccessRow=} [properties] Properties to set */ - function GetAccountRequest(properties) { + function AccessRow(properties) { + this.dimensionValues = []; + this.metricValues = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2469,75 +3868,94 @@ } /** - * GetAccountRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * AccessRow dimensionValues. + * @member {Array.} dimensionValues + * @memberof google.analytics.admin.v1alpha.AccessRow * @instance */ - GetAccountRequest.prototype.name = ""; + AccessRow.prototype.dimensionValues = $util.emptyArray; /** - * Creates a new GetAccountRequest instance using the specified properties. + * AccessRow metricValues. + * @member {Array.} metricValues + * @memberof google.analytics.admin.v1alpha.AccessRow + * @instance + */ + AccessRow.prototype.metricValues = $util.emptyArray; + + /** + * Creates a new AccessRow instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @static - * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest instance + * @param {google.analytics.admin.v1alpha.IAccessRow=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessRow} AccessRow instance */ - GetAccountRequest.create = function create(properties) { - return new GetAccountRequest(properties); + AccessRow.create = function create(properties) { + return new AccessRow(properties); }; /** - * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. + * Encodes the specified AccessRow message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessRow.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @static - * @param {google.analytics.admin.v1alpha.IGetAccountRequest} message GetAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessRow} message AccessRow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAccountRequest.encode = function encode(message, writer) { + AccessRow.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.dimensionValues != null && message.dimensionValues.length) + for (var i = 0; i < message.dimensionValues.length; ++i) + $root.google.analytics.admin.v1alpha.AccessDimensionValue.encode(message.dimensionValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metricValues != null && message.metricValues.length) + for (var i = 0; i < message.metricValues.length; ++i) + $root.google.analytics.admin.v1alpha.AccessMetricValue.encode(message.metricValues[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. + * Encodes the specified AccessRow message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessRow.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @static - * @param {google.analytics.admin.v1alpha.IGetAccountRequest} message GetAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessRow} message AccessRow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { + AccessRow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAccountRequest message from the specified reader or buffer. + * Decodes an AccessRow message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessRow} AccessRow * @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) { + AccessRow.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.analytics.admin.v1alpha.GetAccountRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccessRow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.dimensionValues && message.dimensionValues.length)) + message.dimensionValues = []; + message.dimensionValues.push($root.google.analytics.admin.v1alpha.AccessDimensionValue.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.metricValues && message.metricValues.length)) + message.metricValues = []; + message.metricValues.push($root.google.analytics.admin.v1alpha.AccessMetricValue.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -2548,109 +3966,150 @@ }; /** - * Decodes a GetAccountRequest message from the specified reader or buffer, length delimited. + * Decodes an AccessRow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessRow} AccessRow * @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) { + AccessRow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAccountRequest message. + * Verifies an AccessRow message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @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) { + AccessRow.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.dimensionValues != null && message.hasOwnProperty("dimensionValues")) { + if (!Array.isArray(message.dimensionValues)) + return "dimensionValues: array expected"; + for (var i = 0; i < message.dimensionValues.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessDimensionValue.verify(message.dimensionValues[i]); + if (error) + return "dimensionValues." + error; + } + } + if (message.metricValues != null && message.hasOwnProperty("metricValues")) { + if (!Array.isArray(message.metricValues)) + return "metricValues: array expected"; + for (var i = 0; i < message.metricValues.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessMetricValue.verify(message.metricValues[i]); + if (error) + return "metricValues." + error; + } + } return null; }; /** - * Creates a GetAccountRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AccessRow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessRow} AccessRow */ - GetAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetAccountRequest) + AccessRow.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessRow) return object; - var message = new $root.google.analytics.admin.v1alpha.GetAccountRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.AccessRow(); + if (object.dimensionValues) { + if (!Array.isArray(object.dimensionValues)) + throw TypeError(".google.analytics.admin.v1alpha.AccessRow.dimensionValues: array expected"); + message.dimensionValues = []; + for (var i = 0; i < object.dimensionValues.length; ++i) { + if (typeof object.dimensionValues[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessRow.dimensionValues: object expected"); + message.dimensionValues[i] = $root.google.analytics.admin.v1alpha.AccessDimensionValue.fromObject(object.dimensionValues[i]); + } + } + if (object.metricValues) { + if (!Array.isArray(object.metricValues)) + throw TypeError(".google.analytics.admin.v1alpha.AccessRow.metricValues: array expected"); + message.metricValues = []; + for (var i = 0; i < object.metricValues.length; ++i) { + if (typeof object.metricValues[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessRow.metricValues: object expected"); + message.metricValues[i] = $root.google.analytics.admin.v1alpha.AccessMetricValue.fromObject(object.metricValues[i]); + } + } return message; }; /** - * Creates a plain object from a GetAccountRequest message. Also converts values to other types if specified. + * Creates a plain object from an AccessRow message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @static - * @param {google.analytics.admin.v1alpha.GetAccountRequest} message GetAccountRequest + * @param {google.analytics.admin.v1alpha.AccessRow} message AccessRow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAccountRequest.toObject = function toObject(message, options) { + AccessRow.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 (options.arrays || options.defaults) { + object.dimensionValues = []; + object.metricValues = []; + } + if (message.dimensionValues && message.dimensionValues.length) { + object.dimensionValues = []; + for (var j = 0; j < message.dimensionValues.length; ++j) + object.dimensionValues[j] = $root.google.analytics.admin.v1alpha.AccessDimensionValue.toObject(message.dimensionValues[j], options); + } + if (message.metricValues && message.metricValues.length) { + object.metricValues = []; + for (var j = 0; j < message.metricValues.length; ++j) + object.metricValues[j] = $root.google.analytics.admin.v1alpha.AccessMetricValue.toObject(message.metricValues[j], options); + } return object; }; /** - * Converts this GetAccountRequest to JSON. + * Converts this AccessRow to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessRow * @instance * @returns {Object.} JSON object */ - GetAccountRequest.prototype.toJSON = function toJSON() { + AccessRow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetAccountRequest; + return AccessRow; })(); - v1alpha.ListAccountsRequest = (function() { + v1alpha.AccessDimensionValue = (function() { /** - * Properties of a ListAccountsRequest. + * Properties of an AccessDimensionValue. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountsRequest - * @property {number|null} [pageSize] ListAccountsRequest pageSize - * @property {string|null} [pageToken] ListAccountsRequest pageToken - * @property {boolean|null} [showDeleted] ListAccountsRequest showDeleted + * @interface IAccessDimensionValue + * @property {string|null} [value] AccessDimensionValue value */ /** - * Constructs a new ListAccountsRequest. + * Constructs a new AccessDimensionValue. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountsRequest. - * @implements IListAccountsRequest + * @classdesc Represents an AccessDimensionValue. + * @implements IAccessDimensionValue * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccessDimensionValue=} [properties] Properties to set */ - function ListAccountsRequest(properties) { + function AccessDimensionValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2658,101 +4117,75 @@ } /** - * ListAccountsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @instance - */ - ListAccountsRequest.prototype.pageSize = 0; - - /** - * ListAccountsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest - * @instance - */ - ListAccountsRequest.prototype.pageToken = ""; - - /** - * ListAccountsRequest showDeleted. - * @member {boolean} showDeleted - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * AccessDimensionValue value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @instance */ - ListAccountsRequest.prototype.showDeleted = false; + AccessDimensionValue.prototype.value = ""; /** - * Creates a new ListAccountsRequest instance using the specified properties. + * Creates a new AccessDimensionValue instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @static - * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest instance + * @param {google.analytics.admin.v1alpha.IAccessDimensionValue=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessDimensionValue} AccessDimensionValue instance */ - ListAccountsRequest.create = function create(properties) { - return new ListAccountsRequest(properties); + AccessDimensionValue.create = function create(properties) { + return new AccessDimensionValue(properties); }; /** - * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. + * Encodes the specified AccessDimensionValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionValue.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @static - * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessDimensionValue} message AccessDimensionValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountsRequest.encode = function encode(message, writer) { + AccessDimensionValue.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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.showDeleted); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); return writer; }; /** - * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. + * Encodes the specified AccessDimensionValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessDimensionValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @static - * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessDimensionValue} message AccessDimensionValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AccessDimensionValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountsRequest message from the specified reader or buffer. + * Decodes an AccessDimensionValue message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest + * @returns {google.analytics.admin.v1alpha.AccessDimensionValue} AccessDimensionValue * @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) { + AccessDimensionValue.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.analytics.admin.v1alpha.ListAccountsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccessDimensionValue(); 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.showDeleted = reader.bool(); + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -2763,126 +4196,107 @@ }; /** - * Decodes a ListAccountsRequest message from the specified reader or buffer, length delimited. + * Decodes an AccessDimensionValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest + * @returns {google.analytics.admin.v1alpha.AccessDimensionValue} AccessDimensionValue * @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) { + AccessDimensionValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountsRequest message. + * Verifies an AccessDimensionValue message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @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) { + AccessDimensionValue.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.showDeleted != null && message.hasOwnProperty("showDeleted")) - if (typeof message.showDeleted !== "boolean") - return "showDeleted: boolean expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AccessDimensionValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest + * @returns {google.analytics.admin.v1alpha.AccessDimensionValue} AccessDimensionValue */ - ListAccountsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsRequest) + AccessDimensionValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessDimensionValue) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountsRequest(); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.showDeleted != null) - message.showDeleted = Boolean(object.showDeleted); + var message = new $root.google.analytics.admin.v1alpha.AccessDimensionValue(); + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AccessDimensionValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @static - * @param {google.analytics.admin.v1alpha.ListAccountsRequest} message ListAccountsRequest + * @param {google.analytics.admin.v1alpha.AccessDimensionValue} message AccessDimensionValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountsRequest.toObject = function toObject(message, options) { + AccessDimensionValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pageSize = 0; - object.pageToken = ""; - object.showDeleted = false; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.showDeleted != null && message.hasOwnProperty("showDeleted")) - object.showDeleted = message.showDeleted; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this ListAccountsRequest to JSON. + * Converts this AccessDimensionValue to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue * @instance * @returns {Object.} JSON object */ - ListAccountsRequest.prototype.toJSON = function toJSON() { + AccessDimensionValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountsRequest; + return AccessDimensionValue; })(); - v1alpha.ListAccountsResponse = (function() { + v1alpha.AccessMetricValue = (function() { /** - * Properties of a ListAccountsResponse. + * Properties of an AccessMetricValue. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountsResponse - * @property {Array.|null} [accounts] ListAccountsResponse accounts - * @property {string|null} [nextPageToken] ListAccountsResponse nextPageToken + * @interface IAccessMetricValue + * @property {string|null} [value] AccessMetricValue value */ /** - * Constructs a new ListAccountsResponse. + * Constructs a new AccessMetricValue. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountsResponse. - * @implements IListAccountsResponse + * @classdesc Represents an AccessMetricValue. + * @implements IAccessMetricValue * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccessMetricValue=} [properties] Properties to set */ - function ListAccountsResponse(properties) { - this.accounts = []; + function AccessMetricValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2890,91 +4304,75 @@ } /** - * ListAccountsResponse accounts. - * @member {Array.} accounts - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse - * @instance - */ - ListAccountsResponse.prototype.accounts = $util.emptyArray; - - /** - * ListAccountsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * AccessMetricValue value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @instance */ - ListAccountsResponse.prototype.nextPageToken = ""; + AccessMetricValue.prototype.value = ""; /** - * Creates a new ListAccountsResponse instance using the specified properties. + * Creates a new AccessMetricValue instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @static - * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse instance + * @param {google.analytics.admin.v1alpha.IAccessMetricValue=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessMetricValue} AccessMetricValue instance */ - ListAccountsResponse.create = function create(properties) { - return new ListAccountsResponse(properties); + AccessMetricValue.create = function create(properties) { + return new AccessMetricValue(properties); }; /** - * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. + * Encodes the specified AccessMetricValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricValue.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @static - * @param {google.analytics.admin.v1alpha.IListAccountsResponse} message ListAccountsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessMetricValue} message AccessMetricValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountsResponse.encode = function encode(message, writer) { + AccessMetricValue.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.analytics.admin.v1alpha.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); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); return writer; }; /** - * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. + * Encodes the specified AccessMetricValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessMetricValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @static - * @param {google.analytics.admin.v1alpha.IListAccountsResponse} message ListAccountsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessMetricValue} message AccessMetricValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountsResponse.encodeDelimited = function encodeDelimited(message, writer) { + AccessMetricValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountsResponse message from the specified reader or buffer. + * Decodes an AccessMetricValue message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse + * @returns {google.analytics.admin.v1alpha.AccessMetricValue} AccessMetricValue * @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) { + AccessMetricValue.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.analytics.admin.v1alpha.ListAccountsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccessMetricValue(); 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.analytics.admin.v1alpha.Account.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -2985,133 +4383,110 @@ }; /** - * Decodes a ListAccountsResponse message from the specified reader or buffer, length delimited. + * Decodes an AccessMetricValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse + * @returns {google.analytics.admin.v1alpha.AccessMetricValue} AccessMetricValue * @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) { + AccessMetricValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountsResponse message. + * Verifies an AccessMetricValue message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @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) { + AccessMetricValue.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.analytics.admin.v1alpha.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"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates a ListAccountsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AccessMetricValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse + * @returns {google.analytics.admin.v1alpha.AccessMetricValue} AccessMetricValue */ - ListAccountsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsResponse) + AccessMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessMetricValue) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountsResponse(); - if (object.accounts) { - if (!Array.isArray(object.accounts)) - throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: array expected"); - message.accounts = []; - for (var i = 0; i < object.accounts.length; ++i) { - if (typeof object.accounts[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: object expected"); - message.accounts[i] = $root.google.analytics.admin.v1alpha.Account.fromObject(object.accounts[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.AccessMetricValue(); + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from a ListAccountsResponse message. Also converts values to other types if specified. + * Creates a plain object from an AccessMetricValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @static - * @param {google.analytics.admin.v1alpha.ListAccountsResponse} message ListAccountsResponse + * @param {google.analytics.admin.v1alpha.AccessMetricValue} message AccessMetricValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountsResponse.toObject = function toObject(message, options) { + AccessMetricValue.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.analytics.admin.v1alpha.Account.toObject(message.accounts[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this ListAccountsResponse to JSON. + * Converts this AccessMetricValue to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountsResponse + * @memberof google.analytics.admin.v1alpha.AccessMetricValue * @instance * @returns {Object.} JSON object */ - ListAccountsResponse.prototype.toJSON = function toJSON() { + AccessMetricValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountsResponse; + return AccessMetricValue; })(); - v1alpha.DeleteAccountRequest = (function() { + v1alpha.AccessQuota = (function() { /** - * Properties of a DeleteAccountRequest. + * Properties of an AccessQuota. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteAccountRequest - * @property {string|null} [name] DeleteAccountRequest name + * @interface IAccessQuota + * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [tokensPerDay] AccessQuota tokensPerDay + * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [tokensPerHour] AccessQuota tokensPerHour + * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [concurrentRequests] AccessQuota concurrentRequests + * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [serverErrorsPerProjectPerHour] AccessQuota serverErrorsPerProjectPerHour */ /** - * Constructs a new DeleteAccountRequest. + * Constructs a new AccessQuota. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteAccountRequest. - * @implements IDeleteAccountRequest + * @classdesc Represents an AccessQuota. + * @implements IAccessQuota * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccessQuota=} [properties] Properties to set */ - function DeleteAccountRequest(properties) { + function AccessQuota(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3119,75 +4494,114 @@ } /** - * DeleteAccountRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * AccessQuota tokensPerDay. + * @member {google.analytics.admin.v1alpha.IAccessQuotaStatus|null|undefined} tokensPerDay + * @memberof google.analytics.admin.v1alpha.AccessQuota * @instance */ - DeleteAccountRequest.prototype.name = ""; + AccessQuota.prototype.tokensPerDay = null; /** - * Creates a new DeleteAccountRequest instance using the specified properties. + * AccessQuota tokensPerHour. + * @member {google.analytics.admin.v1alpha.IAccessQuotaStatus|null|undefined} tokensPerHour + * @memberof google.analytics.admin.v1alpha.AccessQuota + * @instance + */ + AccessQuota.prototype.tokensPerHour = null; + + /** + * AccessQuota concurrentRequests. + * @member {google.analytics.admin.v1alpha.IAccessQuotaStatus|null|undefined} concurrentRequests + * @memberof google.analytics.admin.v1alpha.AccessQuota + * @instance + */ + AccessQuota.prototype.concurrentRequests = null; + + /** + * AccessQuota serverErrorsPerProjectPerHour. + * @member {google.analytics.admin.v1alpha.IAccessQuotaStatus|null|undefined} serverErrorsPerProjectPerHour + * @memberof google.analytics.admin.v1alpha.AccessQuota + * @instance + */ + AccessQuota.prototype.serverErrorsPerProjectPerHour = null; + + /** + * Creates a new AccessQuota instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @static - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest instance + * @param {google.analytics.admin.v1alpha.IAccessQuota=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessQuota} AccessQuota instance */ - DeleteAccountRequest.create = function create(properties) { - return new DeleteAccountRequest(properties); + AccessQuota.create = function create(properties) { + return new AccessQuota(properties); }; /** - * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. + * Encodes the specified AccessQuota message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuota.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @static - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessQuota} message AccessQuota message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAccountRequest.encode = function encode(message, writer) { + AccessQuota.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.tokensPerDay != null && Object.hasOwnProperty.call(message, "tokensPerDay")) + $root.google.analytics.admin.v1alpha.AccessQuotaStatus.encode(message.tokensPerDay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tokensPerHour != null && Object.hasOwnProperty.call(message, "tokensPerHour")) + $root.google.analytics.admin.v1alpha.AccessQuotaStatus.encode(message.tokensPerHour, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.concurrentRequests != null && Object.hasOwnProperty.call(message, "concurrentRequests")) + $root.google.analytics.admin.v1alpha.AccessQuotaStatus.encode(message.concurrentRequests, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.serverErrorsPerProjectPerHour != null && Object.hasOwnProperty.call(message, "serverErrorsPerProjectPerHour")) + $root.google.analytics.admin.v1alpha.AccessQuotaStatus.encode(message.serverErrorsPerProjectPerHour, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. + * Encodes the specified AccessQuota message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuota.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @static - * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessQuota} message AccessQuota message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { + AccessQuota.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteAccountRequest message from the specified reader or buffer. + * Decodes an AccessQuota message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessQuota} AccessQuota * @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) { + AccessQuota.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.analytics.admin.v1alpha.DeleteAccountRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccessQuota(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.tokensPerDay = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + case 2: + message.tokensPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + case 3: + message.concurrentRequests = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + case 4: + message.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3198,108 +4612,153 @@ }; /** - * Decodes a DeleteAccountRequest message from the specified reader or buffer, length delimited. + * Decodes an AccessQuota message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessQuota} AccessQuota * @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) { + AccessQuota.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteAccountRequest message. + * Verifies an AccessQuota message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @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) { + AccessQuota.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.tokensPerDay != null && message.hasOwnProperty("tokensPerDay")) { + var error = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.verify(message.tokensPerDay); + if (error) + return "tokensPerDay." + error; + } + if (message.tokensPerHour != null && message.hasOwnProperty("tokensPerHour")) { + var error = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.verify(message.tokensPerHour); + if (error) + return "tokensPerHour." + error; + } + if (message.concurrentRequests != null && message.hasOwnProperty("concurrentRequests")) { + var error = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.verify(message.concurrentRequests); + if (error) + return "concurrentRequests." + error; + } + if (message.serverErrorsPerProjectPerHour != null && message.hasOwnProperty("serverErrorsPerProjectPerHour")) { + var error = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.verify(message.serverErrorsPerProjectPerHour); + if (error) + return "serverErrorsPerProjectPerHour." + error; + } return null; }; /** - * Creates a DeleteAccountRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AccessQuota message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessQuota} AccessQuota */ - DeleteAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAccountRequest) + AccessQuota.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessQuota) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteAccountRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.AccessQuota(); + if (object.tokensPerDay != null) { + if (typeof object.tokensPerDay !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessQuota.tokensPerDay: object expected"); + message.tokensPerDay = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.fromObject(object.tokensPerDay); + } + if (object.tokensPerHour != null) { + if (typeof object.tokensPerHour !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessQuota.tokensPerHour: object expected"); + message.tokensPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.fromObject(object.tokensPerHour); + } + if (object.concurrentRequests != null) { + if (typeof object.concurrentRequests !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessQuota.concurrentRequests: object expected"); + message.concurrentRequests = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.fromObject(object.concurrentRequests); + } + if (object.serverErrorsPerProjectPerHour != null) { + if (typeof object.serverErrorsPerProjectPerHour !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessQuota.serverErrorsPerProjectPerHour: object expected"); + message.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.fromObject(object.serverErrorsPerProjectPerHour); + } return message; }; /** - * Creates a plain object from a DeleteAccountRequest message. Also converts values to other types if specified. + * Creates a plain object from an AccessQuota message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @static - * @param {google.analytics.admin.v1alpha.DeleteAccountRequest} message DeleteAccountRequest + * @param {google.analytics.admin.v1alpha.AccessQuota} message AccessQuota * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteAccountRequest.toObject = function toObject(message, options) { + AccessQuota.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 (options.defaults) { + object.tokensPerDay = null; + object.tokensPerHour = null; + object.concurrentRequests = null; + object.serverErrorsPerProjectPerHour = null; + } + if (message.tokensPerDay != null && message.hasOwnProperty("tokensPerDay")) + object.tokensPerDay = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.tokensPerDay, options); + if (message.tokensPerHour != null && message.hasOwnProperty("tokensPerHour")) + object.tokensPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.tokensPerHour, options); + if (message.concurrentRequests != null && message.hasOwnProperty("concurrentRequests")) + object.concurrentRequests = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.concurrentRequests, options); + if (message.serverErrorsPerProjectPerHour != null && message.hasOwnProperty("serverErrorsPerProjectPerHour")) + object.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.serverErrorsPerProjectPerHour, options); return object; }; /** - * Converts this DeleteAccountRequest to JSON. + * Converts this AccessQuota to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuota * @instance * @returns {Object.} JSON object */ - DeleteAccountRequest.prototype.toJSON = function toJSON() { + AccessQuota.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteAccountRequest; + return AccessQuota; })(); - v1alpha.UpdateAccountRequest = (function() { + v1alpha.AccessQuotaStatus = (function() { /** - * Properties of an UpdateAccountRequest. + * Properties of an AccessQuotaStatus. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateAccountRequest - * @property {google.analytics.admin.v1alpha.IAccount|null} [account] UpdateAccountRequest account - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountRequest updateMask + * @interface IAccessQuotaStatus + * @property {number|null} [consumed] AccessQuotaStatus consumed + * @property {number|null} [remaining] AccessQuotaStatus remaining */ /** - * Constructs a new UpdateAccountRequest. + * Constructs a new AccessQuotaStatus. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateAccountRequest. - * @implements IUpdateAccountRequest + * @classdesc Represents an AccessQuotaStatus. + * @implements IAccessQuotaStatus * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccessQuotaStatus=} [properties] Properties to set */ - function UpdateAccountRequest(properties) { + function AccessQuotaStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3307,88 +4766,88 @@ } /** - * UpdateAccountRequest account. - * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * AccessQuotaStatus consumed. + * @member {number} consumed + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @instance */ - UpdateAccountRequest.prototype.account = null; + AccessQuotaStatus.prototype.consumed = 0; /** - * UpdateAccountRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * AccessQuotaStatus remaining. + * @member {number} remaining + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @instance */ - UpdateAccountRequest.prototype.updateMask = null; + AccessQuotaStatus.prototype.remaining = 0; /** - * Creates a new UpdateAccountRequest instance using the specified properties. + * Creates a new AccessQuotaStatus instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @static - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest instance + * @param {google.analytics.admin.v1alpha.IAccessQuotaStatus=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccessQuotaStatus} AccessQuotaStatus instance */ - UpdateAccountRequest.create = function create(properties) { - return new UpdateAccountRequest(properties); + AccessQuotaStatus.create = function create(properties) { + return new AccessQuotaStatus(properties); }; /** - * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. + * Encodes the specified AccessQuotaStatus message. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuotaStatus.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @static - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessQuotaStatus} message AccessQuotaStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAccountRequest.encode = function encode(message, writer) { + AccessQuotaStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - $root.google.analytics.admin.v1alpha.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(); + if (message.consumed != null && Object.hasOwnProperty.call(message, "consumed")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.consumed); + if (message.remaining != null && Object.hasOwnProperty.call(message, "remaining")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.remaining); return writer; }; /** - * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. + * Encodes the specified AccessQuotaStatus message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccessQuotaStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @static - * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccessQuotaStatus} message AccessQuotaStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { + AccessQuotaStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateAccountRequest message from the specified reader or buffer. + * Decodes an AccessQuotaStatus message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessQuotaStatus} AccessQuotaStatus * @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) { + AccessQuotaStatus.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.analytics.admin.v1alpha.UpdateAccountRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccessQuotaStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + message.consumed = reader.int32(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.remaining = reader.int32(); break; default: reader.skipType(tag & 7); @@ -3399,3450 +4858,2990 @@ }; /** - * Decodes an UpdateAccountRequest message from the specified reader or buffer, length delimited. + * Decodes an AccessQuotaStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessQuotaStatus} AccessQuotaStatus * @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) { + AccessQuotaStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateAccountRequest message. + * Verifies an AccessQuotaStatus message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @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) { + AccessQuotaStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.account != null && message.hasOwnProperty("account")) { - var error = $root.google.analytics.admin.v1alpha.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; - } + if (message.consumed != null && message.hasOwnProperty("consumed")) + if (!$util.isInteger(message.consumed)) + return "consumed: integer expected"; + if (message.remaining != null && message.hasOwnProperty("remaining")) + if (!$util.isInteger(message.remaining)) + return "remaining: integer expected"; return null; }; /** - * Creates an UpdateAccountRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AccessQuotaStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest + * @returns {google.analytics.admin.v1alpha.AccessQuotaStatus} AccessQuotaStatus */ - UpdateAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAccountRequest) + AccessQuotaStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccessQuotaStatus) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateAccountRequest(); - if (object.account != null) { - if (typeof object.account !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.account: object expected"); - message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.AccessQuotaStatus(); + if (object.consumed != null) + message.consumed = object.consumed | 0; + if (object.remaining != null) + message.remaining = object.remaining | 0; return message; }; /** - * Creates a plain object from an UpdateAccountRequest message. Also converts values to other types if specified. + * Creates a plain object from an AccessQuotaStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @static - * @param {google.analytics.admin.v1alpha.UpdateAccountRequest} message UpdateAccountRequest + * @param {google.analytics.admin.v1alpha.AccessQuotaStatus} message AccessQuotaStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateAccountRequest.toObject = function toObject(message, options) { + AccessQuotaStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.account = null; - object.updateMask = null; + object.consumed = 0; + object.remaining = 0; } - if (message.account != null && message.hasOwnProperty("account")) - object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.consumed != null && message.hasOwnProperty("consumed")) + object.consumed = message.consumed; + if (message.remaining != null && message.hasOwnProperty("remaining")) + object.remaining = message.remaining; return object; }; /** - * Converts this UpdateAccountRequest to JSON. + * Converts this AccessQuotaStatus to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus * @instance * @returns {Object.} JSON object */ - UpdateAccountRequest.prototype.toJSON = function toJSON() { + AccessQuotaStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateAccountRequest; + return AccessQuotaStatus; })(); - v1alpha.ProvisionAccountTicketRequest = (function() { + v1alpha.AnalyticsAdminService = (function() { /** - * Properties of a ProvisionAccountTicketRequest. + * Constructs a new AnalyticsAdminService service. * @memberof google.analytics.admin.v1alpha - * @interface IProvisionAccountTicketRequest - * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ProvisionAccountTicketRequest account - * @property {string|null} [redirectUri] ProvisionAccountTicketRequest redirectUri + * @classdesc Represents an AnalyticsAdminService + * @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 AnalyticsAdminService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AnalyticsAdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AnalyticsAdminService; /** - * Constructs a new ProvisionAccountTicketRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ProvisionAccountTicketRequest. - * @implements IProvisionAccountTicketRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set + * Creates new AnalyticsAdminService service using the specified rpc implementation. + * @function create + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @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 {AnalyticsAdminService} RPC service. Useful where requests and/or responses are streamed. */ - function ProvisionAccountTicketRequest(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]]; - } + AnalyticsAdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ProvisionAccountTicketRequest account. - * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Account} [response] Account + */ + + /** + * Calls GetAccount. + * @function getAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IGetAccountRequest} request GetAccountRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccountCallback} callback Node-style callback called with the error, if any, and Account + * @returns {undefined} + * @variation 1 */ - ProvisionAccountTicketRequest.prototype.account = null; + Object.defineProperty(AnalyticsAdminService.prototype.getAccount = function getAccount(request, callback) { + return this.rpcCall(getAccount, $root.google.analytics.admin.v1alpha.GetAccountRequest, $root.google.analytics.admin.v1alpha.Account, request, callback); + }, "name", { value: "GetAccount" }); /** - * ProvisionAccountTicketRequest redirectUri. - * @member {string} redirectUri - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * Calls GetAccount. + * @function getAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IGetAccountRequest} request GetAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketRequest.prototype.redirectUri = ""; /** - * Creates a new ProvisionAccountTicketRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListAccountsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListAccountsResponse} [response] ListAccountsResponse */ - ProvisionAccountTicketRequest.create = function create(properties) { - return new ProvisionAccountTicketRequest(properties); - }; /** - * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListAccounts. + * @function listAccounts + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} request ListAccountsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountsCallback} callback Node-style callback called with the error, if any, and ListAccountsResponse + * @returns {undefined} + * @variation 1 */ - ProvisionAccountTicketRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.redirectUri != null && Object.hasOwnProperty.call(message, "redirectUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); - return writer; - }; + Object.defineProperty(AnalyticsAdminService.prototype.listAccounts = function listAccounts(request, callback) { + return this.rpcCall(listAccounts, $root.google.analytics.admin.v1alpha.ListAccountsRequest, $root.google.analytics.admin.v1alpha.ListAccountsResponse, request, callback); + }, "name", { value: "ListAccounts" }); /** - * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListAccounts. + * @function listAccounts + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} request ListAccountsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAccount}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ProvisionAccountTicketRequest.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.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); - break; - case 2: - message.redirectUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteAccount. + * @function deleteAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} request DeleteAccountRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccountCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ProvisionAccountTicketRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteAccount = function deleteAccount(request, callback) { + return this.rpcCall(deleteAccount, $root.google.analytics.admin.v1alpha.DeleteAccountRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteAccount" }); /** - * Verifies a ProvisionAccountTicketRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeleteAccount. + * @function deleteAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} request DeleteAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.account != null && message.hasOwnProperty("account")) { - var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); - if (error) - return "account." + error; - } - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - if (!$util.isString(message.redirectUri)) - return "redirectUri: string expected"; - return null; - }; /** - * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Account} [response] Account */ - ProvisionAccountTicketRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); - if (object.account != null) { - if (typeof object.account !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.account: object expected"); - message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); - } - if (object.redirectUri != null) - message.redirectUri = String(object.redirectUri); - return message; - }; /** - * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - * @static - * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} message ProvisionAccountTicketRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls UpdateAccount. + * @function updateAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} request UpdateAccountRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccountCallback} callback Node-style callback called with the error, if any, and Account + * @returns {undefined} + * @variation 1 */ - ProvisionAccountTicketRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.account = null; - object.redirectUri = ""; - } - if (message.account != null && message.hasOwnProperty("account")) - object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - object.redirectUri = message.redirectUri; - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.updateAccount = function updateAccount(request, callback) { + return this.rpcCall(updateAccount, $root.google.analytics.admin.v1alpha.UpdateAccountRequest, $root.google.analytics.admin.v1alpha.Account, request, callback); + }, "name", { value: "UpdateAccount" }); /** - * Converts this ProvisionAccountTicketRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * Calls UpdateAccount. + * @function updateAccount + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} request UpdateAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProvisionAccountTicketRequest; - })(); - - v1alpha.ProvisionAccountTicketResponse = (function() { /** - * Properties of a ProvisionAccountTicketResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IProvisionAccountTicketResponse - * @property {string|null} [accountTicketId] ProvisionAccountTicketResponse accountTicketId + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ProvisionAccountTicketCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} [response] ProvisionAccountTicketResponse */ /** - * Constructs a new ProvisionAccountTicketResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ProvisionAccountTicketResponse. - * @implements IProvisionAccountTicketResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set + * Calls ProvisionAccountTicket. + * @function provisionAccountTicket + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicketCallback} callback Node-style callback called with the error, if any, and ProvisionAccountTicketResponse + * @returns {undefined} + * @variation 1 */ - function ProvisionAccountTicketResponse(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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.provisionAccountTicket = function provisionAccountTicket(request, callback) { + return this.rpcCall(provisionAccountTicket, $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse, request, callback); + }, "name", { value: "ProvisionAccountTicket" }); /** - * ProvisionAccountTicketResponse accountTicketId. - * @member {string} accountTicketId - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * Calls ProvisionAccountTicket. + * @function provisionAccountTicket + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} request ProvisionAccountTicketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketResponse.prototype.accountTicketId = ""; /** - * Creates a new ProvisionAccountTicketResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListAccountSummariesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} [response] ListAccountSummariesResponse */ - ProvisionAccountTicketResponse.create = function create(properties) { - return new ProvisionAccountTicketResponse(properties); - }; /** - * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListAccountSummaries. + * @function listAccountSummaries + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummariesCallback} callback Node-style callback called with the error, if any, and ListAccountSummariesResponse + * @returns {undefined} + * @variation 1 */ - ProvisionAccountTicketResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.accountTicketId != null && Object.hasOwnProperty.call(message, "accountTicketId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.accountTicketId); - return writer; - }; + Object.defineProperty(AnalyticsAdminService.prototype.listAccountSummaries = function listAccountSummaries(request, callback) { + return this.rpcCall(listAccountSummaries, $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest, $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse, request, callback); + }, "name", { value: "ListAccountSummaries" }); /** - * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListAccountSummaries. + * @function listAccountSummaries + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} request ListAccountSummariesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetPropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Property} [response] Property */ - ProvisionAccountTicketResponse.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.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accountTicketId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetProperty. + * @function getProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} request GetPropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetPropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 */ - ProvisionAccountTicketResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.getProperty = function getProperty(request, callback) { + return this.rpcCall(getProperty, $root.google.analytics.admin.v1alpha.GetPropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); + }, "name", { value: "GetProperty" }); /** - * Verifies a ProvisionAccountTicketResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetProperty. + * @function getProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} request GetPropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) - if (!$util.isString(message.accountTicketId)) - return "accountTicketId: string expected"; - return null; - }; /** - * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListPropertiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} [response] ListPropertiesResponse */ - ProvisionAccountTicketResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); - if (object.accountTicketId != null) - message.accountTicketId = String(object.accountTicketId); - return message; - }; /** - * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - * @static - * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} message ProvisionAccountTicketResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListProperties. + * @function listProperties + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} request ListPropertiesRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListPropertiesCallback} callback Node-style callback called with the error, if any, and ListPropertiesResponse + * @returns {undefined} + * @variation 1 */ - ProvisionAccountTicketResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.accountTicketId = ""; - if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) - object.accountTicketId = message.accountTicketId; - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.listProperties = function listProperties(request, callback) { + return this.rpcCall(listProperties, $root.google.analytics.admin.v1alpha.ListPropertiesRequest, $root.google.analytics.admin.v1alpha.ListPropertiesResponse, request, callback); + }, "name", { value: "ListProperties" }); /** - * Converts this ProvisionAccountTicketResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * Calls ListProperties. + * @function listProperties + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} request ListPropertiesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ProvisionAccountTicketResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProvisionAccountTicketResponse; - })(); - - v1alpha.GetPropertyRequest = (function() { /** - * Properties of a GetPropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetPropertyRequest - * @property {string|null} [name] GetPropertyRequest name + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreatePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Property} [response] Property */ /** - * Constructs a new GetPropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetPropertyRequest. - * @implements IGetPropertyRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set + * Calls CreateProperty. + * @function createProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} request CreatePropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreatePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 */ - function GetPropertyRequest(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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.createProperty = function createProperty(request, callback) { + return this.rpcCall(createProperty, $root.google.analytics.admin.v1alpha.CreatePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); + }, "name", { value: "CreateProperty" }); /** - * GetPropertyRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * Calls CreateProperty. + * @function createProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} request CreatePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPropertyRequest.prototype.name = ""; /** - * Creates a new GetPropertyRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeletePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Property} [response] Property */ - GetPropertyRequest.create = function create(properties) { - return new GetPropertyRequest(properties); - }; /** - * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteProperty. + * @function deleteProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeletePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 */ - GetPropertyRequest.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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteProperty = function deleteProperty(request, callback) { + return this.rpcCall(deleteProperty, $root.google.analytics.admin.v1alpha.DeletePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); + }, "name", { value: "DeleteProperty" }); /** - * Encodes the specified GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteProperty. + * @function deleteProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} request DeletePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a GetPropertyRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdatePropertyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Property} [response] Property */ - GetPropertyRequest.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.analytics.admin.v1alpha.GetPropertyRequest(); - 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 GetPropertyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateProperty. + * @function updateProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdatePropertyCallback} callback Node-style callback called with the error, if any, and Property + * @returns {undefined} + * @variation 1 */ - GetPropertyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.updateProperty = function updateProperty(request, callback) { + return this.rpcCall(updateProperty, $root.google.analytics.admin.v1alpha.UpdatePropertyRequest, $root.google.analytics.admin.v1alpha.Property, request, callback); + }, "name", { value: "UpdateProperty" }); /** - * Verifies a GetPropertyRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdateProperty. + * @function updateProperty + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} request UpdatePropertyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPropertyRequest.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 GetPropertyRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink */ - GetPropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetPropertyRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.GetPropertyRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.GetPropertyRequest} message GetPropertyRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetUserLink. + * @function getUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} request GetUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink + * @returns {undefined} + * @variation 1 */ - GetPropertyRequest.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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.getUserLink = function getUserLink(request, callback) { + return this.rpcCall(getUserLink, $root.google.analytics.admin.v1alpha.GetUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); + }, "name", { value: "GetUserLink" }); /** - * Converts this GetPropertyRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * Calls GetUserLink. + * @function getUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} request GetUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetPropertyRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetPropertyRequest; - })(); - - v1alpha.ListPropertiesRequest = (function() { /** - * Properties of a ListPropertiesRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IListPropertiesRequest - * @property {string|null} [filter] ListPropertiesRequest filter - * @property {number|null} [pageSize] ListPropertiesRequest pageSize - * @property {string|null} [pageToken] ListPropertiesRequest pageToken - * @property {boolean|null} [showDeleted] ListPropertiesRequest showDeleted + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchGetUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} [response] BatchGetUserLinksResponse */ /** - * Constructs a new ListPropertiesRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListPropertiesRequest. - * @implements IListPropertiesRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set + * Calls BatchGetUserLinks. + * @function batchGetUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} request BatchGetUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinksCallback} callback Node-style callback called with the error, if any, and BatchGetUserLinksResponse + * @returns {undefined} + * @variation 1 */ - function ListPropertiesRequest(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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.batchGetUserLinks = function batchGetUserLinks(request, callback) { + return this.rpcCall(batchGetUserLinks, $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse, request, callback); + }, "name", { value: "BatchGetUserLinks" }); /** - * ListPropertiesRequest filter. - * @member {string} filter - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * Calls BatchGetUserLinks. + * @function batchGetUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} request BatchGetUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesRequest.prototype.filter = ""; /** - * ListPropertiesRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} [response] ListUserLinksResponse */ - ListPropertiesRequest.prototype.pageSize = 0; /** - * ListPropertiesRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * Calls ListUserLinks. + * @function listUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} request ListUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinksCallback} callback Node-style callback called with the error, if any, and ListUserLinksResponse + * @returns {undefined} + * @variation 1 */ - ListPropertiesRequest.prototype.pageToken = ""; + Object.defineProperty(AnalyticsAdminService.prototype.listUserLinks = function listUserLinks(request, callback) { + return this.rpcCall(listUserLinks, $root.google.analytics.admin.v1alpha.ListUserLinksRequest, $root.google.analytics.admin.v1alpha.ListUserLinksResponse, request, callback); + }, "name", { value: "ListUserLinks" }); /** - * ListPropertiesRequest showDeleted. - * @member {boolean} showDeleted - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * Calls ListUserLinks. + * @function listUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} request ListUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesRequest.prototype.showDeleted = false; /** - * Creates a new ListPropertiesRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef AuditUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} [response] AuditUserLinksResponse */ - ListPropertiesRequest.create = function create(properties) { - return new ListPropertiesRequest(properties); - }; /** - * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls AuditUserLinks. + * @function auditUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} request AuditUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinksCallback} callback Node-style callback called with the error, if any, and AuditUserLinksResponse + * @returns {undefined} + * @variation 1 */ - ListPropertiesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); - 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.showDeleted); - return writer; - }; + Object.defineProperty(AnalyticsAdminService.prototype.auditUserLinks = function auditUserLinks(request, callback) { + return this.rpcCall(auditUserLinks, $root.google.analytics.admin.v1alpha.AuditUserLinksRequest, $root.google.analytics.admin.v1alpha.AuditUserLinksResponse, request, callback); + }, "name", { value: "AuditUserLinks" }); /** - * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls AuditUserLinks. + * @function auditUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} request AuditUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListPropertiesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink */ - ListPropertiesRequest.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.analytics.admin.v1alpha.ListPropertiesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.filter = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.showDeleted = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateUserLink. + * @function createUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} request CreateUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink + * @returns {undefined} + * @variation 1 */ - ListPropertiesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.createUserLink = function createUserLink(request, callback) { + return this.rpcCall(createUserLink, $root.google.analytics.admin.v1alpha.CreateUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); + }, "name", { value: "CreateUserLink" }); /** - * Verifies a ListPropertiesRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateUserLink. + * @function createUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} request CreateUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: 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.showDeleted != null && message.hasOwnProperty("showDeleted")) - if (typeof message.showDeleted !== "boolean") - return "showDeleted: boolean expected"; - return null; - }; /** - * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchCreateUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} [response] BatchCreateUserLinksResponse */ - ListPropertiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListPropertiesRequest(); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.showDeleted != null) - message.showDeleted = Boolean(object.showDeleted); - return message; - }; /** - * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest - * @static - * @param {google.analytics.admin.v1alpha.ListPropertiesRequest} message ListPropertiesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls BatchCreateUserLinks. + * @function batchCreateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} request BatchCreateUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinksCallback} callback Node-style callback called with the error, if any, and BatchCreateUserLinksResponse + * @returns {undefined} + * @variation 1 */ - ListPropertiesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.showDeleted = false; - } - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.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.showDeleted != null && message.hasOwnProperty("showDeleted")) - object.showDeleted = message.showDeleted; - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.batchCreateUserLinks = function batchCreateUserLinks(request, callback) { + return this.rpcCall(batchCreateUserLinks, $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse, request, callback); + }, "name", { value: "BatchCreateUserLinks" }); /** - * Converts this ListPropertiesRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * Calls BatchCreateUserLinks. + * @function batchCreateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} request BatchCreateUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListPropertiesRequest; - })(); - - v1alpha.ListPropertiesResponse = (function() { /** - * Properties of a ListPropertiesResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IListPropertiesResponse - * @property {Array.|null} [properties] ListPropertiesResponse properties - * @property {string|null} [nextPageToken] ListPropertiesResponse nextPageToken + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.UserLink} [response] UserLink */ /** - * Constructs a new ListPropertiesResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListPropertiesResponse. - * @implements IListPropertiesResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set + * Calls UpdateUserLink. + * @function updateUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} request UpdateUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLinkCallback} callback Node-style callback called with the error, if any, and UserLink + * @returns {undefined} + * @variation 1 */ - function ListPropertiesResponse(properties) { - this.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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.updateUserLink = function updateUserLink(request, callback) { + return this.rpcCall(updateUserLink, $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest, $root.google.analytics.admin.v1alpha.UserLink, request, callback); + }, "name", { value: "UpdateUserLink" }); /** - * ListPropertiesResponse properties. - * @member {Array.} properties - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * Calls UpdateUserLink. + * @function updateUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} request UpdateUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesResponse.prototype.properties = $util.emptyArray; /** - * ListPropertiesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchUpdateUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} [response] BatchUpdateUserLinksResponse + */ + + /** + * Calls BatchUpdateUserLinks. + * @function batchUpdateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} request BatchUpdateUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinksCallback} callback Node-style callback called with the error, if any, and BatchUpdateUserLinksResponse + * @returns {undefined} + * @variation 1 */ - ListPropertiesResponse.prototype.nextPageToken = ""; + Object.defineProperty(AnalyticsAdminService.prototype.batchUpdateUserLinks = function batchUpdateUserLinks(request, callback) { + return this.rpcCall(batchUpdateUserLinks, $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse, request, callback); + }, "name", { value: "BatchUpdateUserLinks" }); /** - * Creates a new ListPropertiesResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse instance + * Calls BatchUpdateUserLinks. + * @function batchUpdateUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} request BatchUpdateUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesResponse.create = function create(properties) { - return new ListPropertiesResponse(properties); - }; /** - * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteUserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListPropertiesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.properties != null && message.properties.length) - for (var i = 0; i < message.properties.length; ++i) - $root.google.analytics.admin.v1alpha.Property.encode(message.properties[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 ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteUserLink. + * @function deleteUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} request DeleteUserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteUserLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListPropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteUserLink = function deleteUserLink(request, callback) { + return this.rpcCall(deleteUserLink, $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteUserLink" }); /** - * Decodes a ListPropertiesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteUserLink. + * @function deleteUserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} request DeleteUserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesResponse.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.analytics.admin.v1alpha.ListPropertiesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.properties && message.properties.length)) - message.properties = []; - message.properties.push($root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef BatchDeleteUserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListPropertiesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListPropertiesResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls BatchDeleteUserLinks. + * @function batchDeleteUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} request BatchDeleteUserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteUserLinksCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListPropertiesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.properties != null && message.hasOwnProperty("properties")) { - if (!Array.isArray(message.properties)) - return "properties: array expected"; - for (var i = 0; i < message.properties.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.properties[i]); - if (error) - return "properties." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + Object.defineProperty(AnalyticsAdminService.prototype.batchDeleteUserLinks = function batchDeleteUserLinks(request, callback) { + return this.rpcCall(batchDeleteUserLinks, $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "BatchDeleteUserLinks" }); /** - * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse + * Calls BatchDeleteUserLinks. + * @function batchDeleteUserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} request BatchDeleteUserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPropertiesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListPropertiesResponse(); - if (object.properties) { - if (!Array.isArray(object.properties)) - throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: array expected"); - message.properties = []; - for (var i = 0; i < object.properties.length; ++i) { - if (typeof object.properties[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: object expected"); - message.properties[i] = $root.google.analytics.admin.v1alpha.Property.fromObject(object.properties[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse - * @static - * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} message ListPropertiesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateFirebaseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.FirebaseLink} [response] FirebaseLink */ - ListPropertiesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.properties = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.properties && message.properties.length) { - object.properties = []; - for (var j = 0; j < message.properties.length; ++j) - object.properties[j] = $root.google.analytics.admin.v1alpha.Property.toObject(message.properties[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; /** - * Converts this ListPropertiesResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * Calls CreateFirebaseLink. + * @function createFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLinkCallback} callback Node-style callback called with the error, if any, and FirebaseLink + * @returns {undefined} + * @variation 1 */ - ListPropertiesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListPropertiesResponse; - })(); - - v1alpha.UpdatePropertyRequest = (function() { + Object.defineProperty(AnalyticsAdminService.prototype.createFirebaseLink = function createFirebaseLink(request, callback) { + return this.rpcCall(createFirebaseLink, $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, $root.google.analytics.admin.v1alpha.FirebaseLink, request, callback); + }, "name", { value: "CreateFirebaseLink" }); /** - * Properties of an UpdatePropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IUpdatePropertyRequest - * @property {google.analytics.admin.v1alpha.IProperty|null} [property] UpdatePropertyRequest property - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePropertyRequest updateMask + * Calls CreateFirebaseLink. + * @function createFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} request CreateFirebaseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new UpdatePropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdatePropertyRequest. - * @implements IUpdatePropertyRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteFirebaseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - function UpdatePropertyRequest(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]]; - } /** - * UpdatePropertyRequest property. - * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * Calls DeleteFirebaseLink. + * @function deleteFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - UpdatePropertyRequest.prototype.property = null; + Object.defineProperty(AnalyticsAdminService.prototype.deleteFirebaseLink = function deleteFirebaseLink(request, callback) { + return this.rpcCall(deleteFirebaseLink, $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteFirebaseLink" }); /** - * UpdatePropertyRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * Calls DeleteFirebaseLink. + * @function deleteFirebaseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} request DeleteFirebaseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePropertyRequest.prototype.updateMask = null; /** - * Creates a new UpdatePropertyRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListFirebaseLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} [response] ListFirebaseLinksResponse */ - UpdatePropertyRequest.create = function create(properties) { - return new UpdatePropertyRequest(properties); - }; /** - * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListFirebaseLinks. + * @function listFirebaseLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinksCallback} callback Node-style callback called with the error, if any, and ListFirebaseLinksResponse + * @returns {undefined} + * @variation 1 */ - UpdatePropertyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - $root.google.analytics.admin.v1alpha.Property.encode(message.property, 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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.listFirebaseLinks = function listFirebaseLinks(request, callback) { + return this.rpcCall(listFirebaseLinks, $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse, request, callback); + }, "name", { value: "ListFirebaseLinks" }); /** - * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListFirebaseLinks. + * @function listFirebaseLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} request ListFirebaseLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an UpdatePropertyRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetGlobalSiteTagCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} [response] GlobalSiteTag */ - UpdatePropertyRequest.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.analytics.admin.v1alpha.UpdatePropertyRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.property = $root.google.analytics.admin.v1alpha.Property.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 UpdatePropertyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetGlobalSiteTag. + * @function getGlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} request GetGlobalSiteTagRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTagCallback} callback Node-style callback called with the error, if any, and GlobalSiteTag + * @returns {undefined} + * @variation 1 */ - UpdatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.getGlobalSiteTag = function getGlobalSiteTag(request, callback) { + return this.rpcCall(getGlobalSiteTag, $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, $root.google.analytics.admin.v1alpha.GlobalSiteTag, request, callback); + }, "name", { value: "GetGlobalSiteTag" }); /** - * Verifies an UpdatePropertyRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetGlobalSiteTag. + * @function getGlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} request GetGlobalSiteTagRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePropertyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); - if (error) - return "property." + 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 UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} [response] GoogleAdsLink */ - UpdatePropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdatePropertyRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.UpdatePropertyRequest(); - if (object.property != null) { - if (typeof object.property !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.property: object expected"); - message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; /** - * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.UpdatePropertyRequest} message UpdatePropertyRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls CreateGoogleAdsLink. + * @function createGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink + * @returns {undefined} + * @variation 1 */ - UpdatePropertyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.property = null; - object.updateMask = null; - } - if (message.property != null && message.hasOwnProperty("property")) - object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.createGoogleAdsLink = function createGoogleAdsLink(request, callback) { + return this.rpcCall(createGoogleAdsLink, $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, $root.google.analytics.admin.v1alpha.GoogleAdsLink, request, callback); + }, "name", { value: "CreateGoogleAdsLink" }); /** - * Converts this UpdatePropertyRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * Calls CreateGoogleAdsLink. + * @function createGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} request CreateGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdatePropertyRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdatePropertyRequest; - })(); - - v1alpha.CreatePropertyRequest = (function() { /** - * Properties of a CreatePropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @interface ICreatePropertyRequest - * @property {google.analytics.admin.v1alpha.IProperty|null} [property] CreatePropertyRequest property + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} [response] GoogleAdsLink */ /** - * Constructs a new CreatePropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreatePropertyRequest. - * @implements ICreatePropertyRequest - * @constructor - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set + * Calls UpdateGoogleAdsLink. + * @function updateGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and GoogleAdsLink + * @returns {undefined} + * @variation 1 */ - function CreatePropertyRequest(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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.updateGoogleAdsLink = function updateGoogleAdsLink(request, callback) { + return this.rpcCall(updateGoogleAdsLink, $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, $root.google.analytics.admin.v1alpha.GoogleAdsLink, request, callback); + }, "name", { value: "UpdateGoogleAdsLink" }); /** - * CreatePropertyRequest property. - * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * Calls UpdateGoogleAdsLink. + * @function updateGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} request UpdateGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePropertyRequest.prototype.property = null; /** - * Creates a new CreatePropertyRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteGoogleAdsLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CreatePropertyRequest.create = function create(properties) { - return new CreatePropertyRequest(properties); - }; /** - * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteGoogleAdsLink. + * @function deleteGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CreatePropertyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteGoogleAdsLink = function deleteGoogleAdsLink(request, callback) { + return this.rpcCall(deleteGoogleAdsLink, $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteGoogleAdsLink" }); /** - * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteGoogleAdsLink. + * @function deleteGoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} request DeleteGoogleAdsLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreatePropertyRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListGoogleAdsLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} [response] ListGoogleAdsLinksResponse */ - CreatePropertyRequest.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.analytics.admin.v1alpha.CreatePropertyRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListGoogleAdsLinks. + * @function listGoogleAdsLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinksCallback} callback Node-style callback called with the error, if any, and ListGoogleAdsLinksResponse + * @returns {undefined} + * @variation 1 */ - CreatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.listGoogleAdsLinks = function listGoogleAdsLinks(request, callback) { + return this.rpcCall(listGoogleAdsLinks, $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse, request, callback); + }, "name", { value: "ListGoogleAdsLinks" }); /** - * Verifies a CreatePropertyRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListGoogleAdsLinks. + * @function listGoogleAdsLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} request ListGoogleAdsLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePropertyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); - if (error) - return "property." + error; - } - return null; - }; /** - * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDataSharingSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataSharingSettings} [response] DataSharingSettings */ - CreatePropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreatePropertyRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.CreatePropertyRequest(); - if (object.property != null) { - if (typeof object.property !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreatePropertyRequest.property: object expected"); - message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); - } - return message; - }; /** - * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.CreatePropertyRequest} message CreatePropertyRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetDataSharingSettings. + * @function getDataSharingSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettingsCallback} callback Node-style callback called with the error, if any, and DataSharingSettings + * @returns {undefined} + * @variation 1 */ - CreatePropertyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.property = null; - if (message.property != null && message.hasOwnProperty("property")) - object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.getDataSharingSettings = function getDataSharingSettings(request, callback) { + return this.rpcCall(getDataSharingSettings, $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, $root.google.analytics.admin.v1alpha.DataSharingSettings, request, callback); + }, "name", { value: "GetDataSharingSettings" }); /** - * Converts this CreatePropertyRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * Calls GetDataSharingSettings. + * @function getDataSharingSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} request GetDataSharingSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePropertyRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreatePropertyRequest; - })(); - - v1alpha.DeletePropertyRequest = (function() { /** - * Properties of a DeletePropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IDeletePropertyRequest - * @property {string|null} [name] DeletePropertyRequest name + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret */ /** - * Constructs a new DeletePropertyRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeletePropertyRequest. - * @implements IDeletePropertyRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set + * Calls GetMeasurementProtocolSecret. + * @function getMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 */ - function DeletePropertyRequest(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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.getMeasurementProtocolSecret = function getMeasurementProtocolSecret(request, callback) { + return this.rpcCall(getMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); + }, "name", { value: "GetMeasurementProtocolSecret" }); /** - * DeletePropertyRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * Calls GetMeasurementProtocolSecret. + * @function getMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} request GetMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeletePropertyRequest.prototype.name = ""; /** - * Creates a new DeletePropertyRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListMeasurementProtocolSecretsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} [response] ListMeasurementProtocolSecretsResponse */ - DeletePropertyRequest.create = function create(properties) { - return new DeletePropertyRequest(properties); - }; /** - * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListMeasurementProtocolSecrets. + * @function listMeasurementProtocolSecrets + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecretsCallback} callback Node-style callback called with the error, if any, and ListMeasurementProtocolSecretsResponse + * @returns {undefined} + * @variation 1 */ - DeletePropertyRequest.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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.listMeasurementProtocolSecrets = function listMeasurementProtocolSecrets(request, callback) { + return this.rpcCall(listMeasurementProtocolSecrets, $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse, request, callback); + }, "name", { value: "ListMeasurementProtocolSecrets" }); /** - * Encodes the specified DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListMeasurementProtocolSecrets. + * @function listMeasurementProtocolSecrets + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} request ListMeasurementProtocolSecretsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeletePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a DeletePropertyRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret */ - DeletePropertyRequest.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.analytics.admin.v1alpha.DeletePropertyRequest(); - 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 DeletePropertyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateMeasurementProtocolSecret. + * @function createMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 */ - DeletePropertyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.createMeasurementProtocolSecret = function createMeasurementProtocolSecret(request, callback) { + return this.rpcCall(createMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); + }, "name", { value: "CreateMeasurementProtocolSecret" }); /** - * Verifies a DeletePropertyRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateMeasurementProtocolSecret. + * @function createMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} request CreateMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeletePropertyRequest.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 DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - DeletePropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeletePropertyRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.DeletePropertyRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest - * @static - * @param {google.analytics.admin.v1alpha.DeletePropertyRequest} message DeletePropertyRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls DeleteMeasurementProtocolSecret. + * @function deleteMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - DeletePropertyRequest.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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteMeasurementProtocolSecret = function deleteMeasurementProtocolSecret(request, callback) { + return this.rpcCall(deleteMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteMeasurementProtocolSecret" }); /** - * Converts this DeletePropertyRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * Calls DeleteMeasurementProtocolSecret. + * @function deleteMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} request DeleteMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeletePropertyRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return DeletePropertyRequest; - })(); + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateMeasurementProtocolSecretCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} [response] MeasurementProtocolSecret + */ - v1alpha.GetUserLinkRequest = (function() { + /** + * Calls UpdateMeasurementProtocolSecret. + * @function updateMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecretCallback} callback Node-style callback called with the error, if any, and MeasurementProtocolSecret + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateMeasurementProtocolSecret = function updateMeasurementProtocolSecret(request, callback) { + return this.rpcCall(updateMeasurementProtocolSecret, $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret, request, callback); + }, "name", { value: "UpdateMeasurementProtocolSecret" }); /** - * Properties of a GetUserLinkRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IGetUserLinkRequest - * @property {string|null} [name] GetUserLinkRequest name + * Calls UpdateMeasurementProtocolSecret. + * @function updateMeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} request UpdateMeasurementProtocolSecretRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GetUserLinkRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetUserLinkRequest. - * @implements IGetUserLinkRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef AcknowledgeUserDataCollectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} [response] AcknowledgeUserDataCollectionResponse */ - function GetUserLinkRequest(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]]; - } /** - * GetUserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * Calls AcknowledgeUserDataCollection. + * @function acknowledgeUserDataCollection + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollectionCallback} callback Node-style callback called with the error, if any, and AcknowledgeUserDataCollectionResponse + * @returns {undefined} + * @variation 1 */ - GetUserLinkRequest.prototype.name = ""; + Object.defineProperty(AnalyticsAdminService.prototype.acknowledgeUserDataCollection = function acknowledgeUserDataCollection(request, callback) { + return this.rpcCall(acknowledgeUserDataCollection, $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse, request, callback); + }, "name", { value: "AcknowledgeUserDataCollection" }); /** - * Creates a new GetUserLinkRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest instance + * Calls AcknowledgeUserDataCollection. + * @function acknowledgeUserDataCollection + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} request AcknowledgeUserDataCollectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetUserLinkRequest.create = function create(properties) { - return new GetUserLinkRequest(properties); - }; /** - * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef SearchChangeHistoryEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} [response] SearchChangeHistoryEventsResponse */ - GetUserLinkRequest.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 GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEventsCallback} callback Node-style callback called with the error, if any, and SearchChangeHistoryEventsResponse + * @returns {undefined} + * @variation 1 */ - GetUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(AnalyticsAdminService.prototype.searchChangeHistoryEvents = function searchChangeHistoryEvents(request, callback) { + return this.rpcCall(searchChangeHistoryEvents, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse, request, callback); + }, "name", { value: "SearchChangeHistoryEvents" }); /** - * Decodes a GetUserLinkRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchChangeHistoryEvents. + * @function searchChangeHistoryEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} request SearchChangeHistoryEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetUserLinkRequest.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.analytics.admin.v1alpha.GetUserLinkRequest(); - 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 GetUserLinkRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetGoogleSignalsSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} [response] GoogleSignalsSettings */ - GetUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetUserLinkRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetGoogleSignalsSettings. + * @function getGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} request GetGoogleSignalsSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettingsCallback} callback Node-style callback called with the error, if any, and GoogleSignalsSettings + * @returns {undefined} + * @variation 1 */ - GetUserLinkRequest.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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.getGoogleSignalsSettings = function getGoogleSignalsSettings(request, callback) { + return this.rpcCall(getGoogleSignalsSettings, $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, $root.google.analytics.admin.v1alpha.GoogleSignalsSettings, request, callback); + }, "name", { value: "GetGoogleSignalsSettings" }); /** - * Creates a GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest + * Calls GetGoogleSignalsSettings. + * @function getGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} request GetGoogleSignalsSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetUserLinkRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.GetUserLinkRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.GetUserLinkRequest} message GetUserLinkRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateGoogleSignalsSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} [response] GoogleSignalsSettings */ - GetUserLinkRequest.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 GetUserLinkRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * Calls UpdateGoogleSignalsSettings. + * @function updateGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} request UpdateGoogleSignalsSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettingsCallback} callback Node-style callback called with the error, if any, and GoogleSignalsSettings + * @returns {undefined} + * @variation 1 */ - GetUserLinkRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetUserLinkRequest; - })(); - - v1alpha.BatchGetUserLinksRequest = (function() { + Object.defineProperty(AnalyticsAdminService.prototype.updateGoogleSignalsSettings = function updateGoogleSignalsSettings(request, callback) { + return this.rpcCall(updateGoogleSignalsSettings, $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, $root.google.analytics.admin.v1alpha.GoogleSignalsSettings, request, callback); + }, "name", { value: "UpdateGoogleSignalsSettings" }); /** - * Properties of a BatchGetUserLinksRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IBatchGetUserLinksRequest - * @property {string|null} [parent] BatchGetUserLinksRequest parent - * @property {Array.|null} [names] BatchGetUserLinksRequest names + * Calls UpdateGoogleSignalsSettings. + * @function updateGoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} request UpdateGoogleSignalsSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new BatchGetUserLinksRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchGetUserLinksRequest. - * @implements IBatchGetUserLinksRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ConversionEvent} [response] ConversionEvent */ - function BatchGetUserLinksRequest(properties) { - this.names = []; - 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]]; - } /** - * BatchGetUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * Calls CreateConversionEvent. + * @function createConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent + * @returns {undefined} + * @variation 1 */ - BatchGetUserLinksRequest.prototype.parent = ""; + Object.defineProperty(AnalyticsAdminService.prototype.createConversionEvent = function createConversionEvent(request, callback) { + return this.rpcCall(createConversionEvent, $root.google.analytics.admin.v1alpha.CreateConversionEventRequest, $root.google.analytics.admin.v1alpha.ConversionEvent, request, callback); + }, "name", { value: "CreateConversionEvent" }); /** - * BatchGetUserLinksRequest names. - * @member {Array.} names - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * Calls CreateConversionEvent. + * @function createConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} request CreateConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksRequest.prototype.names = $util.emptyArray; /** - * Creates a new BatchGetUserLinksRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ConversionEvent} [response] ConversionEvent */ - BatchGetUserLinksRequest.create = function create(properties) { - return new BatchGetUserLinksRequest(properties); - }; /** - * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetConversionEvent. + * @function getConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} request GetConversionEventRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEventCallback} callback Node-style callback called with the error, if any, and ConversionEvent + * @returns {undefined} + * @variation 1 */ - BatchGetUserLinksRequest.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.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); - return writer; - }; + Object.defineProperty(AnalyticsAdminService.prototype.getConversionEvent = function getConversionEvent(request, callback) { + return this.rpcCall(getConversionEvent, $root.google.analytics.admin.v1alpha.GetConversionEventRequest, $root.google.analytics.admin.v1alpha.ConversionEvent, request, callback); + }, "name", { value: "GetConversionEvent" }); /** - * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetConversionEvent. + * @function getConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} request GetConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteConversionEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - BatchGetUserLinksRequest.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.analytics.admin.v1alpha.BatchGetUserLinksRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteConversionEvent. + * @function deleteConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEventCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - BatchGetUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteConversionEvent = function deleteConversionEvent(request, callback) { + return this.rpcCall(deleteConversionEvent, $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteConversionEvent" }); /** - * Verifies a BatchGetUserLinksRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeleteConversionEvent. + * @function deleteConversionEvent + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} request DeleteConversionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksRequest.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.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; - } - return null; - }; /** - * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListConversionEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} [response] ListConversionEventsResponse */ - BatchGetUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksRequest.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); - } - return message; - }; /** - * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} message BatchGetUserLinksRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListConversionEvents. + * @function listConversionEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEventsCallback} callback Node-style callback called with the error, if any, and ListConversionEventsResponse + * @returns {undefined} + * @variation 1 */ - BatchGetUserLinksRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.listConversionEvents = function listConversionEvents(request, callback) { + return this.rpcCall(listConversionEvents, $root.google.analytics.admin.v1alpha.ListConversionEventsRequest, $root.google.analytics.admin.v1alpha.ListConversionEventsResponse, request, callback); + }, "name", { value: "ListConversionEvents" }); /** - * Converts this BatchGetUserLinksRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * Calls ListConversionEvents. + * @function listConversionEvents + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} request ListConversionEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BatchGetUserLinksRequest; - })(); - - v1alpha.BatchGetUserLinksResponse = (function() { /** - * Properties of a BatchGetUserLinksResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IBatchGetUserLinksResponse - * @property {Array.|null} [userLinks] BatchGetUserLinksResponse userLinks + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink */ /** - * Constructs a new BatchGetUserLinksResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchGetUserLinksResponse. - * @implements IBatchGetUserLinksResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set + * Calls GetDisplayVideo360AdvertiserLink. + * @function getDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * @returns {undefined} + * @variation 1 */ - function BatchGetUserLinksResponse(properties) { - this.userLinks = []; - 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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.getDisplayVideo360AdvertiserLink = function getDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(getDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); + }, "name", { value: "GetDisplayVideo360AdvertiserLink" }); /** - * BatchGetUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * Calls GetDisplayVideo360AdvertiserLink. + * @function getDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} request GetDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * Creates a new BatchGetUserLinksResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListDisplayVideo360AdvertiserLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} [response] ListDisplayVideo360AdvertiserLinksResponse */ - BatchGetUserLinksResponse.create = function create(properties) { - return new BatchGetUserLinksResponse(properties); - }; /** - * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListDisplayVideo360AdvertiserLinks. + * @function listDisplayVideo360AdvertiserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinksCallback} callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinksResponse + * @returns {undefined} + * @variation 1 */ - BatchGetUserLinksResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Object.defineProperty(AnalyticsAdminService.prototype.listDisplayVideo360AdvertiserLinks = function listDisplayVideo360AdvertiserLinks(request, callback) { + return this.rpcCall(listDisplayVideo360AdvertiserLinks, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse, request, callback); + }, "name", { value: "ListDisplayVideo360AdvertiserLinks" }); /** - * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListDisplayVideo360AdvertiserLinks. + * @function listDisplayVideo360AdvertiserLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} request ListDisplayVideo360AdvertiserLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink */ - BatchGetUserLinksResponse.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.analytics.admin.v1alpha.BatchGetUserLinksResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateDisplayVideo360AdvertiserLink. + * @function createDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * @returns {undefined} + * @variation 1 */ - BatchGetUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.createDisplayVideo360AdvertiserLink = function createDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(createDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); + }, "name", { value: "CreateDisplayVideo360AdvertiserLink" }); /** - * Verifies a BatchGetUserLinksResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateDisplayVideo360AdvertiserLink. + * @function createDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} request CreateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } - } - return null; - }; /** - * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - BatchGetUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); - } - } - return message; - }; /** - * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} message BatchGetUserLinksResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls DeleteDisplayVideo360AdvertiserLink. + * @function deleteDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - BatchGetUserLinksResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.userLinks = []; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); - } - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteDisplayVideo360AdvertiserLink = function deleteDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(deleteDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDisplayVideo360AdvertiserLink" }); /** - * Converts this BatchGetUserLinksResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * Calls DeleteDisplayVideo360AdvertiserLink. + * @function deleteDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} request DeleteDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchGetUserLinksResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BatchGetUserLinksResponse; - })(); - - v1alpha.ListUserLinksRequest = (function() { /** - * Properties of a ListUserLinksRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IListUserLinksRequest - * @property {string|null} [parent] ListUserLinksRequest parent - * @property {number|null} [pageSize] ListUserLinksRequest pageSize - * @property {string|null} [pageToken] ListUserLinksRequest pageToken + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateDisplayVideo360AdvertiserLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} [response] DisplayVideo360AdvertiserLink */ /** - * Constructs a new ListUserLinksRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListUserLinksRequest. - * @implements IListUserLinksRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set + * Calls UpdateDisplayVideo360AdvertiserLink. + * @function updateDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLinkCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLink + * @returns {undefined} + * @variation 1 */ - function ListUserLinksRequest(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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.updateDisplayVideo360AdvertiserLink = function updateDisplayVideo360AdvertiserLink(request, callback) { + return this.rpcCall(updateDisplayVideo360AdvertiserLink, $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, request, callback); + }, "name", { value: "UpdateDisplayVideo360AdvertiserLink" }); /** - * ListUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * Calls UpdateDisplayVideo360AdvertiserLink. + * @function updateDisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} request UpdateDisplayVideo360AdvertiserLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksRequest.prototype.parent = ""; /** - * ListUserLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal */ - ListUserLinksRequest.prototype.pageSize = 0; /** - * ListUserLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @function getDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * @returns {undefined} + * @variation 1 */ - ListUserLinksRequest.prototype.pageToken = ""; + Object.defineProperty(AnalyticsAdminService.prototype.getDisplayVideo360AdvertiserLinkProposal = function getDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(getDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); + }, "name", { value: "GetDisplayVideo360AdvertiserLinkProposal" }); /** - * Creates a new ListUserLinksRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest instance + * Calls GetDisplayVideo360AdvertiserLinkProposal. + * @function getDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} request GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksRequest.create = function create(properties) { - return new ListUserLinksRequest(properties); - }; /** - * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListDisplayVideo360AdvertiserLinkProposalsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} [response] ListDisplayVideo360AdvertiserLinkProposalsResponse */ - ListUserLinksRequest.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 ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @function listDisplayVideo360AdvertiserLinkProposals + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposalsCallback} callback Node-style callback called with the error, if any, and ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {undefined} + * @variation 1 */ - ListUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(AnalyticsAdminService.prototype.listDisplayVideo360AdvertiserLinkProposals = function listDisplayVideo360AdvertiserLinkProposals(request, callback) { + return this.rpcCall(listDisplayVideo360AdvertiserLinkProposals, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse, request, callback); + }, "name", { value: "ListDisplayVideo360AdvertiserLinkProposals" }); /** - * Decodes a ListUserLinksRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListDisplayVideo360AdvertiserLinkProposals. + * @function listDisplayVideo360AdvertiserLinkProposals + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} request ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksRequest.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.analytics.admin.v1alpha.ListUserLinksRequest(); - 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 ListUserLinksRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal */ - ListUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListUserLinksRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @function createDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * @returns {undefined} + * @variation 1 */ - ListUserLinksRequest.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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.createDisplayVideo360AdvertiserLinkProposal = function createDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(createDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); + }, "name", { value: "CreateDisplayVideo360AdvertiserLinkProposal" }); /** - * Creates a ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest + * Calls CreateDisplayVideo360AdvertiserLinkProposal. + * @function createDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} request CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListUserLinksRequest(); - 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 ListUserLinksRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.ListUserLinksRequest} message ListUserLinksRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListUserLinksRequest.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 ListUserLinksRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @function deleteDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListUserLinksRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListUserLinksRequest; - })(); - - v1alpha.ListUserLinksResponse = (function() { + Object.defineProperty(AnalyticsAdminService.prototype.deleteDisplayVideo360AdvertiserLinkProposal = function deleteDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(deleteDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDisplayVideo360AdvertiserLinkProposal" }); /** - * Properties of a ListUserLinksResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IListUserLinksResponse - * @property {Array.|null} [userLinks] ListUserLinksResponse userLinks - * @property {string|null} [nextPageToken] ListUserLinksResponse nextPageToken + * Calls DeleteDisplayVideo360AdvertiserLinkProposal. + * @function deleteDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} request DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListUserLinksResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListUserLinksResponse. - * @implements IListUserLinksResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ApproveDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} [response] ApproveDisplayVideo360AdvertiserLinkProposalResponse */ - function ListUserLinksResponse(properties) { - this.userLinks = []; - 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]]; - } /** - * ListUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @function approveDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {undefined} + * @variation 1 */ - ListUserLinksResponse.prototype.userLinks = $util.emptyArray; + Object.defineProperty(AnalyticsAdminService.prototype.approveDisplayVideo360AdvertiserLinkProposal = function approveDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(approveDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse, request, callback); + }, "name", { value: "ApproveDisplayVideo360AdvertiserLinkProposal" }); /** - * ListUserLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * Calls ApproveDisplayVideo360AdvertiserLinkProposal. + * @function approveDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} request ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListUserLinksResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CancelDisplayVideo360AdvertiserLinkProposalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} [response] DisplayVideo360AdvertiserLinkProposal */ - ListUserLinksResponse.create = function create(properties) { - return new ListUserLinksResponse(properties); - }; /** - * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * @function cancelDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposalCallback} callback Node-style callback called with the error, if any, and DisplayVideo360AdvertiserLinkProposal + * @returns {undefined} + * @variation 1 */ - ListUserLinksResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.cancelDisplayVideo360AdvertiserLinkProposal = function cancelDisplayVideo360AdvertiserLinkProposal(request, callback) { + return this.rpcCall(cancelDisplayVideo360AdvertiserLinkProposal, $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, request, callback); + }, "name", { value: "CancelDisplayVideo360AdvertiserLinkProposal" }); /** - * Encodes the specified ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDisplayVideo360AdvertiserLinkProposal. + * @function cancelDisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} request CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListUserLinksResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension */ - ListUserLinksResponse.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.analytics.admin.v1alpha.ListUserLinksResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateCustomDimension. + * @function createCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 */ - ListUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.createCustomDimension = function createCustomDimension(request, callback) { + return this.rpcCall(createCustomDimension, $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); + }, "name", { value: "CreateCustomDimension" }); /** - * Verifies a ListUserLinksResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateCustomDimension. + * @function createCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} request CreateCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension */ - ListUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.ListUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} message ListUserLinksResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls UpdateCustomDimension. + * @function updateCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 */ - ListUserLinksResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.userLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.updateCustomDimension = function updateCustomDimension(request, callback) { + return this.rpcCall(updateCustomDimension, $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); + }, "name", { value: "UpdateCustomDimension" }); /** - * Converts this ListUserLinksResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * Calls UpdateCustomDimension. + * @function updateCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} request UpdateCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListUserLinksResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListUserLinksResponse; - })(); - - v1alpha.AuditUserLinksRequest = (function() { /** - * Properties of an AuditUserLinksRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLinksRequest - * @property {string|null} [parent] AuditUserLinksRequest parent - * @property {number|null} [pageSize] AuditUserLinksRequest pageSize - * @property {string|null} [pageToken] AuditUserLinksRequest pageToken + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListCustomDimensionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} [response] ListCustomDimensionsResponse */ /** - * Constructs a new AuditUserLinksRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLinksRequest. - * @implements IAuditUserLinksRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set + * Calls ListCustomDimensions. + * @function listCustomDimensions + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensionsCallback} callback Node-style callback called with the error, if any, and ListCustomDimensionsResponse + * @returns {undefined} + * @variation 1 */ - function AuditUserLinksRequest(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]]; - } + Object.defineProperty(AnalyticsAdminService.prototype.listCustomDimensions = function listCustomDimensions(request, callback) { + return this.rpcCall(listCustomDimensions, $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse, request, callback); + }, "name", { value: "ListCustomDimensions" }); /** - * AuditUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * Calls ListCustomDimensions. + * @function listCustomDimensions + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} request ListCustomDimensionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksRequest.prototype.parent = ""; /** - * AuditUserLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ArchiveCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - AuditUserLinksRequest.prototype.pageSize = 0; /** - * AuditUserLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * Calls ArchiveCustomDimension. + * @function archiveCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimensionCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - AuditUserLinksRequest.prototype.pageToken = ""; + Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomDimension = function archiveCustomDimension(request, callback) { + return this.rpcCall(archiveCustomDimension, $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ArchiveCustomDimension" }); /** - * Creates a new AuditUserLinksRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest instance + * Calls ArchiveCustomDimension. + * @function archiveCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} request ArchiveCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksRequest.create = function create(properties) { - return new AuditUserLinksRequest(properties); - }; /** - * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetCustomDimensionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomDimension} [response] CustomDimension */ - AuditUserLinksRequest.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 AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetCustomDimension. + * @function getCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimensionCallback} callback Node-style callback called with the error, if any, and CustomDimension + * @returns {undefined} + * @variation 1 */ - AuditUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(AnalyticsAdminService.prototype.getCustomDimension = function getCustomDimension(request, callback) { + return this.rpcCall(getCustomDimension, $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest, $root.google.analytics.admin.v1alpha.CustomDimension, request, callback); + }, "name", { value: "GetCustomDimension" }); /** - * Decodes an AuditUserLinksRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetCustomDimension. + * @function getCustomDimension + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} request GetCustomDimensionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksRequest.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.analytics.admin.v1alpha.AuditUserLinksRequest(); - 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 an AuditUserLinksRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric */ - AuditUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies an AuditUserLinksRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateCustomMetric. + * @function createCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 */ - AuditUserLinksRequest.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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.createCustomMetric = function createCustomMetric(request, callback) { + return this.rpcCall(createCustomMetric, $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); + }, "name", { value: "CreateCustomMetric" }); /** - * Creates an AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest + * Calls CreateCustomMetric. + * @function createCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} request CreateCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksRequest(); - 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 an AuditUserLinksRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest - * @static - * @param {google.analytics.admin.v1alpha.AuditUserLinksRequest} message AuditUserLinksRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric */ - AuditUserLinksRequest.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 AuditUserLinksRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * Calls UpdateCustomMetric. + * @function updateCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 */ - AuditUserLinksRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AuditUserLinksRequest; - })(); - - v1alpha.AuditUserLinksResponse = (function() { + Object.defineProperty(AnalyticsAdminService.prototype.updateCustomMetric = function updateCustomMetric(request, callback) { + return this.rpcCall(updateCustomMetric, $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); + }, "name", { value: "UpdateCustomMetric" }); /** - * Properties of an AuditUserLinksResponse. - * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLinksResponse - * @property {Array.|null} [userLinks] AuditUserLinksResponse userLinks - * @property {string|null} [nextPageToken] AuditUserLinksResponse nextPageToken + * Calls UpdateCustomMetric. + * @function updateCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} request UpdateCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new AuditUserLinksResponse. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLinksResponse. - * @implements IAuditUserLinksResponse - * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListCustomMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} [response] ListCustomMetricsResponse */ - function AuditUserLinksResponse(properties) { - this.userLinks = []; - 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]]; - } /** - * AuditUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * Calls ListCustomMetrics. + * @function listCustomMetrics + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetricsCallback} callback Node-style callback called with the error, if any, and ListCustomMetricsResponse + * @returns {undefined} + * @variation 1 */ - AuditUserLinksResponse.prototype.userLinks = $util.emptyArray; + Object.defineProperty(AnalyticsAdminService.prototype.listCustomMetrics = function listCustomMetrics(request, callback) { + return this.rpcCall(listCustomMetrics, $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest, $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse, request, callback); + }, "name", { value: "ListCustomMetrics" }); /** - * AuditUserLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * Calls ListCustomMetrics. + * @function listCustomMetrics + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} request ListCustomMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new AuditUserLinksResponse instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ArchiveCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - AuditUserLinksResponse.create = function create(properties) { - return new AuditUserLinksResponse(properties); - }; /** - * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ArchiveCustomMetric. + * @function archiveCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetricCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - AuditUserLinksResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.AuditUserLink.encode(message.userLinks[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; - }; + Object.defineProperty(AnalyticsAdminService.prototype.archiveCustomMetric = function archiveCustomMetric(request, callback) { + return this.rpcCall(archiveCustomMetric, $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ArchiveCustomMetric" }); /** - * Encodes the specified AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ArchiveCustomMetric. + * @function archiveCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} request ArchiveCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an AuditUserLinksResponse message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetCustomMetricCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.CustomMetric} [response] CustomMetric */ - AuditUserLinksResponse.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.analytics.admin.v1alpha.AuditUserLinksResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.AuditUserLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetCustomMetric. + * @function getCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetricCallback} callback Node-style callback called with the error, if any, and CustomMetric + * @returns {undefined} + * @variation 1 */ - AuditUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(AnalyticsAdminService.prototype.getCustomMetric = function getCustomMetric(request, callback) { + return this.rpcCall(getCustomMetric, $root.google.analytics.admin.v1alpha.GetCustomMetricRequest, $root.google.analytics.admin.v1alpha.CustomMetric, request, callback); + }, "name", { value: "GetCustomMetric" }); /** - * Verifies an AuditUserLinksResponse message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetCustomMetric. + * @function getCustomMetric + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} request GetCustomMetricRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AuditUserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates an AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDataRetentionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} [response] DataRetentionSettings */ - AuditUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksResponse) - return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.AuditUserLink.fromObject(object.userLinks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from an AuditUserLinksResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse - * @static - * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} message AuditUserLinksResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetDataRetentionSettings. + * @function getDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings + * @returns {undefined} + * @variation 1 */ - AuditUserLinksResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.userLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.AuditUserLink.toObject(message.userLinks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(AnalyticsAdminService.prototype.getDataRetentionSettings = function getDataRetentionSettings(request, callback) { + return this.rpcCall(getDataRetentionSettings, $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, $root.google.analytics.admin.v1alpha.DataRetentionSettings, request, callback); + }, "name", { value: "GetDataRetentionSettings" }); /** - * Converts this AuditUserLinksResponse to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * Calls GetDataRetentionSettings. + * @function getDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance - * @returns {Object.} JSON object + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} request GetDataRetentionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - AuditUserLinksResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return AuditUserLinksResponse; - })(); + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateDataRetentionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} [response] DataRetentionSettings + */ - v1alpha.CreateUserLinkRequest = (function() { + /** + * Calls UpdateDataRetentionSettings. + * @function updateDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettingsCallback} callback Node-style callback called with the error, if any, and DataRetentionSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateDataRetentionSettings = function updateDataRetentionSettings(request, callback) { + return this.rpcCall(updateDataRetentionSettings, $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, $root.google.analytics.admin.v1alpha.DataRetentionSettings, request, callback); + }, "name", { value: "UpdateDataRetentionSettings" }); /** - * Properties of a CreateUserLinkRequest. - * @memberof google.analytics.admin.v1alpha - * @interface ICreateUserLinkRequest - * @property {string|null} [parent] CreateUserLinkRequest parent - * @property {boolean|null} [notifyNewUser] CreateUserLinkRequest notifyNewUser - * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] CreateUserLinkRequest userLink + * Calls UpdateDataRetentionSettings. + * @function updateDataRetentionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} request UpdateDataRetentionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreateUserLinkRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateUserLinkRequest. - * @implements ICreateUserLinkRequest - * @constructor - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream */ - function CreateUserLinkRequest(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]]; - } /** - * CreateUserLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * Calls CreateDataStream. + * @function createDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 */ - CreateUserLinkRequest.prototype.parent = ""; + Object.defineProperty(AnalyticsAdminService.prototype.createDataStream = function createDataStream(request, callback) { + return this.rpcCall(createDataStream, $root.google.analytics.admin.v1alpha.CreateDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); + }, "name", { value: "CreateDataStream" }); /** - * CreateUserLinkRequest notifyNewUser. - * @member {boolean} notifyNewUser - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * Calls CreateDataStream. + * @function createDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @instance + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} request CreateDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateUserLinkRequest.prototype.notifyNewUser = false; /** - * CreateUserLinkRequest userLink. - * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest - * @instance + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CreateUserLinkRequest.prototype.userLink = null; /** - * Creates a new CreateUserLinkRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest instance + * Calls DeleteDataStream. + * @function deleteDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStreamCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CreateUserLinkRequest.create = function create(properties) { - return new CreateUserLinkRequest(properties); - }; + Object.defineProperty(AnalyticsAdminService.prototype.deleteDataStream = function deleteDataStream(request, callback) { + return this.rpcCall(deleteDataStream, $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDataStream" }); /** - * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteDataStream. + * @function deleteDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} request DeleteDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateUserLinkRequest.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.notifyNewUser != null && Object.hasOwnProperty.call(message, "notifyNewUser")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUser); - if (message.userLink != null && Object.hasOwnProperty.call(message, "userLink")) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest - * @static - * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream */ - CreateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateUserLinkRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * Calls UpdateDataStream. + * @function updateDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateDataStream = function updateDataStream(request, callback) { + return this.rpcCall(updateDataStream, $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); + }, "name", { value: "UpdateDataStream" }); + + /** + * Calls UpdateDataStream. + * @function updateDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} request UpdateDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListDataStreamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} [response] ListDataStreamsResponse + */ + + /** + * Calls ListDataStreams. + * @function listDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreamsCallback} callback Node-style callback called with the error, if any, and ListDataStreamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listDataStreams = function listDataStreams(request, callback) { + return this.rpcCall(listDataStreams, $root.google.analytics.admin.v1alpha.ListDataStreamsRequest, $root.google.analytics.admin.v1alpha.ListDataStreamsResponse, request, callback); + }, "name", { value: "ListDataStreams" }); + + /** + * Calls ListDataStreams. + * @function listDataStreams + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} request ListDataStreamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetDataStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.DataStream} [response] DataStream + */ + + /** + * Calls GetDataStream. + * @function getDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} request GetDataStreamRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStreamCallback} callback Node-style callback called with the error, if any, and DataStream + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getDataStream = function getDataStream(request, callback) { + return this.rpcCall(getDataStream, $root.google.analytics.admin.v1alpha.GetDataStreamRequest, $root.google.analytics.admin.v1alpha.DataStream, request, callback); + }, "name", { value: "GetDataStream" }); + + /** + * Calls GetDataStream. + * @function getDataStream + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} request GetDataStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAudience}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetAudienceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Audience} [response] Audience + */ + + /** + * Calls GetAudience. + * @function getAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} request GetAudienceRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudienceCallback} callback Node-style callback called with the error, if any, and Audience + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getAudience = function getAudience(request, callback) { + return this.rpcCall(getAudience, $root.google.analytics.admin.v1alpha.GetAudienceRequest, $root.google.analytics.admin.v1alpha.Audience, request, callback); + }, "name", { value: "GetAudience" }); + + /** + * Calls GetAudience. + * @function getAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} request GetAudienceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAudiences}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListAudiencesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListAudiencesResponse} [response] ListAudiencesResponse + */ + + /** + * Calls ListAudiences. + * @function listAudiences + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} request ListAudiencesRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiencesCallback} callback Node-style callback called with the error, if any, and ListAudiencesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listAudiences = function listAudiences(request, callback) { + return this.rpcCall(listAudiences, $root.google.analytics.admin.v1alpha.ListAudiencesRequest, $root.google.analytics.admin.v1alpha.ListAudiencesResponse, request, callback); + }, "name", { value: "ListAudiences" }); + + /** + * Calls ListAudiences. + * @function listAudiences + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} request ListAudiencesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAudience}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateAudienceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Audience} [response] Audience + */ + + /** + * Calls CreateAudience. + * @function createAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} request CreateAudienceRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudienceCallback} callback Node-style callback called with the error, if any, and Audience + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createAudience = function createAudience(request, callback) { + return this.rpcCall(createAudience, $root.google.analytics.admin.v1alpha.CreateAudienceRequest, $root.google.analytics.admin.v1alpha.Audience, request, callback); + }, "name", { value: "CreateAudience" }); + + /** + * Calls CreateAudience. + * @function createAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} request CreateAudienceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAudience}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateAudienceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.Audience} [response] Audience + */ + + /** + * Calls UpdateAudience. + * @function updateAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} request UpdateAudienceRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudienceCallback} callback Node-style callback called with the error, if any, and Audience + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateAudience = function updateAudience(request, callback) { + return this.rpcCall(updateAudience, $root.google.analytics.admin.v1alpha.UpdateAudienceRequest, $root.google.analytics.admin.v1alpha.Audience, request, callback); + }, "name", { value: "UpdateAudience" }); + + /** + * Calls UpdateAudience. + * @function updateAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} request UpdateAudienceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveAudience}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ArchiveAudienceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls ArchiveAudience. + * @function archiveAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} request ArchiveAudienceRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudienceCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.archiveAudience = function archiveAudience(request, callback) { + return this.rpcCall(archiveAudience, $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ArchiveAudience" }); + + /** + * Calls ArchiveAudience. + * @function archiveAudience + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} request ArchiveAudienceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAttributionSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetAttributionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AttributionSettings} [response] AttributionSettings + */ + + /** + * Calls GetAttributionSettings. + * @function getAttributionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} request GetAttributionSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettingsCallback} callback Node-style callback called with the error, if any, and AttributionSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getAttributionSettings = function getAttributionSettings(request, callback) { + return this.rpcCall(getAttributionSettings, $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, $root.google.analytics.admin.v1alpha.AttributionSettings, request, callback); + }, "name", { value: "GetAttributionSettings" }); + + /** + * Calls GetAttributionSettings. + * @function getAttributionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} request GetAttributionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAttributionSettings}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateAttributionSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AttributionSettings} [response] AttributionSettings + */ + + /** + * Calls UpdateAttributionSettings. + * @function updateAttributionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} request UpdateAttributionSettingsRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettingsCallback} callback Node-style callback called with the error, if any, and AttributionSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateAttributionSettings = function updateAttributionSettings(request, callback) { + return this.rpcCall(updateAttributionSettings, $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, $root.google.analytics.admin.v1alpha.AttributionSettings, request, callback); + }, "name", { value: "UpdateAttributionSettings" }); + + /** + * Calls UpdateAttributionSettings. + * @function updateAttributionSettings + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} request UpdateAttributionSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#runAccessReport}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef RunAccessReportCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.RunAccessReportResponse} [response] RunAccessReportResponse + */ + + /** + * Calls RunAccessReport. + * @function runAccessReport + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IRunAccessReportRequest} request RunAccessReportRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReportCallback} callback Node-style callback called with the error, if any, and RunAccessReportResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.runAccessReport = function runAccessReport(request, callback) { + return this.rpcCall(runAccessReport, $root.google.analytics.admin.v1alpha.RunAccessReportRequest, $root.google.analytics.admin.v1alpha.RunAccessReportResponse, request, callback); + }, "name", { value: "RunAccessReport" }); + + /** + * Calls RunAccessReport. + * @function runAccessReport + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IRunAccessReportRequest} request RunAccessReportRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AnalyticsAdminService; + })(); + + v1alpha.RunAccessReportRequest = (function() { + + /** + * Properties of a RunAccessReportRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IRunAccessReportRequest + * @property {string|null} [entity] RunAccessReportRequest entity + * @property {Array.|null} [dimensions] RunAccessReportRequest dimensions + * @property {Array.|null} [metrics] RunAccessReportRequest metrics + * @property {Array.|null} [dateRanges] RunAccessReportRequest dateRanges + * @property {google.analytics.admin.v1alpha.IAccessFilterExpression|null} [dimensionFilter] RunAccessReportRequest dimensionFilter + * @property {google.analytics.admin.v1alpha.IAccessFilterExpression|null} [metricFilter] RunAccessReportRequest metricFilter + * @property {number|Long|null} [offset] RunAccessReportRequest offset + * @property {number|Long|null} [limit] RunAccessReportRequest limit + * @property {string|null} [timeZone] RunAccessReportRequest timeZone + * @property {Array.|null} [orderBys] RunAccessReportRequest orderBys + * @property {boolean|null} [returnEntityQuota] RunAccessReportRequest returnEntityQuota + */ + + /** + * Constructs a new RunAccessReportRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a RunAccessReportRequest. + * @implements IRunAccessReportRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IRunAccessReportRequest=} [properties] Properties to set + */ + function RunAccessReportRequest(properties) { + this.dimensions = []; + this.metrics = []; + this.dateRanges = []; + this.orderBys = []; + 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]]; + } + + /** + * RunAccessReportRequest entity. + * @member {string} entity + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.entity = ""; + + /** + * RunAccessReportRequest dimensions. + * @member {Array.} dimensions + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.dimensions = $util.emptyArray; + + /** + * RunAccessReportRequest metrics. + * @member {Array.} metrics + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.metrics = $util.emptyArray; + + /** + * RunAccessReportRequest dateRanges. + * @member {Array.} dateRanges + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.dateRanges = $util.emptyArray; + + /** + * RunAccessReportRequest dimensionFilter. + * @member {google.analytics.admin.v1alpha.IAccessFilterExpression|null|undefined} dimensionFilter + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.dimensionFilter = null; + + /** + * RunAccessReportRequest metricFilter. + * @member {google.analytics.admin.v1alpha.IAccessFilterExpression|null|undefined} metricFilter + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.metricFilter = null; + + /** + * RunAccessReportRequest offset. + * @member {number|Long} offset + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RunAccessReportRequest limit. + * @member {number|Long} limit + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RunAccessReportRequest timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.timeZone = ""; + + /** + * RunAccessReportRequest orderBys. + * @member {Array.} orderBys + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.orderBys = $util.emptyArray; + + /** + * RunAccessReportRequest returnEntityQuota. + * @member {boolean} returnEntityQuota + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @instance + */ + RunAccessReportRequest.prototype.returnEntityQuota = false; + + /** + * Creates a new RunAccessReportRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @static + * @param {google.analytics.admin.v1alpha.IRunAccessReportRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.RunAccessReportRequest} RunAccessReportRequest instance + */ + RunAccessReportRequest.create = function create(properties) { + return new RunAccessReportRequest(properties); + }; + + /** + * Encodes the specified RunAccessReportRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @static + * @param {google.analytics.admin.v1alpha.IRunAccessReportRequest} message RunAccessReportRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RunAccessReportRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entity); + if (message.dimensions != null && message.dimensions.length) + for (var i = 0; i < message.dimensions.length; ++i) + $root.google.analytics.admin.v1alpha.AccessDimension.encode(message.dimensions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.analytics.admin.v1alpha.AccessMetric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dateRanges != null && message.dateRanges.length) + for (var i = 0; i < message.dateRanges.length; ++i) + $root.google.analytics.admin.v1alpha.AccessDateRange.encode(message.dateRanges[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.dimensionFilter != null && Object.hasOwnProperty.call(message, "dimensionFilter")) + $root.google.analytics.admin.v1alpha.AccessFilterExpression.encode(message.dimensionFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.metricFilter != null && Object.hasOwnProperty.call(message, "metricFilter")) + $root.google.analytics.admin.v1alpha.AccessFilterExpression.encode(message.metricFilter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.offset != null && Object.hasOwnProperty.call(message, "offset")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.offset); + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.limit); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.timeZone); + if (message.orderBys != null && message.orderBys.length) + for (var i = 0; i < message.orderBys.length; ++i) + $root.google.analytics.admin.v1alpha.AccessOrderBy.encode(message.orderBys[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.returnEntityQuota != null && Object.hasOwnProperty.call(message, "returnEntityQuota")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.returnEntityQuota); + return writer; + }; + + /** + * Encodes the specified RunAccessReportRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @static + * @param {google.analytics.admin.v1alpha.IRunAccessReportRequest} message RunAccessReportRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RunAccessReportRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RunAccessReportRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.RunAccessReportRequest} RunAccessReportRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateUserLinkRequest.decode = function decode(reader, length) { + RunAccessReportRequest.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.analytics.admin.v1alpha.CreateUserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.RunAccessReportRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.entity = reader.string(); break; case 2: - message.notifyNewUser = reader.bool(); + if (!(message.dimensions && message.dimensions.length)) + message.dimensions = []; + message.dimensions.push($root.google.analytics.admin.v1alpha.AccessDimension.decode(reader, reader.uint32())); break; case 3: - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.analytics.admin.v1alpha.AccessMetric.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.dateRanges && message.dateRanges.length)) + message.dateRanges = []; + message.dateRanges.push($root.google.analytics.admin.v1alpha.AccessDateRange.decode(reader, reader.uint32())); + break; + case 5: + message.dimensionFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); + break; + case 6: + message.metricFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); + break; + case 7: + message.offset = reader.int64(); + break; + case 8: + message.limit = reader.int64(); + break; + case 9: + message.timeZone = reader.string(); + break; + case 10: + if (!(message.orderBys && message.orderBys.length)) + message.orderBys = []; + message.orderBys.push($root.google.analytics.admin.v1alpha.AccessOrderBy.decode(reader, reader.uint32())); + break; + case 11: + message.returnEntityQuota = reader.bool(); break; default: reader.skipType(tag & 7); @@ -6853,132 +7852,303 @@ }; /** - * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a RunAccessReportRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.RunAccessReportRequest} RunAccessReportRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + RunAccessReportRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateUserLinkRequest message. + * Verifies a RunAccessReportRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateUserLinkRequest.verify = function verify(message) { + RunAccessReportRequest.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.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) - if (typeof message.notifyNewUser !== "boolean") - return "notifyNewUser: boolean expected"; - if (message.userLink != null && message.hasOwnProperty("userLink")) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); + if (message.entity != null && message.hasOwnProperty("entity")) + if (!$util.isString(message.entity)) + return "entity: string expected"; + if (message.dimensions != null && message.hasOwnProperty("dimensions")) { + if (!Array.isArray(message.dimensions)) + return "dimensions: array expected"; + for (var i = 0; i < message.dimensions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessDimension.verify(message.dimensions[i]); + if (error) + return "dimensions." + error; + } + } + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessMetric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.dateRanges != null && message.hasOwnProperty("dateRanges")) { + if (!Array.isArray(message.dateRanges)) + return "dateRanges: array expected"; + for (var i = 0; i < message.dateRanges.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessDateRange.verify(message.dateRanges[i]); + if (error) + return "dateRanges." + error; + } + } + if (message.dimensionFilter != null && message.hasOwnProperty("dimensionFilter")) { + var error = $root.google.analytics.admin.v1alpha.AccessFilterExpression.verify(message.dimensionFilter); if (error) - return "userLink." + error; + return "dimensionFilter." + error; + } + if (message.metricFilter != null && message.hasOwnProperty("metricFilter")) { + var error = $root.google.analytics.admin.v1alpha.AccessFilterExpression.verify(message.metricFilter); + if (error) + return "metricFilter." + error; + } + if (message.offset != null && message.hasOwnProperty("offset")) + if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high))) + return "offset: integer|Long expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) + return "limit: integer|Long expected"; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.orderBys != null && message.hasOwnProperty("orderBys")) { + if (!Array.isArray(message.orderBys)) + return "orderBys: array expected"; + for (var i = 0; i < message.orderBys.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessOrderBy.verify(message.orderBys[i]); + if (error) + return "orderBys." + error; + } } + if (message.returnEntityQuota != null && message.hasOwnProperty("returnEntityQuota")) + if (typeof message.returnEntityQuota !== "boolean") + return "returnEntityQuota: boolean expected"; return null; }; /** - * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunAccessReportRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.RunAccessReportRequest} RunAccessReportRequest */ - CreateUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateUserLinkRequest) + RunAccessReportRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.RunAccessReportRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateUserLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.notifyNewUser != null) - message.notifyNewUser = Boolean(object.notifyNewUser); - if (object.userLink != null) { - if (typeof object.userLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateUserLinkRequest.userLink: object expected"); - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); + var message = new $root.google.analytics.admin.v1alpha.RunAccessReportRequest(); + if (object.entity != null) + message.entity = String(object.entity); + if (object.dimensions) { + if (!Array.isArray(object.dimensions)) + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.dimensions: array expected"); + message.dimensions = []; + for (var i = 0; i < object.dimensions.length; ++i) { + if (typeof object.dimensions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.dimensions: object expected"); + message.dimensions[i] = $root.google.analytics.admin.v1alpha.AccessDimension.fromObject(object.dimensions[i]); + } + } + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.metrics: object expected"); + message.metrics[i] = $root.google.analytics.admin.v1alpha.AccessMetric.fromObject(object.metrics[i]); + } + } + if (object.dateRanges) { + if (!Array.isArray(object.dateRanges)) + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.dateRanges: array expected"); + message.dateRanges = []; + for (var i = 0; i < object.dateRanges.length; ++i) { + if (typeof object.dateRanges[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.dateRanges: object expected"); + message.dateRanges[i] = $root.google.analytics.admin.v1alpha.AccessDateRange.fromObject(object.dateRanges[i]); + } + } + if (object.dimensionFilter != null) { + if (typeof object.dimensionFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.dimensionFilter: object expected"); + message.dimensionFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.fromObject(object.dimensionFilter); + } + if (object.metricFilter != null) { + if (typeof object.metricFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.metricFilter: object expected"); + message.metricFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.fromObject(object.metricFilter); + } + if (object.offset != null) + if ($util.Long) + (message.offset = $util.Long.fromValue(object.offset)).unsigned = false; + else if (typeof object.offset === "string") + message.offset = parseInt(object.offset, 10); + else if (typeof object.offset === "number") + message.offset = object.offset; + else if (typeof object.offset === "object") + message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber(); + if (object.limit != null) + if ($util.Long) + (message.limit = $util.Long.fromValue(object.limit)).unsigned = false; + else if (typeof object.limit === "string") + message.limit = parseInt(object.limit, 10); + else if (typeof object.limit === "number") + message.limit = object.limit; + else if (typeof object.limit === "object") + message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.orderBys) { + if (!Array.isArray(object.orderBys)) + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.orderBys: array expected"); + message.orderBys = []; + for (var i = 0; i < object.orderBys.length; ++i) { + if (typeof object.orderBys[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportRequest.orderBys: object expected"); + message.orderBys[i] = $root.google.analytics.admin.v1alpha.AccessOrderBy.fromObject(object.orderBys[i]); + } } + if (object.returnEntityQuota != null) + message.returnEntityQuota = Boolean(object.returnEntityQuota); return message; }; /** - * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunAccessReportRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest * @static - * @param {google.analytics.admin.v1alpha.CreateUserLinkRequest} message CreateUserLinkRequest + * @param {google.analytics.admin.v1alpha.RunAccessReportRequest} message RunAccessReportRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateUserLinkRequest.toObject = function toObject(message, options) { + RunAccessReportRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.dimensions = []; + object.metrics = []; + object.dateRanges = []; + object.orderBys = []; + } if (options.defaults) { - object.parent = ""; - object.notifyNewUser = false; - object.userLink = null; + object.entity = ""; + object.dimensionFilter = null; + object.metricFilter = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offset = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.limit = options.longs === String ? "0" : 0; + object.timeZone = ""; + object.returnEntityQuota = false; + } + if (message.entity != null && message.hasOwnProperty("entity")) + object.entity = message.entity; + if (message.dimensions && message.dimensions.length) { + object.dimensions = []; + for (var j = 0; j < message.dimensions.length; ++j) + object.dimensions[j] = $root.google.analytics.admin.v1alpha.AccessDimension.toObject(message.dimensions[j], options); + } + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.analytics.admin.v1alpha.AccessMetric.toObject(message.metrics[j], options); + } + if (message.dateRanges && message.dateRanges.length) { + object.dateRanges = []; + for (var j = 0; j < message.dateRanges.length; ++j) + object.dateRanges[j] = $root.google.analytics.admin.v1alpha.AccessDateRange.toObject(message.dateRanges[j], options); + } + if (message.dimensionFilter != null && message.hasOwnProperty("dimensionFilter")) + object.dimensionFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.toObject(message.dimensionFilter, options); + if (message.metricFilter != null && message.hasOwnProperty("metricFilter")) + object.metricFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.toObject(message.metricFilter, options); + if (message.offset != null && message.hasOwnProperty("offset")) + if (typeof message.offset === "number") + object.offset = options.longs === String ? String(message.offset) : message.offset; + else + object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber() : message.offset; + if (message.limit != null && message.hasOwnProperty("limit")) + if (typeof message.limit === "number") + object.limit = options.longs === String ? String(message.limit) : message.limit; + else + object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber() : message.limit; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.orderBys && message.orderBys.length) { + object.orderBys = []; + for (var j = 0; j < message.orderBys.length; ++j) + object.orderBys[j] = $root.google.analytics.admin.v1alpha.AccessOrderBy.toObject(message.orderBys[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) - object.notifyNewUser = message.notifyNewUser; - if (message.userLink != null && message.hasOwnProperty("userLink")) - object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); + if (message.returnEntityQuota != null && message.hasOwnProperty("returnEntityQuota")) + object.returnEntityQuota = message.returnEntityQuota; return object; }; /** - * Converts this CreateUserLinkRequest to JSON. + * Converts this RunAccessReportRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest * @instance * @returns {Object.} JSON object */ - CreateUserLinkRequest.prototype.toJSON = function toJSON() { + RunAccessReportRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateUserLinkRequest; + return RunAccessReportRequest; })(); - v1alpha.BatchCreateUserLinksRequest = (function() { + v1alpha.RunAccessReportResponse = (function() { /** - * Properties of a BatchCreateUserLinksRequest. + * Properties of a RunAccessReportResponse. * @memberof google.analytics.admin.v1alpha - * @interface IBatchCreateUserLinksRequest - * @property {string|null} [parent] BatchCreateUserLinksRequest parent - * @property {boolean|null} [notifyNewUsers] BatchCreateUserLinksRequest notifyNewUsers - * @property {Array.|null} [requests] BatchCreateUserLinksRequest requests + * @interface IRunAccessReportResponse + * @property {Array.|null} [dimensionHeaders] RunAccessReportResponse dimensionHeaders + * @property {Array.|null} [metricHeaders] RunAccessReportResponse metricHeaders + * @property {Array.|null} [rows] RunAccessReportResponse rows + * @property {number|null} [rowCount] RunAccessReportResponse rowCount + * @property {google.analytics.admin.v1alpha.IAccessQuota|null} [quota] RunAccessReportResponse quota */ /** - * Constructs a new BatchCreateUserLinksRequest. + * Constructs a new RunAccessReportResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchCreateUserLinksRequest. - * @implements IBatchCreateUserLinksRequest + * @classdesc Represents a RunAccessReportResponse. + * @implements IRunAccessReportResponse * @constructor - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IRunAccessReportResponse=} [properties] Properties to set */ - function BatchCreateUserLinksRequest(properties) { - this.requests = []; + function RunAccessReportResponse(properties) { + this.dimensionHeaders = []; + this.metricHeaders = []; + this.rows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6986,104 +8156,136 @@ } /** - * BatchCreateUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * RunAccessReportResponse dimensionHeaders. + * @member {Array.} dimensionHeaders + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @instance */ - BatchCreateUserLinksRequest.prototype.parent = ""; + RunAccessReportResponse.prototype.dimensionHeaders = $util.emptyArray; /** - * BatchCreateUserLinksRequest notifyNewUsers. - * @member {boolean} notifyNewUsers - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * RunAccessReportResponse metricHeaders. + * @member {Array.} metricHeaders + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @instance */ - BatchCreateUserLinksRequest.prototype.notifyNewUsers = false; + RunAccessReportResponse.prototype.metricHeaders = $util.emptyArray; /** - * BatchCreateUserLinksRequest requests. - * @member {Array.} requests - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * RunAccessReportResponse rows. + * @member {Array.} rows + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @instance */ - BatchCreateUserLinksRequest.prototype.requests = $util.emptyArray; + RunAccessReportResponse.prototype.rows = $util.emptyArray; /** - * Creates a new BatchCreateUserLinksRequest instance using the specified properties. + * RunAccessReportResponse rowCount. + * @member {number} rowCount + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse + * @instance + */ + RunAccessReportResponse.prototype.rowCount = 0; + + /** + * RunAccessReportResponse quota. + * @member {google.analytics.admin.v1alpha.IAccessQuota|null|undefined} quota + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse + * @instance + */ + RunAccessReportResponse.prototype.quota = null; + + /** + * Creates a new RunAccessReportResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IRunAccessReportResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.RunAccessReportResponse} RunAccessReportResponse instance */ - BatchCreateUserLinksRequest.create = function create(properties) { - return new BatchCreateUserLinksRequest(properties); + RunAccessReportResponse.create = function create(properties) { + return new RunAccessReportResponse(properties); }; /** - * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * Encodes the specified RunAccessReportResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IRunAccessReportResponse} message RunAccessReportResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksRequest.encode = function encode(message, writer) { + RunAccessReportResponse.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.notifyNewUsers != null && Object.hasOwnProperty.call(message, "notifyNewUsers")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUsers); - if (message.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dimensionHeaders != null && message.dimensionHeaders.length) + for (var i = 0; i < message.dimensionHeaders.length; ++i) + $root.google.analytics.admin.v1alpha.AccessDimensionHeader.encode(message.dimensionHeaders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metricHeaders != null && message.metricHeaders.length) + for (var i = 0; i < message.metricHeaders.length; ++i) + $root.google.analytics.admin.v1alpha.AccessMetricHeader.encode(message.metricHeaders[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rows != null && message.rows.length) + for (var i = 0; i < message.rows.length; ++i) + $root.google.analytics.admin.v1alpha.AccessRow.encode(message.rows[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.rowCount != null && Object.hasOwnProperty.call(message, "rowCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.rowCount); + if (message.quota != null && Object.hasOwnProperty.call(message, "quota")) + $root.google.analytics.admin.v1alpha.AccessQuota.encode(message.quota, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. + * Encodes the specified RunAccessReportResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.RunAccessReportResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IRunAccessReportResponse} message RunAccessReportResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunAccessReportResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. + * Decodes a RunAccessReportResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.RunAccessReportResponse} RunAccessReportResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksRequest.decode = function decode(reader, length) { + RunAccessReportResponse.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.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.RunAccessReportResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.dimensionHeaders && message.dimensionHeaders.length)) + message.dimensionHeaders = []; + message.dimensionHeaders.push($root.google.analytics.admin.v1alpha.AccessDimensionHeader.decode(reader, reader.uint32())); break; case 2: - message.notifyNewUsers = reader.bool(); + if (!(message.metricHeaders && message.metricHeaders.length)) + message.metricHeaders = []; + message.metricHeaders.push($root.google.analytics.admin.v1alpha.AccessMetricHeader.decode(reader, reader.uint32())); break; case 3: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.CreateUserLinkRequest.decode(reader, reader.uint32())); + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.google.analytics.admin.v1alpha.AccessRow.decode(reader, reader.uint32())); + break; + case 4: + message.rowCount = reader.int32(); + break; + case 5: + message.quota = $root.google.analytics.admin.v1alpha.AccessQuota.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -7094,143 +8296,198 @@ }; /** - * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a RunAccessReportResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.RunAccessReportResponse} RunAccessReportResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + RunAccessReportResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateUserLinksRequest message. + * Verifies a RunAccessReportResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateUserLinksRequest.verify = function verify(message) { + RunAccessReportResponse.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.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) - if (typeof message.notifyNewUsers !== "boolean") - return "notifyNewUsers: boolean expected"; - if (message.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.verify(message.requests[i]); + if (message.dimensionHeaders != null && message.hasOwnProperty("dimensionHeaders")) { + if (!Array.isArray(message.dimensionHeaders)) + return "dimensionHeaders: array expected"; + for (var i = 0; i < message.dimensionHeaders.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessDimensionHeader.verify(message.dimensionHeaders[i]); if (error) - return "requests." + error; + return "dimensionHeaders." + error; + } + } + if (message.metricHeaders != null && message.hasOwnProperty("metricHeaders")) { + if (!Array.isArray(message.metricHeaders)) + return "metricHeaders: array expected"; + for (var i = 0; i < message.metricHeaders.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessMetricHeader.verify(message.metricHeaders[i]); + if (error) + return "metricHeaders." + error; } } + if (message.rows != null && message.hasOwnProperty("rows")) { + if (!Array.isArray(message.rows)) + return "rows: array expected"; + for (var i = 0; i < message.rows.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccessRow.verify(message.rows[i]); + if (error) + return "rows." + error; + } + } + if (message.rowCount != null && message.hasOwnProperty("rowCount")) + if (!$util.isInteger(message.rowCount)) + return "rowCount: integer expected"; + if (message.quota != null && message.hasOwnProperty("quota")) { + var error = $root.google.analytics.admin.v1alpha.AccessQuota.verify(message.quota); + if (error) + return "quota." + error; + } return null; }; /** - * Creates a BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunAccessReportResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.RunAccessReportResponse} RunAccessReportResponse */ - BatchCreateUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) + RunAccessReportResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.RunAccessReportResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.notifyNewUsers != null) - message.notifyNewUsers = Boolean(object.notifyNewUsers); - if (object.requests) { - if (!Array.isArray(object.requests)) - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: array expected"); - message.requests = []; - for (var i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: object expected"); - message.requests[i] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.fromObject(object.requests[i]); + var message = new $root.google.analytics.admin.v1alpha.RunAccessReportResponse(); + if (object.dimensionHeaders) { + if (!Array.isArray(object.dimensionHeaders)) + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportResponse.dimensionHeaders: array expected"); + message.dimensionHeaders = []; + for (var i = 0; i < object.dimensionHeaders.length; ++i) { + if (typeof object.dimensionHeaders[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportResponse.dimensionHeaders: object expected"); + message.dimensionHeaders[i] = $root.google.analytics.admin.v1alpha.AccessDimensionHeader.fromObject(object.dimensionHeaders[i]); + } + } + if (object.metricHeaders) { + if (!Array.isArray(object.metricHeaders)) + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportResponse.metricHeaders: array expected"); + message.metricHeaders = []; + for (var i = 0; i < object.metricHeaders.length; ++i) { + if (typeof object.metricHeaders[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportResponse.metricHeaders: object expected"); + message.metricHeaders[i] = $root.google.analytics.admin.v1alpha.AccessMetricHeader.fromObject(object.metricHeaders[i]); + } + } + if (object.rows) { + if (!Array.isArray(object.rows)) + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportResponse.rows: array expected"); + message.rows = []; + for (var i = 0; i < object.rows.length; ++i) { + if (typeof object.rows[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportResponse.rows: object expected"); + message.rows[i] = $root.google.analytics.admin.v1alpha.AccessRow.fromObject(object.rows[i]); } } + if (object.rowCount != null) + message.rowCount = object.rowCount | 0; + if (object.quota != null) { + if (typeof object.quota !== "object") + throw TypeError(".google.analytics.admin.v1alpha.RunAccessReportResponse.quota: object expected"); + message.quota = $root.google.analytics.admin.v1alpha.AccessQuota.fromObject(object.quota); + } return message; }; /** - * Creates a plain object from a BatchCreateUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunAccessReportResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @static - * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} message BatchCreateUserLinksRequest + * @param {google.analytics.admin.v1alpha.RunAccessReportResponse} message RunAccessReportResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateUserLinksRequest.toObject = function toObject(message, options) { + RunAccessReportResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.requests = []; - if (options.defaults) { - object.parent = ""; - object.notifyNewUsers = false; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) - object.notifyNewUsers = message.notifyNewUsers; - if (message.requests && message.requests.length) { - object.requests = []; - for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.toObject(message.requests[j], options); + if (options.arrays || options.defaults) { + object.dimensionHeaders = []; + object.metricHeaders = []; + object.rows = []; } + if (options.defaults) { + object.rowCount = 0; + object.quota = null; + } + if (message.dimensionHeaders && message.dimensionHeaders.length) { + object.dimensionHeaders = []; + for (var j = 0; j < message.dimensionHeaders.length; ++j) + object.dimensionHeaders[j] = $root.google.analytics.admin.v1alpha.AccessDimensionHeader.toObject(message.dimensionHeaders[j], options); + } + if (message.metricHeaders && message.metricHeaders.length) { + object.metricHeaders = []; + for (var j = 0; j < message.metricHeaders.length; ++j) + object.metricHeaders[j] = $root.google.analytics.admin.v1alpha.AccessMetricHeader.toObject(message.metricHeaders[j], options); + } + if (message.rows && message.rows.length) { + object.rows = []; + for (var j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.google.analytics.admin.v1alpha.AccessRow.toObject(message.rows[j], options); + } + if (message.rowCount != null && message.hasOwnProperty("rowCount")) + object.rowCount = message.rowCount; + if (message.quota != null && message.hasOwnProperty("quota")) + object.quota = $root.google.analytics.admin.v1alpha.AccessQuota.toObject(message.quota, options); return object; }; /** - * Converts this BatchCreateUserLinksRequest to JSON. + * Converts this RunAccessReportResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse * @instance * @returns {Object.} JSON object */ - BatchCreateUserLinksRequest.prototype.toJSON = function toJSON() { + RunAccessReportResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateUserLinksRequest; + return RunAccessReportResponse; })(); - v1alpha.BatchCreateUserLinksResponse = (function() { + v1alpha.GetAccountRequest = (function() { /** - * Properties of a BatchCreateUserLinksResponse. + * Properties of a GetAccountRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchCreateUserLinksResponse - * @property {Array.|null} [userLinks] BatchCreateUserLinksResponse userLinks + * @interface IGetAccountRequest + * @property {string|null} [name] GetAccountRequest name */ /** - * Constructs a new BatchCreateUserLinksResponse. + * Constructs a new GetAccountRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchCreateUserLinksResponse. - * @implements IBatchCreateUserLinksResponse + * @classdesc Represents a GetAccountRequest. + * @implements IGetAccountRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set */ - function BatchCreateUserLinksResponse(properties) { - this.userLinks = []; + function GetAccountRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7238,78 +8495,75 @@ } /** - * BatchCreateUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * GetAccountRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @instance */ - BatchCreateUserLinksResponse.prototype.userLinks = $util.emptyArray; + GetAccountRequest.prototype.name = ""; /** - * Creates a new BatchCreateUserLinksResponse instance using the specified properties. + * Creates a new GetAccountRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IGetAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest instance */ - BatchCreateUserLinksResponse.create = function create(properties) { - return new BatchCreateUserLinksResponse(properties); + GetAccountRequest.create = function create(properties) { + return new GetAccountRequest(properties); }; /** - * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAccountRequest} message GetAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksResponse.encode = function encode(message, writer) { + GetAccountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. + * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAccountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAccountRequest} message GetAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. + * Decodes a GetAccountRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksResponse.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAccountRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -7320,124 +8574,109 @@ }; /** - * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a GetAccountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + GetAccountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateUserLinksResponse message. + * Verifies a GetAccountRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateUserLinksResponse.verify = function verify(message) { + GetAccountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetAccountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.GetAccountRequest} GetAccountRequest */ - BatchCreateUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) + GetAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAccountRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); - } - } + var message = new $root.google.analytics.admin.v1alpha.GetAccountRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetAccountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @static - * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} message BatchCreateUserLinksResponse + * @param {google.analytics.admin.v1alpha.GetAccountRequest} message GetAccountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateUserLinksResponse.toObject = function toObject(message, options) { + GetAccountRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.userLinks = []; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BatchCreateUserLinksResponse to JSON. + * Converts this GetAccountRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetAccountRequest * @instance * @returns {Object.} JSON object */ - BatchCreateUserLinksResponse.prototype.toJSON = function toJSON() { + GetAccountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateUserLinksResponse; + return GetAccountRequest; })(); - v1alpha.UpdateUserLinkRequest = (function() { + v1alpha.ListAccountsRequest = (function() { /** - * Properties of an UpdateUserLinkRequest. + * Properties of a ListAccountsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateUserLinkRequest - * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] UpdateUserLinkRequest userLink + * @interface IListAccountsRequest + * @property {number|null} [pageSize] ListAccountsRequest pageSize + * @property {string|null} [pageToken] ListAccountsRequest pageToken + * @property {boolean|null} [showDeleted] ListAccountsRequest showDeleted */ /** - * Constructs a new UpdateUserLinkRequest. + * Constructs a new ListAccountsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateUserLinkRequest. - * @implements IUpdateUserLinkRequest + * @classdesc Represents a ListAccountsRequest. + * @implements IListAccountsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set */ - function UpdateUserLinkRequest(properties) { + function ListAccountsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7445,75 +8684,101 @@ } /** - * UpdateUserLinkRequest userLink. - * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * ListAccountsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @instance */ - UpdateUserLinkRequest.prototype.userLink = null; + ListAccountsRequest.prototype.pageSize = 0; /** - * Creates a new UpdateUserLinkRequest instance using the specified properties. + * ListAccountsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.pageToken = ""; + + /** + * ListAccountsRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest + * @instance + */ + ListAccountsRequest.prototype.showDeleted = false; + + /** + * Creates a new ListAccountsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest instance */ - UpdateUserLinkRequest.create = function create(properties) { - return new UpdateUserLinkRequest(properties); + ListAccountsRequest.create = function create(properties) { + return new ListAccountsRequest(properties); }; /** - * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateUserLinkRequest.encode = function encode(message, writer) { + ListAccountsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userLink != null && Object.hasOwnProperty.call(message, "userLink")) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.showDeleted); return writer; }; /** - * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. + * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsRequest} message ListAccountsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. + * Decodes a ListAccountsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateUserLinkRequest.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.UpdateUserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 2: + message.pageToken = reader.string(); + break; + case 3: + message.showDeleted = reader.bool(); break; default: reader.skipType(tag & 7); @@ -7524,114 +8789,126 @@ }; /** - * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateUserLinkRequest message. + * Verifies a ListAccountsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateUserLinkRequest.verify = function verify(message) { + ListAccountsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userLink != null && message.hasOwnProperty("userLink")) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); - if (error) - return "userLink." + error; - } + 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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; return null; }; /** - * Creates an UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsRequest} ListAccountsRequest */ - UpdateUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest) + ListAccountsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); - if (object.userLink != null) { - if (typeof object.userLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateUserLinkRequest.userLink: object expected"); - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); - } + var message = new $root.google.analytics.admin.v1alpha.ListAccountsRequest(); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); return message; }; /** - * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateUserLinkRequest} message UpdateUserLinkRequest + * @param {google.analytics.admin.v1alpha.ListAccountsRequest} message ListAccountsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateUserLinkRequest.toObject = function toObject(message, options) { + ListAccountsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.userLink = null; - if (message.userLink != null && message.hasOwnProperty("userLink")) - object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); + if (options.defaults) { + object.pageSize = 0; + object.pageToken = ""; + object.showDeleted = false; + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; return object; }; /** - * Converts this UpdateUserLinkRequest to JSON. + * Converts this ListAccountsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsRequest * @instance * @returns {Object.} JSON object */ - UpdateUserLinkRequest.prototype.toJSON = function toJSON() { + ListAccountsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateUserLinkRequest; + return ListAccountsRequest; })(); - v1alpha.BatchUpdateUserLinksRequest = (function() { + v1alpha.ListAccountsResponse = (function() { /** - * Properties of a BatchUpdateUserLinksRequest. + * Properties of a ListAccountsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IBatchUpdateUserLinksRequest - * @property {string|null} [parent] BatchUpdateUserLinksRequest parent - * @property {Array.|null} [requests] BatchUpdateUserLinksRequest requests + * @interface IListAccountsResponse + * @property {Array.|null} [accounts] ListAccountsResponse accounts + * @property {string|null} [nextPageToken] ListAccountsResponse nextPageToken */ /** - * Constructs a new BatchUpdateUserLinksRequest. + * Constructs a new ListAccountsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchUpdateUserLinksRequest. - * @implements IBatchUpdateUserLinksRequest + * @classdesc Represents a ListAccountsResponse. + * @implements IListAccountsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set */ - function BatchUpdateUserLinksRequest(properties) { - this.requests = []; + function ListAccountsResponse(properties) { + this.accounts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7639,91 +8916,91 @@ } /** - * BatchUpdateUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * ListAccountsResponse accounts. + * @member {Array.} accounts + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @instance */ - BatchUpdateUserLinksRequest.prototype.parent = ""; + ListAccountsResponse.prototype.accounts = $util.emptyArray; /** - * BatchUpdateUserLinksRequest requests. - * @member {Array.} requests - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * ListAccountsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @instance */ - BatchUpdateUserLinksRequest.prototype.requests = $util.emptyArray; + ListAccountsResponse.prototype.nextPageToken = ""; /** - * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. + * Creates a new ListAccountsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse instance */ - BatchUpdateUserLinksRequest.create = function create(properties) { - return new BatchUpdateUserLinksRequest(properties); + ListAccountsResponse.create = function create(properties) { + return new ListAccountsResponse(properties); }; /** - * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsResponse} message ListAccountsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksRequest.encode = function encode(message, writer) { + ListAccountsResponse.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.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.accounts != null && message.accounts.length) + for (var i = 0; i < message.accounts.length; ++i) + $root.google.analytics.admin.v1alpha.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 BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. + * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountsResponse} message ListAccountsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. + * Decodes a ListAccountsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksRequest.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.accounts && message.accounts.length)) + message.accounts = []; + message.accounts.push($root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32())); break; case 2: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.decode(reader, reader.uint32())); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -7734,134 +9011,133 @@ }; /** - * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchUpdateUserLinksRequest message. + * Verifies a ListAccountsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchUpdateUserLinksRequest.verify = function verify(message) { + ListAccountsResponse.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.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify(message.requests[i]); - if (error) - return "requests." + error; + 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.analytics.admin.v1alpha.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 BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListAccountsResponse} ListAccountsResponse */ - BatchUpdateUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) + ListAccountsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.requests) { - if (!Array.isArray(object.requests)) - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: array expected"); - message.requests = []; - for (var i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: object expected"); - message.requests[i] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.fromObject(object.requests[i]); + var message = new $root.google.analytics.admin.v1alpha.ListAccountsResponse(); + if (object.accounts) { + if (!Array.isArray(object.accounts)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: array expected"); + message.accounts = []; + for (var i = 0; i < object.accounts.length; ++i) { + if (typeof object.accounts[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountsResponse.accounts: object expected"); + message.accounts[i] = $root.google.analytics.admin.v1alpha.Account.fromObject(object.accounts[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @static - * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest + * @param {google.analytics.admin.v1alpha.ListAccountsResponse} message ListAccountsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchUpdateUserLinksRequest.toObject = function toObject(message, options) { + ListAccountsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.requests = []; + object.accounts = []; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.requests && message.requests.length) { - object.requests = []; - for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.toObject(message.requests[j], options); + object.nextPageToken = ""; + if (message.accounts && message.accounts.length) { + object.accounts = []; + for (var j = 0; j < message.accounts.length; ++j) + object.accounts[j] = $root.google.analytics.admin.v1alpha.Account.toObject(message.accounts[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this BatchUpdateUserLinksRequest to JSON. + * Converts this ListAccountsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListAccountsResponse * @instance * @returns {Object.} JSON object */ - BatchUpdateUserLinksRequest.prototype.toJSON = function toJSON() { + ListAccountsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchUpdateUserLinksRequest; + return ListAccountsResponse; })(); - v1alpha.BatchUpdateUserLinksResponse = (function() { + v1alpha.DeleteAccountRequest = (function() { /** - * Properties of a BatchUpdateUserLinksResponse. + * Properties of a DeleteAccountRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchUpdateUserLinksResponse - * @property {Array.|null} [userLinks] BatchUpdateUserLinksResponse userLinks + * @interface IDeleteAccountRequest + * @property {string|null} [name] DeleteAccountRequest name */ /** - * Constructs a new BatchUpdateUserLinksResponse. + * Constructs a new DeleteAccountRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchUpdateUserLinksResponse. - * @implements IBatchUpdateUserLinksResponse + * @classdesc Represents a DeleteAccountRequest. + * @implements IDeleteAccountRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set */ - function BatchUpdateUserLinksResponse(properties) { - this.userLinks = []; + function DeleteAccountRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7869,78 +9145,75 @@ } /** - * BatchUpdateUserLinksResponse userLinks. - * @member {Array.} userLinks - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * DeleteAccountRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @instance */ - BatchUpdateUserLinksResponse.prototype.userLinks = $util.emptyArray; + DeleteAccountRequest.prototype.name = ""; /** - * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. + * Creates a new DeleteAccountRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest instance */ - BatchUpdateUserLinksResponse.create = function create(properties) { - return new BatchUpdateUserLinksResponse(properties); + DeleteAccountRequest.create = function create(properties) { + return new DeleteAccountRequest(properties); }; /** - * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksResponse.encode = function encode(message, writer) { + DeleteAccountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userLinks != null && message.userLinks.length) - for (var i = 0; i < message.userLinks.length; ++i) - $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. + * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAccountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchUpdateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. + * Decodes a DeleteAccountRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksResponse.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteAccountRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -7951,124 +9224,108 @@ }; /** - * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteAccountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchUpdateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteAccountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchUpdateUserLinksResponse message. + * Verifies a DeleteAccountRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchUpdateUserLinksResponse.verify = function verify(message) { + DeleteAccountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userLinks != null && message.hasOwnProperty("userLinks")) { - if (!Array.isArray(message.userLinks)) - return "userLinks: array expected"; - for (var i = 0; i < message.userLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); - if (error) - return "userLinks." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteAccountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse + * @returns {google.analytics.admin.v1alpha.DeleteAccountRequest} DeleteAccountRequest */ - BatchUpdateUserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) + DeleteAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAccountRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); - if (object.userLinks) { - if (!Array.isArray(object.userLinks)) - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: array expected"); - message.userLinks = []; - for (var i = 0; i < object.userLinks.length; ++i) { - if (typeof object.userLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: object expected"); - message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); - } - } + var message = new $root.google.analytics.admin.v1alpha.DeleteAccountRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteAccountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @static - * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse + * @param {google.analytics.admin.v1alpha.DeleteAccountRequest} message DeleteAccountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchUpdateUserLinksResponse.toObject = function toObject(message, options) { + DeleteAccountRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.userLinks = []; - if (message.userLinks && message.userLinks.length) { - object.userLinks = []; - for (var j = 0; j < message.userLinks.length; ++j) - object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BatchUpdateUserLinksResponse to JSON. + * Converts this DeleteAccountRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @memberof google.analytics.admin.v1alpha.DeleteAccountRequest * @instance * @returns {Object.} JSON object */ - BatchUpdateUserLinksResponse.prototype.toJSON = function toJSON() { + DeleteAccountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchUpdateUserLinksResponse; + return DeleteAccountRequest; })(); - v1alpha.DeleteUserLinkRequest = (function() { + v1alpha.UpdateAccountRequest = (function() { /** - * Properties of a DeleteUserLinkRequest. + * Properties of an UpdateAccountRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteUserLinkRequest - * @property {string|null} [name] DeleteUserLinkRequest name + * @interface IUpdateAccountRequest + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] UpdateAccountRequest account + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountRequest updateMask */ /** - * Constructs a new DeleteUserLinkRequest. + * Constructs a new UpdateAccountRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteUserLinkRequest. - * @implements IDeleteUserLinkRequest + * @classdesc Represents an UpdateAccountRequest. + * @implements IUpdateAccountRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set */ - function DeleteUserLinkRequest(properties) { + function UpdateAccountRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8076,75 +9333,88 @@ } /** - * DeleteUserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * UpdateAccountRequest account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @instance */ - DeleteUserLinkRequest.prototype.name = ""; + UpdateAccountRequest.prototype.account = null; /** - * Creates a new DeleteUserLinkRequest instance using the specified properties. + * UpdateAccountRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest + * @instance + */ + UpdateAccountRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAccountRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest instance */ - DeleteUserLinkRequest.create = function create(properties) { - return new DeleteUserLinkRequest(properties); + UpdateAccountRequest.create = function create(properties) { + return new UpdateAccountRequest(properties); }; /** - * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteUserLinkRequest.encode = function encode(message, writer) { + UpdateAccountRequest.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")) + $root.google.analytics.admin.v1alpha.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 DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. + * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAccountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. + * Decodes an UpdateAccountRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteUserLinkRequest.decode = function decode(reader, length) { + 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.analytics.admin.v1alpha.DeleteUserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateAccountRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -8155,109 +9425,127 @@ }; /** - * Decodes a DeleteUserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateAccountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateAccountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteUserLinkRequest message. + * Verifies an UpdateAccountRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteUserLinkRequest.verify = function verify(message) { + UpdateAccountRequest.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")) { + var error = $root.google.analytics.admin.v1alpha.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 a DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateAccountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest + * @returns {google.analytics.admin.v1alpha.UpdateAccountRequest} UpdateAccountRequest */ - DeleteUserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest) + UpdateAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAccountRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateAccountRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAccountRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateAccountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteUserLinkRequest} message DeleteUserLinkRequest + * @param {google.analytics.admin.v1alpha.UpdateAccountRequest} message UpdateAccountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteUserLinkRequest.toObject = function toObject(message, options) { + UpdateAccountRequest.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 (options.defaults) { + object.account = null; + object.updateMask = null; + } + if (message.account != null && message.hasOwnProperty("account")) + object.account = $root.google.analytics.admin.v1alpha.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 DeleteUserLinkRequest to JSON. + * Converts this UpdateAccountRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @memberof google.analytics.admin.v1alpha.UpdateAccountRequest * @instance * @returns {Object.} JSON object */ - DeleteUserLinkRequest.prototype.toJSON = function toJSON() { + UpdateAccountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteUserLinkRequest; + return UpdateAccountRequest; })(); - v1alpha.BatchDeleteUserLinksRequest = (function() { + v1alpha.ProvisionAccountTicketRequest = (function() { /** - * Properties of a BatchDeleteUserLinksRequest. + * Properties of a ProvisionAccountTicketRequest. * @memberof google.analytics.admin.v1alpha - * @interface IBatchDeleteUserLinksRequest - * @property {string|null} [parent] BatchDeleteUserLinksRequest parent - * @property {Array.|null} [requests] BatchDeleteUserLinksRequest requests + * @interface IProvisionAccountTicketRequest + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ProvisionAccountTicketRequest account + * @property {string|null} [redirectUri] ProvisionAccountTicketRequest redirectUri */ /** - * Constructs a new BatchDeleteUserLinksRequest. + * Constructs a new ProvisionAccountTicketRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a BatchDeleteUserLinksRequest. - * @implements IBatchDeleteUserLinksRequest + * @classdesc Represents a ProvisionAccountTicketRequest. + * @implements IProvisionAccountTicketRequest * @constructor - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set */ - function BatchDeleteUserLinksRequest(properties) { - this.requests = []; + function ProvisionAccountTicketRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8265,91 +9553,88 @@ } /** - * BatchDeleteUserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * ProvisionAccountTicketRequest account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @instance */ - BatchDeleteUserLinksRequest.prototype.parent = ""; + ProvisionAccountTicketRequest.prototype.account = null; /** - * BatchDeleteUserLinksRequest requests. - * @member {Array.} requests - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * ProvisionAccountTicketRequest redirectUri. + * @member {string} redirectUri + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @instance */ - BatchDeleteUserLinksRequest.prototype.requests = $util.emptyArray; + ProvisionAccountTicketRequest.prototype.redirectUri = ""; /** - * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. + * Creates a new ProvisionAccountTicketRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest instance */ - BatchDeleteUserLinksRequest.create = function create(properties) { - return new BatchDeleteUserLinksRequest(properties); + ProvisionAccountTicketRequest.create = function create(properties) { + return new ProvisionAccountTicketRequest(properties); }; /** - * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteUserLinksRequest.encode = function encode(message, writer) { + ProvisionAccountTicketRequest.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.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.redirectUri != null && Object.hasOwnProperty.call(message, "redirectUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); return writer; }; /** - * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketRequest} message ProvisionAccountTicketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ProvisionAccountTicketRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteUserLinksRequest.decode = function decode(reader, length) { + ProvisionAccountTicketRequest.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.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); break; case 2: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.decode(reader, reader.uint32())); + message.redirectUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -8360,134 +9645,121 @@ }; /** - * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ProvisionAccountTicketRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + ProvisionAccountTicketRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeleteUserLinksRequest message. + * Verifies a ProvisionAccountTicketRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeleteUserLinksRequest.verify = function verify(message) { + ProvisionAccountTicketRequest.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.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify(message.requests[i]); - if (error) - return "requests." + error; - } + if (message.account != null && message.hasOwnProperty("account")) { + var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); + if (error) + return "account." + error; } + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + if (!$util.isString(message.redirectUri)) + return "redirectUri: string expected"; return null; }; /** - * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ProvisionAccountTicketRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} ProvisionAccountTicketRequest */ - BatchDeleteUserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) + ProvisionAccountTicketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.requests) { - if (!Array.isArray(object.requests)) - throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: array expected"); - message.requests = []; - for (var i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: object expected"); - message.requests[i] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.fromObject(object.requests[i]); - } + var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); } + if (object.redirectUri != null) + message.redirectUri = String(object.redirectUri); return message; }; /** - * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ProvisionAccountTicketRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @static - * @param {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} message ProvisionAccountTicketRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeleteUserLinksRequest.toObject = function toObject(message, options) { + ProvisionAccountTicketRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.requests = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.requests && message.requests.length) { - object.requests = []; - for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.toObject(message.requests[j], options); + if (options.defaults) { + object.account = null; + object.redirectUri = ""; } + if (message.account != null && message.hasOwnProperty("account")) + object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + object.redirectUri = message.redirectUri; return object; }; /** - * Converts this BatchDeleteUserLinksRequest to JSON. + * Converts this ProvisionAccountTicketRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest * @instance * @returns {Object.} JSON object */ - BatchDeleteUserLinksRequest.prototype.toJSON = function toJSON() { + ProvisionAccountTicketRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchDeleteUserLinksRequest; + return ProvisionAccountTicketRequest; })(); - v1alpha.CreateFirebaseLinkRequest = (function() { + v1alpha.ProvisionAccountTicketResponse = (function() { /** - * Properties of a CreateFirebaseLinkRequest. + * Properties of a ProvisionAccountTicketResponse. * @memberof google.analytics.admin.v1alpha - * @interface ICreateFirebaseLinkRequest - * @property {string|null} [parent] CreateFirebaseLinkRequest parent - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink + * @interface IProvisionAccountTicketResponse + * @property {string|null} [accountTicketId] ProvisionAccountTicketResponse accountTicketId */ /** - * Constructs a new CreateFirebaseLinkRequest. + * Constructs a new ProvisionAccountTicketResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateFirebaseLinkRequest. - * @implements ICreateFirebaseLinkRequest + * @classdesc Represents a ProvisionAccountTicketResponse. + * @implements IProvisionAccountTicketResponse * @constructor - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set */ - function CreateFirebaseLinkRequest(properties) { + function ProvisionAccountTicketResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8495,88 +9767,75 @@ } /** - * CreateFirebaseLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest - * @instance - */ - CreateFirebaseLinkRequest.prototype.parent = ""; - - /** - * CreateFirebaseLinkRequest firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * ProvisionAccountTicketResponse accountTicketId. + * @member {string} accountTicketId + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @instance */ - CreateFirebaseLinkRequest.prototype.firebaseLink = null; + ProvisionAccountTicketResponse.prototype.accountTicketId = ""; /** - * Creates a new CreateFirebaseLinkRequest instance using the specified properties. + * Creates a new ProvisionAccountTicketResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse instance */ - CreateFirebaseLinkRequest.create = function create(properties) { - return new CreateFirebaseLinkRequest(properties); + ProvisionAccountTicketResponse.create = function create(properties) { + return new ProvisionAccountTicketResponse(properties); }; /** - * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encode = function encode(message, writer) { + ProvisionAccountTicketResponse.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.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.accountTicketId != null && Object.hasOwnProperty.call(message, "accountTicketId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.accountTicketId); return writer; }; /** - * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified ProvisionAccountTicketResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProvisionAccountTicketResponse} message ProvisionAccountTicketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ProvisionAccountTicketResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decode = function decode(reader, length) { + ProvisionAccountTicketResponse.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.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + message.accountTicketId = reader.string(); break; default: reader.skipType(tag & 7); @@ -8587,121 +9846,107 @@ }; /** - * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ProvisionAccountTicketResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ProvisionAccountTicketResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFirebaseLinkRequest message. + * Verifies a ProvisionAccountTicketResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFirebaseLinkRequest.verify = function verify(message) { + ProvisionAccountTicketResponse.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.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; - } + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + if (!$util.isString(message.accountTicketId)) + return "accountTicketId: string expected"; return null; }; /** - * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ProvisionAccountTicketResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} ProvisionAccountTicketResponse */ - CreateFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + ProvisionAccountTicketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); - } + var message = new $root.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); + if (object.accountTicketId != null) + message.accountTicketId = String(object.accountTicketId); return message; }; /** - * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ProvisionAccountTicketResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @static - * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} message ProvisionAccountTicketResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFirebaseLinkRequest.toObject = function toObject(message, options) { + ProvisionAccountTicketResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.firebaseLink = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (options.defaults) + object.accountTicketId = ""; + if (message.accountTicketId != null && message.hasOwnProperty("accountTicketId")) + object.accountTicketId = message.accountTicketId; return object; }; /** - * Converts this CreateFirebaseLinkRequest to JSON. + * Converts this ProvisionAccountTicketResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse * @instance * @returns {Object.} JSON object */ - CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { + ProvisionAccountTicketResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFirebaseLinkRequest; + return ProvisionAccountTicketResponse; })(); - v1alpha.DeleteFirebaseLinkRequest = (function() { + v1alpha.GetPropertyRequest = (function() { /** - * Properties of a DeleteFirebaseLinkRequest. + * Properties of a GetPropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteFirebaseLinkRequest - * @property {string|null} [name] DeleteFirebaseLinkRequest name + * @interface IGetPropertyRequest + * @property {string|null} [name] GetPropertyRequest name */ /** - * Constructs a new DeleteFirebaseLinkRequest. + * Constructs a new GetPropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteFirebaseLinkRequest. - * @implements IDeleteFirebaseLinkRequest + * @classdesc Represents a GetPropertyRequest. + * @implements IGetPropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set */ - function DeleteFirebaseLinkRequest(properties) { + function GetPropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8709,35 +9954,35 @@ } /** - * DeleteFirebaseLinkRequest name. + * GetPropertyRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @instance */ - DeleteFirebaseLinkRequest.prototype.name = ""; + GetPropertyRequest.prototype.name = ""; /** - * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. + * Creates a new GetPropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest instance */ - DeleteFirebaseLinkRequest.create = function create(properties) { - return new DeleteFirebaseLinkRequest(properties); + GetPropertyRequest.create = function create(properties) { + return new GetPropertyRequest(properties); }; /** - * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified GetPropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encode = function encode(message, writer) { + GetPropertyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -8746,33 +9991,33 @@ }; /** - * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. + * Encodes the specified GetPropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetPropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetPropertyRequest} message GetPropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. + * Decodes a GetPropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decode = function decode(reader, length) { + GetPropertyRequest.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.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetPropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8788,30 +10033,30 @@ }; /** - * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { + GetPropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFirebaseLinkRequest message. + * Verifies a GetPropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFirebaseLinkRequest.verify = function verify(message) { + GetPropertyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -8821,32 +10066,32 @@ }; /** - * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest + * @returns {google.analytics.admin.v1alpha.GetPropertyRequest} GetPropertyRequest */ - DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + GetPropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetPropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetPropertyRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest + * @param {google.analytics.admin.v1alpha.GetPropertyRequest} message GetPropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { + GetPropertyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -8858,39 +10103,40 @@ }; /** - * Converts this DeleteFirebaseLinkRequest to JSON. + * Converts this GetPropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest * @instance * @returns {Object.} JSON object */ - DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { + GetPropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteFirebaseLinkRequest; + return GetPropertyRequest; })(); - v1alpha.ListFirebaseLinksRequest = (function() { + v1alpha.ListPropertiesRequest = (function() { /** - * Properties of a ListFirebaseLinksRequest. + * Properties of a ListPropertiesRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksRequest - * @property {string|null} [parent] ListFirebaseLinksRequest parent - * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize - * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken + * @interface IListPropertiesRequest + * @property {string|null} [filter] ListPropertiesRequest filter + * @property {number|null} [pageSize] ListPropertiesRequest pageSize + * @property {string|null} [pageToken] ListPropertiesRequest pageToken + * @property {boolean|null} [showDeleted] ListPropertiesRequest showDeleted */ /** - * Constructs a new ListFirebaseLinksRequest. + * Constructs a new ListPropertiesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksRequest. - * @implements IListFirebaseLinksRequest + * @classdesc Represents a ListPropertiesRequest. + * @implements IListPropertiesRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set */ - function ListFirebaseLinksRequest(properties) { + function ListPropertiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8898,95 +10144,105 @@ } /** - * ListFirebaseLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * ListPropertiesRequest filter. + * @member {string} filter + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @instance */ - ListFirebaseLinksRequest.prototype.parent = ""; + ListPropertiesRequest.prototype.filter = ""; /** - * ListFirebaseLinksRequest pageSize. + * ListPropertiesRequest pageSize. * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @instance */ - ListFirebaseLinksRequest.prototype.pageSize = 0; + ListPropertiesRequest.prototype.pageSize = 0; /** - * ListFirebaseLinksRequest pageToken. + * ListPropertiesRequest pageToken. * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @instance */ - ListFirebaseLinksRequest.prototype.pageToken = ""; + ListPropertiesRequest.prototype.pageToken = ""; /** - * Creates a new ListFirebaseLinksRequest instance using the specified properties. + * ListPropertiesRequest showDeleted. + * @member {boolean} showDeleted + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @instance + */ + ListPropertiesRequest.prototype.showDeleted = false; + + /** + * Creates a new ListPropertiesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest instance */ - ListFirebaseLinksRequest.create = function create(properties) { - return new ListFirebaseLinksRequest(properties); + ListPropertiesRequest.create = function create(properties) { + return new ListPropertiesRequest(properties); }; /** - * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified ListPropertiesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encode = function encode(message, writer) { + ListPropertiesRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); 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.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.showDeleted); return writer; }; /** - * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. + * Encodes the specified ListPropertiesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesRequest} message ListPropertiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPropertiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. + * Decodes a ListPropertiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decode = function decode(reader, length) { + ListPropertiesRequest.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.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListPropertiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.filter = reader.string(); break; case 2: message.pageSize = reader.int32(); @@ -8994,6 +10250,9 @@ case 3: message.pageToken = reader.string(); break; + case 4: + message.showDeleted = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -9003,126 +10262,134 @@ }; /** - * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPropertiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { + ListPropertiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksRequest message. + * Verifies a ListPropertiesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksRequest.verify = function verify(message) { + ListPropertiesRequest.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.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: 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.showDeleted != null && message.hasOwnProperty("showDeleted")) + if (typeof message.showDeleted !== "boolean") + return "showDeleted: boolean expected"; return null; }; /** - * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPropertiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest + * @returns {google.analytics.admin.v1alpha.ListPropertiesRequest} ListPropertiesRequest */ - ListFirebaseLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + ListPropertiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.analytics.admin.v1alpha.ListPropertiesRequest(); + if (object.filter != null) + message.filter = String(object.filter); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.showDeleted != null) + message.showDeleted = Boolean(object.showDeleted); return message; }; /** - * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPropertiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest + * @param {google.analytics.admin.v1alpha.ListPropertiesRequest} message ListPropertiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksRequest.toObject = function toObject(message, options) { + ListPropertiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; + object.filter = ""; object.pageSize = 0; object.pageToken = ""; + object.showDeleted = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.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.showDeleted != null && message.hasOwnProperty("showDeleted")) + object.showDeleted = message.showDeleted; return object; }; /** - * Converts this ListFirebaseLinksRequest to JSON. + * Converts this ListPropertiesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { + ListPropertiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksRequest; + return ListPropertiesRequest; })(); - v1alpha.ListFirebaseLinksResponse = (function() { + v1alpha.ListPropertiesResponse = (function() { /** - * Properties of a ListFirebaseLinksResponse. + * Properties of a ListPropertiesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListFirebaseLinksResponse - * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks - * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken + * @interface IListPropertiesResponse + * @property {Array.|null} [properties] ListPropertiesResponse properties + * @property {string|null} [nextPageToken] ListPropertiesResponse nextPageToken */ /** - * Constructs a new ListFirebaseLinksResponse. + * Constructs a new ListPropertiesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListFirebaseLinksResponse. - * @implements IListFirebaseLinksResponse + * @classdesc Represents a ListPropertiesResponse. + * @implements IListPropertiesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set */ - function ListFirebaseLinksResponse(properties) { - this.firebaseLinks = []; + function ListPropertiesResponse(properties) { + this.properties = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9130,88 +10397,88 @@ } /** - * ListFirebaseLinksResponse firebaseLinks. - * @member {Array.} firebaseLinks - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * ListPropertiesResponse properties. + * @member {Array.} properties + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @instance */ - ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; + ListPropertiesResponse.prototype.properties = $util.emptyArray; /** - * ListFirebaseLinksResponse nextPageToken. + * ListPropertiesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @instance */ - ListFirebaseLinksResponse.prototype.nextPageToken = ""; + ListPropertiesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListFirebaseLinksResponse instance using the specified properties. + * Creates a new ListPropertiesResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse instance */ - ListFirebaseLinksResponse.create = function create(properties) { - return new ListFirebaseLinksResponse(properties); + ListPropertiesResponse.create = function create(properties) { + return new ListPropertiesResponse(properties); }; /** - * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified ListPropertiesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encode = function encode(message, writer) { + ListPropertiesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.firebaseLinks != null && message.firebaseLinks.length) - for (var i = 0; i < message.firebaseLinks.length; ++i) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.properties != null && message.properties.length) + for (var i = 0; i < message.properties.length; ++i) + $root.google.analytics.admin.v1alpha.Property.encode(message.properties[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 ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. + * Encodes the specified ListPropertiesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListPropertiesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListPropertiesResponse} message ListPropertiesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListPropertiesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. + * Decodes a ListPropertiesResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decode = function decode(reader, length) { + ListPropertiesResponse.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.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListPropertiesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.firebaseLinks && message.firebaseLinks.length)) - message.firebaseLinks = []; - message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); + if (!(message.properties && message.properties.length)) + message.properties = []; + message.properties.push($root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -9225,39 +10492,39 @@ }; /** - * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListPropertiesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { + ListPropertiesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFirebaseLinksResponse message. + * Verifies a ListPropertiesResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFirebaseLinksResponse.verify = function verify(message) { + ListPropertiesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { - if (!Array.isArray(message.firebaseLinks)) - return "firebaseLinks: array expected"; - for (var i = 0; i < message.firebaseLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); + if (message.properties != null && message.hasOwnProperty("properties")) { + if (!Array.isArray(message.properties)) + return "properties: array expected"; + for (var i = 0; i < message.properties.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.properties[i]); if (error) - return "firebaseLinks." + error; + return "properties." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -9267,25 +10534,25 @@ }; /** - * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListPropertiesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse + * @returns {google.analytics.admin.v1alpha.ListPropertiesResponse} ListPropertiesResponse */ - ListFirebaseLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + ListPropertiesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListPropertiesResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); - if (object.firebaseLinks) { - if (!Array.isArray(object.firebaseLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); - message.firebaseLinks = []; - for (var i = 0; i < object.firebaseLinks.length; ++i) { - if (typeof object.firebaseLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); - message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); + var message = new $root.google.analytics.admin.v1alpha.ListPropertiesResponse(); + if (object.properties) { + if (!Array.isArray(object.properties)) + throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: array expected"); + message.properties = []; + for (var i = 0; i < object.properties.length; ++i) { + if (typeof object.properties[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListPropertiesResponse.properties: object expected"); + message.properties[i] = $root.google.analytics.admin.v1alpha.Property.fromObject(object.properties[i]); } } if (object.nextPageToken != null) @@ -9294,26 +10561,26 @@ }; /** - * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListPropertiesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @static - * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse + * @param {google.analytics.admin.v1alpha.ListPropertiesResponse} message ListPropertiesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFirebaseLinksResponse.toObject = function toObject(message, options) { + ListPropertiesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.firebaseLinks = []; + object.properties = []; if (options.defaults) object.nextPageToken = ""; - if (message.firebaseLinks && message.firebaseLinks.length) { - object.firebaseLinks = []; - for (var j = 0; j < message.firebaseLinks.length; ++j) - object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); + if (message.properties && message.properties.length) { + object.properties = []; + for (var j = 0; j < message.properties.length; ++j) + object.properties[j] = $root.google.analytics.admin.v1alpha.Property.toObject(message.properties[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -9321,37 +10588,38 @@ }; /** - * Converts this ListFirebaseLinksResponse to JSON. + * Converts this ListPropertiesResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse * @instance * @returns {Object.} JSON object */ - ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { + ListPropertiesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFirebaseLinksResponse; + return ListPropertiesResponse; })(); - v1alpha.GetGlobalSiteTagRequest = (function() { + v1alpha.UpdatePropertyRequest = (function() { /** - * Properties of a GetGlobalSiteTagRequest. + * Properties of an UpdatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetGlobalSiteTagRequest - * @property {string|null} [name] GetGlobalSiteTagRequest name + * @interface IUpdatePropertyRequest + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] UpdatePropertyRequest property + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePropertyRequest updateMask */ /** - * Constructs a new GetGlobalSiteTagRequest. + * Constructs a new UpdatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetGlobalSiteTagRequest. - * @implements IGetGlobalSiteTagRequest + * @classdesc Represents an UpdatePropertyRequest. + * @implements IUpdatePropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set */ - function GetGlobalSiteTagRequest(properties) { + function UpdatePropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9359,75 +10627,88 @@ } /** - * GetGlobalSiteTagRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * UpdatePropertyRequest property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @instance */ - GetGlobalSiteTagRequest.prototype.name = ""; + UpdatePropertyRequest.prototype.property = null; /** - * Creates a new GetGlobalSiteTagRequest instance using the specified properties. + * UpdatePropertyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @instance + */ + UpdatePropertyRequest.prototype.updateMask = null; + + /** + * Creates a new UpdatePropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest instance */ - GetGlobalSiteTagRequest.create = function create(properties) { - return new GetGlobalSiteTagRequest(properties); + UpdatePropertyRequest.create = function create(properties) { + return new UpdatePropertyRequest(properties); }; /** - * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified UpdatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encode = function encode(message, writer) { + UpdatePropertyRequest.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.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, 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 GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. + * Encodes the specified UpdatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdatePropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdatePropertyRequest} message UpdatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. + * Decodes an UpdatePropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decode = function decode(reader, length) { + UpdatePropertyRequest.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.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdatePropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9438,108 +10719,126 @@ }; /** - * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdatePropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { + UpdatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGlobalSiteTagRequest message. + * Verifies an UpdatePropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGlobalSiteTagRequest.verify = function verify(message) { + UpdatePropertyRequest.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.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + 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 a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest + * @returns {google.analytics.admin.v1alpha.UpdatePropertyRequest} UpdatePropertyRequest */ - GetGlobalSiteTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + UpdatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdatePropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdatePropertyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdatePropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest + * @param {google.analytics.admin.v1alpha.UpdatePropertyRequest} message UpdatePropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGlobalSiteTagRequest.toObject = function toObject(message, options) { + UpdatePropertyRequest.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 (options.defaults) { + object.property = null; + object.updateMask = null; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetGlobalSiteTagRequest to JSON. + * Converts this UpdatePropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest * @instance * @returns {Object.} JSON object */ - GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { + UpdatePropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetGlobalSiteTagRequest; + return UpdatePropertyRequest; })(); - v1alpha.CreateGoogleAdsLinkRequest = (function() { + v1alpha.CreatePropertyRequest = (function() { /** - * Properties of a CreateGoogleAdsLinkRequest. + * Properties of a CreatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateGoogleAdsLinkRequest - * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink + * @interface ICreatePropertyRequest + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] CreatePropertyRequest property */ /** - * Constructs a new CreateGoogleAdsLinkRequest. + * Constructs a new CreatePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateGoogleAdsLinkRequest. - * @implements ICreateGoogleAdsLinkRequest + * @classdesc Represents a CreatePropertyRequest. + * @implements ICreatePropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set */ - function CreateGoogleAdsLinkRequest(properties) { + function CreatePropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9547,88 +10846,75 @@ } /** - * CreateGoogleAdsLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest - * @instance - */ - CreateGoogleAdsLinkRequest.prototype.parent = ""; - - /** - * CreateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * CreatePropertyRequest property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @instance */ - CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + CreatePropertyRequest.prototype.property = null; /** - * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. + * Creates a new CreatePropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest instance */ - CreateGoogleAdsLinkRequest.create = function create(properties) { - return new CreateGoogleAdsLinkRequest(properties); + CreatePropertyRequest.create = function create(properties) { + return new CreatePropertyRequest(properties); }; /** - * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified CreatePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encode = function encode(message, writer) { + CreatePropertyRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified CreatePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreatePropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreatePropertyRequest} message CreatePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreatePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a CreatePropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decode = function decode(reader, length) { + CreatePropertyRequest.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.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreatePropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9639,122 +10925,112 @@ }; /** - * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + CreatePropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateGoogleAdsLinkRequest message. + * Verifies a CreatePropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateGoogleAdsLinkRequest.verify = function verify(message) { + CreatePropertyRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (message.property != null && message.hasOwnProperty("property")) { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); if (error) - return "googleAdsLink." + error; + return "property." + error; } return null; }; /** - * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.CreatePropertyRequest} CreatePropertyRequest */ - CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + CreatePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreatePropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + var message = new $root.google.analytics.admin.v1alpha.CreatePropertyRequest(); + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreatePropertyRequest.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); } return message; }; /** - * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreatePropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.CreatePropertyRequest} message CreatePropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + CreatePropertyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.googleAdsLink = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (options.defaults) + object.property = null; + if (message.property != null && message.hasOwnProperty("property")) + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); return object; }; /** - * Converts this CreateGoogleAdsLinkRequest to JSON. + * Converts this CreatePropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest * @instance * @returns {Object.} JSON object */ - CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + CreatePropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateGoogleAdsLinkRequest; + return CreatePropertyRequest; })(); - v1alpha.UpdateGoogleAdsLinkRequest = (function() { + v1alpha.DeletePropertyRequest = (function() { /** - * Properties of an UpdateGoogleAdsLinkRequest. + * Properties of a DeletePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateGoogleAdsLinkRequest - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask + * @interface IDeletePropertyRequest + * @property {string|null} [name] DeletePropertyRequest name */ /** - * Constructs a new UpdateGoogleAdsLinkRequest. + * Constructs a new DeletePropertyRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateGoogleAdsLinkRequest. - * @implements IUpdateGoogleAdsLinkRequest + * @classdesc Represents a DeletePropertyRequest. + * @implements IDeletePropertyRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set */ - function UpdateGoogleAdsLinkRequest(properties) { + function DeletePropertyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9762,88 +11038,75 @@ } /** - * UpdateGoogleAdsLinkRequest googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest - * @instance - */ - UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; - - /** - * UpdateGoogleAdsLinkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * DeletePropertyRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @instance */ - UpdateGoogleAdsLinkRequest.prototype.updateMask = null; + DeletePropertyRequest.prototype.name = ""; /** - * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. + * Creates a new DeletePropertyRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest instance */ - UpdateGoogleAdsLinkRequest.create = function create(properties) { - return new UpdateGoogleAdsLinkRequest(properties); + DeletePropertyRequest.create = function create(properties) { + return new DeletePropertyRequest(properties); }; /** - * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified DeletePropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encode = function encode(message, writer) { + DeletePropertyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified DeletePropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeletePropertyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeletePropertyRequest} message DeletePropertyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeletePropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a DeletePropertyRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decode = function decode(reader, length) { + DeletePropertyRequest.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.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeletePropertyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -9854,126 +11117,107 @@ }; /** - * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a DeletePropertyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + DeletePropertyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateGoogleAdsLinkRequest message. + * Verifies a DeletePropertyRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateGoogleAdsLinkRequest.verify = function verify(message) { + DeletePropertyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePropertyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.DeletePropertyRequest} DeletePropertyRequest */ - UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + DeletePropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeletePropertyRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.DeletePropertyRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeletePropertyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.DeletePropertyRequest} message DeletePropertyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { + DeletePropertyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.googleAdsLink = null; - object.updateMask = null; - } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateGoogleAdsLinkRequest to JSON. + * Converts this DeletePropertyRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest * @instance * @returns {Object.} JSON object */ - UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + DeletePropertyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateGoogleAdsLinkRequest; + return DeletePropertyRequest; })(); - v1alpha.DeleteGoogleAdsLinkRequest = (function() { + v1alpha.GetUserLinkRequest = (function() { /** - * Properties of a DeleteGoogleAdsLinkRequest. + * Properties of a GetUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteGoogleAdsLinkRequest - * @property {string|null} [name] DeleteGoogleAdsLinkRequest name + * @interface IGetUserLinkRequest + * @property {string|null} [name] GetUserLinkRequest name */ /** - * Constructs a new DeleteGoogleAdsLinkRequest. + * Constructs a new GetUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteGoogleAdsLinkRequest. - * @implements IDeleteGoogleAdsLinkRequest + * @classdesc Represents a GetUserLinkRequest. + * @implements IGetUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set */ - function DeleteGoogleAdsLinkRequest(properties) { + function GetUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9981,35 +11225,35 @@ } /** - * DeleteGoogleAdsLinkRequest name. + * GetUserLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @instance */ - DeleteGoogleAdsLinkRequest.prototype.name = ""; + GetUserLinkRequest.prototype.name = ""; /** - * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. + * Creates a new GetUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest instance */ - DeleteGoogleAdsLinkRequest.create = function create(properties) { - return new DeleteGoogleAdsLinkRequest(properties); + GetUserLinkRequest.create = function create(properties) { + return new GetUserLinkRequest(properties); }; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified GetUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encode = function encode(message, writer) { + GetUserLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -10018,33 +11262,33 @@ }; /** - * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. + * Encodes the specified GetUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetUserLinkRequest} message GetUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. + * Decodes a GetUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decode = function decode(reader, length) { + GetUserLinkRequest.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.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetUserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10060,30 +11304,30 @@ }; /** - * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { + GetUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteGoogleAdsLinkRequest message. + * Verifies a GetUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteGoogleAdsLinkRequest.verify = function verify(message) { + GetUserLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -10093,32 +11337,32 @@ }; /** - * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest + * @returns {google.analytics.admin.v1alpha.GetUserLinkRequest} GetUserLinkRequest */ - DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + GetUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetUserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetUserLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest + * @param {google.analytics.admin.v1alpha.GetUserLinkRequest} message GetUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { + GetUserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -10130,39 +11374,39 @@ }; /** - * Converts this DeleteGoogleAdsLinkRequest to JSON. + * Converts this GetUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest * @instance * @returns {Object.} JSON object */ - DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { + GetUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteGoogleAdsLinkRequest; + return GetUserLinkRequest; })(); - v1alpha.ListGoogleAdsLinksRequest = (function() { + v1alpha.BatchGetUserLinksRequest = (function() { /** - * Properties of a ListGoogleAdsLinksRequest. + * Properties of a BatchGetUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksRequest - * @property {string|null} [parent] ListGoogleAdsLinksRequest parent - * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize - * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken + * @interface IBatchGetUserLinksRequest + * @property {string|null} [parent] BatchGetUserLinksRequest parent + * @property {Array.|null} [names] BatchGetUserLinksRequest names */ /** - * Constructs a new ListGoogleAdsLinksRequest. + * Constructs a new BatchGetUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksRequest. - * @implements IListGoogleAdsLinksRequest + * @classdesc Represents a BatchGetUserLinksRequest. + * @implements IBatchGetUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set */ - function ListGoogleAdsLinksRequest(properties) { + function BatchGetUserLinksRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10170,90 +11414,81 @@ } /** - * ListGoogleAdsLinksRequest parent. + * BatchGetUserLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest - * @instance - */ - ListGoogleAdsLinksRequest.prototype.parent = ""; - - /** - * ListGoogleAdsLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @instance */ - ListGoogleAdsLinksRequest.prototype.pageSize = 0; + BatchGetUserLinksRequest.prototype.parent = ""; /** - * ListGoogleAdsLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * BatchGetUserLinksRequest names. + * @member {Array.} names + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @instance */ - ListGoogleAdsLinksRequest.prototype.pageToken = ""; + BatchGetUserLinksRequest.prototype.names = $util.emptyArray; /** - * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. + * Creates a new BatchGetUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest instance */ - ListGoogleAdsLinksRequest.create = function create(properties) { - return new ListGoogleAdsLinksRequest(properties); + BatchGetUserLinksRequest.create = function create(properties) { + return new BatchGetUserLinksRequest(properties); }; /** - * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified BatchGetUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encode = function encode(message, writer) { + BatchGetUserLinksRequest.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.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); return writer; }; /** - * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. + * Encodes the specified BatchGetUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksRequest} message BatchGetUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchGetUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decode = function decode(reader, length) { + BatchGetUserLinksRequest.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.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10261,10 +11496,9 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -10275,126 +11509,129 @@ }; /** - * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchGetUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { + BatchGetUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksRequest message. + * Verifies a BatchGetUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksRequest.verify = function verify(message) { + BatchGetUserLinksRequest.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.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } return null; }; /** - * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchGetUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} BatchGetUserLinksRequest */ - ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + BatchGetUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); 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.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } return message; }; /** - * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchGetUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksRequest} message BatchGetUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksRequest.toObject = function toObject(message, options) { + BatchGetUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.names = []; + 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; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } return object; }; /** - * Converts this ListGoogleAdsLinksRequest to JSON. + * Converts this BatchGetUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { + BatchGetUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksRequest; + return BatchGetUserLinksRequest; })(); - v1alpha.ListGoogleAdsLinksResponse = (function() { + v1alpha.BatchGetUserLinksResponse = (function() { /** - * Properties of a ListGoogleAdsLinksResponse. + * Properties of a BatchGetUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListGoogleAdsLinksResponse - * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks - * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken + * @interface IBatchGetUserLinksResponse + * @property {Array.|null} [userLinks] BatchGetUserLinksResponse userLinks */ /** - * Constructs a new ListGoogleAdsLinksResponse. + * Constructs a new BatchGetUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListGoogleAdsLinksResponse. - * @implements IListGoogleAdsLinksResponse + * @classdesc Represents a BatchGetUserLinksResponse. + * @implements IBatchGetUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set */ - function ListGoogleAdsLinksResponse(properties) { - this.googleAdsLinks = []; + function BatchGetUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10402,91 +11639,78 @@ } /** - * ListGoogleAdsLinksResponse googleAdsLinks. - * @member {Array.} googleAdsLinks - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse - * @instance - */ - ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; - - /** - * ListGoogleAdsLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * BatchGetUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @instance */ - ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; + BatchGetUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. + * Creates a new BatchGetUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse instance */ - ListGoogleAdsLinksResponse.create = function create(properties) { - return new ListGoogleAdsLinksResponse(properties); + BatchGetUserLinksResponse.create = function create(properties) { + return new BatchGetUserLinksResponse(properties); }; /** - * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified BatchGetUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encode = function encode(message, writer) { + BatchGetUserLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleAdsLinks != null && message.googleAdsLinks.length) - for (var i = 0; i < message.googleAdsLinks.length; ++i) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. + * Encodes the specified BatchGetUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchGetUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchGetUserLinksResponse} message BatchGetUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchGetUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decode = function decode(reader, length) { + BatchGetUserLinksResponse.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.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.googleAdsLinks && message.googleAdsLinks.length)) - message.googleAdsLinks = []; - message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -10497,133 +11721,126 @@ }; /** - * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchGetUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { + BatchGetUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGoogleAdsLinksResponse message. + * Verifies a BatchGetUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGoogleAdsLinksResponse.verify = function verify(message) { + BatchGetUserLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { - if (!Array.isArray(message.googleAdsLinks)) - return "googleAdsLinks: array expected"; - for (var i = 0; i < message.googleAdsLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); if (error) - return "googleAdsLinks." + error; + return "userLinks." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchGetUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse + * @returns {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} BatchGetUserLinksResponse */ - ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + BatchGetUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); - if (object.googleAdsLinks) { - if (!Array.isArray(object.googleAdsLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); - message.googleAdsLinks = []; - for (var i = 0; i < object.googleAdsLinks.length; ++i) { - if (typeof object.googleAdsLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); - message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); + var message = new $root.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchGetUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchGetUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse + * @param {google.analytics.admin.v1alpha.BatchGetUserLinksResponse} message BatchGetUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { + BatchGetUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.googleAdsLinks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.googleAdsLinks && message.googleAdsLinks.length) { - object.googleAdsLinks = []; - for (var j = 0; j < message.googleAdsLinks.length; ++j) - object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListGoogleAdsLinksResponse to JSON. + * Converts this BatchGetUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse * @instance * @returns {Object.} JSON object */ - ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { + BatchGetUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListGoogleAdsLinksResponse; + return BatchGetUserLinksResponse; })(); - v1alpha.GetDataSharingSettingsRequest = (function() { + v1alpha.ListUserLinksRequest = (function() { /** - * Properties of a GetDataSharingSettingsRequest. + * Properties of a ListUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataSharingSettingsRequest - * @property {string|null} [name] GetDataSharingSettingsRequest name + * @interface IListUserLinksRequest + * @property {string|null} [parent] ListUserLinksRequest parent + * @property {number|null} [pageSize] ListUserLinksRequest pageSize + * @property {string|null} [pageToken] ListUserLinksRequest pageToken */ /** - * Constructs a new GetDataSharingSettingsRequest. + * Constructs a new ListUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataSharingSettingsRequest. - * @implements IGetDataSharingSettingsRequest + * @classdesc Represents a ListUserLinksRequest. + * @implements IListUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set */ - function GetDataSharingSettingsRequest(properties) { + function ListUserLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10631,75 +11848,101 @@ } /** - * GetDataSharingSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * ListUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @instance */ - GetDataSharingSettingsRequest.prototype.name = ""; + ListUserLinksRequest.prototype.parent = ""; /** - * Creates a new GetDataSharingSettingsRequest instance using the specified properties. + * ListUserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @instance + */ + ListUserLinksRequest.prototype.pageSize = 0; + + /** + * ListUserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @instance + */ + ListUserLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest instance */ - GetDataSharingSettingsRequest.create = function create(properties) { - return new GetDataSharingSettingsRequest(properties); + ListUserLinksRequest.create = function create(properties) { + return new ListUserLinksRequest(properties); }; /** - * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified ListUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encode = function encode(message, writer) { + ListUserLinksRequest.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.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 GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. + * Encodes the specified ListUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksRequest} message ListUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. + * Decodes a ListUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decode = function decode(reader, length) { + ListUserLinksRequest.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.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -10710,108 +11953,126 @@ }; /** - * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataSharingSettingsRequest message. + * Verifies a ListUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataSharingSettingsRequest.verify = function verify(message) { + ListUserLinksRequest.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.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 GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksRequest} ListUserLinksRequest */ - GetDataSharingSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + ListUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListUserLinksRequest(); + 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 GetDataSharingSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest + * @param {google.analytics.admin.v1alpha.ListUserLinksRequest} message ListUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataSharingSettingsRequest.toObject = function toObject(message, options) { + ListUserLinksRequest.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 (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 GetDataSharingSettingsRequest to JSON. + * Converts this ListUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest * @instance * @returns {Object.} JSON object */ - GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { + ListUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDataSharingSettingsRequest; + return ListUserLinksRequest; })(); - v1alpha.ListAccountSummariesRequest = (function() { + v1alpha.ListUserLinksResponse = (function() { /** - * Properties of a ListAccountSummariesRequest. + * Properties of a ListUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesRequest - * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize - * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken + * @interface IListUserLinksResponse + * @property {Array.|null} [userLinks] ListUserLinksResponse userLinks + * @property {string|null} [nextPageToken] ListUserLinksResponse nextPageToken */ /** - * Constructs a new ListAccountSummariesRequest. + * Constructs a new ListUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesRequest. - * @implements IListAccountSummariesRequest + * @classdesc Represents a ListUserLinksResponse. + * @implements IListUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set */ - function ListAccountSummariesRequest(properties) { + function ListUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10819,88 +12080,91 @@ } /** - * ListAccountSummariesRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * ListUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @instance */ - ListAccountSummariesRequest.prototype.pageSize = 0; + ListUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * ListAccountSummariesRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * ListUserLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @instance */ - ListAccountSummariesRequest.prototype.pageToken = ""; + ListUserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListAccountSummariesRequest instance using the specified properties. + * Creates a new ListUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse instance */ - ListAccountSummariesRequest.create = function create(properties) { - return new ListAccountSummariesRequest(properties); + ListUserLinksResponse.create = function create(properties) { + return new ListUserLinksResponse(properties); }; /** - * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified ListUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encode = function encode(message, writer) { + ListUserLinksResponse.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.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[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 ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. + * Encodes the specified ListUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListUserLinksResponse} message ListUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. + * Decodes a ListUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decode = function decode(reader, length) { + ListUserLinksResponse.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.analytics.admin.v1alpha.ListAccountSummariesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pageSize = reader.int32(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); break; case 2: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -10911,118 +12175,135 @@ }; /** - * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { + ListUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesRequest message. + * Verifies a ListUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesRequest.verify = function verify(message) { + ListUserLinksResponse.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.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest + * @returns {google.analytics.admin.v1alpha.ListUserLinksResponse} ListUserLinksResponse */ - ListAccountSummariesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) + ListUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.analytics.admin.v1alpha.ListUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest + * @param {google.analytics.admin.v1alpha.ListUserLinksResponse} message ListUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesRequest.toObject = function toObject(message, options) { + ListUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.userLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListAccountSummariesRequest to JSON. + * Converts this ListUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse * @instance * @returns {Object.} JSON object */ - ListAccountSummariesRequest.prototype.toJSON = function toJSON() { + ListUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesRequest; + return ListUserLinksResponse; })(); - v1alpha.ListAccountSummariesResponse = (function() { + v1alpha.AuditUserLinksRequest = (function() { /** - * Properties of a ListAccountSummariesResponse. + * Properties of an AuditUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAccountSummariesResponse - * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries - * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken + * @interface IAuditUserLinksRequest + * @property {string|null} [parent] AuditUserLinksRequest parent + * @property {number|null} [pageSize] AuditUserLinksRequest pageSize + * @property {string|null} [pageToken] AuditUserLinksRequest pageToken */ /** - * Constructs a new ListAccountSummariesResponse. + * Constructs a new AuditUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAccountSummariesResponse. - * @implements IListAccountSummariesResponse + * @classdesc Represents an AuditUserLinksRequest. + * @implements IAuditUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set */ - function ListAccountSummariesResponse(properties) { - this.accountSummaries = []; + function AuditUserLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11030,91 +12311,101 @@ } /** - * ListAccountSummariesResponse accountSummaries. - * @member {Array.} accountSummaries - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * AuditUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @instance */ - ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; + AuditUserLinksRequest.prototype.parent = ""; /** - * ListAccountSummariesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * AuditUserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @instance */ - ListAccountSummariesResponse.prototype.nextPageToken = ""; + AuditUserLinksRequest.prototype.pageSize = 0; /** - * Creates a new ListAccountSummariesResponse instance using the specified properties. + * AuditUserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @instance + */ + AuditUserLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new AuditUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest instance */ - ListAccountSummariesResponse.create = function create(properties) { - return new ListAccountSummariesResponse(properties); + AuditUserLinksRequest.create = function create(properties) { + return new AuditUserLinksRequest(properties); }; /** - * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified AuditUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encode = function encode(message, writer) { + AuditUserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.accountSummaries != null && message.accountSummaries.length) - for (var i = 0; i < message.accountSummaries.length; ++i) - $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.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 ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. + * Encodes the specified AuditUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksRequest} message AuditUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { + AuditUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. + * Decodes an AuditUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decode = function decode(reader, length) { + AuditUserLinksRequest.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.analytics.admin.v1alpha.ListAccountSummariesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AuditUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.accountSummaries && message.accountSummaries.length)) - message.accountSummaries = []; - message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -11125,134 +12416,126 @@ }; /** - * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. + * Decodes an AuditUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { + AuditUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAccountSummariesResponse message. + * Verifies an AuditUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAccountSummariesResponse.verify = function verify(message) { + AuditUserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { - if (!Array.isArray(message.accountSummaries)) - return "accountSummaries: array expected"; - for (var i = 0; i < message.accountSummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); - if (error) - return "accountSummaries." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string 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 ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AuditUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse + * @returns {google.analytics.admin.v1alpha.AuditUserLinksRequest} AuditUserLinksRequest */ - ListAccountSummariesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) + AuditUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); - if (object.accountSummaries) { - if (!Array.isArray(object.accountSummaries)) - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); - message.accountSummaries = []; - for (var i = 0; i < object.accountSummaries.length; ++i) { - if (typeof object.accountSummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); - message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksRequest(); + 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 ListAccountSummariesResponse message. Also converts values to other types if specified. + * Creates a plain object from an AuditUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse + * @param {google.analytics.admin.v1alpha.AuditUserLinksRequest} message AuditUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAccountSummariesResponse.toObject = function toObject(message, options) { + AuditUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.accountSummaries = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.accountSummaries && message.accountSummaries.length) { - object.accountSummaries = []; - for (var j = 0; j < message.accountSummaries.length; ++j) - object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListAccountSummariesResponse to JSON. + * Converts this AuditUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest * @instance * @returns {Object.} JSON object */ - ListAccountSummariesResponse.prototype.toJSON = function toJSON() { + AuditUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAccountSummariesResponse; + return AuditUserLinksRequest; })(); - v1alpha.AcknowledgeUserDataCollectionRequest = (function() { + v1alpha.AuditUserLinksResponse = (function() { /** - * Properties of an AcknowledgeUserDataCollectionRequest. + * Properties of an AuditUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAcknowledgeUserDataCollectionRequest - * @property {string|null} [property] AcknowledgeUserDataCollectionRequest property - * @property {string|null} [acknowledgement] AcknowledgeUserDataCollectionRequest acknowledgement + * @interface IAuditUserLinksResponse + * @property {Array.|null} [userLinks] AuditUserLinksResponse userLinks + * @property {string|null} [nextPageToken] AuditUserLinksResponse nextPageToken */ /** - * Constructs a new AcknowledgeUserDataCollectionRequest. + * Constructs a new AuditUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AcknowledgeUserDataCollectionRequest. - * @implements IAcknowledgeUserDataCollectionRequest + * @classdesc Represents an AuditUserLinksResponse. + * @implements IAuditUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set */ - function AcknowledgeUserDataCollectionRequest(properties) { + function AuditUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11260,88 +12543,91 @@ } /** - * AcknowledgeUserDataCollectionRequest property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * AuditUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @instance */ - AcknowledgeUserDataCollectionRequest.prototype.property = ""; + AuditUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * AcknowledgeUserDataCollectionRequest acknowledgement. - * @member {string} acknowledgement - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * AuditUserLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @instance */ - AcknowledgeUserDataCollectionRequest.prototype.acknowledgement = ""; + AuditUserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. + * Creates a new AuditUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest instance + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse instance */ - AcknowledgeUserDataCollectionRequest.create = function create(properties) { - return new AcknowledgeUserDataCollectionRequest(properties); + AuditUserLinksResponse.create = function create(properties) { + return new AuditUserLinksResponse(properties); }; /** - * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * Encodes the specified AuditUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionRequest.encode = function encode(message, writer) { + AuditUserLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.acknowledgement); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.AuditUserLink.encode(message.userLinks[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 AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. + * Encodes the specified AuditUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAuditUserLinksResponse} message AuditUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + AuditUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. + * Decodes an AuditUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionRequest.decode = function decode(reader, length) { + AuditUserLinksResponse.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.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AuditUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.property = reader.string(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.AuditUserLink.decode(reader, reader.uint32())); break; case 2: - message.acknowledgement = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -11352,115 +12638,135 @@ }; /** - * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. + * Decodes an AuditUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionRequest.decodeDelimited = function decodeDelimited(reader) { + AuditUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcknowledgeUserDataCollectionRequest message. + * Verifies an AuditUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcknowledgeUserDataCollectionRequest.verify = function verify(message) { + AuditUserLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!$util.isString(message.acknowledgement)) - return "acknowledgement: string expected"; + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AuditUserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AuditUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest + * @returns {google.analytics.admin.v1alpha.AuditUserLinksResponse} AuditUserLinksResponse */ - AcknowledgeUserDataCollectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + AuditUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); - if (object.property != null) - message.property = String(object.property); - if (object.acknowledgement != null) - message.acknowledgement = String(object.acknowledgement); + var message = new $root.google.analytics.admin.v1alpha.AuditUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.AuditUserLink.fromObject(object.userLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. + * Creates a plain object from an AuditUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest + * @param {google.analytics.admin.v1alpha.AuditUserLinksResponse} message AuditUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcknowledgeUserDataCollectionRequest.toObject = function toObject(message, options) { + AuditUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.property = ""; - object.acknowledgement = ""; + if (options.arrays || options.defaults) + object.userLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.AuditUserLink.toObject(message.userLinks[j], options); } - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = message.acknowledgement; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this AcknowledgeUserDataCollectionRequest to JSON. + * Converts this AuditUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse * @instance * @returns {Object.} JSON object */ - AcknowledgeUserDataCollectionRequest.prototype.toJSON = function toJSON() { + AuditUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AcknowledgeUserDataCollectionRequest; + return AuditUserLinksResponse; })(); - v1alpha.AcknowledgeUserDataCollectionResponse = (function() { + v1alpha.CreateUserLinkRequest = (function() { /** - * Properties of an AcknowledgeUserDataCollectionResponse. + * Properties of a CreateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAcknowledgeUserDataCollectionResponse + * @interface ICreateUserLinkRequest + * @property {string|null} [parent] CreateUserLinkRequest parent + * @property {boolean|null} [notifyNewUser] CreateUserLinkRequest notifyNewUser + * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] CreateUserLinkRequest userLink */ /** - * Constructs a new AcknowledgeUserDataCollectionResponse. + * Constructs a new CreateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AcknowledgeUserDataCollectionResponse. - * @implements IAcknowledgeUserDataCollectionResponse + * @classdesc Represents a CreateUserLinkRequest. + * @implements ICreateUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set */ - function AcknowledgeUserDataCollectionResponse(properties) { + function CreateUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11468,63 +12774,102 @@ } /** - * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. + * CreateUserLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.parent = ""; + + /** + * CreateUserLinkRequest notifyNewUser. + * @member {boolean} notifyNewUser + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.notifyNewUser = false; + + /** + * CreateUserLinkRequest userLink. + * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @instance + */ + CreateUserLinkRequest.prototype.userLink = null; + + /** + * Creates a new CreateUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse instance + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest instance */ - AcknowledgeUserDataCollectionResponse.create = function create(properties) { - return new AcknowledgeUserDataCollectionResponse(properties); + CreateUserLinkRequest.create = function create(properties) { + return new CreateUserLinkRequest(properties); }; /** - * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * Encodes the specified CreateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionResponse.encode = function encode(message, writer) { + CreateUserLinkRequest.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.notifyNewUser != null && Object.hasOwnProperty.call(message, "notifyNewUser")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUser); + if (message.userLink != null && Object.hasOwnProperty.call(message, "userLink")) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. + * Encodes the specified CreateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateUserLinkRequest} message CreateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcknowledgeUserDataCollectionResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. + * Decodes a CreateUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionResponse.decode = function decode(reader, length) { + CreateUserLinkRequest.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.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateUserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.notifyNewUser = reader.bool(); + break; + case 3: + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -11534,105 +12879,132 @@ }; /** - * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcknowledgeUserDataCollectionResponse.decodeDelimited = function decodeDelimited(reader) { + CreateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcknowledgeUserDataCollectionResponse message. + * Verifies a CreateUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcknowledgeUserDataCollectionResponse.verify = function verify(message) { + CreateUserLinkRequest.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.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) + if (typeof message.notifyNewUser !== "boolean") + return "notifyNewUser: boolean expected"; + if (message.userLink != null && message.hasOwnProperty("userLink")) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); + if (error) + return "userLink." + error; + } return null; }; /** - * Creates an AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse + * @returns {google.analytics.admin.v1alpha.CreateUserLinkRequest} CreateUserLinkRequest */ - AcknowledgeUserDataCollectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + CreateUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateUserLinkRequest) return object; - return new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); + var message = new $root.google.analytics.admin.v1alpha.CreateUserLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.notifyNewUser != null) + message.notifyNewUser = Boolean(object.notifyNewUser); + if (object.userLink != null) { + if (typeof object.userLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateUserLinkRequest.userLink: object expected"); + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); + } + return message; }; /** - * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse + * @param {google.analytics.admin.v1alpha.CreateUserLinkRequest} message CreateUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcknowledgeUserDataCollectionResponse.toObject = function toObject() { - return {}; + CreateUserLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.notifyNewUser = false; + object.userLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.notifyNewUser != null && message.hasOwnProperty("notifyNewUser")) + object.notifyNewUser = message.notifyNewUser; + if (message.userLink != null && message.hasOwnProperty("userLink")) + object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); + return object; }; /** - * Converts this AcknowledgeUserDataCollectionResponse to JSON. + * Converts this CreateUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest * @instance * @returns {Object.} JSON object */ - AcknowledgeUserDataCollectionResponse.prototype.toJSON = function toJSON() { + CreateUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AcknowledgeUserDataCollectionResponse; + return CreateUserLinkRequest; })(); - v1alpha.SearchChangeHistoryEventsRequest = (function() { + v1alpha.BatchCreateUserLinksRequest = (function() { /** - * Properties of a SearchChangeHistoryEventsRequest. + * Properties of a BatchCreateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface ISearchChangeHistoryEventsRequest - * @property {string|null} [account] SearchChangeHistoryEventsRequest account - * @property {string|null} [property] SearchChangeHistoryEventsRequest property - * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType - * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action - * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail - * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime - * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime - * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize - * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken + * @interface IBatchCreateUserLinksRequest + * @property {string|null} [parent] BatchCreateUserLinksRequest parent + * @property {boolean|null} [notifyNewUsers] BatchCreateUserLinksRequest notifyNewUsers + * @property {Array.|null} [requests] BatchCreateUserLinksRequest requests */ /** - * Constructs a new SearchChangeHistoryEventsRequest. + * Constructs a new BatchCreateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a SearchChangeHistoryEventsRequest. - * @implements ISearchChangeHistoryEventsRequest + * @classdesc Represents a BatchCreateUserLinksRequest. + * @implements IBatchCreateUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set */ - function SearchChangeHistoryEventsRequest(properties) { - this.resourceType = []; - this.action = []; - this.actorEmail = []; + function BatchCreateUserLinksRequest(properties) { + this.requests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11640,204 +13012,104 @@ } /** - * SearchChangeHistoryEventsRequest account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * BatchCreateUserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @instance */ - SearchChangeHistoryEventsRequest.prototype.account = ""; - - /** - * SearchChangeHistoryEventsRequest property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.property = ""; - - /** - * SearchChangeHistoryEventsRequest resourceType. - * @member {Array.} resourceType - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest action. - * @member {Array.} action - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest actorEmail. - * @member {Array.} actorEmail - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; - - /** - * SearchChangeHistoryEventsRequest earliestChangeTime. - * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; - - /** - * SearchChangeHistoryEventsRequest latestChangeTime. - * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - * @instance - */ - SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; + BatchCreateUserLinksRequest.prototype.parent = ""; /** - * SearchChangeHistoryEventsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * BatchCreateUserLinksRequest notifyNewUsers. + * @member {boolean} notifyNewUsers + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @instance */ - SearchChangeHistoryEventsRequest.prototype.pageSize = 0; + BatchCreateUserLinksRequest.prototype.notifyNewUsers = false; /** - * SearchChangeHistoryEventsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * BatchCreateUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @instance */ - SearchChangeHistoryEventsRequest.prototype.pageToken = ""; + BatchCreateUserLinksRequest.prototype.requests = $util.emptyArray; /** - * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. + * Creates a new BatchCreateUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest instance */ - SearchChangeHistoryEventsRequest.create = function create(properties) { - return new SearchChangeHistoryEventsRequest(properties); + BatchCreateUserLinksRequest.create = function create(properties) { + return new BatchCreateUserLinksRequest(properties); }; /** - * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * Encodes the specified BatchCreateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsRequest.encode = function encode(message, writer) { + BatchCreateUserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); - if (message.resourceType != null && message.resourceType.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (var i = 0; i < message.resourceType.length; ++i) - writer.int32(message.resourceType[i]); - writer.ldelim(); - } - if (message.action != null && message.action.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (var i = 0; i < message.action.length; ++i) - writer.int32(message.action[i]); - writer.ldelim(); - } - if (message.actorEmail != null && message.actorEmail.length) - for (var i = 0; i < message.actorEmail.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); - if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) - $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) - $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.notifyNewUsers != null && Object.hasOwnProperty.call(message, "notifyNewUsers")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.notifyNewUsers); + if (message.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. + * Encodes the specified BatchCreateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksRequest} message BatchCreateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsRequest.decode = function decode(reader, length) { + BatchCreateUserLinksRequest.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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.account = reader.string(); + message.parent = reader.string(); break; case 2: - message.property = reader.string(); + message.notifyNewUsers = reader.bool(); break; case 3: - if (!(message.resourceType && message.resourceType.length)) - message.resourceType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.resourceType.push(reader.int32()); - } else - message.resourceType.push(reader.int32()); - break; - case 4: - if (!(message.action && message.action.length)) - message.action = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.action.push(reader.int32()); - } else - message.action.push(reader.int32()); - break; - case 5: - if (!(message.actorEmail && message.actorEmail.length)) - message.actorEmail = []; - message.actorEmail.push(reader.string()); - break; - case 6: - message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.pageSize = reader.int32(); - break; - case 9: - message.pageToken = reader.string(); + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.CreateUserLinkRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -11848,322 +13120,143 @@ }; /** - * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { + BatchCreateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchChangeHistoryEventsRequest message. + * Verifies a BatchCreateUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchChangeHistoryEventsRequest.verify = function verify(message) { + BatchCreateUserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.account != null && message.hasOwnProperty("account")) - if (!$util.isString(message.account)) - return "account: string expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) { - if (!Array.isArray(message.resourceType)) - return "resourceType: array expected"; - for (var i = 0; i < message.resourceType.length; ++i) - switch (message.resourceType[i]) { - default: - return "resourceType: enum value[] expected"; - case 0: - case 1: - case 2: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 18: - break; - } - } - if (message.action != null && message.hasOwnProperty("action")) { - if (!Array.isArray(message.action)) - return "action: array expected"; - for (var i = 0; i < message.action.length; ++i) - switch (message.action[i]) { - default: - return "action: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { - if (!Array.isArray(message.actorEmail)) - return "actorEmail: array expected"; - for (var i = 0; i < message.actorEmail.length; ++i) - if (!$util.isString(message.actorEmail[i])) - return "actorEmail: string[] expected"; - } - if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); - if (error) - return "earliestChangeTime." + error; - } - if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); - if (error) - return "latestChangeTime." + error; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) + if (typeof message.notifyNewUsers !== "boolean") + return "notifyNewUsers: boolean expected"; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } } - 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 SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} BatchCreateUserLinksRequest */ - SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + BatchCreateUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); - if (object.account != null) - message.account = String(object.account); - if (object.property != null) - message.property = String(object.property); - if (object.resourceType) { - if (!Array.isArray(object.resourceType)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.resourceType: array expected"); - message.resourceType = []; - for (var i = 0; i < object.resourceType.length; ++i) - switch (object.resourceType[i]) { - default: - case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": - case 0: - message.resourceType[i] = 0; - break; - case "ACCOUNT": - case 1: - message.resourceType[i] = 1; - break; - case "PROPERTY": - case 2: - message.resourceType[i] = 2; - break; - case "FIREBASE_LINK": - case 6: - message.resourceType[i] = 6; - break; - case "GOOGLE_ADS_LINK": - case 7: - message.resourceType[i] = 7; - break; - case "GOOGLE_SIGNALS_SETTINGS": - case 8: - message.resourceType[i] = 8; - break; - case "CONVERSION_EVENT": - case 9: - message.resourceType[i] = 9; - break; - case "MEASUREMENT_PROTOCOL_SECRET": - case 10: - message.resourceType[i] = 10; - break; - case "CUSTOM_DIMENSION": - case 11: - message.resourceType[i] = 11; - break; - case "CUSTOM_METRIC": - case 12: - message.resourceType[i] = 12; - break; - case "DATA_RETENTION_SETTINGS": - case 13: - message.resourceType[i] = 13; - break; - case "DISPLAY_VIDEO_360_ADVERTISER_LINK": - case 14: - message.resourceType[i] = 14; - break; - case "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": - case 15: - message.resourceType[i] = 15; - break; - case "DATA_STREAM": - case 18: - message.resourceType[i] = 18; - break; - } - } - if (object.action) { - if (!Array.isArray(object.action)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.action: array expected"); - message.action = []; - for (var i = 0; i < object.action.length; ++i) - switch (object.action[i]) { - default: - case "ACTION_TYPE_UNSPECIFIED": - case 0: - message.action[i] = 0; - break; - case "CREATED": - case 1: - message.action[i] = 1; - break; - case "UPDATED": - case 2: - message.action[i] = 2; - break; - case "DELETED": - case 3: - message.action[i] = 3; - break; - } - } - if (object.actorEmail) { - if (!Array.isArray(object.actorEmail)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.actorEmail: array expected"); - message.actorEmail = []; - for (var i = 0; i < object.actorEmail.length; ++i) - message.actorEmail[i] = String(object.actorEmail[i]); - } - if (object.earliestChangeTime != null) { - if (typeof object.earliestChangeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); - message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); - } - if (object.latestChangeTime != null) { - if (typeof object.latestChangeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); - message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); + var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.notifyNewUsers != null) + message.notifyNewUsers = Boolean(object.notifyNewUsers); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.fromObject(object.requests[i]); + } } - 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 SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchCreateUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} message BatchCreateUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { + BatchCreateUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.resourceType = []; - object.action = []; - object.actorEmail = []; - } + if (options.arrays || options.defaults) + object.requests = []; if (options.defaults) { - object.account = ""; - object.property = ""; - object.earliestChangeTime = null; - object.latestChangeTime = null; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; - if (message.resourceType && message.resourceType.length) { - object.resourceType = []; - for (var j = 0; j < message.resourceType.length; ++j) - object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; - } - if (message.action && message.action.length) { - object.action = []; - for (var j = 0; j < message.action.length; ++j) - object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; + object.parent = ""; + object.notifyNewUsers = false; } - if (message.actorEmail && message.actorEmail.length) { - object.actorEmail = []; - for (var j = 0; j < message.actorEmail.length; ++j) - object.actorEmail[j] = message.actorEmail[j]; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.notifyNewUsers != null && message.hasOwnProperty("notifyNewUsers")) + object.notifyNewUsers = message.notifyNewUsers; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.analytics.admin.v1alpha.CreateUserLinkRequest.toObject(message.requests[j], options); } - if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) - object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); - if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) - object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); - 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 SearchChangeHistoryEventsRequest to JSON. + * Converts this BatchCreateUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest * @instance * @returns {Object.} JSON object */ - SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { + BatchCreateUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchChangeHistoryEventsRequest; + return BatchCreateUserLinksRequest; })(); - v1alpha.SearchChangeHistoryEventsResponse = (function() { + v1alpha.BatchCreateUserLinksResponse = (function() { /** - * Properties of a SearchChangeHistoryEventsResponse. + * Properties of a BatchCreateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface ISearchChangeHistoryEventsResponse - * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents - * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken + * @interface IBatchCreateUserLinksResponse + * @property {Array.|null} [userLinks] BatchCreateUserLinksResponse userLinks */ /** - * Constructs a new SearchChangeHistoryEventsResponse. + * Constructs a new BatchCreateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a SearchChangeHistoryEventsResponse. - * @implements ISearchChangeHistoryEventsResponse + * @classdesc Represents a BatchCreateUserLinksResponse. + * @implements IBatchCreateUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set */ - function SearchChangeHistoryEventsResponse(properties) { - this.changeHistoryEvents = []; + function BatchCreateUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12171,91 +13264,78 @@ } /** - * SearchChangeHistoryEventsResponse changeHistoryEvents. - * @member {Array.} changeHistoryEvents - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * BatchCreateUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @instance */ - SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; + BatchCreateUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * SearchChangeHistoryEventsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse - * @instance - */ - SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. + * Creates a new BatchCreateUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse instance */ - SearchChangeHistoryEventsResponse.create = function create(properties) { - return new SearchChangeHistoryEventsResponse(properties); + BatchCreateUserLinksResponse.create = function create(properties) { + return new BatchCreateUserLinksResponse(properties); }; /** - * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * Encodes the specified BatchCreateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsResponse.encode = function encode(message, writer) { + BatchCreateUserLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) - for (var i = 0; i < message.changeHistoryEvents.length; ++i) - $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.encode(message.changeHistoryEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. + * Encodes the specified BatchCreateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchCreateUserLinksResponse} message BatchCreateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsResponse.decode = function decode(reader, length) { + BatchCreateUserLinksResponse.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.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) - message.changeHistoryEvents = []; - message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -12266,133 +13346,124 @@ }; /** - * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { + BatchCreateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchChangeHistoryEventsResponse message. + * Verifies a BatchCreateUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchChangeHistoryEventsResponse.verify = function verify(message) { + BatchCreateUserLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { - if (!Array.isArray(message.changeHistoryEvents)) - return "changeHistoryEvents: array expected"; - for (var i = 0; i < message.changeHistoryEvents.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); + if (message.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); if (error) - return "changeHistoryEvents." + error; + return "userLinks." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse + * @returns {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} BatchCreateUserLinksResponse */ - SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + BatchCreateUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); - if (object.changeHistoryEvents) { - if (!Array.isArray(object.changeHistoryEvents)) - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); - message.changeHistoryEvents = []; - for (var i = 0; i < object.changeHistoryEvents.length; ++i) { - if (typeof object.changeHistoryEvents[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); - message.changeHistoryEvents[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); + var message = new $root.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchCreateUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse + * @param {google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} message BatchCreateUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { + BatchCreateUserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.changeHistoryEvents = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.changeHistoryEvents && message.changeHistoryEvents.length) { - object.changeHistoryEvents = []; - for (var j = 0; j < message.changeHistoryEvents.length; ++j) - object.changeHistoryEvents[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this SearchChangeHistoryEventsResponse to JSON. + * Converts this BatchCreateUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse * @instance * @returns {Object.} JSON object */ - SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { + BatchCreateUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchChangeHistoryEventsResponse; + return BatchCreateUserLinksResponse; })(); - v1alpha.GetMeasurementProtocolSecretRequest = (function() { + v1alpha.UpdateUserLinkRequest = (function() { /** - * Properties of a GetMeasurementProtocolSecretRequest. + * Properties of an UpdateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetMeasurementProtocolSecretRequest - * @property {string|null} [name] GetMeasurementProtocolSecretRequest name + * @interface IUpdateUserLinkRequest + * @property {google.analytics.admin.v1alpha.IUserLink|null} [userLink] UpdateUserLinkRequest userLink */ /** - * Constructs a new GetMeasurementProtocolSecretRequest. + * Constructs a new UpdateUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetMeasurementProtocolSecretRequest. - * @implements IGetMeasurementProtocolSecretRequest + * @classdesc Represents an UpdateUserLinkRequest. + * @implements IUpdateUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set */ - function GetMeasurementProtocolSecretRequest(properties) { + function UpdateUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12400,75 +13471,75 @@ } /** - * GetMeasurementProtocolSecretRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * UpdateUserLinkRequest userLink. + * @member {google.analytics.admin.v1alpha.IUserLink|null|undefined} userLink + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @instance */ - GetMeasurementProtocolSecretRequest.prototype.name = ""; + UpdateUserLinkRequest.prototype.userLink = null; /** - * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new UpdateUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest instance */ - GetMeasurementProtocolSecretRequest.create = function create(properties) { - return new GetMeasurementProtocolSecretRequest(properties); + UpdateUserLinkRequest.create = function create(properties) { + return new UpdateUserLinkRequest(properties); }; /** - * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified UpdateUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + UpdateUserLinkRequest.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.userLink != null && Object.hasOwnProperty.call(message, "userLink")) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified UpdateUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateUserLinkRequest} message UpdateUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + UpdateUserLinkRequest.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.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12479,108 +13550,114 @@ }; /** - * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMeasurementProtocolSecretRequest message. + * Verifies an UpdateUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMeasurementProtocolSecretRequest.verify = function verify(message) { + UpdateUserLinkRequest.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.userLink != null && message.hasOwnProperty("userLink")) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLink); + if (error) + return "userLink." + error; + } return null; }; /** - * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.UpdateUserLinkRequest} UpdateUserLinkRequest */ - GetMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + UpdateUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); + if (object.userLink != null) { + if (typeof object.userLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateUserLinkRequest.userLink: object expected"); + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLink); + } return message; }; /** - * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.UpdateUserLinkRequest} message UpdateUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + UpdateUserLinkRequest.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; + object.userLink = null; + if (message.userLink != null && message.hasOwnProperty("userLink")) + object.userLink = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLink, options); return object; }; /** - * Converts this GetMeasurementProtocolSecretRequest to JSON. + * Converts this UpdateUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest * @instance * @returns {Object.} JSON object */ - GetMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + UpdateUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetMeasurementProtocolSecretRequest; + return UpdateUserLinkRequest; })(); - v1alpha.CreateMeasurementProtocolSecretRequest = (function() { + v1alpha.BatchUpdateUserLinksRequest = (function() { /** - * Properties of a CreateMeasurementProtocolSecretRequest. + * Properties of a BatchUpdateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateMeasurementProtocolSecretRequest - * @property {string|null} [parent] CreateMeasurementProtocolSecretRequest parent - * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] CreateMeasurementProtocolSecretRequest measurementProtocolSecret + * @interface IBatchUpdateUserLinksRequest + * @property {string|null} [parent] BatchUpdateUserLinksRequest parent + * @property {Array.|null} [requests] BatchUpdateUserLinksRequest requests */ /** - * Constructs a new CreateMeasurementProtocolSecretRequest. + * Constructs a new BatchUpdateUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateMeasurementProtocolSecretRequest. - * @implements ICreateMeasurementProtocolSecretRequest + * @classdesc Represents a BatchUpdateUserLinksRequest. + * @implements IBatchUpdateUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set */ - function CreateMeasurementProtocolSecretRequest(properties) { + function BatchUpdateUserLinksRequest(properties) { + this.requests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12588,80 +13665,81 @@ } /** - * CreateMeasurementProtocolSecretRequest parent. + * BatchUpdateUserLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @instance */ - CreateMeasurementProtocolSecretRequest.prototype.parent = ""; + BatchUpdateUserLinksRequest.prototype.parent = ""; /** - * CreateMeasurementProtocolSecretRequest measurementProtocolSecret. - * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * BatchUpdateUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @instance */ - CreateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; + BatchUpdateUserLinksRequest.prototype.requests = $util.emptyArray; /** - * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new BatchUpdateUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest instance */ - CreateMeasurementProtocolSecretRequest.create = function create(properties) { - return new CreateMeasurementProtocolSecretRequest(properties); + BatchUpdateUserLinksRequest.create = function create(properties) { + return new BatchUpdateUserLinksRequest(properties); }; /** - * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + BatchUpdateUserLinksRequest.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.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchUpdateUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + BatchUpdateUserLinksRequest.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.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12669,7 +13747,9 @@ message.parent = reader.string(); break; case 2: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -12680,121 +13760,134 @@ }; /** - * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchUpdateUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + BatchUpdateUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMeasurementProtocolSecretRequest message. + * Verifies a BatchUpdateUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMeasurementProtocolSecretRequest.verify = function verify(message) { + BatchUpdateUserLinksRequest.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.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); - if (error) - return "measurementProtocolSecret." + error; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } } return null; }; /** - * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchUpdateUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} BatchUpdateUserLinksRequest */ - CreateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + BatchUpdateUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.measurementProtocolSecret != null) { - if (typeof object.measurementProtocolSecret !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.fromObject(object.requests[i]); + } } return message; }; /** - * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchUpdateUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} message BatchUpdateUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + BatchUpdateUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.requests = []; + if (options.defaults) object.parent = ""; - object.measurementProtocolSecret = null; - } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) - object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.toObject(message.requests[j], options); + } return object; }; /** - * Converts this CreateMeasurementProtocolSecretRequest to JSON. + * Converts this BatchUpdateUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest * @instance * @returns {Object.} JSON object */ - CreateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + BatchUpdateUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateMeasurementProtocolSecretRequest; + return BatchUpdateUserLinksRequest; })(); - v1alpha.DeleteMeasurementProtocolSecretRequest = (function() { + v1alpha.BatchUpdateUserLinksResponse = (function() { /** - * Properties of a DeleteMeasurementProtocolSecretRequest. + * Properties of a BatchUpdateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteMeasurementProtocolSecretRequest - * @property {string|null} [name] DeleteMeasurementProtocolSecretRequest name + * @interface IBatchUpdateUserLinksResponse + * @property {Array.|null} [userLinks] BatchUpdateUserLinksResponse userLinks */ /** - * Constructs a new DeleteMeasurementProtocolSecretRequest. + * Constructs a new BatchUpdateUserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteMeasurementProtocolSecretRequest. - * @implements IDeleteMeasurementProtocolSecretRequest + * @classdesc Represents a BatchUpdateUserLinksResponse. + * @implements IBatchUpdateUserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set */ - function DeleteMeasurementProtocolSecretRequest(properties) { + function BatchUpdateUserLinksResponse(properties) { + this.userLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12802,75 +13895,78 @@ } /** - * DeleteMeasurementProtocolSecretRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * BatchUpdateUserLinksResponse userLinks. + * @member {Array.} userLinks + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @instance */ - DeleteMeasurementProtocolSecretRequest.prototype.name = ""; + BatchUpdateUserLinksResponse.prototype.userLinks = $util.emptyArray; /** - * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new BatchUpdateUserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse instance */ - DeleteMeasurementProtocolSecretRequest.create = function create(properties) { - return new DeleteMeasurementProtocolSecretRequest(properties); + BatchUpdateUserLinksResponse.create = function create(properties) { + return new BatchUpdateUserLinksResponse(properties); }; /** - * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + BatchUpdateUserLinksResponse.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.userLinks != null && message.userLinks.length) + for (var i = 0; i < message.userLinks.length; ++i) + $root.google.analytics.admin.v1alpha.UserLink.encode(message.userLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified BatchUpdateUserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchUpdateUserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + BatchUpdateUserLinksResponse.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.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -12881,108 +13977,124 @@ }; /** - * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchUpdateUserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + BatchUpdateUserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteMeasurementProtocolSecretRequest message. + * Verifies a BatchUpdateUserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteMeasurementProtocolSecretRequest.verify = function verify(message) { + BatchUpdateUserLinksResponse.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.userLinks != null && message.hasOwnProperty("userLinks")) { + if (!Array.isArray(message.userLinks)) + return "userLinks: array expected"; + for (var i = 0; i < message.userLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.UserLink.verify(message.userLinks[i]); + if (error) + return "userLinks." + error; + } + } return null; }; /** - * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchUpdateUserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} BatchUpdateUserLinksResponse */ - DeleteMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + BatchUpdateUserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); + if (object.userLinks) { + if (!Array.isArray(object.userLinks)) + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: array expected"); + message.userLinks = []; + for (var i = 0; i < object.userLinks.length; ++i) { + if (typeof object.userLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.userLinks: object expected"); + message.userLinks[i] = $root.google.analytics.admin.v1alpha.UserLink.fromObject(object.userLinks[i]); + } + } return message; }; /** - * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchUpdateUserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} message BatchUpdateUserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + BatchUpdateUserLinksResponse.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 (options.arrays || options.defaults) + object.userLinks = []; + if (message.userLinks && message.userLinks.length) { + object.userLinks = []; + for (var j = 0; j < message.userLinks.length; ++j) + object.userLinks[j] = $root.google.analytics.admin.v1alpha.UserLink.toObject(message.userLinks[j], options); + } return object; }; /** - * Converts this DeleteMeasurementProtocolSecretRequest to JSON. + * Converts this BatchUpdateUserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse * @instance * @returns {Object.} JSON object */ - DeleteMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + BatchUpdateUserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteMeasurementProtocolSecretRequest; + return BatchUpdateUserLinksResponse; })(); - v1alpha.UpdateMeasurementProtocolSecretRequest = (function() { + v1alpha.DeleteUserLinkRequest = (function() { /** - * Properties of an UpdateMeasurementProtocolSecretRequest. + * Properties of a DeleteUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateMeasurementProtocolSecretRequest - * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] UpdateMeasurementProtocolSecretRequest measurementProtocolSecret - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMeasurementProtocolSecretRequest updateMask + * @interface IDeleteUserLinkRequest + * @property {string|null} [name] DeleteUserLinkRequest name */ /** - * Constructs a new UpdateMeasurementProtocolSecretRequest. + * Constructs a new DeleteUserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateMeasurementProtocolSecretRequest. - * @implements IUpdateMeasurementProtocolSecretRequest + * @classdesc Represents a DeleteUserLinkRequest. + * @implements IDeleteUserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set */ - function UpdateMeasurementProtocolSecretRequest(properties) { + function DeleteUserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12990,88 +14102,75 @@ } /** - * UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. - * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest - * @instance - */ - UpdateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; - - /** - * UpdateMeasurementProtocolSecretRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * DeleteUserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @instance */ - UpdateMeasurementProtocolSecretRequest.prototype.updateMask = null; + DeleteUserLinkRequest.prototype.name = ""; /** - * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. + * Creates a new DeleteUserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest instance */ - UpdateMeasurementProtocolSecretRequest.create = function create(properties) { - return new UpdateMeasurementProtocolSecretRequest(properties); + DeleteUserLinkRequest.create = function create(properties) { + return new DeleteUserLinkRequest(properties); }; /** - * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified DeleteUserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMeasurementProtocolSecretRequest.encode = function encode(message, writer) { + DeleteUserLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. + * Encodes the specified DeleteUserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteUserLinkRequest} message DeleteUserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteUserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateMeasurementProtocolSecretRequest.decode = function decode(reader, length) { + DeleteUserLinkRequest.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.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -13082,128 +14181,109 @@ }; /** - * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteUserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteUserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateMeasurementProtocolSecretRequest message. + * Verifies a DeleteUserLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateMeasurementProtocolSecretRequest.verify = function verify(message) { + DeleteUserLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); - if (error) - return "measurementProtocolSecret." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteUserLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest + * @returns {google.analytics.admin.v1alpha.DeleteUserLinkRequest} DeleteUserLinkRequest */ - UpdateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + DeleteUserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); - if (object.measurementProtocolSecret != null) { - if (typeof object.measurementProtocolSecret !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteUserLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest + * @param {google.analytics.admin.v1alpha.DeleteUserLinkRequest} message DeleteUserLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { + DeleteUserLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.measurementProtocolSecret = null; - object.updateMask = null; - } - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) - object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateMeasurementProtocolSecretRequest to JSON. + * Converts this DeleteUserLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest * @instance * @returns {Object.} JSON object */ - UpdateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { + DeleteUserLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateMeasurementProtocolSecretRequest; + return DeleteUserLinkRequest; })(); - v1alpha.ListMeasurementProtocolSecretsRequest = (function() { + v1alpha.BatchDeleteUserLinksRequest = (function() { /** - * Properties of a ListMeasurementProtocolSecretsRequest. + * Properties of a BatchDeleteUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListMeasurementProtocolSecretsRequest - * @property {string|null} [parent] ListMeasurementProtocolSecretsRequest parent - * @property {number|null} [pageSize] ListMeasurementProtocolSecretsRequest pageSize - * @property {string|null} [pageToken] ListMeasurementProtocolSecretsRequest pageToken + * @interface IBatchDeleteUserLinksRequest + * @property {string|null} [parent] BatchDeleteUserLinksRequest parent + * @property {Array.|null} [requests] BatchDeleteUserLinksRequest requests */ /** - * Constructs a new ListMeasurementProtocolSecretsRequest. + * Constructs a new BatchDeleteUserLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListMeasurementProtocolSecretsRequest. - * @implements IListMeasurementProtocolSecretsRequest + * @classdesc Represents a BatchDeleteUserLinksRequest. + * @implements IBatchDeleteUserLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set */ - function ListMeasurementProtocolSecretsRequest(properties) { + function BatchDeleteUserLinksRequest(properties) { + this.requests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13211,90 +14291,81 @@ } /** - * ListMeasurementProtocolSecretsRequest parent. + * BatchDeleteUserLinksRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest - * @instance - */ - ListMeasurementProtocolSecretsRequest.prototype.parent = ""; - - /** - * ListMeasurementProtocolSecretsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @instance */ - ListMeasurementProtocolSecretsRequest.prototype.pageSize = 0; + BatchDeleteUserLinksRequest.prototype.parent = ""; /** - * ListMeasurementProtocolSecretsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * BatchDeleteUserLinksRequest requests. + * @member {Array.} requests + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @instance */ - ListMeasurementProtocolSecretsRequest.prototype.pageToken = ""; + BatchDeleteUserLinksRequest.prototype.requests = $util.emptyArray; /** - * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. + * Creates a new BatchDeleteUserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest instance + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest instance */ - ListMeasurementProtocolSecretsRequest.create = function create(properties) { - return new ListMeasurementProtocolSecretsRequest(properties); + BatchDeleteUserLinksRequest.create = function create(properties) { + return new BatchDeleteUserLinksRequest(properties); }; /** - * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * Encodes the specified BatchDeleteUserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsRequest.encode = function encode(message, writer) { + BatchDeleteUserLinksRequest.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.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. + * Encodes the specified BatchDeleteUserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeleteUserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsRequest.decode = function decode(reader, length) { + BatchDeleteUserLinksRequest.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.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13302,10 +14373,9 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -13316,126 +14386,134 @@ }; /** - * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteUserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsRequest.decodeDelimited = function decodeDelimited(reader) { + BatchDeleteUserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMeasurementProtocolSecretsRequest message. + * Verifies a BatchDeleteUserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMeasurementProtocolSecretsRequest.verify = function verify(message) { + BatchDeleteUserLinksRequest.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.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } return null; }; /** - * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteUserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest + * @returns {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} BatchDeleteUserLinksRequest */ - ListMeasurementProtocolSecretsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + BatchDeleteUserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + var message = new $root.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); 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.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.requests: object expected"); + message.requests[i] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.fromObject(object.requests[i]); + } + } return message; }; /** - * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchDeleteUserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest + * @param {google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} message BatchDeleteUserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMeasurementProtocolSecretsRequest.toObject = function toObject(message, options) { + BatchDeleteUserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.requests = []; + 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; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.toObject(message.requests[j], options); + } return object; }; /** - * Converts this ListMeasurementProtocolSecretsRequest to JSON. + * Converts this BatchDeleteUserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest * @instance * @returns {Object.} JSON object */ - ListMeasurementProtocolSecretsRequest.prototype.toJSON = function toJSON() { + BatchDeleteUserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListMeasurementProtocolSecretsRequest; + return BatchDeleteUserLinksRequest; })(); - v1alpha.ListMeasurementProtocolSecretsResponse = (function() { + v1alpha.CreateFirebaseLinkRequest = (function() { /** - * Properties of a ListMeasurementProtocolSecretsResponse. + * Properties of a CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListMeasurementProtocolSecretsResponse - * @property {Array.|null} [measurementProtocolSecrets] ListMeasurementProtocolSecretsResponse measurementProtocolSecrets - * @property {string|null} [nextPageToken] ListMeasurementProtocolSecretsResponse nextPageToken + * @interface ICreateFirebaseLinkRequest + * @property {string|null} [parent] CreateFirebaseLinkRequest parent + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] CreateFirebaseLinkRequest firebaseLink */ /** - * Constructs a new ListMeasurementProtocolSecretsResponse. + * Constructs a new CreateFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListMeasurementProtocolSecretsResponse. - * @implements IListMeasurementProtocolSecretsResponse + * @classdesc Represents a CreateFirebaseLinkRequest. + * @implements ICreateFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set */ - function ListMeasurementProtocolSecretsResponse(properties) { - this.measurementProtocolSecrets = []; + function CreateFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13443,91 +14521,88 @@ } /** - * ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. - * @member {Array.} measurementProtocolSecrets - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * CreateFirebaseLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance */ - ListMeasurementProtocolSecretsResponse.prototype.measurementProtocolSecrets = $util.emptyArray; + CreateFirebaseLinkRequest.prototype.parent = ""; /** - * ListMeasurementProtocolSecretsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * CreateFirebaseLinkRequest firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance */ - ListMeasurementProtocolSecretsResponse.prototype.nextPageToken = ""; + CreateFirebaseLinkRequest.prototype.firebaseLink = null; /** - * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. + * Creates a new CreateFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse instance + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest instance */ - ListMeasurementProtocolSecretsResponse.create = function create(properties) { - return new ListMeasurementProtocolSecretsResponse(properties); + CreateFirebaseLinkRequest.create = function create(properties) { + return new CreateFirebaseLinkRequest(properties); }; /** - * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsResponse.encode = function encode(message, writer) { + CreateFirebaseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.measurementProtocolSecrets != null && message.measurementProtocolSecrets.length) - for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecrets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. + * Encodes the specified CreateFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateFirebaseLinkRequest} message CreateFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMeasurementProtocolSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsResponse.decode = function decode(reader, length) { + CreateFirebaseLinkRequest.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.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) - message.measurementProtocolSecrets = []; - message.measurementProtocolSecrets.push($root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13538,133 +14613,121 @@ }; /** - * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMeasurementProtocolSecretsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMeasurementProtocolSecretsResponse message. + * Verifies a CreateFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMeasurementProtocolSecretsResponse.verify = function verify(message) { + CreateFirebaseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.measurementProtocolSecrets != null && message.hasOwnProperty("measurementProtocolSecrets")) { - if (!Array.isArray(message.measurementProtocolSecrets)) - return "measurementProtocolSecrets: array expected"; - for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecrets[i]); - if (error) - return "measurementProtocolSecrets." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse + * @returns {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} CreateFirebaseLinkRequest */ - ListMeasurementProtocolSecretsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + CreateFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); - if (object.measurementProtocolSecrets) { - if (!Array.isArray(object.measurementProtocolSecrets)) - throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: array expected"); - message.measurementProtocolSecrets = []; - for (var i = 0; i < object.measurementProtocolSecrets.length; ++i) { - if (typeof object.measurementProtocolSecrets[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: object expected"); - message.measurementProtocolSecrets[i] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecrets[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse + * @param {google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} message CreateFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMeasurementProtocolSecretsResponse.toObject = function toObject(message, options) { + CreateFirebaseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.measurementProtocolSecrets = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.measurementProtocolSecrets && message.measurementProtocolSecrets.length) { - object.measurementProtocolSecrets = []; - for (var j = 0; j < message.measurementProtocolSecrets.length; ++j) - object.measurementProtocolSecrets[j] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecrets[j], options); + if (options.defaults) { + object.parent = ""; + object.firebaseLink = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); return object; }; /** - * Converts this ListMeasurementProtocolSecretsResponse to JSON. + * Converts this CreateFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - ListMeasurementProtocolSecretsResponse.prototype.toJSON = function toJSON() { + CreateFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListMeasurementProtocolSecretsResponse; + return CreateFirebaseLinkRequest; })(); - v1alpha.GetGoogleSignalsSettingsRequest = (function() { + v1alpha.DeleteFirebaseLinkRequest = (function() { /** - * Properties of a GetGoogleSignalsSettingsRequest. + * Properties of a DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetGoogleSignalsSettingsRequest - * @property {string|null} [name] GetGoogleSignalsSettingsRequest name + * @interface IDeleteFirebaseLinkRequest + * @property {string|null} [name] DeleteFirebaseLinkRequest name */ /** - * Constructs a new GetGoogleSignalsSettingsRequest. + * Constructs a new DeleteFirebaseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetGoogleSignalsSettingsRequest. - * @implements IGetGoogleSignalsSettingsRequest + * @classdesc Represents a DeleteFirebaseLinkRequest. + * @implements IDeleteFirebaseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set */ - function GetGoogleSignalsSettingsRequest(properties) { + function DeleteFirebaseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13672,35 +14735,35 @@ } /** - * GetGoogleSignalsSettingsRequest name. + * DeleteFirebaseLinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance */ - GetGoogleSignalsSettingsRequest.prototype.name = ""; + DeleteFirebaseLinkRequest.prototype.name = ""; /** - * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. + * Creates a new DeleteFirebaseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest instance */ - GetGoogleSignalsSettingsRequest.create = function create(properties) { - return new GetGoogleSignalsSettingsRequest(properties); + DeleteFirebaseLinkRequest.create = function create(properties) { + return new DeleteFirebaseLinkRequest(properties); }; /** - * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGoogleSignalsSettingsRequest.encode = function encode(message, writer) { + DeleteFirebaseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -13709,33 +14772,33 @@ }; /** - * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified DeleteFirebaseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFirebaseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGoogleSignalsSettingsRequest.decode = function decode(reader, length) { + DeleteFirebaseLinkRequest.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.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13751,30 +14814,30 @@ }; /** - * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFirebaseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteFirebaseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGoogleSignalsSettingsRequest message. + * Verifies a DeleteFirebaseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGoogleSignalsSettingsRequest.verify = function verify(message) { + DeleteFirebaseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -13784,32 +14847,32 @@ }; /** - * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFirebaseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} DeleteFirebaseLinkRequest */ - GetGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + DeleteFirebaseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFirebaseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest + * @param {google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} message DeleteFirebaseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { + DeleteFirebaseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -13821,38 +14884,39 @@ }; /** - * Converts this GetGoogleSignalsSettingsRequest to JSON. + * Converts this DeleteFirebaseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest * @instance * @returns {Object.} JSON object */ - GetGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { + DeleteFirebaseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetGoogleSignalsSettingsRequest; + return DeleteFirebaseLinkRequest; })(); - v1alpha.UpdateGoogleSignalsSettingsRequest = (function() { + v1alpha.ListFirebaseLinksRequest = (function() { /** - * Properties of an UpdateGoogleSignalsSettingsRequest. + * Properties of a ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateGoogleSignalsSettingsRequest - * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] UpdateGoogleSignalsSettingsRequest googleSignalsSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleSignalsSettingsRequest updateMask + * @interface IListFirebaseLinksRequest + * @property {string|null} [parent] ListFirebaseLinksRequest parent + * @property {number|null} [pageSize] ListFirebaseLinksRequest pageSize + * @property {string|null} [pageToken] ListFirebaseLinksRequest pageToken */ /** - * Constructs a new UpdateGoogleSignalsSettingsRequest. + * Constructs a new ListFirebaseLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateGoogleSignalsSettingsRequest. - * @implements IUpdateGoogleSignalsSettingsRequest + * @classdesc Represents a ListFirebaseLinksRequest. + * @implements IListFirebaseLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set */ - function UpdateGoogleSignalsSettingsRequest(properties) { + function ListFirebaseLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13860,88 +14924,101 @@ } /** - * UpdateGoogleSignalsSettingsRequest googleSignalsSettings. - * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * ListFirebaseLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - UpdateGoogleSignalsSettingsRequest.prototype.googleSignalsSettings = null; + ListFirebaseLinksRequest.prototype.parent = ""; /** - * UpdateGoogleSignalsSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * ListFirebaseLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance */ - UpdateGoogleSignalsSettingsRequest.prototype.updateMask = null; + ListFirebaseLinksRequest.prototype.pageSize = 0; /** - * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. + * ListFirebaseLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @instance + */ + ListFirebaseLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListFirebaseLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest instance */ - UpdateGoogleSignalsSettingsRequest.create = function create(properties) { - return new UpdateGoogleSignalsSettingsRequest(properties); + ListFirebaseLinksRequest.create = function create(properties) { + return new ListFirebaseLinksRequest(properties); }; /** - * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleSignalsSettingsRequest.encode = function encode(message, writer) { + ListFirebaseLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) - $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksRequest} message ListFirebaseLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleSignalsSettingsRequest.decode = function decode(reader, length) { + ListFirebaseLinksRequest.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.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -13952,127 +15029,126 @@ }; /** - * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateGoogleSignalsSettingsRequest message. + * Verifies a ListFirebaseLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateGoogleSignalsSettingsRequest.verify = function verify(message) { + ListFirebaseLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { - var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); - if (error) - return "googleSignalsSettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + 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 an UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} ListFirebaseLinksRequest */ - UpdateGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + ListFirebaseLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); - if (object.googleSignalsSettings != null) { - if (typeof object.googleSignalsSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.googleSignalsSettings: object expected"); - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + 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 an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFirebaseLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksRequest} message ListFirebaseLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { + ListFirebaseLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.googleSignalsSettings = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) - object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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 UpdateGoogleSignalsSettingsRequest to JSON. + * Converts this ListFirebaseLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest * @instance * @returns {Object.} JSON object */ - UpdateGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateGoogleSignalsSettingsRequest; + return ListFirebaseLinksRequest; })(); - v1alpha.CreateConversionEventRequest = (function() { + v1alpha.ListFirebaseLinksResponse = (function() { /** - * Properties of a CreateConversionEventRequest. + * Properties of a ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface ICreateConversionEventRequest - * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] CreateConversionEventRequest conversionEvent - * @property {string|null} [parent] CreateConversionEventRequest parent + * @interface IListFirebaseLinksResponse + * @property {Array.|null} [firebaseLinks] ListFirebaseLinksResponse firebaseLinks + * @property {string|null} [nextPageToken] ListFirebaseLinksResponse nextPageToken */ /** - * Constructs a new CreateConversionEventRequest. + * Constructs a new ListFirebaseLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateConversionEventRequest. - * @implements ICreateConversionEventRequest + * @classdesc Represents a ListFirebaseLinksResponse. + * @implements IListFirebaseLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set */ - function CreateConversionEventRequest(properties) { + function ListFirebaseLinksResponse(properties) { + this.firebaseLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14080,88 +15156,91 @@ } /** - * CreateConversionEventRequest conversionEvent. - * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * ListFirebaseLinksResponse firebaseLinks. + * @member {Array.} firebaseLinks + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance */ - CreateConversionEventRequest.prototype.conversionEvent = null; + ListFirebaseLinksResponse.prototype.firebaseLinks = $util.emptyArray; /** - * CreateConversionEventRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * ListFirebaseLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance */ - CreateConversionEventRequest.prototype.parent = ""; + ListFirebaseLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateConversionEventRequest instance using the specified properties. + * Creates a new ListFirebaseLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest instance + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse instance */ - CreateConversionEventRequest.create = function create(properties) { - return new CreateConversionEventRequest(properties); + ListFirebaseLinksResponse.create = function create(properties) { + return new ListFirebaseLinksResponse(properties); }; /** - * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateConversionEventRequest.encode = function encode(message, writer) { + ListFirebaseLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) - $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.firebaseLinks != null && message.firebaseLinks.length) + for (var i = 0; i < message.firebaseLinks.length; ++i) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLinks[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 CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. + * Encodes the specified ListFirebaseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListFirebaseLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListFirebaseLinksResponse} message ListFirebaseLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFirebaseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateConversionEventRequest message from the specified reader or buffer. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateConversionEventRequest.decode = function decode(reader, length) { + ListFirebaseLinksResponse.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.analytics.admin.v1alpha.CreateConversionEventRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); break; case 2: - message.parent = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -14172,121 +15251,133 @@ }; /** - * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFirebaseLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + ListFirebaseLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateConversionEventRequest message. + * Verifies a ListFirebaseLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateConversionEventRequest.verify = function verify(message) { + ListFirebaseLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { - var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); - if (error) - return "conversionEvent." + error; + if (message.firebaseLinks != null && message.hasOwnProperty("firebaseLinks")) { + if (!Array.isArray(message.firebaseLinks)) + return "firebaseLinks: array expected"; + for (var i = 0; i < message.firebaseLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLinks[i]); + if (error) + return "firebaseLinks." + error; + } } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFirebaseLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest + * @returns {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} ListFirebaseLinksResponse */ - CreateConversionEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateConversionEventRequest) + ListFirebaseLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); - if (object.conversionEvent != null) { - if (typeof object.conversionEvent !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateConversionEventRequest.conversionEvent: object expected"); - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); + var message = new $root.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + if (object.firebaseLinks) { + if (!Array.isArray(object.firebaseLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: array expected"); + message.firebaseLinks = []; + for (var i = 0; i < object.firebaseLinks.length; ++i) { + if (typeof object.firebaseLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListFirebaseLinksResponse.firebaseLinks: object expected"); + message.firebaseLinks[i] = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLinks[i]); + } } - if (object.parent != null) - message.parent = String(object.parent); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFirebaseLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @static - * @param {google.analytics.admin.v1alpha.CreateConversionEventRequest} message CreateConversionEventRequest + * @param {google.analytics.admin.v1alpha.ListFirebaseLinksResponse} message ListFirebaseLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateConversionEventRequest.toObject = function toObject(message, options) { + ListFirebaseLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.conversionEvent = null; - object.parent = ""; + if (options.arrays || options.defaults) + object.firebaseLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.firebaseLinks && message.firebaseLinks.length) { + object.firebaseLinks = []; + for (var j = 0; j < message.firebaseLinks.length; ++j) + object.firebaseLinks[j] = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLinks[j], options); } - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) - object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateConversionEventRequest to JSON. + * Converts this ListFirebaseLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse * @instance * @returns {Object.} JSON object */ - CreateConversionEventRequest.prototype.toJSON = function toJSON() { + ListFirebaseLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateConversionEventRequest; + return ListFirebaseLinksResponse; })(); - v1alpha.GetConversionEventRequest = (function() { + v1alpha.GetGlobalSiteTagRequest = (function() { /** - * Properties of a GetConversionEventRequest. + * Properties of a GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetConversionEventRequest - * @property {string|null} [name] GetConversionEventRequest name + * @interface IGetGlobalSiteTagRequest + * @property {string|null} [name] GetGlobalSiteTagRequest name */ /** - * Constructs a new GetConversionEventRequest. + * Constructs a new GetGlobalSiteTagRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetConversionEventRequest. - * @implements IGetConversionEventRequest + * @classdesc Represents a GetGlobalSiteTagRequest. + * @implements IGetGlobalSiteTagRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set */ - function GetConversionEventRequest(properties) { + function GetGlobalSiteTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14294,35 +15385,35 @@ } /** - * GetConversionEventRequest name. + * GetGlobalSiteTagRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance */ - GetConversionEventRequest.prototype.name = ""; + GetGlobalSiteTagRequest.prototype.name = ""; /** - * Creates a new GetConversionEventRequest instance using the specified properties. + * Creates a new GetGlobalSiteTagRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest instance + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest instance */ - GetConversionEventRequest.create = function create(properties) { - return new GetConversionEventRequest(properties); + GetGlobalSiteTagRequest.create = function create(properties) { + return new GetGlobalSiteTagRequest(properties); }; /** - * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetConversionEventRequest.encode = function encode(message, writer) { + GetGlobalSiteTagRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -14331,33 +15422,33 @@ }; /** - * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. + * Encodes the specified GetGlobalSiteTagRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGlobalSiteTagRequest} message GetGlobalSiteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGlobalSiteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetConversionEventRequest message from the specified reader or buffer. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetConversionEventRequest.decode = function decode(reader, length) { + GetGlobalSiteTagRequest.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.analytics.admin.v1alpha.GetConversionEventRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14373,30 +15464,30 @@ }; /** - * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalSiteTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + GetGlobalSiteTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetConversionEventRequest message. + * Verifies a GetGlobalSiteTagRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetConversionEventRequest.verify = function verify(message) { + GetGlobalSiteTagRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -14406,32 +15497,32 @@ }; /** - * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGlobalSiteTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest + * @returns {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} GetGlobalSiteTagRequest */ - GetConversionEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetConversionEventRequest) + GetGlobalSiteTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGlobalSiteTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @static - * @param {google.analytics.admin.v1alpha.GetConversionEventRequest} message GetConversionEventRequest + * @param {google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} message GetGlobalSiteTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetConversionEventRequest.toObject = function toObject(message, options) { + GetGlobalSiteTagRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -14443,37 +15534,38 @@ }; /** - * Converts this GetConversionEventRequest to JSON. + * Converts this GetGlobalSiteTagRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest * @instance * @returns {Object.} JSON object */ - GetConversionEventRequest.prototype.toJSON = function toJSON() { + GetGlobalSiteTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetConversionEventRequest; + return GetGlobalSiteTagRequest; })(); - v1alpha.DeleteConversionEventRequest = (function() { + v1alpha.CreateGoogleAdsLinkRequest = (function() { /** - * Properties of a DeleteConversionEventRequest. + * Properties of a CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteConversionEventRequest - * @property {string|null} [name] DeleteConversionEventRequest name + * @interface ICreateGoogleAdsLinkRequest + * @property {string|null} [parent] CreateGoogleAdsLinkRequest parent + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] CreateGoogleAdsLinkRequest googleAdsLink */ /** - * Constructs a new DeleteConversionEventRequest. + * Constructs a new CreateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteConversionEventRequest. - * @implements IDeleteConversionEventRequest + * @classdesc Represents a CreateGoogleAdsLinkRequest. + * @implements ICreateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set */ - function DeleteConversionEventRequest(properties) { + function CreateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14481,75 +15573,88 @@ } /** - * DeleteConversionEventRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * CreateGoogleAdsLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance */ - DeleteConversionEventRequest.prototype.name = ""; + CreateGoogleAdsLinkRequest.prototype.parent = ""; /** - * Creates a new DeleteConversionEventRequest instance using the specified properties. + * CreateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @instance + */ + CreateGoogleAdsLinkRequest.prototype.googleAdsLink = null; + + /** + * Creates a new CreateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest instance + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest instance */ - DeleteConversionEventRequest.create = function create(properties) { - return new DeleteConversionEventRequest(properties); + CreateGoogleAdsLinkRequest.create = function create(properties) { + return new CreateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteConversionEventRequest.encode = function encode(message, writer) { + CreateGoogleAdsLinkRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. + * Encodes the specified CreateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteConversionEventRequest.decode = function decode(reader, length) { + CreateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.DeleteConversionEventRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -14560,109 +15665,122 @@ }; /** - * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { + CreateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteConversionEventRequest message. + * Verifies a CreateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteConversionEventRequest.verify = function verify(message) { + CreateGoogleAdsLinkRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } return null; }; /** - * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest + * @returns {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} CreateGoogleAdsLinkRequest */ - DeleteConversionEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest) + CreateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } return message; }; /** - * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteConversionEventRequest} message DeleteConversionEventRequest + * @param {google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} message CreateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteConversionEventRequest.toObject = function toObject(message, options) { + CreateGoogleAdsLinkRequest.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 (options.defaults) { + object.parent = ""; + object.googleAdsLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); return object; }; /** - * Converts this DeleteConversionEventRequest to JSON. + * Converts this CreateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - DeleteConversionEventRequest.prototype.toJSON = function toJSON() { + CreateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteConversionEventRequest; + return CreateGoogleAdsLinkRequest; })(); - v1alpha.ListConversionEventsRequest = (function() { + v1alpha.UpdateGoogleAdsLinkRequest = (function() { /** - * Properties of a ListConversionEventsRequest. + * Properties of an UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListConversionEventsRequest - * @property {string|null} [parent] ListConversionEventsRequest parent - * @property {number|null} [pageSize] ListConversionEventsRequest pageSize - * @property {string|null} [pageToken] ListConversionEventsRequest pageToken + * @interface IUpdateGoogleAdsLinkRequest + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] UpdateGoogleAdsLinkRequest googleAdsLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleAdsLinkRequest updateMask */ /** - * Constructs a new ListConversionEventsRequest. + * Constructs a new UpdateGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListConversionEventsRequest. - * @implements IListConversionEventsRequest + * @classdesc Represents an UpdateGoogleAdsLinkRequest. + * @implements IUpdateGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set */ - function ListConversionEventsRequest(properties) { + function UpdateGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14670,101 +15788,88 @@ } /** - * ListConversionEventsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest - * @instance - */ - ListConversionEventsRequest.prototype.parent = ""; - - /** - * ListConversionEventsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * UpdateGoogleAdsLinkRequest googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance */ - ListConversionEventsRequest.prototype.pageSize = 0; + UpdateGoogleAdsLinkRequest.prototype.googleAdsLink = null; /** - * ListConversionEventsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * UpdateGoogleAdsLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance */ - ListConversionEventsRequest.prototype.pageToken = ""; + UpdateGoogleAdsLinkRequest.prototype.updateMask = null; /** - * Creates a new ListConversionEventsRequest instance using the specified properties. + * Creates a new UpdateGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest instance */ - ListConversionEventsRequest.create = function create(properties) { - return new ListConversionEventsRequest(properties); + UpdateGoogleAdsLinkRequest.create = function create(properties) { + return new UpdateGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsRequest.encode = function encode(message, writer) { + UpdateGoogleAdsLinkRequest.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.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, 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 ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListConversionEventsRequest message from the specified reader or buffer. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsRequest.decode = function decode(reader, length) { + UpdateGoogleAdsLinkRequest.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.analytics.admin.v1alpha.ListConversionEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -14775,126 +15880,126 @@ }; /** - * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListConversionEventsRequest message. + * Verifies an UpdateGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListConversionEventsRequest.verify = function verify(message) { + UpdateGoogleAdsLinkRequest.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.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + 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 a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} UpdateGoogleAdsLinkRequest */ - ListConversionEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsRequest) + UpdateGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListConversionEventsRequest} message ListConversionEventsRequest + * @param {google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} message UpdateGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListConversionEventsRequest.toObject = function toObject(message, options) { + UpdateGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.googleAdsLink = null; + object.updateMask = 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; - return object; - }; - + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + /** - * Converts this ListConversionEventsRequest to JSON. + * Converts this UpdateGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - ListConversionEventsRequest.prototype.toJSON = function toJSON() { + UpdateGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListConversionEventsRequest; + return UpdateGoogleAdsLinkRequest; })(); - v1alpha.ListConversionEventsResponse = (function() { + v1alpha.DeleteGoogleAdsLinkRequest = (function() { /** - * Properties of a ListConversionEventsResponse. + * Properties of a DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListConversionEventsResponse - * @property {Array.|null} [conversionEvents] ListConversionEventsResponse conversionEvents - * @property {string|null} [nextPageToken] ListConversionEventsResponse nextPageToken + * @interface IDeleteGoogleAdsLinkRequest + * @property {string|null} [name] DeleteGoogleAdsLinkRequest name */ /** - * Constructs a new ListConversionEventsResponse. + * Constructs a new DeleteGoogleAdsLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListConversionEventsResponse. - * @implements IListConversionEventsResponse + * @classdesc Represents a DeleteGoogleAdsLinkRequest. + * @implements IDeleteGoogleAdsLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set */ - function ListConversionEventsResponse(properties) { - this.conversionEvents = []; + function DeleteGoogleAdsLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14902,91 +16007,75 @@ } /** - * ListConversionEventsResponse conversionEvents. - * @member {Array.} conversionEvents - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse - * @instance - */ - ListConversionEventsResponse.prototype.conversionEvents = $util.emptyArray; - - /** - * ListConversionEventsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * DeleteGoogleAdsLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance */ - ListConversionEventsResponse.prototype.nextPageToken = ""; + DeleteGoogleAdsLinkRequest.prototype.name = ""; /** - * Creates a new ListConversionEventsResponse instance using the specified properties. + * Creates a new DeleteGoogleAdsLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse instance + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest instance */ - ListConversionEventsResponse.create = function create(properties) { - return new ListConversionEventsResponse(properties); + DeleteGoogleAdsLinkRequest.create = function create(properties) { + return new DeleteGoogleAdsLinkRequest(properties); }; /** - * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsResponse.encode = function encode(message, writer) { + DeleteGoogleAdsLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.conversionEvents != null && message.conversionEvents.length) - for (var i = 0; i < message.conversionEvents.length; ++i) - $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. + * Encodes the specified DeleteGoogleAdsLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListConversionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteGoogleAdsLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListConversionEventsResponse message from the specified reader or buffer. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsResponse.decode = function decode(reader, length) { + DeleteGoogleAdsLinkRequest.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.analytics.admin.v1alpha.ListConversionEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.conversionEvents && message.conversionEvents.length)) - message.conversionEvents = []; - message.conversionEvents.push($root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -14997,133 +16086,109 @@ }; /** - * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteGoogleAdsLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListConversionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteGoogleAdsLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListConversionEventsResponse message. + * Verifies a DeleteGoogleAdsLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListConversionEventsResponse.verify = function verify(message) { + DeleteGoogleAdsLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.conversionEvents != null && message.hasOwnProperty("conversionEvents")) { - if (!Array.isArray(message.conversionEvents)) - return "conversionEvents: array expected"; - for (var i = 0; i < message.conversionEvents.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvents[i]); - if (error) - return "conversionEvents." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteGoogleAdsLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse + * @returns {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} DeleteGoogleAdsLinkRequest */ - ListConversionEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsResponse) + DeleteGoogleAdsLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); - if (object.conversionEvents) { - if (!Array.isArray(object.conversionEvents)) - throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: array expected"); - message.conversionEvents = []; - for (var i = 0; i < object.conversionEvents.length; ++i) { - if (typeof object.conversionEvents[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: object expected"); - message.conversionEvents[i] = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvents[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteGoogleAdsLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} message ListConversionEventsResponse + * @param {google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} message DeleteGoogleAdsLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListConversionEventsResponse.toObject = function toObject(message, options) { + DeleteGoogleAdsLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.conversionEvents = []; if (options.defaults) - object.nextPageToken = ""; - if (message.conversionEvents && message.conversionEvents.length) { - object.conversionEvents = []; - for (var j = 0; j < message.conversionEvents.length; ++j) - object.conversionEvents[j] = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvents[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListConversionEventsResponse to JSON. + * Converts this DeleteGoogleAdsLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest * @instance * @returns {Object.} JSON object */ - ListConversionEventsResponse.prototype.toJSON = function toJSON() { + DeleteGoogleAdsLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListConversionEventsResponse; + return DeleteGoogleAdsLinkRequest; })(); - v1alpha.GetDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.ListGoogleAdsLinksRequest = (function() { /** - * Properties of a GetDisplayVideo360AdvertiserLinkRequest. + * Properties of a ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDisplayVideo360AdvertiserLinkRequest - * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkRequest name + * @interface IListGoogleAdsLinksRequest + * @property {string|null} [parent] ListGoogleAdsLinksRequest parent + * @property {number|null} [pageSize] ListGoogleAdsLinksRequest pageSize + * @property {string|null} [pageToken] ListGoogleAdsLinksRequest pageToken */ /** - * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. + * Constructs a new ListGoogleAdsLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDisplayVideo360AdvertiserLinkRequest. - * @implements IGetDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents a ListGoogleAdsLinksRequest. + * @implements IListGoogleAdsLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set */ - function GetDisplayVideo360AdvertiserLinkRequest(properties) { + function ListGoogleAdsLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15131,75 +16196,101 @@ } /** - * GetDisplayVideo360AdvertiserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * ListGoogleAdsLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance */ - GetDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; + ListGoogleAdsLinksRequest.prototype.parent = ""; /** - * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * ListGoogleAdsLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.pageSize = 0; + + /** + * ListGoogleAdsLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @instance + */ + ListGoogleAdsLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListGoogleAdsLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest instance */ - GetDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new GetDisplayVideo360AdvertiserLinkRequest(properties); + ListGoogleAdsLinksRequest.create = function create(properties) { + return new ListGoogleAdsLinksRequest(properties); }; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + ListGoogleAdsLinksRequest.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.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 GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + ListGoogleAdsLinksRequest.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.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15210,109 +16301,126 @@ }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. + * Verifies a ListGoogleAdsLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + ListGoogleAdsLinksRequest.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.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 GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} ListGoogleAdsLinksRequest */ - GetDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + ListGoogleAdsLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + 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 GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListGoogleAdsLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @static - * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} message ListGoogleAdsLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + ListGoogleAdsLinksRequest.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 (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 GetDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this ListGoogleAdsLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest * @instance * @returns {Object.} JSON object */ - GetDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDisplayVideo360AdvertiserLinkRequest; + return ListGoogleAdsLinksRequest; })(); - v1alpha.ListDisplayVideo360AdvertiserLinksRequest = (function() { + v1alpha.ListGoogleAdsLinksResponse = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinksRequest. + * Properties of a ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinksRequest - * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinksRequest parent - * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinksRequest pageSize - * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinksRequest pageToken + * @interface IListGoogleAdsLinksResponse + * @property {Array.|null} [googleAdsLinks] ListGoogleAdsLinksResponse googleAdsLinks + * @property {string|null} [nextPageToken] ListGoogleAdsLinksResponse nextPageToken */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. + * Constructs a new ListGoogleAdsLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinksRequest. - * @implements IListDisplayVideo360AdvertiserLinksRequest + * @classdesc Represents a ListGoogleAdsLinksResponse. + * @implements IListGoogleAdsLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinksRequest(properties) { + function ListGoogleAdsLinksResponse(properties) { + this.googleAdsLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15320,101 +16428,91 @@ } /** - * ListDisplayVideo360AdvertiserLinksRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest - * @instance - */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.parent = ""; - - /** - * ListDisplayVideo360AdvertiserLinksRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * ListGoogleAdsLinksResponse googleAdsLinks. + * @member {Array.} googleAdsLinks + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.pageSize = 0; + ListGoogleAdsLinksResponse.prototype.googleAdsLinks = $util.emptyArray; /** - * ListDisplayVideo360AdvertiserLinksRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * ListGoogleAdsLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.pageToken = ""; + ListGoogleAdsLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. + * Creates a new ListGoogleAdsLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest instance + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse instance */ - ListDisplayVideo360AdvertiserLinksRequest.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinksRequest(properties); + ListGoogleAdsLinksResponse.create = function create(properties) { + return new ListGoogleAdsLinksResponse(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksRequest.encode = function encode(message, writer) { + ListGoogleAdsLinksResponse.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.googleAdsLinks != null && message.googleAdsLinks.length) + for (var i = 0; i < message.googleAdsLinks.length; ++i) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLinks[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 ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. + * Encodes the specified ListGoogleAdsLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGoogleAdsLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksRequest.decode = function decode(reader, length) { + ListGoogleAdsLinksResponse.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15425,126 +16523,133 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGoogleAdsLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksRequest.decodeDelimited = function decodeDelimited(reader) { + ListGoogleAdsLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. + * Verifies a ListGoogleAdsLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinksRequest.verify = function verify(message) { + ListGoogleAdsLinksResponse.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.googleAdsLinks != null && message.hasOwnProperty("googleAdsLinks")) { + if (!Array.isArray(message.googleAdsLinks)) + return "googleAdsLinks: array expected"; + for (var i = 0; i < message.googleAdsLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLinks[i]); + if (error) + return "googleAdsLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGoogleAdsLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest + * @returns {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} ListGoogleAdsLinksResponse */ - ListDisplayVideo360AdvertiserLinksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + ListGoogleAdsLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + if (object.googleAdsLinks) { + if (!Array.isArray(object.googleAdsLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: array expected"); + message.googleAdsLinks = []; + for (var i = 0; i < object.googleAdsLinks.length; ++i) { + if (typeof object.googleAdsLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.googleAdsLinks: object expected"); + message.googleAdsLinks[i] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListGoogleAdsLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest + * @param {google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} message ListGoogleAdsLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinksRequest.toObject = function toObject(message, options) { + ListGoogleAdsLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.googleAdsLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.googleAdsLinks && message.googleAdsLinks.length) { + object.googleAdsLinks = []; + for (var j = 0; j < message.googleAdsLinks.length; ++j) + object.googleAdsLinks[j] = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLinks[j], options); } - 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. + * Converts this ListGoogleAdsLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinksRequest.prototype.toJSON = function toJSON() { + ListGoogleAdsLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinksRequest; + return ListGoogleAdsLinksResponse; })(); - v1alpha.ListDisplayVideo360AdvertiserLinksResponse = (function() { + v1alpha.GetDataSharingSettingsRequest = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinksResponse. + * Properties of a GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinksResponse - * @property {Array.|null} [displayVideo_360AdvertiserLinks] ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks - * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinksResponse nextPageToken + * @interface IGetDataSharingSettingsRequest + * @property {string|null} [name] GetDataSharingSettingsRequest name */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. + * Constructs a new GetDataSharingSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinksResponse. - * @implements IListDisplayVideo360AdvertiserLinksResponse + * @classdesc Represents a GetDataSharingSettingsRequest. + * @implements IGetDataSharingSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinksResponse(properties) { - this.displayVideo_360AdvertiserLinks = []; + function GetDataSharingSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15552,91 +16657,75 @@ } /** - * ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. - * @member {Array.} displayVideo_360AdvertiserLinks - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse - * @instance - */ - ListDisplayVideo360AdvertiserLinksResponse.prototype.displayVideo_360AdvertiserLinks = $util.emptyArray; - - /** - * ListDisplayVideo360AdvertiserLinksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * GetDataSharingSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance */ - ListDisplayVideo360AdvertiserLinksResponse.prototype.nextPageToken = ""; + GetDataSharingSettingsRequest.prototype.name = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. + * Creates a new GetDataSharingSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse instance + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest instance */ - ListDisplayVideo360AdvertiserLinksResponse.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinksResponse(properties); + GetDataSharingSettingsRequest.create = function create(properties) { + return new GetDataSharingSettingsRequest(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksResponse.encode = function encode(message, writer) { + GetDataSharingSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLinks != null && message.displayVideo_360AdvertiserLinks.length) - for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. + * Encodes the specified GetDataSharingSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataSharingSettingsRequest} message GetDataSharingSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetDataSharingSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksResponse.decode = function decode(reader, length) { + GetDataSharingSettingsRequest.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length)) - message.displayVideo_360AdvertiserLinks = []; - message.displayVideo_360AdvertiserLinks.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -15647,134 +16736,108 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. + * Decodes a GetDataSharingSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinksResponse.decodeDelimited = function decodeDelimited(reader) { + GetDataSharingSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. + * Verifies a GetDataSharingSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinksResponse.verify = function verify(message) { + GetDataSharingSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLinks != null && message.hasOwnProperty("displayVideo_360AdvertiserLinks")) { - if (!Array.isArray(message.displayVideo_360AdvertiserLinks)) - return "displayVideo_360AdvertiserLinks: array expected"; - for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLinks[i]); - if (error) - return "displayVideo_360AdvertiserLinks." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataSharingSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse + * @returns {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} GetDataSharingSettingsRequest */ - ListDisplayVideo360AdvertiserLinksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + GetDataSharingSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); - if (object.displayVideo_360AdvertiserLinks) { - if (!Array.isArray(object.displayVideo_360AdvertiserLinks)) - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: array expected"); - message.displayVideo_360AdvertiserLinks = []; - for (var i = 0; i < object.displayVideo_360AdvertiserLinks.length; ++i) { - if (typeof object.displayVideo_360AdvertiserLinks[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: object expected"); - message.displayVideo_360AdvertiserLinks[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLinks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetDataSharingSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse + * @param {google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} message GetDataSharingSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinksResponse.toObject = function toObject(message, options) { + GetDataSharingSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.displayVideo_360AdvertiserLinks = []; if (options.defaults) - object.nextPageToken = ""; - if (message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length) { - object.displayVideo_360AdvertiserLinks = []; - for (var j = 0; j < message.displayVideo_360AdvertiserLinks.length; ++j) - object.displayVideo_360AdvertiserLinks[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLinks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. + * Converts this GetDataSharingSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinksResponse.prototype.toJSON = function toJSON() { + GetDataSharingSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinksResponse; + return GetDataSharingSettingsRequest; })(); - v1alpha.CreateDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.ListAccountSummariesRequest = (function() { /** - * Properties of a CreateDisplayVideo360AdvertiserLinkRequest. + * Properties of a ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateDisplayVideo360AdvertiserLinkRequest - * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkRequest parent - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink + * @interface IListAccountSummariesRequest + * @property {number|null} [pageSize] ListAccountSummariesRequest pageSize + * @property {string|null} [pageToken] ListAccountSummariesRequest pageToken */ /** - * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. + * Constructs a new ListAccountSummariesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkRequest. - * @implements ICreateDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents a ListAccountSummariesRequest. + * @implements IListAccountSummariesRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set */ - function CreateDisplayVideo360AdvertiserLinkRequest(properties) { + function ListAccountSummariesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15782,88 +16845,88 @@ } /** - * CreateDisplayVideo360AdvertiserLinkRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * ListAccountSummariesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - CreateDisplayVideo360AdvertiserLinkRequest.prototype.parent = ""; + ListAccountSummariesRequest.prototype.pageSize = 0; /** - * CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * ListAccountSummariesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance */ - CreateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; + ListAccountSummariesRequest.prototype.pageToken = ""; /** - * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new ListAccountSummariesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest instance */ - CreateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new CreateDisplayVideo360AdvertiserLinkRequest(properties); + ListAccountSummariesRequest.create = function create(properties) { + return new ListAccountSummariesRequest(properties); }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + ListAccountSummariesRequest.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.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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); return writer; }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesRequest} message ListAccountSummariesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + ListAccountSummariesRequest.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.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.pageSize = reader.int32(); break; case 2: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -15874,121 +16937,118 @@ }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountSummariesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. + * Verifies a ListAccountSummariesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + ListAccountSummariesRequest.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.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); - if (error) - return "displayVideo_360AdvertiserLink." + error; - } + 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 CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesRequest} ListAccountSummariesRequest */ - CreateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + ListAccountSummariesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayVideo_360AdvertiserLink != null) { - if (typeof object.displayVideo_360AdvertiserLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); - } + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); + 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 CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @static - * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.ListAccountSummariesRequest} message ListAccountSummariesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + ListAccountSummariesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.displayVideo_360AdvertiserLink = null; + object.pageSize = 0; + object.pageToken = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) - object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + 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 CreateDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this ListAccountSummariesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest * @instance * @returns {Object.} JSON object */ - CreateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + ListAccountSummariesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDisplayVideo360AdvertiserLinkRequest; + return ListAccountSummariesRequest; })(); - v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.ListAccountSummariesResponse = (function() { /** - * Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. + * Properties of a ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteDisplayVideo360AdvertiserLinkRequest - * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkRequest name + * @interface IListAccountSummariesResponse + * @property {Array.|null} [accountSummaries] ListAccountSummariesResponse accountSummaries + * @property {string|null} [nextPageToken] ListAccountSummariesResponse nextPageToken */ /** - * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. + * Constructs a new ListAccountSummariesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkRequest. - * @implements IDeleteDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents a ListAccountSummariesResponse. + * @implements IListAccountSummariesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set */ - function DeleteDisplayVideo360AdvertiserLinkRequest(properties) { + function ListAccountSummariesResponse(properties) { + this.accountSummaries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15996,75 +17056,91 @@ } /** - * DeleteDisplayVideo360AdvertiserLinkRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * ListAccountSummariesResponse accountSummaries. + * @member {Array.} accountSummaries + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance */ - DeleteDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; + ListAccountSummariesResponse.prototype.accountSummaries = $util.emptyArray; /** - * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * ListAccountSummariesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @instance + */ + ListAccountSummariesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAccountSummariesResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse instance */ - DeleteDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new DeleteDisplayVideo360AdvertiserLinkRequest(properties); + ListAccountSummariesResponse.create = function create(properties) { + return new ListAccountSummariesResponse(properties); }; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + ListAccountSummariesResponse.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.accountSummaries != null && message.accountSummaries.length) + for (var i = 0; i < message.accountSummaries.length; ++i) + $root.google.analytics.admin.v1alpha.AccountSummary.encode(message.accountSummaries[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 DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified ListAccountSummariesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAccountSummariesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAccountSummariesResponse} message ListAccountSummariesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAccountSummariesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + ListAccountSummariesResponse.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.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -16075,108 +17151,134 @@ }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAccountSummariesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + ListAccountSummariesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. + * Verifies a ListAccountSummariesResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + ListAccountSummariesResponse.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.accountSummaries != null && message.hasOwnProperty("accountSummaries")) { + if (!Array.isArray(message.accountSummaries)) + return "accountSummaries: array expected"; + for (var i = 0; i < message.accountSummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AccountSummary.verify(message.accountSummaries[i]); + if (error) + return "accountSummaries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAccountSummariesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.ListAccountSummariesResponse} ListAccountSummariesResponse */ - DeleteDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + ListAccountSummariesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); + if (object.accountSummaries) { + if (!Array.isArray(object.accountSummaries)) + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: array expected"); + message.accountSummaries = []; + for (var i = 0; i < object.accountSummaries.length; ++i) { + if (typeof object.accountSummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAccountSummariesResponse.accountSummaries: object expected"); + message.accountSummaries[i] = $root.google.analytics.admin.v1alpha.AccountSummary.fromObject(object.accountSummaries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAccountSummariesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @static - * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.ListAccountSummariesResponse} message ListAccountSummariesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + ListAccountSummariesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.accountSummaries = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.accountSummaries && message.accountSummaries.length) { + object.accountSummaries = []; + for (var j = 0; j < message.accountSummaries.length; ++j) + object.accountSummaries[j] = $root.google.analytics.admin.v1alpha.AccountSummary.toObject(message.accountSummaries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this ListAccountSummariesResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse * @instance * @returns {Object.} JSON object */ - DeleteDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + ListAccountSummariesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDisplayVideo360AdvertiserLinkRequest; + return ListAccountSummariesResponse; })(); - v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest = (function() { + v1alpha.AcknowledgeUserDataCollectionRequest = (function() { /** - * Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. + * Properties of an AcknowledgeUserDataCollectionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDisplayVideo360AdvertiserLinkRequest - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDisplayVideo360AdvertiserLinkRequest updateMask + * @interface IAcknowledgeUserDataCollectionRequest + * @property {string|null} [property] AcknowledgeUserDataCollectionRequest property + * @property {string|null} [acknowledgement] AcknowledgeUserDataCollectionRequest acknowledgement */ /** - * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. + * Constructs a new AcknowledgeUserDataCollectionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDisplayVideo360AdvertiserLinkRequest. - * @implements IUpdateDisplayVideo360AdvertiserLinkRequest + * @classdesc Represents an AcknowledgeUserDataCollectionRequest. + * @implements IAcknowledgeUserDataCollectionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set */ - function UpdateDisplayVideo360AdvertiserLinkRequest(properties) { + function AcknowledgeUserDataCollectionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16184,88 +17286,88 @@ } /** - * UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * AcknowledgeUserDataCollectionRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance */ - UpdateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; + AcknowledgeUserDataCollectionRequest.prototype.property = ""; /** - * UpdateDisplayVideo360AdvertiserLinkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * AcknowledgeUserDataCollectionRequest acknowledgement. + * @member {string} acknowledgement + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance */ - UpdateDisplayVideo360AdvertiserLinkRequest.prototype.updateMask = null; + AcknowledgeUserDataCollectionRequest.prototype.acknowledgement = ""; /** - * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest instance */ - UpdateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { - return new UpdateDisplayVideo360AdvertiserLinkRequest(properties); + AcknowledgeUserDataCollectionRequest.create = function create(properties) { + return new AcknowledgeUserDataCollectionRequest(properties); }; /** - * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + AcknowledgeUserDataCollectionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acknowledgement); return writer; }; /** - * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + AcknowledgeUserDataCollectionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDisplayVideo360AdvertiserLinkRequest.decode = function decode(reader, length) { + AcknowledgeUserDataCollectionRequest.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.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + message.property = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.acknowledgement = reader.string(); break; default: reader.skipType(tag & 7); @@ -16276,126 +17378,115 @@ }; /** - * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + AcknowledgeUserDataCollectionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. + * Verifies an AcknowledgeUserDataCollectionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + AcknowledgeUserDataCollectionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); - if (error) - return "displayVideo_360AdvertiserLink." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!$util.isString(message.acknowledgement)) + return "acknowledgement: string expected"; return null; }; /** - * Creates an UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} AcknowledgeUserDataCollectionRequest */ - UpdateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + AcknowledgeUserDataCollectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); - if (object.displayVideo_360AdvertiserLink != null) { - if (typeof object.displayVideo_360AdvertiserLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); + if (object.property != null) + message.property = String(object.property); + if (object.acknowledgement != null) + message.acknowledgement = String(object.acknowledgement); return message; }; /** - * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * Creates a plain object from an AcknowledgeUserDataCollectionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} message AcknowledgeUserDataCollectionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + AcknowledgeUserDataCollectionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.displayVideo_360AdvertiserLink = null; - object.updateMask = null; + object.property = ""; + object.acknowledgement = ""; } - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) - object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = message.acknowledgement; return object; }; /** - * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. + * Converts this AcknowledgeUserDataCollectionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest * @instance * @returns {Object.} JSON object */ - UpdateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + AcknowledgeUserDataCollectionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateDisplayVideo360AdvertiserLinkRequest; + return AcknowledgeUserDataCollectionRequest; })(); - v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.AcknowledgeUserDataCollectionResponse = (function() { /** - * Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of an AcknowledgeUserDataCollectionResponse. * @memberof google.analytics.admin.v1alpha - * @interface IGetDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkProposalRequest name + * @interface IAcknowledgeUserDataCollectionResponse */ /** - * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new AcknowledgeUserDataCollectionResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. - * @implements IGetDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents an AcknowledgeUserDataCollectionResponse. + * @implements IAcknowledgeUserDataCollectionResponse * @constructor - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set */ - function GetDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function AcknowledgeUserDataCollectionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16403,76 +17494,63 @@ } /** - * GetDisplayVideo360AdvertiserLinkProposalRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest - * @instance - */ - GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; - - /** - * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new AcknowledgeUserDataCollectionResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse instance */ - GetDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new GetDisplayVideo360AdvertiserLinkProposalRequest(properties); + AcknowledgeUserDataCollectionResponse.create = function create(properties) { + return new AcknowledgeUserDataCollectionResponse(properties); }; /** - * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + AcknowledgeUserDataCollectionResponse.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 GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified AcknowledgeUserDataCollectionResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + AcknowledgeUserDataCollectionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + AcknowledgeUserDataCollectionResponse.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.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -16482,109 +17560,105 @@ }; /** - * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes an AcknowledgeUserDataCollectionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + AcknowledgeUserDataCollectionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies an AcknowledgeUserDataCollectionResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + AcknowledgeUserDataCollectionResponse.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 GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcknowledgeUserDataCollectionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} AcknowledgeUserDataCollectionResponse */ - GetDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + AcknowledgeUserDataCollectionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); - if (object.name != null) - message.name = String(object.name); - return message; + return new $root.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); }; /** - * Creates a plain object from a GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from an AcknowledgeUserDataCollectionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @static - * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} message AcknowledgeUserDataCollectionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDisplayVideo360AdvertiserLinkProposalRequest.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; + AcknowledgeUserDataCollectionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this AcknowledgeUserDataCollectionResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse * @instance * @returns {Object.} JSON object */ - GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + AcknowledgeUserDataCollectionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDisplayVideo360AdvertiserLinkProposalRequest; + return AcknowledgeUserDataCollectionResponse; })(); - v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest = (function() { + v1alpha.SearchChangeHistoryEventsRequest = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. + * Properties of a SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinkProposalsRequest - * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinkProposalsRequest parent - * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize - * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken + * @interface ISearchChangeHistoryEventsRequest + * @property {string|null} [account] SearchChangeHistoryEventsRequest account + * @property {string|null} [property] SearchChangeHistoryEventsRequest property + * @property {Array.|null} [resourceType] SearchChangeHistoryEventsRequest resourceType + * @property {Array.|null} [action] SearchChangeHistoryEventsRequest action + * @property {Array.|null} [actorEmail] SearchChangeHistoryEventsRequest actorEmail + * @property {google.protobuf.ITimestamp|null} [earliestChangeTime] SearchChangeHistoryEventsRequest earliestChangeTime + * @property {google.protobuf.ITimestamp|null} [latestChangeTime] SearchChangeHistoryEventsRequest latestChangeTime + * @property {number|null} [pageSize] SearchChangeHistoryEventsRequest pageSize + * @property {string|null} [pageToken] SearchChangeHistoryEventsRequest pageToken */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. + * Constructs a new SearchChangeHistoryEventsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. - * @implements IListDisplayVideo360AdvertiserLinkProposalsRequest + * @classdesc Represents a SearchChangeHistoryEventsRequest. + * @implements ISearchChangeHistoryEventsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinkProposalsRequest(properties) { + function SearchChangeHistoryEventsRequest(properties) { + this.resourceType = []; + this.action = []; + this.actorEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16592,100 +17666,203 @@ } /** - * ListDisplayVideo360AdvertiserLinkProposalsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * SearchChangeHistoryEventsRequest account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.parent = ""; + SearchChangeHistoryEventsRequest.prototype.account = ""; /** - * ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. + * SearchChangeHistoryEventsRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.property = ""; + + /** + * SearchChangeHistoryEventsRequest resourceType. + * @member {Array.} resourceType + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.resourceType = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest action. + * @member {Array.} action + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.action = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest actorEmail. + * @member {Array.} actorEmail + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.actorEmail = $util.emptyArray; + + /** + * SearchChangeHistoryEventsRequest earliestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} earliestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.earliestChangeTime = null; + + /** + * SearchChangeHistoryEventsRequest latestChangeTime. + * @member {google.protobuf.ITimestamp|null|undefined} latestChangeTime + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @instance + */ + SearchChangeHistoryEventsRequest.prototype.latestChangeTime = null; + + /** + * SearchChangeHistoryEventsRequest pageSize. * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageSize = 0; + SearchChangeHistoryEventsRequest.prototype.pageSize = 0; /** - * ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. + * SearchChangeHistoryEventsRequest pageToken. * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageToken = ""; + SearchChangeHistoryEventsRequest.prototype.pageToken = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. + * Creates a new SearchChangeHistoryEventsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest instance */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinkProposalsRequest(properties); + SearchChangeHistoryEventsRequest.create = function create(properties) { + return new SearchChangeHistoryEventsRequest(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.encode = function encode(message, writer) { + SearchChangeHistoryEventsRequest.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.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.account); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.property); + if (message.resourceType != null && message.resourceType.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.resourceType.length; ++i) + writer.int32(message.resourceType[i]); + writer.ldelim(); + } + if (message.action != null && message.action.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.action.length; ++i) + writer.int32(message.action[i]); + writer.ldelim(); + } + if (message.actorEmail != null && message.actorEmail.length) + for (var i = 0; i < message.actorEmail.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.actorEmail[i]); + if (message.earliestChangeTime != null && Object.hasOwnProperty.call(message, "earliestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.earliestChangeTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latestChangeTime != null && Object.hasOwnProperty.call(message, "latestChangeTime")) + $root.google.protobuf.Timestamp.encode(message.latestChangeTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + writer.uint32(/* id 9, wireType 2 =*/74).string(message.pageToken); return writer; }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.decode = function decode(reader, length) { + SearchChangeHistoryEventsRequest.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.account = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.property = reader.string(); break; case 3: + if (!(message.resourceType && message.resourceType.length)) + message.resourceType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.resourceType.push(reader.int32()); + } else + message.resourceType.push(reader.int32()); + break; + case 4: + if (!(message.action && message.action.length)) + message.action = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.action.push(reader.int32()); + } else + message.action.push(reader.int32()); + break; + case 5: + if (!(message.actorEmail && message.actorEmail.length)) + message.actorEmail = []; + message.actorEmail.push(reader.string()); + break; + case 6: + message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.pageSize = reader.int32(); + break; + case 9: message.pageToken = reader.string(); break; default: @@ -16697,35 +17874,95 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.decodeDelimited = function decodeDelimited(reader) { + SearchChangeHistoryEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. + * Verifies a SearchChangeHistoryEventsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.verify = function verify(message) { + SearchChangeHistoryEventsRequest.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.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) { + if (!Array.isArray(message.resourceType)) + return "resourceType: array expected"; + for (var i = 0; i < message.resourceType.length; ++i) + switch (message.resourceType[i]) { + default: + return "resourceType: enum value[] expected"; + case 0: + case 1: + case 2: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 18: + case 20: + break; + } + } + if (message.action != null && message.hasOwnProperty("action")) { + if (!Array.isArray(message.action)) + return "action: array expected"; + for (var i = 0; i < message.action.length; ++i) + switch (message.action[i]) { + default: + return "action: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.actorEmail != null && message.hasOwnProperty("actorEmail")) { + if (!Array.isArray(message.actorEmail)) + return "actorEmail: array expected"; + for (var i = 0; i < message.actorEmail.length; ++i) + if (!$util.isString(message.actorEmail[i])) + return "actorEmail: string[] expected"; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.earliestChangeTime); + if (error) + return "earliestChangeTime." + error; + } + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.latestChangeTime); + if (error) + return "latestChangeTime." + error; + } if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; @@ -16736,19 +17973,136 @@ }; /** - * Creates a ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} SearchChangeHistoryEventsRequest */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + SearchChangeHistoryEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + if (object.account != null) + message.account = String(object.account); + if (object.property != null) + message.property = String(object.property); + if (object.resourceType) { + if (!Array.isArray(object.resourceType)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.resourceType: array expected"); + message.resourceType = []; + for (var i = 0; i < object.resourceType.length; ++i) + switch (object.resourceType[i]) { + default: + case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType[i] = 0; + break; + case "ACCOUNT": + case 1: + message.resourceType[i] = 1; + break; + case "PROPERTY": + case 2: + message.resourceType[i] = 2; + break; + case "FIREBASE_LINK": + case 6: + message.resourceType[i] = 6; + break; + case "GOOGLE_ADS_LINK": + case 7: + message.resourceType[i] = 7; + break; + case "GOOGLE_SIGNALS_SETTINGS": + case 8: + message.resourceType[i] = 8; + break; + case "CONVERSION_EVENT": + case 9: + message.resourceType[i] = 9; + break; + case "MEASUREMENT_PROTOCOL_SECRET": + case 10: + message.resourceType[i] = 10; + break; + case "CUSTOM_DIMENSION": + case 11: + message.resourceType[i] = 11; + break; + case "CUSTOM_METRIC": + case 12: + message.resourceType[i] = 12; + break; + case "DATA_RETENTION_SETTINGS": + case 13: + message.resourceType[i] = 13; + break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK": + case 14: + message.resourceType[i] = 14; + break; + case "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": + case 15: + message.resourceType[i] = 15; + break; + case "SEARCH_ADS_360_LINK": + case 16: + message.resourceType[i] = 16; + break; + case "DATA_STREAM": + case 18: + message.resourceType[i] = 18; + break; + case "ATTRIBUTION_SETTINGS": + case 20: + message.resourceType[i] = 20; + break; + } + } + if (object.action) { + if (!Array.isArray(object.action)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.action: array expected"); + message.action = []; + for (var i = 0; i < object.action.length; ++i) + switch (object.action[i]) { + default: + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action[i] = 0; + break; + case "CREATED": + case 1: + message.action[i] = 1; + break; + case "UPDATED": + case 2: + message.action[i] = 2; + break; + case "DELETED": + case 3: + message.action[i] = 3; + break; + } + } + if (object.actorEmail) { + if (!Array.isArray(object.actorEmail)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.actorEmail: array expected"); + message.actorEmail = []; + for (var i = 0; i < object.actorEmail.length; ++i) + message.actorEmail[i] = String(object.actorEmail[i]); + } + if (object.earliestChangeTime != null) { + if (typeof object.earliestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.earliestChangeTime: object expected"); + message.earliestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.earliestChangeTime); + } + if (object.latestChangeTime != null) { + if (typeof object.latestChangeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.latestChangeTime: object expected"); + message.latestChangeTime = $root.google.protobuf.Timestamp.fromObject(object.latestChangeTime); + } if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -16757,25 +18111,54 @@ }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchChangeHistoryEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} message SearchChangeHistoryEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.toObject = function toObject(message, options) { + SearchChangeHistoryEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.resourceType = []; + object.action = []; + object.actorEmail = []; + } if (options.defaults) { - object.parent = ""; + object.account = ""; + object.property = ""; + object.earliestChangeTime = null; + object.latestChangeTime = null; object.pageSize = 0; object.pageToken = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.resourceType && message.resourceType.length) { + object.resourceType = []; + for (var j = 0; j < message.resourceType.length; ++j) + object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; + } + if (message.action && message.action.length) { + object.action = []; + for (var j = 0; j < message.action.length; ++j) + object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; + } + if (message.actorEmail && message.actorEmail.length) { + object.actorEmail = []; + for (var j = 0; j < message.actorEmail.length; ++j) + object.actorEmail[j] = message.actorEmail[j]; + } + if (message.earliestChangeTime != null && message.hasOwnProperty("earliestChangeTime")) + object.earliestChangeTime = $root.google.protobuf.Timestamp.toObject(message.earliestChangeTime, options); + if (message.latestChangeTime != null && message.hasOwnProperty("latestChangeTime")) + object.latestChangeTime = $root.google.protobuf.Timestamp.toObject(message.latestChangeTime, options); if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) @@ -16784,39 +18167,39 @@ }; /** - * Converts this ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. + * Converts this SearchChangeHistoryEventsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.toJSON = function toJSON() { + SearchChangeHistoryEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinkProposalsRequest; + return SearchChangeHistoryEventsRequest; })(); - v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse = (function() { + v1alpha.SearchChangeHistoryEventsResponse = (function() { /** - * Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. + * Properties of a SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListDisplayVideo360AdvertiserLinkProposalsResponse - * @property {Array.|null} [displayVideo_360AdvertiserLinkProposals] ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals - * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken + * @interface ISearchChangeHistoryEventsResponse + * @property {Array.|null} [changeHistoryEvents] SearchChangeHistoryEventsResponse changeHistoryEvents + * @property {string|null} [nextPageToken] SearchChangeHistoryEventsResponse nextPageToken */ /** - * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. + * Constructs a new SearchChangeHistoryEventsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. - * @implements IListDisplayVideo360AdvertiserLinkProposalsResponse + * @classdesc Represents a SearchChangeHistoryEventsResponse. + * @implements ISearchChangeHistoryEventsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set */ - function ListDisplayVideo360AdvertiserLinkProposalsResponse(properties) { - this.displayVideo_360AdvertiserLinkProposals = []; + function SearchChangeHistoryEventsResponse(properties) { + this.changeHistoryEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16824,88 +18207,88 @@ } /** - * ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. - * @member {Array.} displayVideo_360AdvertiserLinkProposals - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * SearchChangeHistoryEventsResponse changeHistoryEvents. + * @member {Array.} changeHistoryEvents + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.displayVideo_360AdvertiserLinkProposals = $util.emptyArray; + SearchChangeHistoryEventsResponse.prototype.changeHistoryEvents = $util.emptyArray; /** - * ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. + * SearchChangeHistoryEventsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.nextPageToken = ""; + SearchChangeHistoryEventsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. + * Creates a new SearchChangeHistoryEventsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse instance + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse instance */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.create = function create(properties) { - return new ListDisplayVideo360AdvertiserLinkProposalsResponse(properties); + SearchChangeHistoryEventsResponse.create = function create(properties) { + return new SearchChangeHistoryEventsResponse(properties); }; /** - * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.encode = function encode(message, writer) { + SearchChangeHistoryEventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLinkProposals != null && message.displayVideo_360AdvertiserLinkProposals.length) - for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.changeHistoryEvents != null && message.changeHistoryEvents.length) + for (var i = 0; i < message.changeHistoryEvents.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.encode(message.changeHistoryEvents[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 ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * Encodes the specified SearchChangeHistoryEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchChangeHistoryEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.decode = function decode(reader, length) { + SearchChangeHistoryEventsResponse.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length)) - message.displayVideo_360AdvertiserLinkProposals = []; - message.displayVideo_360AdvertiserLinkProposals.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32())); + if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) + message.changeHistoryEvents = []; + message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -16919,39 +18302,39 @@ }; /** - * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchChangeHistoryEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.decodeDelimited = function decodeDelimited(reader) { + SearchChangeHistoryEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. + * Verifies a SearchChangeHistoryEventsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.verify = function verify(message) { + SearchChangeHistoryEventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLinkProposals != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposals")) { - if (!Array.isArray(message.displayVideo_360AdvertiserLinkProposals)) - return "displayVideo_360AdvertiserLinkProposals: array expected"; - for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposals[i]); + if (message.changeHistoryEvents != null && message.hasOwnProperty("changeHistoryEvents")) { + if (!Array.isArray(message.changeHistoryEvents)) + return "changeHistoryEvents: array expected"; + for (var i = 0; i < message.changeHistoryEvents.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.verify(message.changeHistoryEvents[i]); if (error) - return "displayVideo_360AdvertiserLinkProposals." + error; + return "changeHistoryEvents." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -16961,25 +18344,25 @@ }; /** - * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchChangeHistoryEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @returns {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} SearchChangeHistoryEventsResponse */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + SearchChangeHistoryEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); - if (object.displayVideo_360AdvertiserLinkProposals) { - if (!Array.isArray(object.displayVideo_360AdvertiserLinkProposals)) - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: array expected"); - message.displayVideo_360AdvertiserLinkProposals = []; - for (var i = 0; i < object.displayVideo_360AdvertiserLinkProposals.length; ++i) { - if (typeof object.displayVideo_360AdvertiserLinkProposals[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: object expected"); - message.displayVideo_360AdvertiserLinkProposals[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposals[i]); + var message = new $root.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + if (object.changeHistoryEvents) { + if (!Array.isArray(object.changeHistoryEvents)) + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: array expected"); + message.changeHistoryEvents = []; + for (var i = 0; i < object.changeHistoryEvents.length; ++i) { + if (typeof object.changeHistoryEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.changeHistoryEvents: object expected"); + message.changeHistoryEvents[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.fromObject(object.changeHistoryEvents[i]); } } if (object.nextPageToken != null) @@ -16988,26 +18371,26 @@ }; /** - * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchChangeHistoryEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @static - * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse + * @param {google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} message SearchChangeHistoryEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.toObject = function toObject(message, options) { + SearchChangeHistoryEventsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.displayVideo_360AdvertiserLinkProposals = []; + object.changeHistoryEvents = []; if (options.defaults) object.nextPageToken = ""; - if (message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length) { - object.displayVideo_360AdvertiserLinkProposals = []; - for (var j = 0; j < message.displayVideo_360AdvertiserLinkProposals.length; ++j) - object.displayVideo_360AdvertiserLinkProposals[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposals[j], options); + if (message.changeHistoryEvents && message.changeHistoryEvents.length) { + object.changeHistoryEvents = []; + for (var j = 0; j < message.changeHistoryEvents.length; ++j) + object.changeHistoryEvents[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryEvent.toObject(message.changeHistoryEvents[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -17015,38 +18398,37 @@ }; /** - * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. + * Converts this SearchChangeHistoryEventsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse * @instance * @returns {Object.} JSON object */ - ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.toJSON = function toJSON() { + SearchChangeHistoryEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDisplayVideo360AdvertiserLinkProposalsResponse; + return SearchChangeHistoryEventsResponse; })(); - v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.GetMeasurementProtocolSecretRequest = (function() { /** - * Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a GetMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkProposalRequest parent - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal + * @interface IGetMeasurementProtocolSecretRequest + * @property {string|null} [name] GetMeasurementProtocolSecretRequest name */ /** - * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new GetMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. - * @implements ICreateDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a GetMeasurementProtocolSecretRequest. + * @implements IGetMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function CreateDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function GetMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17054,88 +18436,75 @@ } /** - * CreateDisplayVideo360AdvertiserLinkProposalRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest - * @instance - */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.parent = ""; - - /** - * CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * GetMeasurementProtocolSecretRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @instance */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.displayVideo_360AdvertiserLinkProposal = null; + GetMeasurementProtocolSecretRequest.prototype.name = ""; /** - * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new GetMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest instance */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new CreateDisplayVideo360AdvertiserLinkProposalRequest(properties); + GetMeasurementProtocolSecretRequest.create = function create(properties) { + return new GetMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified GetMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + GetMeasurementProtocolSecretRequest.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.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified GetMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + GetMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -17146,121 +18515,108 @@ }; /** - * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + GetMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a GetMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + GetMeasurementProtocolSecretRequest.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.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); - if (error) - return "displayVideo_360AdvertiserLinkProposal." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} GetMeasurementProtocolSecretRequest */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + GetMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayVideo_360AdvertiserLinkProposal != null) { - if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.displayVideo_360AdvertiserLinkProposal: object expected"); - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); - } + var message = new $root.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} message GetMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + GetMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.displayVideo_360AdvertiserLinkProposal = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) - object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this GetMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + GetMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDisplayVideo360AdvertiserLinkProposalRequest; + return GetMeasurementProtocolSecretRequest; })(); - v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.CreateMeasurementProtocolSecretRequest = (function() { /** - * Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a CreateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkProposalRequest name + * @interface ICreateMeasurementProtocolSecretRequest + * @property {string|null} [parent] CreateMeasurementProtocolSecretRequest parent + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] CreateMeasurementProtocolSecretRequest measurementProtocolSecret */ /** - * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new CreateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. - * @implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a CreateMeasurementProtocolSecretRequest. + * @implements ICreateMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function CreateMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17268,75 +18624,88 @@ } /** - * DeleteDisplayVideo360AdvertiserLinkProposalRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * CreateMeasurementProtocolSecretRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + CreateMeasurementProtocolSecretRequest.prototype.parent = ""; /** - * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * CreateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @instance + */ + CreateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; + + /** + * Creates a new CreateMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest instance */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties); + CreateMeasurementProtocolSecretRequest.create = function create(properties) { + return new CreateMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified CreateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + CreateMeasurementProtocolSecretRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified CreateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + CreateMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17347,107 +18716,121 @@ }; /** - * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + CreateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a CreateMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + CreateMeasurementProtocolSecretRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; + } return null; }; /** - * Creates a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} CreateMeasurementProtocolSecretRequest */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + CreateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } return message; }; /** - * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} message CreateMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + CreateMeasurementProtocolSecretRequest.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 (options.defaults) { + object.parent = ""; + object.measurementProtocolSecret = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); return object; }; /** - * Converts this DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this CreateMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + CreateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDisplayVideo360AdvertiserLinkProposalRequest; + return CreateMeasurementProtocolSecretRequest; })(); - v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.DeleteMeasurementProtocolSecretRequest = (function() { /** - * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a DeleteMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IApproveDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] ApproveDisplayVideo360AdvertiserLinkProposalRequest name + * @interface IDeleteMeasurementProtocolSecretRequest + * @property {string|null} [name] DeleteMeasurementProtocolSecretRequest name */ /** - * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new DeleteMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. - * @implements IApproveDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a DeleteMeasurementProtocolSecretRequest. + * @implements IDeleteMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function DeleteMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17455,35 +18838,35 @@ } /** - * ApproveDisplayVideo360AdvertiserLinkProposalRequest name. + * DeleteMeasurementProtocolSecretRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @instance */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + DeleteMeasurementProtocolSecretRequest.prototype.name = ""; /** - * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * Creates a new DeleteMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest instance */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties); + DeleteMeasurementProtocolSecretRequest.create = function create(properties) { + return new DeleteMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified DeleteMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + DeleteMeasurementProtocolSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -17492,33 +18875,33 @@ }; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified DeleteMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + DeleteMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17534,30 +18917,30 @@ }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a DeleteMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + DeleteMeasurementProtocolSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -17567,32 +18950,32 @@ }; /** - * Creates an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} DeleteMeasurementProtocolSecretRequest */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + DeleteMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} message DeleteMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + DeleteMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -17604,37 +18987,38 @@ }; /** - * Converts this ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this DeleteMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + DeleteMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApproveDisplayVideo360AdvertiserLinkProposalRequest; + return DeleteMeasurementProtocolSecretRequest; })(); - v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse = (function() { + v1alpha.UpdateMeasurementProtocolSecretRequest = (function() { /** - * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * Properties of an UpdateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @interface IApproveDisplayVideo360AdvertiserLinkProposalResponse - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink + * @interface IUpdateMeasurementProtocolSecretRequest + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] UpdateMeasurementProtocolSecretRequest measurementProtocolSecret + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMeasurementProtocolSecretRequest updateMask */ /** - * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * Constructs a new UpdateMeasurementProtocolSecretRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. - * @implements IApproveDisplayVideo360AdvertiserLinkProposalResponse + * @classdesc Represents an UpdateMeasurementProtocolSecretRequest. + * @implements IUpdateMeasurementProtocolSecretRequest * @constructor - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set */ - function ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties) { + function UpdateMeasurementProtocolSecretRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17642,75 +19026,88 @@ } /** - * ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * UpdateMeasurementProtocolSecretRequest measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @instance */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.displayVideo_360AdvertiserLink = null; + UpdateMeasurementProtocolSecretRequest.prototype.measurementProtocolSecret = null; /** - * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. + * UpdateMeasurementProtocolSecretRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @instance + */ + UpdateMeasurementProtocolSecretRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateMeasurementProtocolSecretRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse instance + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest instance */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.create = function create(properties) { - return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties); + UpdateMeasurementProtocolSecretRequest.create = function create(properties) { + return new UpdateMeasurementProtocolSecretRequest(properties); }; /** - * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * Encodes the specified UpdateMeasurementProtocolSecretRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.encode = function encode(message, writer) { + UpdateMeasurementProtocolSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, 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 ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * Encodes the specified UpdateMeasurementProtocolSecretRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateMeasurementProtocolSecretRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.decode = function decode(reader, length) { + UpdateMeasurementProtocolSecretRequest.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.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17721,112 +19118,128 @@ }; /** - * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateMeasurementProtocolSecretRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateMeasurementProtocolSecretRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. + * Verifies an UpdateMeasurementProtocolSecretRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify = function verify(message) { + UpdateMeasurementProtocolSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); if (error) - return "displayVideo_360AdvertiserLink." + error; + return "measurementProtocolSecret." + 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 ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateMeasurementProtocolSecretRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @returns {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} UpdateMeasurementProtocolSecretRequest */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + UpdateMeasurementProtocolSecretRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - if (object.displayVideo_360AdvertiserLink != null) { - if (typeof object.displayVideo_360AdvertiserLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.displayVideo_360AdvertiserLink: object expected"); - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + var message = new $root.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateMeasurementProtocolSecretRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @static - * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @param {google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} message UpdateMeasurementProtocolSecretRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.toObject = function toObject(message, options) { + UpdateMeasurementProtocolSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.displayVideo_360AdvertiserLink = null; - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) - object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (options.defaults) { + object.measurementProtocolSecret = null; + object.updateMask = null; + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. + * Converts this UpdateMeasurementProtocolSecretRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest * @instance * @returns {Object.} JSON object */ - ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.toJSON = function toJSON() { + UpdateMeasurementProtocolSecretRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApproveDisplayVideo360AdvertiserLinkProposalResponse; + return UpdateMeasurementProtocolSecretRequest; })(); - v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest = (function() { + v1alpha.ListMeasurementProtocolSecretsRequest = (function() { /** - * Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. + * Properties of a ListMeasurementProtocolSecretsRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICancelDisplayVideo360AdvertiserLinkProposalRequest - * @property {string|null} [name] CancelDisplayVideo360AdvertiserLinkProposalRequest name + * @interface IListMeasurementProtocolSecretsRequest + * @property {string|null} [parent] ListMeasurementProtocolSecretsRequest parent + * @property {number|null} [pageSize] ListMeasurementProtocolSecretsRequest pageSize + * @property {string|null} [pageToken] ListMeasurementProtocolSecretsRequest pageToken */ /** - * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. + * Constructs a new ListMeasurementProtocolSecretsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. - * @implements ICancelDisplayVideo360AdvertiserLinkProposalRequest + * @classdesc Represents a ListMeasurementProtocolSecretsRequest. + * @implements IListMeasurementProtocolSecretsRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set */ - function CancelDisplayVideo360AdvertiserLinkProposalRequest(properties) { + function ListMeasurementProtocolSecretsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17834,75 +19247,101 @@ } /** - * CancelDisplayVideo360AdvertiserLinkProposalRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * ListMeasurementProtocolSecretsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + ListMeasurementProtocolSecretsRequest.prototype.parent = ""; /** - * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * ListMeasurementProtocolSecretsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @instance + */ + ListMeasurementProtocolSecretsRequest.prototype.pageSize = 0; + + /** + * ListMeasurementProtocolSecretsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @instance + */ + ListMeasurementProtocolSecretsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListMeasurementProtocolSecretsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest instance */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { - return new CancelDisplayVideo360AdvertiserLinkProposalRequest(properties); + ListMeasurementProtocolSecretsRequest.create = function create(properties) { + return new ListMeasurementProtocolSecretsRequest(properties); }; /** - * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.encode = function encode(message, writer) { + ListMeasurementProtocolSecretsRequest.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.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 CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMeasurementProtocolSecretsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.decode = function decode(reader, length) { + ListMeasurementProtocolSecretsRequest.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.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -17913,108 +19352,126 @@ }; /** - * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + ListMeasurementProtocolSecretsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. + * Verifies a ListMeasurementProtocolSecretsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.verify = function verify(message) { + ListMeasurementProtocolSecretsRequest.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.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 CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} ListMeasurementProtocolSecretsRequest */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + ListMeasurementProtocolSecretsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + 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 CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMeasurementProtocolSecretsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @static - * @param {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} message ListMeasurementProtocolSecretsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + ListMeasurementProtocolSecretsRequest.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 (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 CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * Converts this ListMeasurementProtocolSecretsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest * @instance * @returns {Object.} JSON object */ - CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + ListMeasurementProtocolSecretsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelDisplayVideo360AdvertiserLinkProposalRequest; + return ListMeasurementProtocolSecretsRequest; })(); - v1alpha.CreateCustomDimensionRequest = (function() { + v1alpha.ListMeasurementProtocolSecretsResponse = (function() { /** - * Properties of a CreateCustomDimensionRequest. + * Properties of a ListMeasurementProtocolSecretsResponse. * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomDimensionRequest - * @property {string|null} [parent] CreateCustomDimensionRequest parent - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension + * @interface IListMeasurementProtocolSecretsResponse + * @property {Array.|null} [measurementProtocolSecrets] ListMeasurementProtocolSecretsResponse measurementProtocolSecrets + * @property {string|null} [nextPageToken] ListMeasurementProtocolSecretsResponse nextPageToken */ /** - * Constructs a new CreateCustomDimensionRequest. + * Constructs a new ListMeasurementProtocolSecretsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomDimensionRequest. - * @implements ICreateCustomDimensionRequest + * @classdesc Represents a ListMeasurementProtocolSecretsResponse. + * @implements IListMeasurementProtocolSecretsResponse * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set */ - function CreateCustomDimensionRequest(properties) { + function ListMeasurementProtocolSecretsResponse(properties) { + this.measurementProtocolSecrets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18022,88 +19479,91 @@ } /** - * CreateCustomDimensionRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * ListMeasurementProtocolSecretsResponse measurementProtocolSecrets. + * @member {Array.} measurementProtocolSecrets + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance */ - CreateCustomDimensionRequest.prototype.parent = ""; + ListMeasurementProtocolSecretsResponse.prototype.measurementProtocolSecrets = $util.emptyArray; /** - * CreateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * ListMeasurementProtocolSecretsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance */ - CreateCustomDimensionRequest.prototype.customDimension = null; + ListMeasurementProtocolSecretsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * Creates a new ListMeasurementProtocolSecretsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse instance */ - CreateCustomDimensionRequest.create = function create(properties) { - return new CreateCustomDimensionRequest(properties); + ListMeasurementProtocolSecretsResponse.create = function create(properties) { + return new ListMeasurementProtocolSecretsResponse(properties); }; /** - * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encode = function encode(message, writer) { + ListMeasurementProtocolSecretsResponse.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.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.measurementProtocolSecrets != null && message.measurementProtocolSecrets.length) + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecrets[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 CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListMeasurementProtocolSecretsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMeasurementProtocolSecretsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decode = function decode(reader, length) { + ListMeasurementProtocolSecretsResponse.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.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) + message.measurementProtocolSecrets = []; + message.measurementProtocolSecrets.push($root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32())); break; case 2: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -18114,122 +19574,133 @@ }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMeasurementProtocolSecretsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + ListMeasurementProtocolSecretsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomDimensionRequest message. + * Verifies a ListMeasurementProtocolSecretsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomDimensionRequest.verify = function verify(message) { + ListMeasurementProtocolSecretsResponse.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.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; + if (message.measurementProtocolSecrets != null && message.hasOwnProperty("measurementProtocolSecrets")) { + if (!Array.isArray(message.measurementProtocolSecrets)) + return "measurementProtocolSecrets: array expected"; + for (var i = 0; i < message.measurementProtocolSecrets.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecrets[i]); + if (error) + return "measurementProtocolSecrets." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMeasurementProtocolSecretsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} ListMeasurementProtocolSecretsResponse */ - CreateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + ListMeasurementProtocolSecretsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + var message = new $root.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + if (object.measurementProtocolSecrets) { + if (!Array.isArray(object.measurementProtocolSecrets)) + throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: array expected"); + message.measurementProtocolSecrets = []; + for (var i = 0; i < object.measurementProtocolSecrets.length; ++i) { + if (typeof object.measurementProtocolSecrets[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.measurementProtocolSecrets: object expected"); + message.measurementProtocolSecrets[i] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecrets[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMeasurementProtocolSecretsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @static - * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} message ListMeasurementProtocolSecretsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomDimensionRequest.toObject = function toObject(message, options) { + ListMeasurementProtocolSecretsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.customDimension = null; + if (options.arrays || options.defaults) + object.measurementProtocolSecrets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.measurementProtocolSecrets && message.measurementProtocolSecrets.length) { + object.measurementProtocolSecrets = []; + for (var j = 0; j < message.measurementProtocolSecrets.length; ++j) + object.measurementProtocolSecrets[j] = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecrets[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateCustomDimensionRequest to JSON. + * Converts this ListMeasurementProtocolSecretsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse * @instance * @returns {Object.} JSON object */ - CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { + ListMeasurementProtocolSecretsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateCustomDimensionRequest; + return ListMeasurementProtocolSecretsResponse; })(); - v1alpha.UpdateCustomDimensionRequest = (function() { + v1alpha.GetGoogleSignalsSettingsRequest = (function() { /** - * Properties of an UpdateCustomDimensionRequest. + * Properties of a GetGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomDimensionRequest - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask + * @interface IGetGoogleSignalsSettingsRequest + * @property {string|null} [name] GetGoogleSignalsSettingsRequest name */ /** - * Constructs a new UpdateCustomDimensionRequest. + * Constructs a new GetGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomDimensionRequest. - * @implements IUpdateCustomDimensionRequest + * @classdesc Represents a GetGoogleSignalsSettingsRequest. + * @implements IGetGoogleSignalsSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set */ - function UpdateCustomDimensionRequest(properties) { + function GetGoogleSignalsSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18237,88 +19708,75 @@ } /** - * UpdateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest - * @instance - */ - UpdateCustomDimensionRequest.prototype.customDimension = null; - - /** - * UpdateCustomDimensionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * GetGoogleSignalsSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @instance */ - UpdateCustomDimensionRequest.prototype.updateMask = null; + GetGoogleSignalsSettingsRequest.prototype.name = ""; /** - * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * Creates a new GetGoogleSignalsSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest instance */ - UpdateCustomDimensionRequest.create = function create(properties) { - return new UpdateCustomDimensionRequest(properties); + GetGoogleSignalsSettingsRequest.create = function create(properties) { + return new GetGoogleSignalsSettingsRequest(properties); }; /** - * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encode = function encode(message, writer) { + GetGoogleSignalsSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decode = function decode(reader, length) { + GetGoogleSignalsSettingsRequest.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.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -18329,128 +19787,108 @@ }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + GetGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCustomDimensionRequest message. + * Verifies a GetGoogleSignalsSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCustomDimensionRequest.verify = function verify(message) { + GetGoogleSignalsSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} GetGoogleSignalsSettingsRequest */ - UpdateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + GetGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGoogleSignalsSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} message GetGoogleSignalsSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCustomDimensionRequest.toObject = function toObject(message, options) { + GetGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.customDimension = null; - object.updateMask = null; - } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateCustomDimensionRequest to JSON. + * Converts this GetGoogleSignalsSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest * @instance * @returns {Object.} JSON object */ - UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { + GetGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateCustomDimensionRequest; + return GetGoogleSignalsSettingsRequest; })(); - v1alpha.ListCustomDimensionsRequest = (function() { + v1alpha.UpdateGoogleSignalsSettingsRequest = (function() { /** - * Properties of a ListCustomDimensionsRequest. + * Properties of an UpdateGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsRequest - * @property {string|null} [parent] ListCustomDimensionsRequest parent - * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize - * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken + * @interface IUpdateGoogleSignalsSettingsRequest + * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] UpdateGoogleSignalsSettingsRequest googleSignalsSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleSignalsSettingsRequest updateMask */ /** - * Constructs a new ListCustomDimensionsRequest. + * Constructs a new UpdateGoogleSignalsSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsRequest. - * @implements IListCustomDimensionsRequest + * @classdesc Represents an UpdateGoogleSignalsSettingsRequest. + * @implements IUpdateGoogleSignalsSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set */ - function ListCustomDimensionsRequest(properties) { + function UpdateGoogleSignalsSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18458,101 +19896,88 @@ } /** - * ListCustomDimensionsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @instance - */ - ListCustomDimensionsRequest.prototype.parent = ""; - - /** - * ListCustomDimensionsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * UpdateGoogleSignalsSettingsRequest googleSignalsSettings. + * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance */ - ListCustomDimensionsRequest.prototype.pageSize = 0; + UpdateGoogleSignalsSettingsRequest.prototype.googleSignalsSettings = null; /** - * ListCustomDimensionsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * UpdateGoogleSignalsSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance */ - ListCustomDimensionsRequest.prototype.pageToken = ""; + UpdateGoogleSignalsSettingsRequest.prototype.updateMask = null; /** - * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * Creates a new UpdateGoogleSignalsSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest instance */ - ListCustomDimensionsRequest.create = function create(properties) { - return new ListCustomDimensionsRequest(properties); + UpdateGoogleSignalsSettingsRequest.create = function create(properties) { + return new UpdateGoogleSignalsSettingsRequest(properties); }; /** - * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleSignalsSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsRequest.encode = function encode(message, writer) { + UpdateGoogleSignalsSettingsRequest.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.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) + $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, 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 ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * Encodes the specified UpdateGoogleSignalsSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGoogleSignalsSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsRequest.decode = function decode(reader, length) { + UpdateGoogleSignalsSettingsRequest.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.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18563,126 +19988,127 @@ }; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGoogleSignalsSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateGoogleSignalsSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomDimensionsRequest message. + * Verifies an UpdateGoogleSignalsSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomDimensionsRequest.verify = function verify(message) { + UpdateGoogleSignalsSettingsRequest.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.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); + if (error) + return "googleSignalsSettings." + 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 a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGoogleSignalsSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} UpdateGoogleSignalsSettingsRequest */ - ListCustomDimensionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + UpdateGoogleSignalsSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + if (object.googleSignalsSettings != null) { + if (typeof object.googleSignalsSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.googleSignalsSettings: object expected"); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGoogleSignalsSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest + * @param {google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} message UpdateGoogleSignalsSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomDimensionsRequest.toObject = function toObject(message, options) { + UpdateGoogleSignalsSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.googleSignalsSettings = null; + object.updateMask = 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.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) + object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListCustomDimensionsRequest to JSON. + * Converts this UpdateGoogleSignalsSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest * @instance * @returns {Object.} JSON object */ - ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { + UpdateGoogleSignalsSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomDimensionsRequest; + return UpdateGoogleSignalsSettingsRequest; })(); - v1alpha.ListCustomDimensionsResponse = (function() { + v1alpha.CreateConversionEventRequest = (function() { /** - * Properties of a ListCustomDimensionsResponse. + * Properties of a CreateConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsResponse - * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions - * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken + * @interface ICreateConversionEventRequest + * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] CreateConversionEventRequest conversionEvent + * @property {string|null} [parent] CreateConversionEventRequest parent */ /** - * Constructs a new ListCustomDimensionsResponse. + * Constructs a new CreateConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsResponse. - * @implements IListCustomDimensionsResponse + * @classdesc Represents a CreateConversionEventRequest. + * @implements ICreateConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set */ - function ListCustomDimensionsResponse(properties) { - this.customDimensions = []; + function CreateConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18690,91 +20116,88 @@ } /** - * ListCustomDimensionsResponse customDimensions. - * @member {Array.} customDimensions - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * CreateConversionEventRequest conversionEvent. + * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance */ - ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; + CreateConversionEventRequest.prototype.conversionEvent = null; /** - * ListCustomDimensionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * CreateConversionEventRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance */ - ListCustomDimensionsResponse.prototype.nextPageToken = ""; + CreateConversionEventRequest.prototype.parent = ""; /** - * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * Creates a new CreateConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest instance */ - ListCustomDimensionsResponse.create = function create(properties) { - return new ListCustomDimensionsResponse(properties); + CreateConversionEventRequest.create = function create(properties) { + return new CreateConversionEventRequest(properties); }; /** - * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * Encodes the specified CreateConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsResponse.encode = function encode(message, writer) { + CreateConversionEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customDimensions != null && message.customDimensions.length) - for (var i = 0; i < message.customDimensions.length; ++i) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); return writer; }; /** - * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * Encodes the specified CreateConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateConversionEventRequest} message CreateConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsResponse.decode = function decode(reader, length) { + CreateConversionEventRequest.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.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.customDimensions && message.customDimensions.length)) - message.customDimensions = []; - message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -18785,133 +20208,121 @@ }; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomDimensionsResponse message. + * Verifies a CreateConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomDimensionsResponse.verify = function verify(message) { + CreateConversionEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { - if (!Array.isArray(message.customDimensions)) - return "customDimensions: array expected"; - for (var i = 0; i < message.customDimensions.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); - if (error) - return "customDimensions." + error; - } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateConversionEventRequest} CreateConversionEventRequest */ - ListCustomDimensionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + CreateConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); - if (object.customDimensions) { - if (!Array.isArray(object.customDimensions)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); - message.customDimensions = []; - for (var i = 0; i < object.customDimensions.length; ++i) { - if (typeof object.customDimensions[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); - message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateConversionEventRequest(); + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateConversionEventRequest.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse + * @param {google.analytics.admin.v1alpha.CreateConversionEventRequest} message CreateConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomDimensionsResponse.toObject = function toObject(message, options) { + CreateConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.customDimensions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customDimensions && message.customDimensions.length) { - object.customDimensions = []; - for (var j = 0; j < message.customDimensions.length; ++j) - object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); + if (options.defaults) { + object.conversionEvent = null; + object.parent = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) + object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this ListCustomDimensionsResponse to JSON. + * Converts this CreateConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest * @instance * @returns {Object.} JSON object */ - ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { + CreateConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomDimensionsResponse; + return CreateConversionEventRequest; })(); - v1alpha.ArchiveCustomDimensionRequest = (function() { + v1alpha.GetConversionEventRequest = (function() { /** - * Properties of an ArchiveCustomDimensionRequest. + * Properties of a GetConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomDimensionRequest - * @property {string|null} [name] ArchiveCustomDimensionRequest name + * @interface IGetConversionEventRequest + * @property {string|null} [name] GetConversionEventRequest name */ /** - * Constructs a new ArchiveCustomDimensionRequest. + * Constructs a new GetConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomDimensionRequest. - * @implements IArchiveCustomDimensionRequest + * @classdesc Represents a GetConversionEventRequest. + * @implements IGetConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set */ - function ArchiveCustomDimensionRequest(properties) { + function GetConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18919,35 +20330,35 @@ } /** - * ArchiveCustomDimensionRequest name. + * GetConversionEventRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @instance */ - ArchiveCustomDimensionRequest.prototype.name = ""; + GetConversionEventRequest.prototype.name = ""; /** - * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * Creates a new GetConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest instance */ - ArchiveCustomDimensionRequest.create = function create(properties) { - return new ArchiveCustomDimensionRequest(properties); + GetConversionEventRequest.create = function create(properties) { + return new GetConversionEventRequest(properties); }; /** - * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomDimensionRequest.encode = function encode(message, writer) { + GetConversionEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -18956,33 +20367,33 @@ }; /** - * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetConversionEventRequest} message GetConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomDimensionRequest.decode = function decode(reader, length) { + GetConversionEventRequest.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.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18998,30 +20409,30 @@ }; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + GetConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ArchiveCustomDimensionRequest message. + * Verifies a GetConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArchiveCustomDimensionRequest.verify = function verify(message) { + GetConversionEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -19031,32 +20442,32 @@ }; /** - * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetConversionEventRequest} GetConversionEventRequest */ - ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + GetConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetConversionEventRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.GetConversionEventRequest} message GetConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ArchiveCustomDimensionRequest.toObject = function toObject(message, options) { + GetConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19068,37 +20479,37 @@ }; /** - * Converts this ArchiveCustomDimensionRequest to JSON. + * Converts this GetConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest * @instance * @returns {Object.} JSON object */ - ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { + GetConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ArchiveCustomDimensionRequest; + return GetConversionEventRequest; })(); - v1alpha.GetCustomDimensionRequest = (function() { + v1alpha.DeleteConversionEventRequest = (function() { /** - * Properties of a GetCustomDimensionRequest. + * Properties of a DeleteConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomDimensionRequest - * @property {string|null} [name] GetCustomDimensionRequest name + * @interface IDeleteConversionEventRequest + * @property {string|null} [name] DeleteConversionEventRequest name */ /** - * Constructs a new GetCustomDimensionRequest. + * Constructs a new DeleteConversionEventRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomDimensionRequest. - * @implements IGetCustomDimensionRequest + * @classdesc Represents a DeleteConversionEventRequest. + * @implements IDeleteConversionEventRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set */ - function GetCustomDimensionRequest(properties) { + function DeleteConversionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19106,35 +20517,35 @@ } /** - * GetCustomDimensionRequest name. + * DeleteConversionEventRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @instance */ - GetCustomDimensionRequest.prototype.name = ""; + DeleteConversionEventRequest.prototype.name = ""; /** - * Creates a new GetCustomDimensionRequest instance using the specified properties. + * Creates a new DeleteConversionEventRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest instance */ - GetCustomDimensionRequest.create = function create(properties) { - return new GetCustomDimensionRequest(properties); + DeleteConversionEventRequest.create = function create(properties) { + return new DeleteConversionEventRequest(properties); }; /** - * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * Encodes the specified DeleteConversionEventRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomDimensionRequest.encode = function encode(message, writer) { + DeleteConversionEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -19143,33 +20554,33 @@ }; /** - * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * Encodes the specified DeleteConversionEventRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteConversionEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteConversionEventRequest} message DeleteConversionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteConversionEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomDimensionRequest.decode = function decode(reader, length) { + DeleteConversionEventRequest.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.analytics.admin.v1alpha.GetCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19185,30 +20596,30 @@ }; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteConversionEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteConversionEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomDimensionRequest message. + * Verifies a DeleteConversionEventRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomDimensionRequest.verify = function verify(message) { + DeleteConversionEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -19218,32 +20629,32 @@ }; /** - * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteConversionEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteConversionEventRequest} DeleteConversionEventRequest */ - GetCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) + DeleteConversionEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteConversionEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @static - * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.DeleteConversionEventRequest} message DeleteConversionEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomDimensionRequest.toObject = function toObject(message, options) { + DeleteConversionEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19255,38 +20666,39 @@ }; /** - * Converts this GetCustomDimensionRequest to JSON. + * Converts this DeleteConversionEventRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest * @instance * @returns {Object.} JSON object */ - GetCustomDimensionRequest.prototype.toJSON = function toJSON() { + DeleteConversionEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCustomDimensionRequest; + return DeleteConversionEventRequest; })(); - v1alpha.CreateCustomMetricRequest = (function() { + v1alpha.ListConversionEventsRequest = (function() { /** - * Properties of a CreateCustomMetricRequest. + * Properties of a ListConversionEventsRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomMetricRequest - * @property {string|null} [parent] CreateCustomMetricRequest parent - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric + * @interface IListConversionEventsRequest + * @property {string|null} [parent] ListConversionEventsRequest parent + * @property {number|null} [pageSize] ListConversionEventsRequest pageSize + * @property {string|null} [pageToken] ListConversionEventsRequest pageToken */ /** - * Constructs a new CreateCustomMetricRequest. + * Constructs a new ListConversionEventsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomMetricRequest. - * @implements ICreateCustomMetricRequest + * @classdesc Represents a ListConversionEventsRequest. + * @implements IListConversionEventsRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set */ - function CreateCustomMetricRequest(properties) { + function ListConversionEventsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19294,80 +20706,90 @@ } /** - * CreateCustomMetricRequest parent. + * ListConversionEventsRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance */ - CreateCustomMetricRequest.prototype.parent = ""; + ListConversionEventsRequest.prototype.parent = ""; /** - * CreateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * ListConversionEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance */ - CreateCustomMetricRequest.prototype.customMetric = null; + ListConversionEventsRequest.prototype.pageSize = 0; /** - * Creates a new CreateCustomMetricRequest instance using the specified properties. + * ListConversionEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @instance + */ + ListConversionEventsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListConversionEventsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest instance */ - CreateCustomMetricRequest.create = function create(properties) { - return new CreateCustomMetricRequest(properties); + ListConversionEventsRequest.create = function create(properties) { + return new ListConversionEventsRequest(properties); }; /** - * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * Encodes the specified ListConversionEventsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomMetricRequest.encode = function encode(message, writer) { + ListConversionEventsRequest.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.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * Encodes the specified ListConversionEventsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsRequest} message ListConversionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListConversionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomMetricRequest.decode = function decode(reader, length) { + ListConversionEventsRequest.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.analytics.admin.v1alpha.CreateCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19375,7 +20797,10 @@ message.parent = reader.string(); break; case 2: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19386,122 +20811,126 @@ }; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + ListConversionEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomMetricRequest message. + * Verifies a ListConversionEventsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomMetricRequest.verify = function verify(message) { + ListConversionEventsRequest.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.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + error; - } + 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 CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsRequest} ListConversionEventsRequest */ - CreateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) + ListConversionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } + 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 CreateCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListConversionEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @static - * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest + * @param {google.analytics.admin.v1alpha.ListConversionEventsRequest} message ListConversionEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomMetricRequest.toObject = function toObject(message, options) { + ListConversionEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.customMetric = null; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + 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 CreateCustomMetricRequest to JSON. + * Converts this ListConversionEventsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest * @instance * @returns {Object.} JSON object */ - CreateCustomMetricRequest.prototype.toJSON = function toJSON() { + ListConversionEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateCustomMetricRequest; + return ListConversionEventsRequest; })(); - v1alpha.UpdateCustomMetricRequest = (function() { + v1alpha.ListConversionEventsResponse = (function() { /** - * Properties of an UpdateCustomMetricRequest. + * Properties of a ListConversionEventsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomMetricRequest - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask + * @interface IListConversionEventsResponse + * @property {Array.|null} [conversionEvents] ListConversionEventsResponse conversionEvents + * @property {string|null} [nextPageToken] ListConversionEventsResponse nextPageToken */ /** - * Constructs a new UpdateCustomMetricRequest. + * Constructs a new ListConversionEventsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomMetricRequest. - * @implements IUpdateCustomMetricRequest + * @classdesc Represents a ListConversionEventsResponse. + * @implements IListConversionEventsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set */ - function UpdateCustomMetricRequest(properties) { + function ListConversionEventsResponse(properties) { + this.conversionEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19509,88 +20938,91 @@ } /** - * UpdateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * ListConversionEventsResponse conversionEvents. + * @member {Array.} conversionEvents + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance */ - UpdateCustomMetricRequest.prototype.customMetric = null; + ListConversionEventsResponse.prototype.conversionEvents = $util.emptyArray; /** - * UpdateCustomMetricRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * ListConversionEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance */ - UpdateCustomMetricRequest.prototype.updateMask = null; + ListConversionEventsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * Creates a new ListConversionEventsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse instance */ - UpdateCustomMetricRequest.create = function create(properties) { - return new UpdateCustomMetricRequest(properties); + ListConversionEventsResponse.create = function create(properties) { + return new ListConversionEventsResponse(properties); }; /** - * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * Encodes the specified ListConversionEventsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomMetricRequest.encode = function encode(message, writer) { + ListConversionEventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.conversionEvents != null && message.conversionEvents.length) + for (var i = 0; i < message.conversionEvents.length; ++i) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvents[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 UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * Encodes the specified ListConversionEventsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListConversionEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListConversionEventsResponse} message ListConversionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListConversionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomMetricRequest.decode = function decode(reader, length) { + ListConversionEventsResponse.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.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + if (!(message.conversionEvents && message.conversionEvents.length)) + message.conversionEvents = []; + message.conversionEvents.push($root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19601,128 +21033,133 @@ }; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a ListConversionEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + ListConversionEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCustomMetricRequest message. + * Verifies a ListConversionEventsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCustomMetricRequest.verify = function verify(message) { + ListConversionEventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.conversionEvents != null && message.hasOwnProperty("conversionEvents")) { + if (!Array.isArray(message.conversionEvents)) + return "conversionEvents: array expected"; + for (var i = 0; i < message.conversionEvents.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvents[i]); + if (error) + return "conversionEvents." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListConversionEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ListConversionEventsResponse} ListConversionEventsResponse */ - UpdateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + ListConversionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListConversionEventsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.ListConversionEventsResponse(); + if (object.conversionEvents) { + if (!Array.isArray(object.conversionEvents)) + throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: array expected"); + message.conversionEvents = []; + for (var i = 0; i < object.conversionEvents.length; ++i) { + if (typeof object.conversionEvents[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListConversionEventsResponse.conversionEvents: object expected"); + message.conversionEvents[i] = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvents[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListConversionEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest + * @param {google.analytics.admin.v1alpha.ListConversionEventsResponse} message ListConversionEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCustomMetricRequest.toObject = function toObject(message, options) { + ListConversionEventsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.customMetric = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.conversionEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.conversionEvents && message.conversionEvents.length) { + object.conversionEvents = []; + for (var j = 0; j < message.conversionEvents.length; ++j) + object.conversionEvents[j] = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvents[j], options); } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateCustomMetricRequest to JSON. + * Converts this ListConversionEventsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse * @instance * @returns {Object.} JSON object */ - UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { + ListConversionEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateCustomMetricRequest; + return ListConversionEventsResponse; })(); - v1alpha.ListCustomMetricsRequest = (function() { + v1alpha.GetDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of a ListCustomMetricsRequest. + * Properties of a GetDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsRequest - * @property {string|null} [parent] ListCustomMetricsRequest parent - * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize - * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken + * @interface IGetDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkRequest name */ /** - * Constructs a new ListCustomMetricsRequest. + * Constructs a new GetDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsRequest. - * @implements IListCustomMetricsRequest + * @classdesc Represents a GetDisplayVideo360AdvertiserLinkRequest. + * @implements IGetDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function ListCustomMetricsRequest(properties) { + function GetDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19730,51 +21167,240 @@ } /** - * ListCustomMetricsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * GetDisplayVideo360AdvertiserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest * @instance */ - ListCustomMetricsRequest.prototype.parent = ""; + GetDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; /** - * ListCustomMetricsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @instance + * Creates a new GetDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest instance */ - ListCustomMetricsRequest.prototype.pageSize = 0; + GetDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new GetDisplayVideo360AdvertiserLinkRequest(properties); + }; /** - * ListCustomMetricsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest - * @instance + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsRequest.prototype.pageToken = ""; - + GetDisplayVideo360AdvertiserLinkRequest.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; + }; + /** - * Creates a new ListCustomMetricsRequest instance using the specified properties. + * Encodes the specified GetDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + 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 GetDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDisplayVideo360AdvertiserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDisplayVideo360AdvertiserLinkRequest.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 GetDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} GetDisplayVideo360AdvertiserLinkRequest + */ + GetDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} message GetDisplayVideo360AdvertiserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDisplayVideo360AdvertiserLinkRequest.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 GetDisplayVideo360AdvertiserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + GetDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDisplayVideo360AdvertiserLinkRequest; + })(); + + v1alpha.ListDisplayVideo360AdvertiserLinksRequest = (function() { + + /** + * Properties of a ListDisplayVideo360AdvertiserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListDisplayVideo360AdvertiserLinksRequest + * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinksRequest parent + * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinksRequest pageSize + * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinksRequest pageToken + */ + + /** + * Constructs a new ListDisplayVideo360AdvertiserLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListDisplayVideo360AdvertiserLinksRequest. + * @implements IListDisplayVideo360AdvertiserLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set + */ + function ListDisplayVideo360AdvertiserLinksRequest(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]]; + } + + /** + * ListDisplayVideo360AdvertiserLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinksRequest.prototype.parent = ""; + + /** + * ListDisplayVideo360AdvertiserLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinksRequest.prototype.pageSize = 0; + + /** + * ListDisplayVideo360AdvertiserLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDisplayVideo360AdvertiserLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest instance */ - ListCustomMetricsRequest.create = function create(properties) { - return new ListCustomMetricsRequest(properties); + ListDisplayVideo360AdvertiserLinksRequest.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinksRequest(properties); }; /** - * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsRequest.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -19787,33 +21413,33 @@ }; /** - * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsRequest.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinksRequest.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.analytics.admin.v1alpha.ListCustomMetricsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19835,30 +21461,30 @@ }; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomMetricsRequest message. + * Verifies a ListDisplayVideo360AdvertiserLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomMetricsRequest.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -19874,17 +21500,17 @@ }; /** - * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} ListDisplayVideo360AdvertiserLinksRequest */ - ListCustomMetricsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) + ListDisplayVideo360AdvertiserLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -19895,15 +21521,15 @@ }; /** - * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} message ListDisplayVideo360AdvertiserLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomMetricsRequest.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19922,39 +21548,39 @@ }; /** - * Converts this ListCustomMetricsRequest to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest * @instance * @returns {Object.} JSON object */ - ListCustomMetricsRequest.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomMetricsRequest; + return ListDisplayVideo360AdvertiserLinksRequest; })(); - v1alpha.ListCustomMetricsResponse = (function() { + v1alpha.ListDisplayVideo360AdvertiserLinksResponse = (function() { /** - * Properties of a ListCustomMetricsResponse. + * Properties of a ListDisplayVideo360AdvertiserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsResponse - * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics - * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken + * @interface IListDisplayVideo360AdvertiserLinksResponse + * @property {Array.|null} [displayVideo_360AdvertiserLinks] ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks + * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinksResponse nextPageToken */ /** - * Constructs a new ListCustomMetricsResponse. + * Constructs a new ListDisplayVideo360AdvertiserLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsResponse. - * @implements IListCustomMetricsResponse + * @classdesc Represents a ListDisplayVideo360AdvertiserLinksResponse. + * @implements IListDisplayVideo360AdvertiserLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set */ - function ListCustomMetricsResponse(properties) { - this.customMetrics = []; + function ListDisplayVideo360AdvertiserLinksResponse(properties) { + this.displayVideo_360AdvertiserLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19962,88 +21588,88 @@ } /** - * ListCustomMetricsResponse customMetrics. - * @member {Array.} customMetrics - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * ListDisplayVideo360AdvertiserLinksResponse displayVideo_360AdvertiserLinks. + * @member {Array.} displayVideo_360AdvertiserLinks + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance */ - ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; + ListDisplayVideo360AdvertiserLinksResponse.prototype.displayVideo_360AdvertiserLinks = $util.emptyArray; /** - * ListCustomMetricsResponse nextPageToken. + * ListDisplayVideo360AdvertiserLinksResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance */ - ListCustomMetricsResponse.prototype.nextPageToken = ""; + ListDisplayVideo360AdvertiserLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomMetricsResponse instance using the specified properties. + * Creates a new ListDisplayVideo360AdvertiserLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse instance */ - ListCustomMetricsResponse.create = function create(properties) { - return new ListCustomMetricsResponse(properties); + ListDisplayVideo360AdvertiserLinksResponse.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinksResponse(properties); }; /** - * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsResponse.encode = function encode(message, writer) { + ListDisplayVideo360AdvertiserLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customMetrics != null && message.customMetrics.length) - for (var i = 0; i < message.customMetrics.length; ++i) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.displayVideo_360AdvertiserLinks != null && message.displayVideo_360AdvertiserLinks.length) + for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLinks[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 ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * Encodes the specified ListDisplayVideo360AdvertiserLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDisplayVideo360AdvertiserLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsResponse.decode = function decode(reader, length) { + ListDisplayVideo360AdvertiserLinksResponse.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.analytics.admin.v1alpha.ListCustomMetricsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.customMetrics && message.customMetrics.length)) - message.customMetrics = []; - message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); + if (!(message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length)) + message.displayVideo_360AdvertiserLinks = []; + message.displayVideo_360AdvertiserLinks.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -20057,39 +21683,39 @@ }; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDisplayVideo360AdvertiserLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDisplayVideo360AdvertiserLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomMetricsResponse message. + * Verifies a ListDisplayVideo360AdvertiserLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomMetricsResponse.verify = function verify(message) { + ListDisplayVideo360AdvertiserLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { - if (!Array.isArray(message.customMetrics)) - return "customMetrics: array expected"; - for (var i = 0; i < message.customMetrics.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); + if (message.displayVideo_360AdvertiserLinks != null && message.hasOwnProperty("displayVideo_360AdvertiserLinks")) { + if (!Array.isArray(message.displayVideo_360AdvertiserLinks)) + return "displayVideo_360AdvertiserLinks: array expected"; + for (var i = 0; i < message.displayVideo_360AdvertiserLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLinks[i]); if (error) - return "customMetrics." + error; + return "displayVideo_360AdvertiserLinks." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -20099,25 +21725,25 @@ }; /** - * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDisplayVideo360AdvertiserLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} ListDisplayVideo360AdvertiserLinksResponse */ - ListCustomMetricsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) + ListDisplayVideo360AdvertiserLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); - if (object.customMetrics) { - if (!Array.isArray(object.customMetrics)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); - message.customMetrics = []; - for (var i = 0; i < object.customMetrics.length; ++i) { - if (typeof object.customMetrics[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); - message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); + if (object.displayVideo_360AdvertiserLinks) { + if (!Array.isArray(object.displayVideo_360AdvertiserLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: array expected"); + message.displayVideo_360AdvertiserLinks = []; + for (var i = 0; i < object.displayVideo_360AdvertiserLinks.length; ++i) { + if (typeof object.displayVideo_360AdvertiserLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.displayVideo_360AdvertiserLinks: object expected"); + message.displayVideo_360AdvertiserLinks[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLinks[i]); } } if (object.nextPageToken != null) @@ -20126,26 +21752,26 @@ }; /** - * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDisplayVideo360AdvertiserLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} message ListDisplayVideo360AdvertiserLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomMetricsResponse.toObject = function toObject(message, options) { + ListDisplayVideo360AdvertiserLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.customMetrics = []; + object.displayVideo_360AdvertiserLinks = []; if (options.defaults) object.nextPageToken = ""; - if (message.customMetrics && message.customMetrics.length) { - object.customMetrics = []; - for (var j = 0; j < message.customMetrics.length; ++j) - object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); + if (message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length) { + object.displayVideo_360AdvertiserLinks = []; + for (var j = 0; j < message.displayVideo_360AdvertiserLinks.length; ++j) + object.displayVideo_360AdvertiserLinks[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLinks[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -20153,37 +21779,38 @@ }; /** - * Converts this ListCustomMetricsResponse to JSON. + * Converts this ListDisplayVideo360AdvertiserLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse * @instance * @returns {Object.} JSON object */ - ListCustomMetricsResponse.prototype.toJSON = function toJSON() { + ListDisplayVideo360AdvertiserLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomMetricsResponse; + return ListDisplayVideo360AdvertiserLinksResponse; })(); - v1alpha.ArchiveCustomMetricRequest = (function() { + v1alpha.CreateDisplayVideo360AdvertiserLinkRequest = (function() { /** - * Properties of an ArchiveCustomMetricRequest. + * Properties of a CreateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomMetricRequest - * @property {string|null} [name] ArchiveCustomMetricRequest name + * @interface ICreateDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkRequest parent + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink */ /** - * Constructs a new ArchiveCustomMetricRequest. + * Constructs a new CreateDisplayVideo360AdvertiserLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomMetricRequest. - * @implements IArchiveCustomMetricRequest + * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkRequest. + * @implements ICreateDisplayVideo360AdvertiserLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set */ - function ArchiveCustomMetricRequest(properties) { + function CreateDisplayVideo360AdvertiserLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20191,77 +21818,90 @@ } /** - * ArchiveCustomMetricRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * CreateDisplayVideo360AdvertiserLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @instance */ - ArchiveCustomMetricRequest.prototype.name = ""; + CreateDisplayVideo360AdvertiserLinkRequest.prototype.parent = ""; /** - * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * CreateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @instance + */ + CreateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; + + /** + * Creates a new CreateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest instance */ - ArchiveCustomMetricRequest.create = function create(properties) { - return new ArchiveCustomMetricRequest(properties); + CreateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new CreateDisplayVideo360AdvertiserLinkRequest(properties); }; /** - * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomMetricRequest.encode = function encode(message, writer) { + CreateDisplayVideo360AdvertiserLinkRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * Encodes the specified CreateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomMetricRequest.decode = function decode(reader, length) { + CreateDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; - default: + case 2: + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + default: reader.skipType(tag & 7); break; } @@ -20270,107 +21910,9701 @@ }; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + CreateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateDisplayVideo360AdvertiserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDisplayVideo360AdvertiserLinkRequest.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.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + error; + } + return null; + }; + + /** + * Creates a CreateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} CreateDisplayVideo360AdvertiserLinkRequest + */ + CreateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } + return message; + }; + + /** + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} message CreateDisplayVideo360AdvertiserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.displayVideo_360AdvertiserLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + return object; + }; + + /** + * Converts this CreateDisplayVideo360AdvertiserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + CreateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateDisplayVideo360AdvertiserLinkRequest; + })(); + + v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest = (function() { + + /** + * Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteDisplayVideo360AdvertiserLinkRequest + * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkRequest name + */ + + /** + * Constructs a new DeleteDisplayVideo360AdvertiserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkRequest. + * @implements IDeleteDisplayVideo360AdvertiserLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + */ + function DeleteDisplayVideo360AdvertiserLinkRequest(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]]; + } + + /** + * DeleteDisplayVideo360AdvertiserLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @instance + */ + DeleteDisplayVideo360AdvertiserLinkRequest.prototype.name = ""; + + /** + * Creates a new DeleteDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest instance + */ + DeleteDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new DeleteDisplayVideo360AdvertiserLinkRequest(properties); + }; + + /** + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDisplayVideo360AdvertiserLinkRequest.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 DeleteDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); + 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 DeleteDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDisplayVideo360AdvertiserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDisplayVideo360AdvertiserLinkRequest.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 DeleteDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} DeleteDisplayVideo360AdvertiserLinkRequest + */ + DeleteDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} message DeleteDisplayVideo360AdvertiserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDisplayVideo360AdvertiserLinkRequest.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 DeleteDisplayVideo360AdvertiserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteDisplayVideo360AdvertiserLinkRequest; + })(); + + v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest = (function() { + + /** + * Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateDisplayVideo360AdvertiserLinkRequest + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDisplayVideo360AdvertiserLinkRequest updateMask + */ + + /** + * Constructs a new UpdateDisplayVideo360AdvertiserLinkRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateDisplayVideo360AdvertiserLinkRequest. + * @implements IUpdateDisplayVideo360AdvertiserLinkRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + */ + function UpdateDisplayVideo360AdvertiserLinkRequest(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]]; + } + + /** + * UpdateDisplayVideo360AdvertiserLinkRequest displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @instance + */ + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.displayVideo_360AdvertiserLink = null; + + /** + * UpdateDisplayVideo360AdvertiserLinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @instance + */ + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDisplayVideo360AdvertiserLinkRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest instance + */ + UpdateDisplayVideo360AdvertiserLinkRequest.create = function create(properties) { + return new UpdateDisplayVideo360AdvertiserLinkRequest(properties); + }; + + /** + * Encodes the specified UpdateDisplayVideo360AdvertiserLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDisplayVideo360AdvertiserLinkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, 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 UpdateDisplayVideo360AdvertiserLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDisplayVideo360AdvertiserLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDisplayVideo360AdvertiserLinkRequest.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.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.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 UpdateDisplayVideo360AdvertiserLinkRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDisplayVideo360AdvertiserLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies an ArchiveCustomMetricRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArchiveCustomMetricRequest.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; - }; + /** + * Verifies an UpdateDisplayVideo360AdvertiserLinkRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateDisplayVideo360AdvertiserLinkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + 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 UpdateDisplayVideo360AdvertiserLinkRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} UpdateDisplayVideo360AdvertiserLinkRequest + */ + UpdateDisplayVideo360AdvertiserLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateDisplayVideo360AdvertiserLinkRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} message UpdateDisplayVideo360AdvertiserLinkRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateDisplayVideo360AdvertiserLinkRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayVideo_360AdvertiserLink = null; + object.updateMask = null; + } + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateDisplayVideo360AdvertiserLinkRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateDisplayVideo360AdvertiserLinkRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateDisplayVideo360AdvertiserLinkRequest; + })(); + + v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest = (function() { + + /** + * Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] GetDisplayVideo360AdvertiserLinkProposalRequest name + */ + + /** + * Constructs a new GetDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IGetDisplayVideo360AdvertiserLinkProposalRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + */ + function GetDisplayVideo360AdvertiserLinkProposalRequest(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]]; + } + + /** + * GetDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @instance + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + + /** + * Creates a new GetDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest instance + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new GetDisplayVideo360AdvertiserLinkProposalRequest(properties); + }; + + /** + * Encodes the specified GetDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.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 GetDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + 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 GetDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDisplayVideo360AdvertiserLinkProposalRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.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 GetDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} GetDisplayVideo360AdvertiserLinkProposalRequest + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} message GetDisplayVideo360AdvertiserLinkProposalRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.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 GetDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @instance + * @returns {Object.} JSON object + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDisplayVideo360AdvertiserLinkProposalRequest; + })(); + + v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest = (function() { + + /** + * Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListDisplayVideo360AdvertiserLinkProposalsRequest + * @property {string|null} [parent] ListDisplayVideo360AdvertiserLinkProposalsRequest parent + * @property {number|null} [pageSize] ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize + * @property {string|null} [pageToken] ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken + */ + + /** + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsRequest. + * @implements IListDisplayVideo360AdvertiserLinkProposalsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set + */ + function ListDisplayVideo360AdvertiserLinkProposalsRequest(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]]; + } + + /** + * ListDisplayVideo360AdvertiserLinkProposalsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.parent = ""; + + /** + * ListDisplayVideo360AdvertiserLinkProposalsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageSize = 0; + + /** + * ListDisplayVideo360AdvertiserLinkProposalsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @instance + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest instance + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinkProposalsRequest(properties); + }; + + /** + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.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 ListDisplayVideo360AdvertiserLinkProposalsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); + 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 ListDisplayVideo360AdvertiserLinkProposalsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.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 ListDisplayVideo360AdvertiserLinkProposalsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} ListDisplayVideo360AdvertiserLinkProposalsRequest + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); + 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 ListDisplayVideo360AdvertiserLinkProposalsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} message ListDisplayVideo360AdvertiserLinkProposalsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.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 ListDisplayVideo360AdvertiserLinkProposalsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @instance + * @returns {Object.} JSON object + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListDisplayVideo360AdvertiserLinkProposalsRequest; + })(); + + v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse = (function() { + + /** + * Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListDisplayVideo360AdvertiserLinkProposalsResponse + * @property {Array.|null} [displayVideo_360AdvertiserLinkProposals] ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals + * @property {string|null} [nextPageToken] ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken + */ + + /** + * Constructs a new ListDisplayVideo360AdvertiserLinkProposalsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListDisplayVideo360AdvertiserLinkProposalsResponse. + * @implements IListDisplayVideo360AdvertiserLinkProposalsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set + */ + function ListDisplayVideo360AdvertiserLinkProposalsResponse(properties) { + this.displayVideo_360AdvertiserLinkProposals = []; + 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]]; + } + + /** + * ListDisplayVideo360AdvertiserLinkProposalsResponse displayVideo_360AdvertiserLinkProposals. + * @member {Array.} displayVideo_360AdvertiserLinkProposals + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @instance + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.displayVideo_360AdvertiserLinkProposals = $util.emptyArray; + + /** + * ListDisplayVideo360AdvertiserLinkProposalsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @instance + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDisplayVideo360AdvertiserLinkProposalsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse instance + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.create = function create(properties) { + return new ListDisplayVideo360AdvertiserLinkProposalsResponse(properties); + }; + + /** + * Encodes the specified ListDisplayVideo360AdvertiserLinkProposalsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayVideo_360AdvertiserLinkProposals != null && message.displayVideo_360AdvertiserLinkProposals.length) + for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposals[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 ListDisplayVideo360AdvertiserLinkProposalsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.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.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length)) + message.displayVideo_360AdvertiserLinkProposals = []; + message.displayVideo_360AdvertiserLinkProposals.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDisplayVideo360AdvertiserLinkProposalsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDisplayVideo360AdvertiserLinkProposalsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayVideo_360AdvertiserLinkProposals != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposals")) { + if (!Array.isArray(message.displayVideo_360AdvertiserLinkProposals)) + return "displayVideo_360AdvertiserLinkProposals: array expected"; + for (var i = 0; i < message.displayVideo_360AdvertiserLinkProposals.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposals[i]); + if (error) + return "displayVideo_360AdvertiserLinkProposals." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDisplayVideo360AdvertiserLinkProposalsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} ListDisplayVideo360AdvertiserLinkProposalsResponse + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + if (object.displayVideo_360AdvertiserLinkProposals) { + if (!Array.isArray(object.displayVideo_360AdvertiserLinkProposals)) + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: array expected"); + message.displayVideo_360AdvertiserLinkProposals = []; + for (var i = 0; i < object.displayVideo_360AdvertiserLinkProposals.length; ++i) { + if (typeof object.displayVideo_360AdvertiserLinkProposals[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.displayVideo_360AdvertiserLinkProposals: object expected"); + message.displayVideo_360AdvertiserLinkProposals[i] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposals[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListDisplayVideo360AdvertiserLinkProposalsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} message ListDisplayVideo360AdvertiserLinkProposalsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.displayVideo_360AdvertiserLinkProposals = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length) { + object.displayVideo_360AdvertiserLinkProposals = []; + for (var j = 0; j < message.displayVideo_360AdvertiserLinkProposals.length; ++j) + object.displayVideo_360AdvertiserLinkProposals[j] = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposals[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListDisplayVideo360AdvertiserLinkProposalsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @instance + * @returns {Object.} JSON object + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListDisplayVideo360AdvertiserLinkProposalsResponse; + })(); + + v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest = (function() { + + /** + * Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [parent] CreateDisplayVideo360AdvertiserLinkProposalRequest parent + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal + */ + + /** + * Constructs a new CreateDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateDisplayVideo360AdvertiserLinkProposalRequest. + * @implements ICreateDisplayVideo360AdvertiserLinkProposalRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + */ + function CreateDisplayVideo360AdvertiserLinkProposalRequest(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]]; + } + + /** + * CreateDisplayVideo360AdvertiserLinkProposalRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @instance + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.parent = ""; + + /** + * CreateDisplayVideo360AdvertiserLinkProposalRequest displayVideo_360AdvertiserLinkProposal. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @instance + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.displayVideo_360AdvertiserLinkProposal = null; + + /** + * Creates a new CreateDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest instance + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new CreateDisplayVideo360AdvertiserLinkProposalRequest(properties); + }; + + /** + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.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.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateDisplayVideo360AdvertiserLinkProposalRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.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.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); + if (error) + return "displayVideo_360AdvertiserLinkProposal." + error; + } + return null; + }; + + /** + * Creates a CreateDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} CreateDisplayVideo360AdvertiserLinkProposalRequest + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayVideo_360AdvertiserLinkProposal != null) { + if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.displayVideo_360AdvertiserLinkProposal: object expected"); + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); + } + return message; + }; + + /** + * Creates a plain object from a CreateDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} message CreateDisplayVideo360AdvertiserLinkProposalRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.displayVideo_360AdvertiserLinkProposal = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) + object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); + return object; + }; + + /** + * Converts this CreateDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @instance + * @returns {Object.} JSON object + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateDisplayVideo360AdvertiserLinkProposalRequest; + })(); + + v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest = (function() { + + /** + * Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] DeleteDisplayVideo360AdvertiserLinkProposalRequest name + */ + + /** + * Constructs a new DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IDeleteDisplayVideo360AdvertiserLinkProposalRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + */ + function DeleteDisplayVideo360AdvertiserLinkProposalRequest(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]]; + } + + /** + * DeleteDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @instance + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + + /** + * Creates a new DeleteDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest instance + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(properties); + }; + + /** + * Encodes the specified DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.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 DeleteDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + 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 DeleteDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.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 DeleteDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} DeleteDisplayVideo360AdvertiserLinkProposalRequest + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} message DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.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 DeleteDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteDisplayVideo360AdvertiserLinkProposalRequest; + })(); + + v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest = (function() { + + /** + * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IApproveDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] ApproveDisplayVideo360AdvertiserLinkProposalRequest name + */ + + /** + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalRequest. + * @implements IApproveDisplayVideo360AdvertiserLinkProposalRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + */ + function ApproveDisplayVideo360AdvertiserLinkProposalRequest(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]]; + } + + /** + * ApproveDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @instance + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + + /** + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest instance + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(properties); + }; + + /** + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.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 ApproveDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + 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 an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.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 an ApproveDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} ApproveDisplayVideo360AdvertiserLinkProposalRequest + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} message ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.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 ApproveDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @instance + * @returns {Object.} JSON object + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ApproveDisplayVideo360AdvertiserLinkProposalRequest; + })(); + + v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse = (function() { + + /** + * Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IApproveDisplayVideo360AdvertiserLinkProposalResponse + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink + */ + + /** + * Constructs a new ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ApproveDisplayVideo360AdvertiserLinkProposalResponse. + * @implements IApproveDisplayVideo360AdvertiserLinkProposalResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set + */ + function ApproveDisplayVideo360AdvertiserLinkProposalResponse(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]]; + } + + /** + * ApproveDisplayVideo360AdvertiserLinkProposalResponse displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @instance + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.displayVideo_360AdvertiserLink = null; + + /** + * Creates a new ApproveDisplayVideo360AdvertiserLinkProposalResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse instance + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.create = function create(properties) { + return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(properties); + }; + + /** + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ApproveDisplayVideo360AdvertiserLinkProposalResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {google.analytics.admin.v1alpha.IApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.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.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + error; + } + return null; + }; + + /** + * Creates an ApproveDisplayVideo360AdvertiserLinkProposalResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} ApproveDisplayVideo360AdvertiserLinkProposalResponse + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } + return message; + }; + + /** + * Creates a plain object from an ApproveDisplayVideo360AdvertiserLinkProposalResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} message ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.displayVideo_360AdvertiserLink = null; + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + return object; + }; + + /** + * Converts this ApproveDisplayVideo360AdvertiserLinkProposalResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @instance + * @returns {Object.} JSON object + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ApproveDisplayVideo360AdvertiserLinkProposalResponse; + })(); + + v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest = (function() { + + /** + * Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICancelDisplayVideo360AdvertiserLinkProposalRequest + * @property {string|null} [name] CancelDisplayVideo360AdvertiserLinkProposalRequest name + */ + + /** + * Constructs a new CancelDisplayVideo360AdvertiserLinkProposalRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CancelDisplayVideo360AdvertiserLinkProposalRequest. + * @implements ICancelDisplayVideo360AdvertiserLinkProposalRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + */ + function CancelDisplayVideo360AdvertiserLinkProposalRequest(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]]; + } + + /** + * CancelDisplayVideo360AdvertiserLinkProposalRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @instance + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.name = ""; + + /** + * Creates a new CancelDisplayVideo360AdvertiserLinkProposalRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest instance + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.create = function create(properties) { + return new CancelDisplayVideo360AdvertiserLinkProposalRequest(properties); + }; + + /** + * Encodes the specified CancelDisplayVideo360AdvertiserLinkProposalRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.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 CancelDisplayVideo360AdvertiserLinkProposalRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.ICancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.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.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); + 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 CancelDisplayVideo360AdvertiserLinkProposalRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelDisplayVideo360AdvertiserLinkProposalRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.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 CancelDisplayVideo360AdvertiserLinkProposalRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} CancelDisplayVideo360AdvertiserLinkProposalRequest + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a CancelDisplayVideo360AdvertiserLinkProposalRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} message CancelDisplayVideo360AdvertiserLinkProposalRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.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 CancelDisplayVideo360AdvertiserLinkProposalRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @instance + * @returns {Object.} JSON object + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CancelDisplayVideo360AdvertiserLinkProposalRequest; + })(); + + v1alpha.CreateCustomDimensionRequest = (function() { + + /** + * Properties of a CreateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateCustomDimensionRequest + * @property {string|null} [parent] CreateCustomDimensionRequest parent + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension + */ + + /** + * Constructs a new CreateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateCustomDimensionRequest. + * @implements ICreateCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + */ + function CreateCustomDimensionRequest(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]]; + } + + /** + * CreateCustomDimensionRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @instance + */ + CreateCustomDimensionRequest.prototype.parent = ""; + + /** + * CreateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @instance + */ + CreateCustomDimensionRequest.prototype.customDimension = null; + + /** + * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance + */ + CreateCustomDimensionRequest.create = function create(properties) { + return new CreateCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomDimensionRequest.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.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomDimensionRequest.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.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCustomDimensionRequest.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.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } + return null; + }; + + /** + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + */ + CreateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + return message; + }; + + /** + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCustomDimensionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.customDimension = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + return object; + }; + + /** + * Converts this CreateCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateCustomDimensionRequest; + })(); + + v1alpha.UpdateCustomDimensionRequest = (function() { + + /** + * Properties of an UpdateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateCustomDimensionRequest + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask + */ + + /** + * Constructs a new UpdateCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateCustomDimensionRequest. + * @implements IUpdateCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + */ + function UpdateCustomDimensionRequest(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]]; + } + + /** + * UpdateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @instance + */ + UpdateCustomDimensionRequest.prototype.customDimension = null; + + /** + * UpdateCustomDimensionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @instance + */ + UpdateCustomDimensionRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance + */ + UpdateCustomDimensionRequest.create = function create(properties) { + return new UpdateCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomDimensionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, 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 UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomDimensionRequest.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.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.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 UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateCustomDimensionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + 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 UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + */ + UpdateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateCustomDimensionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.customDimension = null; + object.updateMask = null; + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateCustomDimensionRequest; + })(); + + v1alpha.ListCustomDimensionsRequest = (function() { + + /** + * Properties of a ListCustomDimensionsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomDimensionsRequest + * @property {string|null} [parent] ListCustomDimensionsRequest parent + * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize + * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken + */ + + /** + * Constructs a new ListCustomDimensionsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomDimensionsRequest. + * @implements IListCustomDimensionsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + */ + function ListCustomDimensionsRequest(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]]; + } + + /** + * ListCustomDimensionsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.parent = ""; + + /** + * ListCustomDimensionsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageSize = 0; + + /** + * ListCustomDimensionsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + */ + ListCustomDimensionsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance + */ + ListCustomDimensionsRequest.create = function create(properties) { + return new ListCustomDimensionsRequest(properties); + }; + + /** + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsRequest.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.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + 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 ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomDimensionsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + */ + ListCustomDimensionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + 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 ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomDimensionsRequest.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 ListCustomDimensionsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomDimensionsRequest; + })(); + + v1alpha.ListCustomDimensionsResponse = (function() { + + /** + * Properties of a ListCustomDimensionsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomDimensionsResponse + * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions + * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken + */ + + /** + * Constructs a new ListCustomDimensionsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomDimensionsResponse. + * @implements IListCustomDimensionsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + */ + function ListCustomDimensionsResponse(properties) { + this.customDimensions = []; + 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]]; + } + + /** + * ListCustomDimensionsResponse customDimensions. + * @member {Array.} customDimensions + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @instance + */ + ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; + + /** + * ListCustomDimensionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @instance + */ + ListCustomDimensionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance + */ + ListCustomDimensionsResponse.create = function create(properties) { + return new ListCustomDimensionsResponse(properties); + }; + + /** + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customDimensions != null && message.customDimensions.length) + for (var i = 0; i < message.customDimensions.length; ++i) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[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 ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsResponse.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.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomDimensionsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomDimensionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { + if (!Array.isArray(message.customDimensions)) + return "customDimensions: array expected"; + for (var i = 0; i < message.customDimensions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); + if (error) + return "customDimensions." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + */ + ListCustomDimensionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + if (object.customDimensions) { + if (!Array.isArray(object.customDimensions)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); + message.customDimensions = []; + for (var i = 0; i < object.customDimensions.length; ++i) { + if (typeof object.customDimensions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); + message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomDimensionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.customDimensions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customDimensions && message.customDimensions.length) { + object.customDimensions = []; + for (var j = 0; j < message.customDimensions.length; ++j) + object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListCustomDimensionsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomDimensionsResponse; + })(); + + v1alpha.ArchiveCustomDimensionRequest = (function() { + + /** + * Properties of an ArchiveCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IArchiveCustomDimensionRequest + * @property {string|null} [name] ArchiveCustomDimensionRequest name + */ + + /** + * Constructs a new ArchiveCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ArchiveCustomDimensionRequest. + * @implements IArchiveCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + */ + function ArchiveCustomDimensionRequest(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]]; + } + + /** + * ArchiveCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @instance + */ + ArchiveCustomDimensionRequest.prototype.name = ""; + + /** + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance + */ + ArchiveCustomDimensionRequest.create = function create(properties) { + return new ArchiveCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomDimensionRequest.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.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + 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 an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArchiveCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveCustomDimensionRequest.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 an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + */ + ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveCustomDimensionRequest.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 ArchiveCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArchiveCustomDimensionRequest; + })(); + + v1alpha.GetCustomDimensionRequest = (function() { + + /** + * Properties of a GetCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetCustomDimensionRequest + * @property {string|null} [name] GetCustomDimensionRequest name + */ + + /** + * Constructs a new GetCustomDimensionRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetCustomDimensionRequest. + * @implements IGetCustomDimensionRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + */ + function GetCustomDimensionRequest(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]]; + } + + /** + * GetCustomDimensionRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @instance + */ + GetCustomDimensionRequest.prototype.name = ""; + + /** + * Creates a new GetCustomDimensionRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance + */ + GetCustomDimensionRequest.create = function create(properties) { + return new GetCustomDimensionRequest(properties); + }; + + /** + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomDimensionRequest.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.analytics.admin.v1alpha.GetCustomDimensionRequest(); + 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 GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCustomDimensionRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + */ + GetCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCustomDimensionRequest.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 GetCustomDimensionRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @instance + * @returns {Object.} JSON object + */ + GetCustomDimensionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCustomDimensionRequest; + })(); + + v1alpha.CreateCustomMetricRequest = (function() { + + /** + * Properties of a CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateCustomMetricRequest + * @property {string|null} [parent] CreateCustomMetricRequest parent + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric + */ + + /** + * Constructs a new CreateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateCustomMetricRequest. + * @implements ICreateCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + */ + function CreateCustomMetricRequest(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]]; + } + + /** + * CreateCustomMetricRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.parent = ""; + + /** + * CreateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.customMetric = null; + + /** + * Creates a new CreateCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance + */ + CreateCustomMetricRequest.create = function create(properties) { + return new CreateCustomMetricRequest(properties); + }; + + /** + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomMetricRequest.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.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomMetricRequest.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.analytics.admin.v1alpha.CreateCustomMetricRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateCustomMetricRequest.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.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } + return null; + }; + + /** + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + */ + CreateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } + return message; + }; + + /** + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateCustomMetricRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.customMetric = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + return object; + }; + + /** + * Converts this CreateCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + CreateCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateCustomMetricRequest; + })(); + + v1alpha.UpdateCustomMetricRequest = (function() { + + /** + * Properties of an UpdateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateCustomMetricRequest + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask + */ + + /** + * Constructs a new UpdateCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateCustomMetricRequest. + * @implements IUpdateCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + */ + function UpdateCustomMetricRequest(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]]; + } + + /** + * UpdateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @instance + */ + UpdateCustomMetricRequest.prototype.customMetric = null; + + /** + * UpdateCustomMetricRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @instance + */ + UpdateCustomMetricRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance + */ + UpdateCustomMetricRequest.create = function create(properties) { + return new UpdateCustomMetricRequest(properties); + }; + + /** + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomMetricRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, 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 UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomMetricRequest.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.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.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 UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateCustomMetricRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + 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 UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + */ + UpdateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateCustomMetricRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.customMetric = null; + object.updateMask = null; + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateCustomMetricRequest; + })(); + + v1alpha.ListCustomMetricsRequest = (function() { + + /** + * Properties of a ListCustomMetricsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomMetricsRequest + * @property {string|null} [parent] ListCustomMetricsRequest parent + * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize + * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken + */ + + /** + * Constructs a new ListCustomMetricsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomMetricsRequest. + * @implements IListCustomMetricsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + */ + function ListCustomMetricsRequest(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]]; + } + + /** + * ListCustomMetricsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.parent = ""; + + /** + * ListCustomMetricsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageSize = 0; + + /** + * ListCustomMetricsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance + */ + ListCustomMetricsRequest.create = function create(properties) { + return new ListCustomMetricsRequest(properties); + }; + + /** + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsRequest.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.analytics.admin.v1alpha.ListCustomMetricsRequest(); + 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 ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomMetricsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + */ + ListCustomMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + 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 ListCustomMetricsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomMetricsRequest.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 ListCustomMetricsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + * @returns {Object.} JSON object + */ + ListCustomMetricsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomMetricsRequest; + })(); + + v1alpha.ListCustomMetricsResponse = (function() { + + /** + * Properties of a ListCustomMetricsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListCustomMetricsResponse + * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics + * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken + */ + + /** + * Constructs a new ListCustomMetricsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListCustomMetricsResponse. + * @implements IListCustomMetricsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + */ + function ListCustomMetricsResponse(properties) { + this.customMetrics = []; + 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]]; + } + + /** + * ListCustomMetricsResponse customMetrics. + * @member {Array.} customMetrics + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @instance + */ + ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; + + /** + * ListCustomMetricsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @instance + */ + ListCustomMetricsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomMetricsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance + */ + ListCustomMetricsResponse.create = function create(properties) { + return new ListCustomMetricsResponse(properties); + }; + + /** + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.customMetrics != null && message.customMetrics.length) + for (var i = 0; i < message.customMetrics.length; ++i) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[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 ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsResponse.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.analytics.admin.v1alpha.ListCustomMetricsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListCustomMetricsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListCustomMetricsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { + if (!Array.isArray(message.customMetrics)) + return "customMetrics: array expected"; + for (var i = 0; i < message.customMetrics.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); + if (error) + return "customMetrics." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + */ + ListCustomMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + if (object.customMetrics) { + if (!Array.isArray(object.customMetrics)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); + message.customMetrics = []; + for (var i = 0; i < object.customMetrics.length; ++i) { + if (typeof object.customMetrics[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); + message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListCustomMetricsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.customMetrics = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customMetrics && message.customMetrics.length) { + object.customMetrics = []; + for (var j = 0; j < message.customMetrics.length; ++j) + object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListCustomMetricsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @instance + * @returns {Object.} JSON object + */ + ListCustomMetricsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListCustomMetricsResponse; + })(); + + v1alpha.ArchiveCustomMetricRequest = (function() { + + /** + * Properties of an ArchiveCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IArchiveCustomMetricRequest + * @property {string|null} [name] ArchiveCustomMetricRequest name + */ + + /** + * Constructs a new ArchiveCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ArchiveCustomMetricRequest. + * @implements IArchiveCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + */ + function ArchiveCustomMetricRequest(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]]; + } + + /** + * ArchiveCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @instance + */ + ArchiveCustomMetricRequest.prototype.name = ""; + + /** + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance + */ + ArchiveCustomMetricRequest.create = function create(properties) { + return new ArchiveCustomMetricRequest(properties); + }; + + /** + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomMetricRequest.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.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + 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 an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArchiveCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveCustomMetricRequest.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 an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + */ + ArchiveCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveCustomMetricRequest.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 ArchiveCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArchiveCustomMetricRequest; + })(); + + v1alpha.GetCustomMetricRequest = (function() { + + /** + * Properties of a GetCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetCustomMetricRequest + * @property {string|null} [name] GetCustomMetricRequest name + */ + + /** + * Constructs a new GetCustomMetricRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetCustomMetricRequest. + * @implements IGetCustomMetricRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + */ + function GetCustomMetricRequest(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]]; + } + + /** + * GetCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @instance + */ + GetCustomMetricRequest.prototype.name = ""; + + /** + * Creates a new GetCustomMetricRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance + */ + GetCustomMetricRequest.create = function create(properties) { + return new GetCustomMetricRequest(properties); + }; + + /** + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomMetricRequest.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 GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomMetricRequest.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.analytics.admin.v1alpha.GetCustomMetricRequest(); + 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 GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCustomMetricRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetCustomMetricRequest.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 GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + */ + GetCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCustomMetricRequest.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 GetCustomMetricRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @instance + * @returns {Object.} JSON object + */ + GetCustomMetricRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCustomMetricRequest; + })(); + + v1alpha.GetDataRetentionSettingsRequest = (function() { + + /** + * Properties of a GetDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetDataRetentionSettingsRequest + * @property {string|null} [name] GetDataRetentionSettingsRequest name + */ + + /** + * Constructs a new GetDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetDataRetentionSettingsRequest. + * @implements IGetDataRetentionSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set + */ + function GetDataRetentionSettingsRequest(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]]; + } + + /** + * GetDataRetentionSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @instance + */ + GetDataRetentionSettingsRequest.prototype.name = ""; + + /** + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance + */ + GetDataRetentionSettingsRequest.create = function create(properties) { + return new GetDataRetentionSettingsRequest(properties); + }; + + /** + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataRetentionSettingsRequest.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.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); + 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 GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDataRetentionSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + */ + GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataRetentionSettingsRequest; + })(); + + v1alpha.UpdateDataRetentionSettingsRequest = (function() { + + /** + * Properties of an UpdateDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateDataRetentionSettingsRequest + * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask + */ + + /** + * Constructs a new UpdateDataRetentionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateDataRetentionSettingsRequest. + * @implements IUpdateDataRetentionSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + */ + function UpdateDataRetentionSettingsRequest(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]]; + } + + /** + * UpdateDataRetentionSettingsRequest dataRetentionSettings. + * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @instance + */ + UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; + + /** + * UpdateDataRetentionSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @instance + */ + UpdateDataRetentionSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance + */ + UpdateDataRetentionSettingsRequest.create = function create(properties) { + return new UpdateDataRetentionSettingsRequest(properties); + }; + + /** + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataRetentionSettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, 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 UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataRetentionSettingsRequest.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.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.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 UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateDataRetentionSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateDataRetentionSettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + 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 UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + */ + UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateDataRetentionSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataRetentionSettings = null; + object.updateMask = null; + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) + object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateDataRetentionSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateDataRetentionSettingsRequest; + })(); + + v1alpha.CreateDataStreamRequest = (function() { + + /** + * Properties of a CreateDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateDataStreamRequest + * @property {string|null} [parent] CreateDataStreamRequest parent + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream + */ + + /** + * Constructs a new CreateDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateDataStreamRequest. + * @implements ICreateDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set + */ + function CreateDataStreamRequest(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]]; + } + + /** + * CreateDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @instance + */ + CreateDataStreamRequest.prototype.parent = ""; + + /** + * CreateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @instance + */ + CreateDataStreamRequest.prototype.dataStream = null; + + /** + * Creates a new CreateDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest instance + */ + CreateDataStreamRequest.create = function create(properties) { + return new CreateDataStreamRequest(properties); + }; + + /** + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDataStreamRequest.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.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDataStreamRequest.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.analytics.admin.v1alpha.CreateDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDataStreamRequest.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.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + error; + } + return null; + }; + + /** + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + */ + CreateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + } + return message; + }; + + /** + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateDataStreamRequest} message CreateDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.dataStream = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + return object; + }; + + /** + * Converts this CreateDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + CreateDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateDataStreamRequest; + })(); + + v1alpha.DeleteDataStreamRequest = (function() { + + /** + * Properties of a DeleteDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteDataStreamRequest + * @property {string|null} [name] DeleteDataStreamRequest name + */ + + /** + * Constructs a new DeleteDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteDataStreamRequest. + * @implements IDeleteDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set + */ + function DeleteDataStreamRequest(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]]; + } + + /** + * DeleteDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @instance + */ + DeleteDataStreamRequest.prototype.name = ""; + + /** + * Creates a new DeleteDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest instance + */ + DeleteDataStreamRequest.create = function create(properties) { + return new DeleteDataStreamRequest(properties); + }; + + /** + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataStreamRequest.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 DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataStreamRequest.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.analytics.admin.v1alpha.DeleteDataStreamRequest(); + 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 DeleteDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDataStreamRequest.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 DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + */ + DeleteDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteDataStreamRequest} message DeleteDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDataStreamRequest.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 DeleteDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteDataStreamRequest; + })(); + + v1alpha.UpdateDataStreamRequest = (function() { + + /** + * Properties of an UpdateDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateDataStreamRequest + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask + */ + + /** + * Constructs a new UpdateDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateDataStreamRequest. + * @implements IUpdateDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set + */ + function UpdateDataStreamRequest(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]]; + } + + /** + * UpdateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @instance + */ + UpdateDataStreamRequest.prototype.dataStream = null; + + /** + * UpdateDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @instance + */ + UpdateDataStreamRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest instance + */ + UpdateDataStreamRequest.create = function create(properties) { + return new UpdateDataStreamRequest(properties); + }; + + /** + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataStreamRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, 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 UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataStreamRequest.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.analytics.admin.v1alpha.UpdateDataStreamRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.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 UpdateDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateDataStreamRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + 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 UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + */ + UpdateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateDataStreamRequest} message UpdateDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateDataStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataStream = null; + object.updateMask = null; + } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateDataStreamRequest; + })(); + + v1alpha.ListDataStreamsRequest = (function() { + + /** + * Properties of a ListDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListDataStreamsRequest + * @property {string|null} [parent] ListDataStreamsRequest parent + * @property {number|null} [pageSize] ListDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListDataStreamsRequest pageToken + */ + + /** + * Constructs a new ListDataStreamsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListDataStreamsRequest. + * @implements IListDataStreamsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set + */ + function ListDataStreamsRequest(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]]; + } + + /** + * ListDataStreamsRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.parent = ""; + + /** + * ListDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.pageSize = 0; + + /** + * ListDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDataStreamsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest instance + */ + ListDataStreamsRequest.create = function create(properties) { + return new ListDataStreamsRequest(properties); + }; + + /** + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsRequest.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 ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsRequest.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.analytics.admin.v1alpha.ListDataStreamsRequest(); + 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 ListDataStreamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataStreamsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataStreamsRequest.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 ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + */ + ListDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); + 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 ListDataStreamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {google.analytics.admin.v1alpha.ListDataStreamsRequest} message ListDataStreamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDataStreamsRequest.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 ListDataStreamsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @instance + * @returns {Object.} JSON object + */ + ListDataStreamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListDataStreamsRequest; + })(); + + v1alpha.ListDataStreamsResponse = (function() { + + /** + * Properties of a ListDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListDataStreamsResponse + * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams + * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken + */ + + /** + * Constructs a new ListDataStreamsResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListDataStreamsResponse. + * @implements IListDataStreamsResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set + */ + function ListDataStreamsResponse(properties) { + this.dataStreams = []; + 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]]; + } + + /** + * ListDataStreamsResponse dataStreams. + * @member {Array.} dataStreams + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @instance + */ + ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; + + /** + * ListDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @instance + */ + ListDataStreamsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDataStreamsResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse instance + */ + ListDataStreamsResponse.create = function create(properties) { + return new ListDataStreamsResponse(properties); + }; + + /** + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataStreams != null && message.dataStreams.length) + for (var i = 0; i < message.dataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStreams[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 ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsResponse.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.analytics.admin.v1alpha.ListDataStreamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.dataStreams && message.dataStreams.length)) + message.dataStreams = []; + message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataStreamsResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataStreamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { + if (!Array.isArray(message.dataStreams)) + return "dataStreams: array expected"; + for (var i = 0; i < message.dataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStreams[i]); + if (error) + return "dataStreams." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + */ + ListDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); + if (object.dataStreams) { + if (!Array.isArray(object.dataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: array expected"); + message.dataStreams = []; + for (var i = 0; i < object.dataStreams.length; ++i) { + if (typeof object.dataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: object expected"); + message.dataStreams[i] = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStreams[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} message ListDataStreamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDataStreamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.dataStreams && message.dataStreams.length) { + object.dataStreams = []; + for (var j = 0; j < message.dataStreams.length; ++j) + object.dataStreams[j] = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStreams[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListDataStreamsResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @instance + * @returns {Object.} JSON object + */ + ListDataStreamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListDataStreamsResponse; + })(); + + v1alpha.GetDataStreamRequest = (function() { + + /** + * Properties of a GetDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetDataStreamRequest + * @property {string|null} [name] GetDataStreamRequest name + */ + + /** + * Constructs a new GetDataStreamRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetDataStreamRequest. + * @implements IGetDataStreamRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + */ + function GetDataStreamRequest(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]]; + } + + /** + * GetDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @instance + */ + GetDataStreamRequest.prototype.name = ""; + + /** + * Creates a new GetDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest instance + */ + GetDataStreamRequest.create = function create(properties) { + return new GetDataStreamRequest(properties); + }; + + /** + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataStreamRequest.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 GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataStreamRequest.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.analytics.admin.v1alpha.GetDataStreamRequest(); + 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 GetDataStreamRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDataStreamRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataStreamRequest.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 GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + */ + GetDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataStreamRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.GetDataStreamRequest} message GetDataStreamRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataStreamRequest.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 GetDataStreamRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataStreamRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetDataStreamRequest; + })(); + + v1alpha.GetAudienceRequest = (function() { + + /** + * Properties of a GetAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetAudienceRequest + * @property {string|null} [name] GetAudienceRequest name + */ + + /** + * Constructs a new GetAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetAudienceRequest. + * @implements IGetAudienceRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest=} [properties] Properties to set + */ + function GetAudienceRequest(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]]; + } + + /** + * GetAudienceRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @instance + */ + GetAudienceRequest.prototype.name = ""; + + /** + * Creates a new GetAudienceRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest instance + */ + GetAudienceRequest.create = function create(properties) { + return new GetAudienceRequest(properties); + }; + + /** + * Encodes the specified GetAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} message GetAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAudienceRequest.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 GetAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} message GetAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetAudienceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAudienceRequest.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.analytics.admin.v1alpha.GetAudienceRequest(); + 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 GetAudienceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetAudienceRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAudienceRequest.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 GetAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest + */ + GetAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAudienceRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetAudienceRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetAudienceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.GetAudienceRequest} message GetAudienceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAudienceRequest.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 GetAudienceRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @instance + * @returns {Object.} JSON object + */ + GetAudienceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetAudienceRequest; + })(); + + v1alpha.ListAudiencesRequest = (function() { + + /** + * Properties of a ListAudiencesRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListAudiencesRequest + * @property {string|null} [parent] ListAudiencesRequest parent + * @property {number|null} [pageSize] ListAudiencesRequest pageSize + * @property {string|null} [pageToken] ListAudiencesRequest pageToken + */ + + /** + * Constructs a new ListAudiencesRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAudiencesRequest. + * @implements IListAudiencesRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest=} [properties] Properties to set + */ + function ListAudiencesRequest(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]]; + } + + /** + * ListAudiencesRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @instance + */ + ListAudiencesRequest.prototype.parent = ""; + + /** + * ListAudiencesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @instance + */ + ListAudiencesRequest.prototype.pageSize = 0; + + /** + * ListAudiencesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @instance + */ + ListAudiencesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListAudiencesRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest instance + */ + ListAudiencesRequest.create = function create(properties) { + return new ListAudiencesRequest(properties); + }; + + /** + * Encodes the specified ListAudiencesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} message ListAudiencesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAudiencesRequest.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 ListAudiencesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} message ListAudiencesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAudiencesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAudiencesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAudiencesRequest.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.analytics.admin.v1alpha.ListAudiencesRequest(); + 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 ListAudiencesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAudiencesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListAudiencesRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAudiencesRequest.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 ListAudiencesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest + */ + ListAudiencesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAudiencesRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAudiencesRequest(); + 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 ListAudiencesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {google.analytics.admin.v1alpha.ListAudiencesRequest} message ListAudiencesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAudiencesRequest.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 ListAudiencesRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @instance + * @returns {Object.} JSON object + */ + ListAudiencesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAudiencesRequest; + })(); + + v1alpha.ListAudiencesResponse = (function() { + + /** + * Properties of a ListAudiencesResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListAudiencesResponse + * @property {Array.|null} [audiences] ListAudiencesResponse audiences + * @property {string|null} [nextPageToken] ListAudiencesResponse nextPageToken + */ + + /** + * Constructs a new ListAudiencesResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAudiencesResponse. + * @implements IListAudiencesResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse=} [properties] Properties to set + */ + function ListAudiencesResponse(properties) { + this.audiences = []; + 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]]; + } + + /** + * ListAudiencesResponse audiences. + * @member {Array.} audiences + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @instance + */ + ListAudiencesResponse.prototype.audiences = $util.emptyArray; + + /** + * ListAudiencesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @instance + */ + ListAudiencesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAudiencesResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse instance + */ + ListAudiencesResponse.create = function create(properties) { + return new ListAudiencesResponse(properties); + }; + + /** + * Encodes the specified ListAudiencesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse} message ListAudiencesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAudiencesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audiences != null && message.audiences.length) + for (var i = 0; i < message.audiences.length; ++i) + $root.google.analytics.admin.v1alpha.Audience.encode(message.audiences[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 ListAudiencesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse} message ListAudiencesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAudiencesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAudiencesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAudiencesResponse.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.analytics.admin.v1alpha.ListAudiencesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.audiences && message.audiences.length)) + message.audiences = []; + message.audiences.push($root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListAudiencesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAudiencesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListAudiencesResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAudiencesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.audiences != null && message.hasOwnProperty("audiences")) { + if (!Array.isArray(message.audiences)) + return "audiences: array expected"; + for (var i = 0; i < message.audiences.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audiences[i]); + if (error) + return "audiences." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListAudiencesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse + */ + ListAudiencesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAudiencesResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAudiencesResponse(); + if (object.audiences) { + if (!Array.isArray(object.audiences)) + throw TypeError(".google.analytics.admin.v1alpha.ListAudiencesResponse.audiences: array expected"); + message.audiences = []; + for (var i = 0; i < object.audiences.length; ++i) { + if (typeof object.audiences[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAudiencesResponse.audiences: object expected"); + message.audiences[i] = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audiences[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListAudiencesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {google.analytics.admin.v1alpha.ListAudiencesResponse} message ListAudiencesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAudiencesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.audiences = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.audiences && message.audiences.length) { + object.audiences = []; + for (var j = 0; j < message.audiences.length; ++j) + object.audiences[j] = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audiences[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListAudiencesResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @instance + * @returns {Object.} JSON object + */ + ListAudiencesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListAudiencesResponse; + })(); + + v1alpha.CreateAudienceRequest = (function() { + + /** + * Properties of a CreateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateAudienceRequest + * @property {string|null} [parent] CreateAudienceRequest parent + * @property {google.analytics.admin.v1alpha.IAudience|null} [audience] CreateAudienceRequest audience + */ + + /** + * Constructs a new CreateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateAudienceRequest. + * @implements ICreateAudienceRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest=} [properties] Properties to set + */ + function CreateAudienceRequest(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]]; + } + + /** + * CreateAudienceRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @instance + */ + CreateAudienceRequest.prototype.parent = ""; + + /** + * CreateAudienceRequest audience. + * @member {google.analytics.admin.v1alpha.IAudience|null|undefined} audience + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @instance + */ + CreateAudienceRequest.prototype.audience = null; + + /** + * Creates a new CreateAudienceRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest instance + */ + CreateAudienceRequest.create = function create(properties) { + return new CreateAudienceRequest(properties); + }; + + /** + * Encodes the specified CreateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} message CreateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateAudienceRequest.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.audience != null && Object.hasOwnProperty.call(message, "audience")) + $root.google.analytics.admin.v1alpha.Audience.encode(message.audience, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} message CreateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateAudienceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateAudienceRequest.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.analytics.admin.v1alpha.CreateAudienceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateAudienceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateAudienceRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateAudienceRequest.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.audience != null && message.hasOwnProperty("audience")) { + var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audience); + if (error) + return "audience." + error; + } + return null; + }; + + /** + * Creates a CreateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + */ + CreateAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateAudienceRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateAudienceRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.audience != null) { + if (typeof object.audience !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateAudienceRequest.audience: object expected"); + message.audience = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audience); + } + return message; + }; + + /** + * Creates a plain object from a CreateAudienceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateAudienceRequest} message CreateAudienceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateAudienceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.audience = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.audience != null && message.hasOwnProperty("audience")) + object.audience = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audience, options); + return object; + }; + + /** + * Converts this CreateAudienceRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @instance + * @returns {Object.} JSON object + */ + CreateAudienceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateAudienceRequest; + })(); + + v1alpha.UpdateAudienceRequest = (function() { + + /** + * Properties of an UpdateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateAudienceRequest + * @property {google.analytics.admin.v1alpha.IAudience|null} [audience] UpdateAudienceRequest audience + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAudienceRequest updateMask + */ + + /** + * Constructs a new UpdateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateAudienceRequest. + * @implements IUpdateAudienceRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest=} [properties] Properties to set + */ + function UpdateAudienceRequest(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]]; + } + + /** + * UpdateAudienceRequest audience. + * @member {google.analytics.admin.v1alpha.IAudience|null|undefined} audience + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @instance + */ + UpdateAudienceRequest.prototype.audience = null; + + /** + * UpdateAudienceRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @instance + */ + UpdateAudienceRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAudienceRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest instance + */ + UpdateAudienceRequest.create = function create(properties) { + return new UpdateAudienceRequest(properties); + }; + + /** + * Encodes the specified UpdateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} message UpdateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAudienceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) + $root.google.analytics.admin.v1alpha.Audience.encode(message.audience, 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 UpdateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} message UpdateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateAudienceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAudienceRequest.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.analytics.admin.v1alpha.UpdateAudienceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.audience = $root.google.analytics.admin.v1alpha.Audience.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 UpdateAudienceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateAudienceRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateAudienceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.audience != null && message.hasOwnProperty("audience")) { + var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audience); + if (error) + return "audience." + 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 UpdateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + */ + UpdateAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAudienceRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateAudienceRequest(); + if (object.audience != null) { + if (typeof object.audience !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAudienceRequest.audience: object expected"); + message.audience = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audience); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAudienceRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateAudienceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateAudienceRequest} message UpdateAudienceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateAudienceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.audience = null; + object.updateMask = null; + } + if (message.audience != null && message.hasOwnProperty("audience")) + object.audience = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audience, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateAudienceRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateAudienceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateAudienceRequest; + })(); + + v1alpha.ArchiveAudienceRequest = (function() { + + /** + * Properties of an ArchiveAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IArchiveAudienceRequest + * @property {string|null} [name] ArchiveAudienceRequest name + */ + + /** + * Constructs a new ArchiveAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ArchiveAudienceRequest. + * @implements IArchiveAudienceRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest=} [properties] Properties to set + */ + function ArchiveAudienceRequest(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]]; + } + + /** + * ArchiveAudienceRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @instance + */ + ArchiveAudienceRequest.prototype.name = ""; + + /** + * Creates a new ArchiveAudienceRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest instance + */ + ArchiveAudienceRequest.create = function create(properties) { + return new ArchiveAudienceRequest(properties); + }; + + /** + * Encodes the specified ArchiveAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} message ArchiveAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveAudienceRequest.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 ArchiveAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} message ArchiveAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveAudienceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveAudienceRequest.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.analytics.admin.v1alpha.ArchiveAudienceRequest(); + 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 an ArchiveAudienceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArchiveAudienceRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveAudienceRequest.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 an ArchiveAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + */ + ArchiveAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ArchiveAudienceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ArchiveAudienceRequest} message ArchiveAudienceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveAudienceRequest.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 ArchiveAudienceRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveAudienceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArchiveAudienceRequest; + })(); + + v1alpha.GetAttributionSettingsRequest = (function() { + + /** + * Properties of a GetAttributionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetAttributionSettingsRequest + * @property {string|null} [name] GetAttributionSettingsRequest name + */ + + /** + * Constructs a new GetAttributionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetAttributionSettingsRequest. + * @implements IGetAttributionSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest=} [properties] Properties to set + */ + function GetAttributionSettingsRequest(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]]; + } + + /** + * GetAttributionSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @instance + */ + GetAttributionSettingsRequest.prototype.name = ""; + + /** + * Creates a new GetAttributionSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest instance + */ + GetAttributionSettingsRequest.create = function create(properties) { + return new GetAttributionSettingsRequest(properties); + }; + + /** + * Encodes the specified GetAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} message GetAttributionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAttributionSettingsRequest.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 GetAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} message GetAttributionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAttributionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAttributionSettingsRequest.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.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + 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 GetAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAttributionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetAttributionSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAttributionSettingsRequest.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 GetAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + */ + GetAttributionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetAttributionSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} message GetAttributionSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAttributionSettingsRequest.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 GetAttributionSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + GetAttributionSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetAttributionSettingsRequest; + })(); + + v1alpha.UpdateAttributionSettingsRequest = (function() { + + /** + * Properties of an UpdateAttributionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateAttributionSettingsRequest + * @property {google.analytics.admin.v1alpha.IAttributionSettings|null} [attributionSettings] UpdateAttributionSettingsRequest attributionSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAttributionSettingsRequest updateMask + */ + + /** + * Constructs a new UpdateAttributionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateAttributionSettingsRequest. + * @implements IUpdateAttributionSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest=} [properties] Properties to set + */ + function UpdateAttributionSettingsRequest(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]]; + } + + /** + * UpdateAttributionSettingsRequest attributionSettings. + * @member {google.analytics.admin.v1alpha.IAttributionSettings|null|undefined} attributionSettings + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @instance + */ + UpdateAttributionSettingsRequest.prototype.attributionSettings = null; + + /** + * UpdateAttributionSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @instance + */ + UpdateAttributionSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateAttributionSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest instance + */ + UpdateAttributionSettingsRequest.create = function create(properties) { + return new UpdateAttributionSettingsRequest(properties); + }; + + /** + * Encodes the specified UpdateAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAttributionSettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributionSettings != null && Object.hasOwnProperty.call(message, "attributionSettings")) + $root.google.analytics.admin.v1alpha.AttributionSettings.encode(message.attributionSettings, 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 UpdateAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAttributionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAttributionSettingsRequest.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.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.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 UpdateAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAttributionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateAttributionSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateAttributionSettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { + var error = $root.google.analytics.admin.v1alpha.AttributionSettings.verify(message.attributionSettings); + if (error) + return "attributionSettings." + 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 UpdateAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest + */ + UpdateAttributionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); + if (object.attributionSettings != null) { + if (typeof object.attributionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.attributionSettings: object expected"); + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.fromObject(object.attributionSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateAttributionSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateAttributionSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.attributionSettings = null; + object.updateMask = null; + } + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) + object.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.toObject(message.attributionSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateAttributionSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateAttributionSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateAttributionSettingsRequest; + })(); + + /** + * AudienceFilterScope enum. + * @name google.analytics.admin.v1alpha.AudienceFilterScope + * @enum {number} + * @property {number} AUDIENCE_FILTER_SCOPE_UNSPECIFIED=0 AUDIENCE_FILTER_SCOPE_UNSPECIFIED value + * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT=1 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT value + * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION=2 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION value + * @property {number} AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS=3 AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS value + */ + v1alpha.AudienceFilterScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIENCE_FILTER_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT"] = 1; + values[valuesById[2] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION"] = 2; + values[valuesById[3] = "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS"] = 3; + return values; + })(); + + v1alpha.AudienceDimensionOrMetricFilter = (function() { + + /** + * Properties of an AudienceDimensionOrMetricFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAudienceDimensionOrMetricFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null} [stringFilter] AudienceDimensionOrMetricFilter stringFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null} [inListFilter] AudienceDimensionOrMetricFilter inListFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null} [numericFilter] AudienceDimensionOrMetricFilter numericFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null} [betweenFilter] AudienceDimensionOrMetricFilter betweenFilter + * @property {string|null} [fieldName] AudienceDimensionOrMetricFilter fieldName + * @property {boolean|null} [atAnyPointInTime] AudienceDimensionOrMetricFilter atAnyPointInTime + * @property {number|null} [inAnyNDayPeriod] AudienceDimensionOrMetricFilter inAnyNDayPeriod + */ + + /** + * Constructs a new AudienceDimensionOrMetricFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AudienceDimensionOrMetricFilter. + * @implements IAudienceDimensionOrMetricFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set + */ + function AudienceDimensionOrMetricFilter(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]]; + } + + /** + * AudienceDimensionOrMetricFilter stringFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null|undefined} stringFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.stringFilter = null; + + /** + * AudienceDimensionOrMetricFilter inListFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null|undefined} inListFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.inListFilter = null; + + /** + * AudienceDimensionOrMetricFilter numericFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null|undefined} numericFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.numericFilter = null; + + /** + * AudienceDimensionOrMetricFilter betweenFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null|undefined} betweenFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.betweenFilter = null; + + /** + * AudienceDimensionOrMetricFilter fieldName. + * @member {string} fieldName + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.fieldName = ""; + + /** + * AudienceDimensionOrMetricFilter atAnyPointInTime. + * @member {boolean} atAnyPointInTime + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.atAnyPointInTime = false; + + /** + * AudienceDimensionOrMetricFilter inAnyNDayPeriod. + * @member {number} inAnyNDayPeriod + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.inAnyNDayPeriod = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AudienceDimensionOrMetricFilter oneFilter. + * @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + Object.defineProperty(AudienceDimensionOrMetricFilter.prototype, "oneFilter", { + get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter instance + */ + AudienceDimensionOrMetricFilter.create = function create(properties) { + return new AudienceDimensionOrMetricFilter(properties); + }; + + /** + * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceDimensionOrMetricFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.numericFilter != null && Object.hasOwnProperty.call(message, "numericFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.atAnyPointInTime != null && Object.hasOwnProperty.call(message, "atAnyPointInTime")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.atAnyPointInTime); + if (message.inAnyNDayPeriod != null && Object.hasOwnProperty.call(message, "inAnyNDayPeriod")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.inAnyNDayPeriod); + return writer; + }; + + /** + * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceDimensionOrMetricFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceDimensionOrMetricFilter.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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.decode(reader, reader.uint32()); + break; + case 3: + message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.decode(reader, reader.uint32()); + break; + case 4: + message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.decode(reader, reader.uint32()); + break; + case 5: + message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.decode(reader, reader.uint32()); + break; + case 1: + message.fieldName = reader.string(); + break; + case 6: + message.atAnyPointInTime = reader.bool(); + break; + case 7: + message.inAnyNDayPeriod = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceDimensionOrMetricFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AudienceDimensionOrMetricFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AudienceDimensionOrMetricFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify(message.stringFilter); + if (error) + return "stringFilter." + error; + } + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify(message.inListFilter); + if (error) + return "inListFilter." + error; + } + } + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify(message.numericFilter); + if (error) + return "numericFilter." + error; + } + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify(message.betweenFilter); + if (error) + return "betweenFilter." + error; + } + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; + if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) + if (typeof message.atAnyPointInTime !== "boolean") + return "atAnyPointInTime: boolean expected"; + if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) + if (!$util.isInteger(message.inAnyNDayPeriod)) + return "inAnyNDayPeriod: integer expected"; + return null; + }; + + /** + * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + */ + AudienceDimensionOrMetricFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + if (object.stringFilter != null) { + if (typeof object.stringFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.stringFilter: object expected"); + message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.fromObject(object.stringFilter); + } + if (object.inListFilter != null) { + if (typeof object.inListFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.inListFilter: object expected"); + message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.fromObject(object.inListFilter); + } + if (object.numericFilter != null) { + if (typeof object.numericFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.numericFilter: object expected"); + message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.fromObject(object.numericFilter); + } + if (object.betweenFilter != null) { + if (typeof object.betweenFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.betweenFilter: object expected"); + message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromObject(object.betweenFilter); + } + if (object.fieldName != null) + message.fieldName = String(object.fieldName); + if (object.atAnyPointInTime != null) + message.atAnyPointInTime = Boolean(object.atAnyPointInTime); + if (object.inAnyNDayPeriod != null) + message.inAnyNDayPeriod = object.inAnyNDayPeriod | 0; + return message; + }; + + /** + * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudienceDimensionOrMetricFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldName = ""; + object.atAnyPointInTime = false; + object.inAnyNDayPeriod = 0; + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + object.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.toObject(message.stringFilter, options); + if (options.oneofs) + object.oneFilter = "stringFilter"; + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + object.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.toObject(message.inListFilter, options); + if (options.oneofs) + object.oneFilter = "inListFilter"; + } + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + object.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.toObject(message.numericFilter, options); + if (options.oneofs) + object.oneFilter = "numericFilter"; + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + object.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toObject(message.betweenFilter, options); + if (options.oneofs) + object.oneFilter = "betweenFilter"; + } + if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) + object.atAnyPointInTime = message.atAnyPointInTime; + if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) + object.inAnyNDayPeriod = message.inAnyNDayPeriod; + return object; + }; + + /** + * Converts this AudienceDimensionOrMetricFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + * @returns {Object.} JSON object + */ + AudienceDimensionOrMetricFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AudienceDimensionOrMetricFilter.StringFilter = (function() { + + /** + * Properties of a StringFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IStringFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType + * @property {string|null} [value] StringFilter value + * @property {boolean|null} [caseSensitive] StringFilter caseSensitive + */ + + /** + * Constructs a new StringFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a StringFilter. + * @implements IStringFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set + */ + function StringFilter(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]]; + } + + /** + * StringFilter matchType. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} matchType + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.matchType = 0; + + /** + * StringFilter value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.value = ""; + + /** + * StringFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.caseSensitive = false; + + /** + * Creates a new StringFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter instance + */ + StringFilter.create = function create(properties) { + return new StringFilter(properties); + }; + + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.caseSensitive); + return writer; + }; + + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.matchType = reader.int32(); + break; + case 2: + message.value = reader.string(); + break; + case 3: + message.caseSensitive = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StringFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; + + /** + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + */ + StringFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + switch (object.matchType) { + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "EXACT": + case 1: + message.matchType = 1; + break; + case "BEGINS_WITH": + case 2: + message.matchType = 2; + break; + case "ENDS_WITH": + case 3: + message.matchType = 3; + break; + case "CONTAINS": + case 4: + message.matchType = 4; + break; + case "FULL_REGEXP": + case 5: + message.matchType = 5; + break; + case "PARTIAL_REGEXP": + case 6: + message.matchType = 6; + break; + } + if (object.value != null) + message.value = String(object.value); + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; + + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} message StringFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.value = ""; + object.caseSensitive = false; + } + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] : message.matchType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; + + /** + * Converts this StringFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + * @returns {Object.} JSON object + */ + StringFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * MatchType enum. + * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} EXACT=1 EXACT value + * @property {number} BEGINS_WITH=2 BEGINS_WITH value + * @property {number} ENDS_WITH=3 ENDS_WITH value + * @property {number} CONTAINS=4 CONTAINS value + * @property {number} FULL_REGEXP=5 FULL_REGEXP value + * @property {number} PARTIAL_REGEXP=6 PARTIAL_REGEXP value + */ + StringFilter.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXACT"] = 1; + values[valuesById[2] = "BEGINS_WITH"] = 2; + values[valuesById[3] = "ENDS_WITH"] = 3; + values[valuesById[4] = "CONTAINS"] = 4; + values[valuesById[5] = "FULL_REGEXP"] = 5; + values[valuesById[6] = "PARTIAL_REGEXP"] = 6; + return values; + })(); + + return StringFilter; + })(); + + AudienceDimensionOrMetricFilter.InListFilter = (function() { + + /** + * Properties of an InListFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IInListFilter + * @property {Array.|null} [values] InListFilter values + * @property {boolean|null} [caseSensitive] InListFilter caseSensitive + */ + + /** + * Constructs a new InListFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents an InListFilter. + * @implements IInListFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set + */ + function InListFilter(properties) { + this.values = []; + 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]]; + } + + /** + * InListFilter values. + * @member {Array.} values + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + */ + InListFilter.prototype.values = $util.emptyArray; + + /** + * InListFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + */ + InListFilter.prototype.caseSensitive = false; + + /** + * Creates a new InListFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter instance + */ + InListFilter.create = function create(properties) { + return new InListFilter(properties); + }; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.caseSensitive); + return writer; + }; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + case 2: + message.caseSensitive = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InListFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InListFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; + + /** + * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + */ + InListFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; + + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} message InListFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InListFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) + object.caseSensitive = false; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; + + /** + * Converts this InListFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + * @returns {Object.} JSON object + */ + InListFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InListFilter; + })(); + + AudienceDimensionOrMetricFilter.NumericValue = (function() { + + /** + * Properties of a NumericValue. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface INumericValue + * @property {number|Long|null} [int64Value] NumericValue int64Value + * @property {number|null} [doubleValue] NumericValue doubleValue + */ + + /** + * Constructs a new NumericValue. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a NumericValue. + * @implements INumericValue + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set + */ + function NumericValue(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]]; + } + + /** + * NumericValue int64Value. + * @member {number|Long|null|undefined} int64Value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + NumericValue.prototype.int64Value = null; + + /** + * NumericValue doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + NumericValue.prototype.doubleValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NumericValue oneValue. + * @member {"int64Value"|"doubleValue"|undefined} oneValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + Object.defineProperty(NumericValue.prototype, "oneValue", { + get: $util.oneOfGetter($oneOfFields = ["int64Value", "doubleValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NumericValue instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue instance + */ + NumericValue.create = function create(properties) { + return new NumericValue(properties); + }; + + /** + * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue} message NumericValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.int64Value); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + return writer; + }; + + /** + * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue} message NumericValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericValue message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericValue.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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.int64Value = reader.int64(); + break; + case 2: + message.doubleValue = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericValue message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + properties.oneValue = 1; + if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) + return "int64Value: integer|Long expected"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.oneValue === 1) + return "oneValue: multiple values"; + properties.oneValue = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + return null; + }; + + /** + * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue + */ + NumericValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); + if (object.int64Value != null) + if ($util.Long) + (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; + else if (typeof object.int64Value === "string") + message.int64Value = parseInt(object.int64Value, 10); + else if (typeof object.int64Value === "number") + message.int64Value = object.int64Value; + else if (typeof object.int64Value === "object") + message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + return message; + }; + + /** + * Creates a plain object from a NumericValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} message NumericValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + if (typeof message.int64Value === "number") + object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; + else + object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; + if (options.oneofs) + object.oneValue = "int64Value"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.oneValue = "doubleValue"; + } + return object; + }; + + /** + * Converts this NumericValue to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + * @returns {Object.} JSON object + */ + NumericValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NumericValue; + })(); + + AudienceDimensionOrMetricFilter.NumericFilter = (function() { + + /** + * Properties of a NumericFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface INumericFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null} [operation] NumericFilter operation + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [value] NumericFilter value + */ + + /** + * Constructs a new NumericFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a NumericFilter. + * @implements INumericFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter=} [properties] Properties to set + */ + function NumericFilter(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]]; + } + + /** + * NumericFilter operation. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation} operation + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @instance + */ + NumericFilter.prototype.operation = 0; + + /** + * NumericFilter value. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @instance + */ + NumericFilter.prototype.value = null; + + /** + * Creates a new NumericFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter instance + */ + NumericFilter.create = function create(properties) { + return new NumericFilter(properties); + }; + + /** + * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter} message NumericFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operation); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter} message NumericFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericFilter.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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operation = reader.int32(); + break; + case 2: + message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operation != null && message.hasOwnProperty("operation")) + switch (message.operation) { + default: + return "operation: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + /** + * Creates a NumericFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter + */ + NumericFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); + switch (object.operation) { + case "OPERATION_UNSPECIFIED": + case 0: + message.operation = 0; + break; + case "EQUAL": + case 1: + message.operation = 1; + break; + case "LESS_THAN": + case 2: + message.operation = 2; + break; + case "LESS_THAN_OR_EQUAL": + case 3: + message.operation = 3; + break; + case "GREATER_THAN": + case 4: + message.operation = 4; + break; + case "GREATER_THAN_OR_EQUAL": + case 5: + message.operation = 5; + break; + } + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.value: object expected"); + message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.value); + } + return message; + }; + + /** + * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} message NumericFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.operation = options.enums === String ? "OPERATION_UNSPECIFIED" : 0; + object.value = null; + } + if (message.operation != null && message.hasOwnProperty("operation")) + object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] : message.operation; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.value, options); + return object; + }; + + /** + * Converts this NumericFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @instance + * @returns {Object.} JSON object + */ + NumericFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Operation enum. + * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + * @enum {number} + * @property {number} OPERATION_UNSPECIFIED=0 OPERATION_UNSPECIFIED value + * @property {number} EQUAL=1 EQUAL value + * @property {number} LESS_THAN=2 LESS_THAN value + * @property {number} LESS_THAN_OR_EQUAL=3 LESS_THAN_OR_EQUAL value + * @property {number} GREATER_THAN=4 GREATER_THAN value + * @property {number} GREATER_THAN_OR_EQUAL=5 GREATER_THAN_OR_EQUAL value + */ + NumericFilter.Operation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OPERATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "EQUAL"] = 1; + values[valuesById[2] = "LESS_THAN"] = 2; + values[valuesById[3] = "LESS_THAN_OR_EQUAL"] = 3; + values[valuesById[4] = "GREATER_THAN"] = 4; + values[valuesById[5] = "GREATER_THAN_OR_EQUAL"] = 5; + return values; + })(); + + return NumericFilter; + })(); + + AudienceDimensionOrMetricFilter.BetweenFilter = (function() { + + /** + * Properties of a BetweenFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IBetweenFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [fromValue] BetweenFilter fromValue + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [toValue] BetweenFilter toValue + */ + + /** + * Constructs a new BetweenFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a BetweenFilter. + * @implements IBetweenFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter=} [properties] Properties to set + */ + function BetweenFilter(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]]; + } + + /** + * BetweenFilter fromValue. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} fromValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @instance + */ + BetweenFilter.prototype.fromValue = null; + + /** + * BetweenFilter toValue. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} toValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @instance + */ + BetweenFilter.prototype.toValue = null; + + /** + * Creates a new BetweenFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter instance + */ + BetweenFilter.create = function create(properties) { + return new BetweenFilter(properties); + }; + + /** + * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter} message BetweenFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BetweenFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fromValue != null && Object.hasOwnProperty.call(message, "fromValue")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.fromValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.toValue != null && Object.hasOwnProperty.call(message, "toValue")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.toValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter} message BetweenFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BetweenFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BetweenFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BetweenFilter.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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); + break; + case 2: + message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BetweenFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BetweenFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BetweenFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fromValue != null && message.hasOwnProperty("fromValue")) { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.fromValue); + if (error) + return "fromValue." + error; + } + if (message.toValue != null && message.hasOwnProperty("toValue")) { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.toValue); + if (error) + return "toValue." + error; + } + return null; + }; + + /** + * Creates a BetweenFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter + */ + BetweenFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); + if (object.fromValue != null) { + if (typeof object.fromValue !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromValue: object expected"); + message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.fromValue); + } + if (object.toValue != null) { + if (typeof object.toValue !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toValue: object expected"); + message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.toValue); + } + return message; + }; - /** - * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest - */ - ArchiveCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + /** + * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} message BetweenFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BetweenFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fromValue = null; + object.toValue = null; + } + if (message.fromValue != null && message.hasOwnProperty("fromValue")) + object.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.fromValue, options); + if (message.toValue != null && message.hasOwnProperty("toValue")) + object.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.toValue, options); return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArchiveCustomMetricRequest.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 BetweenFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @instance + * @returns {Object.} JSON object + */ + BetweenFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ArchiveCustomMetricRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - * @instance - * @returns {Object.} JSON object - */ - ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return BetweenFilter; + })(); - return ArchiveCustomMetricRequest; + return AudienceDimensionOrMetricFilter; })(); - v1alpha.GetCustomMetricRequest = (function() { + v1alpha.AudienceEventFilter = (function() { /** - * Properties of a GetCustomMetricRequest. + * Properties of an AudienceEventFilter. * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomMetricRequest - * @property {string|null} [name] GetCustomMetricRequest name + * @interface IAudienceEventFilter + * @property {string|null} [eventName] AudienceEventFilter eventName + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [eventParameterFilterExpression] AudienceEventFilter eventParameterFilterExpression */ /** - * Constructs a new GetCustomMetricRequest. + * Constructs a new AudienceEventFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomMetricRequest. - * @implements IGetCustomMetricRequest + * @classdesc Represents an AudienceEventFilter. + * @implements IAudienceEventFilter * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter=} [properties] Properties to set */ - function GetCustomMetricRequest(properties) { + function AudienceEventFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20378,75 +31612,88 @@ } /** - * GetCustomMetricRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * AudienceEventFilter eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @instance */ - GetCustomMetricRequest.prototype.name = ""; + AudienceEventFilter.prototype.eventName = ""; /** - * Creates a new GetCustomMetricRequest instance using the specified properties. + * AudienceEventFilter eventParameterFilterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} eventParameterFilterExpression + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @instance + */ + AudienceEventFilter.prototype.eventParameterFilterExpression = null; + + /** + * Creates a new AudienceEventFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter instance */ - GetCustomMetricRequest.create = function create(properties) { - return new GetCustomMetricRequest(properties); + AudienceEventFilter.create = function create(properties) { + return new AudienceEventFilter(properties); }; /** - * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter} message AudienceEventFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomMetricRequest.encode = function encode(message, writer) { + AudienceEventFilter.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.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); + if (message.eventParameterFilterExpression != null && Object.hasOwnProperty.call(message, "eventParameterFilterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.eventParameterFilterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter} message AudienceEventFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + AudienceEventFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * Decodes an AudienceEventFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomMetricRequest.decode = function decode(reader, length) { + AudienceEventFilter.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.analytics.admin.v1alpha.GetCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.eventName = reader.string(); + break; + case 2: + message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20457,107 +31704,125 @@ }; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + AudienceEventFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomMetricRequest message. + * Verifies an AudienceEventFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomMetricRequest.verify = function verify(message) { + AudienceEventFilter.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.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.eventParameterFilterExpression != null && message.hasOwnProperty("eventParameterFilterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.eventParameterFilterExpression); + if (error) + return "eventParameterFilterExpression." + error; + } return null; }; /** - * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter */ - GetCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) + AudienceEventFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.AudienceEventFilter(); + if (object.eventName != null) + message.eventName = String(object.eventName); + if (object.eventParameterFilterExpression != null) { + if (typeof object.eventParameterFilterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceEventFilter.eventParameterFilterExpression: object expected"); + message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.eventParameterFilterExpression); + } return message; }; /** - * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static - * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest + * @param {google.analytics.admin.v1alpha.AudienceEventFilter} message AudienceEventFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomMetricRequest.toObject = function toObject(message, options) { + AudienceEventFilter.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 (options.defaults) { + object.eventName = ""; + object.eventParameterFilterExpression = null; + } + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.eventParameterFilterExpression != null && message.hasOwnProperty("eventParameterFilterExpression")) + object.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.eventParameterFilterExpression, options); return object; }; /** - * Converts this GetCustomMetricRequest to JSON. + * Converts this AudienceEventFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @instance * @returns {Object.} JSON object */ - GetCustomMetricRequest.prototype.toJSON = function toJSON() { + AudienceEventFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCustomMetricRequest; + return AudienceEventFilter; })(); - v1alpha.GetDataRetentionSettingsRequest = (function() { + v1alpha.AudienceFilterExpression = (function() { /** - * Properties of a GetDataRetentionSettingsRequest. + * Properties of an AudienceFilterExpression. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataRetentionSettingsRequest - * @property {string|null} [name] GetDataRetentionSettingsRequest name + * @interface IAudienceFilterExpression + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null} [andGroup] AudienceFilterExpression andGroup + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null} [orGroup] AudienceFilterExpression orGroup + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [notExpression] AudienceFilterExpression notExpression + * @property {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null} [dimensionOrMetricFilter] AudienceFilterExpression dimensionOrMetricFilter + * @property {google.analytics.admin.v1alpha.IAudienceEventFilter|null} [eventFilter] AudienceFilterExpression eventFilter */ /** - * Constructs a new GetDataRetentionSettingsRequest. + * Constructs a new AudienceFilterExpression. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataRetentionSettingsRequest. - * @implements IGetDataRetentionSettingsRequest + * @classdesc Represents an AudienceFilterExpression. + * @implements IAudienceFilterExpression * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression=} [properties] Properties to set */ - function GetDataRetentionSettingsRequest(properties) { + function AudienceFilterExpression(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20565,276 +31830,141 @@ } /** - * GetDataRetentionSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * AudienceFilterExpression andGroup. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null|undefined} andGroup + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance */ - GetDataRetentionSettingsRequest.prototype.name = ""; - - /** - * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance - */ - GetDataRetentionSettingsRequest.create = function create(properties) { - return new GetDataRetentionSettingsRequest(properties); - }; - - /** - * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataRetentionSettingsRequest.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.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); - 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 GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetDataRetentionSettingsRequest message. - * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDataRetentionSettingsRequest.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 GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest - */ - GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) - return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - * @static - * @param {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetDataRetentionSettingsRequest.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; - }; + AudienceFilterExpression.prototype.andGroup = null; /** - * Converts this GetDataRetentionSettingsRequest to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * AudienceFilterExpression orGroup. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null|undefined} orGroup + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance - * @returns {Object.} JSON object */ - GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetDataRetentionSettingsRequest; - })(); - - v1alpha.UpdateDataRetentionSettingsRequest = (function() { + AudienceFilterExpression.prototype.orGroup = null; /** - * Properties of an UpdateDataRetentionSettingsRequest. - * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDataRetentionSettingsRequest - * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask + * AudienceFilterExpression notExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} notExpression + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @instance */ + AudienceFilterExpression.prototype.notExpression = null; /** - * Constructs a new UpdateDataRetentionSettingsRequest. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDataRetentionSettingsRequest. - * @implements IUpdateDataRetentionSettingsRequest - * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + * AudienceFilterExpression dimensionOrMetricFilter. + * @member {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null|undefined} dimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @instance */ - function UpdateDataRetentionSettingsRequest(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]]; - } + AudienceFilterExpression.prototype.dimensionOrMetricFilter = null; /** - * UpdateDataRetentionSettingsRequest dataRetentionSettings. - * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * AudienceFilterExpression eventFilter. + * @member {google.analytics.admin.v1alpha.IAudienceEventFilter|null|undefined} eventFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance */ - UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; + AudienceFilterExpression.prototype.eventFilter = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * UpdateDataRetentionSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * AudienceFilterExpression expr. + * @member {"andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"|undefined} expr + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance */ - UpdateDataRetentionSettingsRequest.prototype.updateMask = null; + Object.defineProperty(AudienceFilterExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["andGroup", "orGroup", "notExpression", "dimensionOrMetricFilter", "eventFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * Creates a new AudienceFilterExpression instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression instance */ - UpdateDataRetentionSettingsRequest.create = function create(properties) { - return new UpdateDataRetentionSettingsRequest(properties); + AudienceFilterExpression.create = function create(properties) { + return new AudienceFilterExpression(properties); }; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression} message AudienceFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataRetentionSettingsRequest.encode = function encode(message, writer) { + AudienceFilterExpression.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) - $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.andGroup != null && Object.hasOwnProperty.call(message, "andGroup")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.encode(message.andGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.orGroup != null && Object.hasOwnProperty.call(message, "orGroup")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.encode(message.orGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.notExpression != null && Object.hasOwnProperty.call(message, "notExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.notExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dimensionOrMetricFilter != null && Object.hasOwnProperty.call(message, "dimensionOrMetricFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.encode(message.dimensionOrMetricFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.eventFilter != null && Object.hasOwnProperty.call(message, "eventFilter")) + $root.google.analytics.admin.v1alpha.AudienceEventFilter.encode(message.eventFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression} message AudienceFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AudienceFilterExpression.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * Decodes an AudienceFilterExpression message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataRetentionSettingsRequest.decode = function decode(reader, length) { + AudienceFilterExpression.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.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpression(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); + message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); + break; + case 3: + message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + case 4: + message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.decode(reader, reader.uint32()); + break; + case 5: + message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20845,216 +31975,277 @@ }; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + AudienceFilterExpression.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDataRetentionSettingsRequest message. + * Verifies an AudienceFilterExpression message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateDataRetentionSettingsRequest.verify = function verify(message) { + AudienceFilterExpression.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { - var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); - if (error) - return "dataRetentionSettings." + error; + var properties = {}; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify(message.andGroup); + if (error) + return "andGroup." + error; + } } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify(message.orGroup); + if (error) + return "orGroup." + error; + } + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.notExpression); + if (error) + return "notExpression." + error; + } + } + if (message.dimensionOrMetricFilter != null && message.hasOwnProperty("dimensionOrMetricFilter")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify(message.dimensionOrMetricFilter); + if (error) + return "dimensionOrMetricFilter." + error; + } + } + if (message.eventFilter != null && message.hasOwnProperty("eventFilter")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceEventFilter.verify(message.eventFilter); + if (error) + return "eventFilter." + error; + } } return null; }; /** - * Creates an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression */ - UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + AudienceFilterExpression.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpression) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); - if (object.dataRetentionSettings != null) { - if (typeof object.dataRetentionSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpression(); + if (object.andGroup != null) { + if (typeof object.andGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.andGroup: object expected"); + message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.fromObject(object.andGroup); + } + if (object.orGroup != null) { + if (typeof object.orGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.orGroup: object expected"); + message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.fromObject(object.orGroup); + } + if (object.notExpression != null) { + if (typeof object.notExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.notExpression: object expected"); + message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.notExpression); + } + if (object.dimensionOrMetricFilter != null) { + if (typeof object.dimensionOrMetricFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.dimensionOrMetricFilter: object expected"); + message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.fromObject(object.dimensionOrMetricFilter); + } + if (object.eventFilter != null) { + if (typeof object.eventFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.eventFilter: object expected"); + message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.fromObject(object.eventFilter); } return message; }; /** - * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest + * @param {google.analytics.admin.v1alpha.AudienceFilterExpression} message AudienceFilterExpression * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDataRetentionSettingsRequest.toObject = function toObject(message, options) { + AudienceFilterExpression.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.dataRetentionSettings = null; - object.updateMask = null; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + object.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.toObject(message.andGroup, options); + if (options.oneofs) + object.expr = "andGroup"; + } + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + object.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.toObject(message.orGroup, options); + if (options.oneofs) + object.expr = "orGroup"; + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + object.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.notExpression, options); + if (options.oneofs) + object.expr = "notExpression"; + } + if (message.dimensionOrMetricFilter != null && message.hasOwnProperty("dimensionOrMetricFilter")) { + object.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.toObject(message.dimensionOrMetricFilter, options); + if (options.oneofs) + object.expr = "dimensionOrMetricFilter"; + } + if (message.eventFilter != null && message.hasOwnProperty("eventFilter")) { + object.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.toObject(message.eventFilter, options); + if (options.oneofs) + object.expr = "eventFilter"; } - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) - object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateDataRetentionSettingsRequest to JSON. + * Converts this AudienceFilterExpression to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance * @returns {Object.} JSON object */ - UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { + AudienceFilterExpression.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateDataRetentionSettingsRequest; + return AudienceFilterExpression; })(); - v1alpha.CreateDataStreamRequest = (function() { + v1alpha.AudienceFilterExpressionList = (function() { /** - * Properties of a CreateDataStreamRequest. + * Properties of an AudienceFilterExpressionList. * @memberof google.analytics.admin.v1alpha - * @interface ICreateDataStreamRequest - * @property {string|null} [parent] CreateDataStreamRequest parent - * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream + * @interface IAudienceFilterExpressionList + * @property {Array.|null} [filterExpressions] AudienceFilterExpressionList filterExpressions */ /** - * Constructs a new CreateDataStreamRequest. + * Constructs a new AudienceFilterExpressionList. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateDataStreamRequest. - * @implements ICreateDataStreamRequest + * @classdesc Represents an AudienceFilterExpressionList. + * @implements IAudienceFilterExpressionList * @constructor - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set */ - function CreateDataStreamRequest(properties) { + function AudienceFilterExpressionList(properties) { + this.filterExpressions = []; 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]]; } - /** - * CreateDataStreamRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest - * @instance - */ - CreateDataStreamRequest.prototype.parent = ""; - - /** - * CreateDataStreamRequest dataStream. - * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + /** + * AudienceFilterExpressionList filterExpressions. + * @member {Array.} filterExpressions + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @instance */ - CreateDataStreamRequest.prototype.dataStream = null; + AudienceFilterExpressionList.prototype.filterExpressions = $util.emptyArray; /** - * Creates a new CreateDataStreamRequest instance using the specified properties. + * Creates a new AudienceFilterExpressionList instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList instance */ - CreateDataStreamRequest.create = function create(properties) { - return new CreateDataStreamRequest(properties); + AudienceFilterExpressionList.create = function create(properties) { + return new AudienceFilterExpressionList(properties); }; /** - * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataStreamRequest.encode = function encode(message, writer) { + AudienceFilterExpressionList.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.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filterExpressions != null && message.filterExpressions.length) + for (var i = 0; i < message.filterExpressions.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + AudienceFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataStreamRequest.decode = function decode(reader, length) { + AudienceFilterExpressionList.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.analytics.admin.v1alpha.CreateDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + if (!(message.filterExpressions && message.filterExpressions.length)) + message.filterExpressions = []; + message.filterExpressions.push($root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -21065,121 +32256,125 @@ }; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + AudienceFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDataStreamRequest message. + * Verifies an AudienceFilterExpressionList message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDataStreamRequest.verify = function verify(message) { + AudienceFilterExpressionList.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.dataStream != null && message.hasOwnProperty("dataStream")) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); - if (error) - return "dataStream." + error; + if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { + if (!Array.isArray(message.filterExpressions)) + return "filterExpressions: array expected"; + for (var i = 0; i < message.filterExpressions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpressions[i]); + if (error) + return "filterExpressions." + error; + } } return null; }; /** - * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList */ - CreateDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateDataStreamRequest) + AudienceFilterExpressionList.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.dataStream != null) { - if (typeof object.dataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateDataStreamRequest.dataStream: object expected"); - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + if (object.filterExpressions) { + if (!Array.isArray(object.filterExpressions)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: array expected"); + message.filterExpressions = []; + for (var i = 0; i < object.filterExpressions.length; ++i) { + if (typeof object.filterExpressions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: object expected"); + message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpressions[i]); + } } return message; }; /** - * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.CreateDataStreamRequest} message CreateDataStreamRequest + * @param {google.analytics.admin.v1alpha.AudienceFilterExpressionList} message AudienceFilterExpressionList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDataStreamRequest.toObject = function toObject(message, options) { + AudienceFilterExpressionList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataStream = null; + if (options.arrays || options.defaults) + object.filterExpressions = []; + if (message.filterExpressions && message.filterExpressions.length) { + object.filterExpressions = []; + for (var j = 0; j < message.filterExpressions.length; ++j) + object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpressions[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.dataStream != null && message.hasOwnProperty("dataStream")) - object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); return object; }; /** - * Converts this CreateDataStreamRequest to JSON. + * Converts this AudienceFilterExpressionList to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @instance * @returns {Object.} JSON object */ - CreateDataStreamRequest.prototype.toJSON = function toJSON() { + AudienceFilterExpressionList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDataStreamRequest; + return AudienceFilterExpressionList; })(); - v1alpha.DeleteDataStreamRequest = (function() { + v1alpha.AudienceSimpleFilter = (function() { /** - * Properties of a DeleteDataStreamRequest. + * Properties of an AudienceSimpleFilter. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteDataStreamRequest - * @property {string|null} [name] DeleteDataStreamRequest name + * @interface IAudienceSimpleFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSimpleFilter scope + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSimpleFilter filterExpression */ /** - * Constructs a new DeleteDataStreamRequest. + * Constructs a new AudienceSimpleFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteDataStreamRequest. - * @implements IDeleteDataStreamRequest + * @classdesc Represents an AudienceSimpleFilter. + * @implements IAudienceSimpleFilter * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set */ - function DeleteDataStreamRequest(properties) { + function AudienceSimpleFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21187,75 +32382,88 @@ } /** - * DeleteDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * AudienceSimpleFilter scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @instance */ - DeleteDataStreamRequest.prototype.name = ""; + AudienceSimpleFilter.prototype.scope = 0; /** - * Creates a new DeleteDataStreamRequest instance using the specified properties. + * AudienceSimpleFilter filterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @instance + */ + AudienceSimpleFilter.prototype.filterExpression = null; + + /** + * Creates a new AudienceSimpleFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter instance */ - DeleteDataStreamRequest.create = function create(properties) { - return new DeleteDataStreamRequest(properties); + AudienceSimpleFilter.create = function create(properties) { + return new AudienceSimpleFilter(properties); }; /** - * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataStreamRequest.encode = function encode(message, writer) { + AudienceSimpleFilter.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.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + AudienceSimpleFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. + * Decodes an AudienceSimpleFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataStreamRequest.decode = function decode(reader, length) { + AudienceSimpleFilter.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.analytics.admin.v1alpha.DeleteDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.scope = reader.int32(); + break; + case 2: + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21266,108 +32474,147 @@ }; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + AudienceSimpleFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDataStreamRequest message. + * Verifies an AudienceSimpleFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDataStreamRequest.verify = function verify(message) { + AudienceSimpleFilter.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.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); + if (error) + return "filterExpression." + error; + } return null; }; /** - * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter */ - DeleteDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest) + AudienceSimpleFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSimpleFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + switch (object.scope) { + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; + } + if (object.filterExpression != null) { + if (typeof object.filterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSimpleFilter.filterExpression: object expected"); + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); + } return message; }; /** - * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.DeleteDataStreamRequest} message DeleteDataStreamRequest + * @param {google.analytics.admin.v1alpha.AudienceSimpleFilter} message AudienceSimpleFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataStreamRequest.toObject = function toObject(message, options) { + AudienceSimpleFilter.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 (options.defaults) { + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.filterExpression = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) + object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); return object; }; /** - * Converts this DeleteDataStreamRequest to JSON. + * Converts this AudienceSimpleFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @instance * @returns {Object.} JSON object */ - DeleteDataStreamRequest.prototype.toJSON = function toJSON() { + AudienceSimpleFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDataStreamRequest; + return AudienceSimpleFilter; })(); - v1alpha.UpdateDataStreamRequest = (function() { + v1alpha.AudienceSequenceFilter = (function() { /** - * Properties of an UpdateDataStreamRequest. + * Properties of an AudienceSequenceFilter. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDataStreamRequest - * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask + * @interface IAudienceSequenceFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceFilter scope + * @property {google.protobuf.IDuration|null} [sequenceMaximumDuration] AudienceSequenceFilter sequenceMaximumDuration + * @property {Array.|null} [sequenceSteps] AudienceSequenceFilter sequenceSteps */ /** - * Constructs a new UpdateDataStreamRequest. + * Constructs a new AudienceSequenceFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDataStreamRequest. - * @implements IUpdateDataStreamRequest + * @classdesc Represents an AudienceSequenceFilter. + * @implements IAudienceSequenceFilter * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set */ - function UpdateDataStreamRequest(properties) { + function AudienceSequenceFilter(properties) { + this.sequenceSteps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21375,88 +32622,104 @@ } /** - * UpdateDataStreamRequest dataStream. - * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * AudienceSequenceFilter scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance */ - UpdateDataStreamRequest.prototype.dataStream = null; + AudienceSequenceFilter.prototype.scope = 0; /** - * UpdateDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * AudienceSequenceFilter sequenceMaximumDuration. + * @member {google.protobuf.IDuration|null|undefined} sequenceMaximumDuration + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance */ - UpdateDataStreamRequest.prototype.updateMask = null; + AudienceSequenceFilter.prototype.sequenceMaximumDuration = null; /** - * Creates a new UpdateDataStreamRequest instance using the specified properties. + * AudienceSequenceFilter sequenceSteps. + * @member {Array.} sequenceSteps + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @instance + */ + AudienceSequenceFilter.prototype.sequenceSteps = $util.emptyArray; + + /** + * Creates a new AudienceSequenceFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter instance */ - UpdateDataStreamRequest.create = function create(properties) { - return new UpdateDataStreamRequest(properties); + AudienceSequenceFilter.create = function create(properties) { + return new AudienceSequenceFilter(properties); }; /** - * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataStreamRequest.encode = function encode(message, writer) { + AudienceSequenceFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.sequenceMaximumDuration != null && Object.hasOwnProperty.call(message, "sequenceMaximumDuration")) + $root.google.protobuf.Duration.encode(message.sequenceMaximumDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequenceSteps != null && message.sequenceSteps.length) + for (var i = 0; i < message.sequenceSteps.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.encode(message.sequenceSteps[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + AudienceSequenceFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataStreamRequest.decode = function decode(reader, length) { + AudienceSequenceFilter.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.analytics.admin.v1alpha.UpdateDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + message.scope = reader.int32(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.sequenceMaximumDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.sequenceSteps && message.sequenceSteps.length)) + message.sequenceSteps = []; + message.sequenceSteps.push($root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -21467,128 +32730,459 @@ }; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + AudienceSequenceFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDataStreamRequest message. + * Verifies an AudienceSequenceFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateDataStreamRequest.verify = function verify(message) { + AudienceSequenceFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataStream != null && message.hasOwnProperty("dataStream")) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) { + var error = $root.google.protobuf.Duration.verify(message.sequenceMaximumDuration); if (error) - return "dataStream." + error; + return "sequenceMaximumDuration." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.sequenceSteps != null && message.hasOwnProperty("sequenceSteps")) { + if (!Array.isArray(message.sequenceSteps)) + return "sequenceSteps: array expected"; + for (var i = 0; i < message.sequenceSteps.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify(message.sequenceSteps[i]); + if (error) + return "sequenceSteps." + error; + } } return null; }; /** - * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter */ - UpdateDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest) + AudienceSequenceFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); - if (object.dataStream != null) { - if (typeof object.dataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.dataStream: object expected"); - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); + switch (object.scope) { + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.sequenceMaximumDuration != null) { + if (typeof object.sequenceMaximumDuration !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceMaximumDuration: object expected"); + message.sequenceMaximumDuration = $root.google.protobuf.Duration.fromObject(object.sequenceMaximumDuration); + } + if (object.sequenceSteps) { + if (!Array.isArray(object.sequenceSteps)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: array expected"); + message.sequenceSteps = []; + for (var i = 0; i < object.sequenceSteps.length; ++i) { + if (typeof object.sequenceSteps[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: object expected"); + message.sequenceSteps[i] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.fromObject(object.sequenceSteps[i]); + } } return message; }; /** - * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.UpdateDataStreamRequest} message UpdateDataStreamRequest + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter} message AudienceSequenceFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDataStreamRequest.toObject = function toObject(message, options) { + AudienceSequenceFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.sequenceSteps = []; if (options.defaults) { - object.dataStream = null; - object.updateMask = null; + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.sequenceMaximumDuration = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) + object.sequenceMaximumDuration = $root.google.protobuf.Duration.toObject(message.sequenceMaximumDuration, options); + if (message.sequenceSteps && message.sequenceSteps.length) { + object.sequenceSteps = []; + for (var j = 0; j < message.sequenceSteps.length; ++j) + object.sequenceSteps[j] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.toObject(message.sequenceSteps[j], options); } - if (message.dataStream != null && message.hasOwnProperty("dataStream")) - object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateDataStreamRequest to JSON. + * Converts this AudienceSequenceFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance * @returns {Object.} JSON object */ - UpdateDataStreamRequest.prototype.toJSON = function toJSON() { + AudienceSequenceFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateDataStreamRequest; + AudienceSequenceFilter.AudienceSequenceStep = (function() { + + /** + * Properties of an AudienceSequenceStep. + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @interface IAudienceSequenceStep + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceStep scope + * @property {boolean|null} [immediatelyFollows] AudienceSequenceStep immediatelyFollows + * @property {google.protobuf.IDuration|null} [constraintDuration] AudienceSequenceStep constraintDuration + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSequenceStep filterExpression + */ + + /** + * Constructs a new AudienceSequenceStep. + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @classdesc Represents an AudienceSequenceStep. + * @implements IAudienceSequenceStep + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set + */ + function AudienceSequenceStep(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]]; + } + + /** + * AudienceSequenceStep scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.scope = 0; + + /** + * AudienceSequenceStep immediatelyFollows. + * @member {boolean} immediatelyFollows + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.immediatelyFollows = false; + + /** + * AudienceSequenceStep constraintDuration. + * @member {google.protobuf.IDuration|null|undefined} constraintDuration + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.constraintDuration = null; + + /** + * AudienceSequenceStep filterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.filterExpression = null; + + /** + * Creates a new AudienceSequenceStep instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep instance + */ + AudienceSequenceStep.create = function create(properties) { + return new AudienceSequenceStep(properties); + }; + + /** + * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSequenceStep.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.immediatelyFollows != null && Object.hasOwnProperty.call(message, "immediatelyFollows")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.immediatelyFollows); + if (message.constraintDuration != null && Object.hasOwnProperty.call(message, "constraintDuration")) + $root.google.protobuf.Duration.encode(message.constraintDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSequenceStep.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSequenceStep.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.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scope = reader.int32(); + break; + case 2: + message.immediatelyFollows = reader.bool(); + break; + case 3: + message.constraintDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSequenceStep.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AudienceSequenceStep message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AudienceSequenceStep.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) + if (typeof message.immediatelyFollows !== "boolean") + return "immediatelyFollows: boolean expected"; + if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) { + var error = $root.google.protobuf.Duration.verify(message.constraintDuration); + if (error) + return "constraintDuration." + error; + } + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); + if (error) + return "filterExpression." + error; + } + return null; + }; + + /** + * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + */ + AudienceSequenceStep.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + switch (object.scope) { + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; + } + if (object.immediatelyFollows != null) + message.immediatelyFollows = Boolean(object.immediatelyFollows); + if (object.constraintDuration != null) { + if (typeof object.constraintDuration !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.constraintDuration: object expected"); + message.constraintDuration = $root.google.protobuf.Duration.fromObject(object.constraintDuration); + } + if (object.filterExpression != null) { + if (typeof object.filterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.filterExpression: object expected"); + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); + } + return message; + }; + + /** + * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} message AudienceSequenceStep + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudienceSequenceStep.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.immediatelyFollows = false; + object.constraintDuration = null; + object.filterExpression = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) + object.immediatelyFollows = message.immediatelyFollows; + if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) + object.constraintDuration = $root.google.protobuf.Duration.toObject(message.constraintDuration, options); + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) + object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); + return object; + }; + + /** + * Converts this AudienceSequenceStep to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + * @returns {Object.} JSON object + */ + AudienceSequenceStep.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AudienceSequenceStep; + })(); + + return AudienceSequenceFilter; })(); - v1alpha.ListDataStreamsRequest = (function() { + v1alpha.AudienceFilterClause = (function() { /** - * Properties of a ListDataStreamsRequest. + * Properties of an AudienceFilterClause. * @memberof google.analytics.admin.v1alpha - * @interface IListDataStreamsRequest - * @property {string|null} [parent] ListDataStreamsRequest parent - * @property {number|null} [pageSize] ListDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListDataStreamsRequest pageToken + * @interface IAudienceFilterClause + * @property {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null} [simpleFilter] AudienceFilterClause simpleFilter + * @property {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null} [sequenceFilter] AudienceFilterClause sequenceFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null} [clauseType] AudienceFilterClause clauseType */ /** - * Constructs a new ListDataStreamsRequest. + * Constructs a new AudienceFilterClause. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDataStreamsRequest. - * @implements IListDataStreamsRequest + * @classdesc Represents an AudienceFilterClause. + * @implements IAudienceFilterClause * @constructor - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set */ - function ListDataStreamsRequest(properties) { + function AudienceFilterClause(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21596,101 +33190,115 @@ } /** - * ListDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * AudienceFilterClause simpleFilter. + * @member {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null|undefined} simpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - ListDataStreamsRequest.prototype.parent = ""; + AudienceFilterClause.prototype.simpleFilter = null; /** - * ListDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * AudienceFilterClause sequenceFilter. + * @member {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null|undefined} sequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - ListDataStreamsRequest.prototype.pageSize = 0; + AudienceFilterClause.prototype.sequenceFilter = null; /** - * ListDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * AudienceFilterClause clauseType. + * @member {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} clauseType + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - ListDataStreamsRequest.prototype.pageToken = ""; + AudienceFilterClause.prototype.clauseType = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListDataStreamsRequest instance using the specified properties. + * AudienceFilterClause filter. + * @member {"simpleFilter"|"sequenceFilter"|undefined} filter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @instance + */ + Object.defineProperty(AudienceFilterClause.prototype, "filter", { + get: $util.oneOfGetter($oneOfFields = ["simpleFilter", "sequenceFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AudienceFilterClause instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause instance */ - ListDataStreamsRequest.create = function create(properties) { - return new ListDataStreamsRequest(properties); + AudienceFilterClause.create = function create(properties) { + return new AudienceFilterClause(properties); }; /** - * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsRequest.encode = function encode(message, writer) { + AudienceFilterClause.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.clauseType != null && Object.hasOwnProperty.call(message, "clauseType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clauseType); + if (message.simpleFilter != null && Object.hasOwnProperty.call(message, "simpleFilter")) + $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.encode(message.simpleFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequenceFilter != null && Object.hasOwnProperty.call(message, "sequenceFilter")) + $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.encode(message.sequenceFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AudienceFilterClause.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer. + * Decodes an AudienceFilterClause message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsRequest.decode = function decode(reader, length) { + AudienceFilterClause.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.analytics.admin.v1alpha.ListDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; case 2: - message.pageSize = reader.int32(); + message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.decode(reader, reader.uint32()); break; case 3: - message.pageToken = reader.string(); + message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.decode(reader, reader.uint32()); + break; + case 1: + message.clauseType = reader.int32(); break; default: reader.skipType(tag & 7); @@ -21701,126 +33309,181 @@ }; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + AudienceFilterClause.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataStreamsRequest message. + * Verifies an AudienceFilterClause message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataStreamsRequest.verify = function verify(message) { + AudienceFilterClause.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"; + var properties = {}; + if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { + properties.filter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.verify(message.simpleFilter); + if (error) + return "simpleFilter." + error; + } + } + if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.verify(message.sequenceFilter); + if (error) + return "sequenceFilter." + error; + } + } + if (message.clauseType != null && message.hasOwnProperty("clauseType")) + switch (message.clauseType) { + default: + return "clauseType: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause */ - ListDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsRequest) + AudienceFilterClause.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterClause) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); - 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); + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); + if (object.simpleFilter != null) { + if (typeof object.simpleFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.simpleFilter: object expected"); + message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.fromObject(object.simpleFilter); + } + if (object.sequenceFilter != null) { + if (typeof object.sequenceFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.sequenceFilter: object expected"); + message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.fromObject(object.sequenceFilter); + } + switch (object.clauseType) { + case "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED": + case 0: + message.clauseType = 0; + break; + case "INCLUDE": + case 1: + message.clauseType = 1; + break; + case "EXCLUDE": + case 2: + message.clauseType = 2; + break; + } return message; }; /** - * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.ListDataStreamsRequest} message ListDataStreamsRequest + * @param {google.analytics.admin.v1alpha.AudienceFilterClause} message AudienceFilterClause * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataStreamsRequest.toObject = function toObject(message, options) { + AudienceFilterClause.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.defaults) + object.clauseType = options.enums === String ? "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED" : 0; + if (message.clauseType != null && message.hasOwnProperty("clauseType")) + object.clauseType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] : message.clauseType; + if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { + object.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.toObject(message.simpleFilter, options); + if (options.oneofs) + object.filter = "simpleFilter"; + } + if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { + object.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.toObject(message.sequenceFilter, options); + if (options.oneofs) + object.filter = "sequenceFilter"; } - 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 ListDataStreamsRequest to JSON. + * Converts this AudienceFilterClause to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance * @returns {Object.} JSON object */ - ListDataStreamsRequest.prototype.toJSON = function toJSON() { + AudienceFilterClause.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataStreamsRequest; + /** + * AudienceClauseType enum. + * @name google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + * @enum {number} + * @property {number} AUDIENCE_CLAUSE_TYPE_UNSPECIFIED=0 AUDIENCE_CLAUSE_TYPE_UNSPECIFIED value + * @property {number} INCLUDE=1 INCLUDE value + * @property {number} EXCLUDE=2 EXCLUDE value + */ + AudienceFilterClause.AudienceClauseType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INCLUDE"] = 1; + values[valuesById[2] = "EXCLUDE"] = 2; + return values; + })(); + + return AudienceFilterClause; })(); - v1alpha.ListDataStreamsResponse = (function() { + v1alpha.AudienceEventTrigger = (function() { /** - * Properties of a ListDataStreamsResponse. + * Properties of an AudienceEventTrigger. * @memberof google.analytics.admin.v1alpha - * @interface IListDataStreamsResponse - * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams - * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken + * @interface IAudienceEventTrigger + * @property {string|null} [eventName] AudienceEventTrigger eventName + * @property {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null} [logCondition] AudienceEventTrigger logCondition */ /** - * Constructs a new ListDataStreamsResponse. + * Constructs a new AudienceEventTrigger. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDataStreamsResponse. - * @implements IListDataStreamsResponse + * @classdesc Represents an AudienceEventTrigger. + * @implements IAudienceEventTrigger * @constructor - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set */ - function ListDataStreamsResponse(properties) { - this.dataStreams = []; + function AudienceEventTrigger(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21828,91 +33491,88 @@ } /** - * ListDataStreamsResponse dataStreams. - * @member {Array.} dataStreams - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * AudienceEventTrigger eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance */ - ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; + AudienceEventTrigger.prototype.eventName = ""; /** - * ListDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * AudienceEventTrigger logCondition. + * @member {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} logCondition + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance */ - ListDataStreamsResponse.prototype.nextPageToken = ""; + AudienceEventTrigger.prototype.logCondition = 0; /** - * Creates a new ListDataStreamsResponse instance using the specified properties. + * Creates a new AudienceEventTrigger instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger instance */ - ListDataStreamsResponse.create = function create(properties) { - return new ListDataStreamsResponse(properties); + AudienceEventTrigger.create = function create(properties) { + return new AudienceEventTrigger(properties); }; /** - * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsResponse.encode = function encode(message, writer) { + AudienceEventTrigger.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataStreams != null && message.dataStreams.length) - for (var i = 0; i < message.dataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); + if (message.logCondition != null && Object.hasOwnProperty.call(message, "logCondition")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logCondition); return writer; }; /** - * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + AudienceEventTrigger.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * Decodes an AudienceEventTrigger message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsResponse.decode = function decode(reader, length) { + AudienceEventTrigger.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.analytics.admin.v1alpha.ListDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.dataStreams && message.dataStreams.length)) - message.dataStreams = []; - message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); + message.eventName = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.logCondition = reader.int32(); break; default: reader.skipType(tag & 7); @@ -21923,133 +33583,158 @@ }; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + AudienceEventTrigger.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataStreamsResponse message. + * Verifies an AudienceEventTrigger message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataStreamsResponse.verify = function verify(message) { + AudienceEventTrigger.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { - if (!Array.isArray(message.dataStreams)) - return "dataStreams: array expected"; - for (var i = 0; i < message.dataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStreams[i]); - if (error) - return "dataStreams." + error; + if (message.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.logCondition != null && message.hasOwnProperty("logCondition")) + switch (message.logCondition) { + default: + return "logCondition: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger */ - ListDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsResponse) + AudienceEventTrigger.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventTrigger) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); - if (object.dataStreams) { - if (!Array.isArray(object.dataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: array expected"); - message.dataStreams = []; - for (var i = 0; i < object.dataStreams.length; ++i) { - if (typeof object.dataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: object expected"); - message.dataStreams[i] = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStreams[i]); - } + var message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); + if (object.eventName != null) + message.eventName = String(object.eventName); + switch (object.logCondition) { + case "LOG_CONDITION_UNSPECIFIED": + case 0: + message.logCondition = 0; + break; + case "AUDIENCE_JOINED": + case 1: + message.logCondition = 1; + break; + case "AUDIENCE_MEMBERSHIP_RENEWED": + case 2: + message.logCondition = 2; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} message ListDataStreamsResponse + * @param {google.analytics.admin.v1alpha.AudienceEventTrigger} message AudienceEventTrigger * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataStreamsResponse.toObject = function toObject(message, options) { + AudienceEventTrigger.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.dataStreams = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.dataStreams && message.dataStreams.length) { - object.dataStreams = []; - for (var j = 0; j < message.dataStreams.length; ++j) - object.dataStreams[j] = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStreams[j], options); + if (options.defaults) { + object.eventName = ""; + object.logCondition = options.enums === String ? "LOG_CONDITION_UNSPECIFIED" : 0; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.logCondition != null && message.hasOwnProperty("logCondition")) + object.logCondition = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] : message.logCondition; return object; }; /** - * Converts this ListDataStreamsResponse to JSON. + * Converts this AudienceEventTrigger to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance * @returns {Object.} JSON object */ - ListDataStreamsResponse.prototype.toJSON = function toJSON() { + AudienceEventTrigger.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataStreamsResponse; + /** + * LogCondition enum. + * @name google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + * @enum {number} + * @property {number} LOG_CONDITION_UNSPECIFIED=0 LOG_CONDITION_UNSPECIFIED value + * @property {number} AUDIENCE_JOINED=1 AUDIENCE_JOINED value + * @property {number} AUDIENCE_MEMBERSHIP_RENEWED=2 AUDIENCE_MEMBERSHIP_RENEWED value + */ + AudienceEventTrigger.LogCondition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_CONDITION_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIENCE_JOINED"] = 1; + values[valuesById[2] = "AUDIENCE_MEMBERSHIP_RENEWED"] = 2; + return values; + })(); + + return AudienceEventTrigger; })(); - v1alpha.GetDataStreamRequest = (function() { + v1alpha.Audience = (function() { /** - * Properties of a GetDataStreamRequest. + * Properties of an Audience. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataStreamRequest - * @property {string|null} [name] GetDataStreamRequest name + * @interface IAudience + * @property {string|null} [name] Audience name + * @property {string|null} [displayName] Audience displayName + * @property {string|null} [description] Audience description + * @property {number|null} [membershipDurationDays] Audience membershipDurationDays + * @property {boolean|null} [adsPersonalizationEnabled] Audience adsPersonalizationEnabled + * @property {google.analytics.admin.v1alpha.IAudienceEventTrigger|null} [eventTrigger] Audience eventTrigger + * @property {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null} [exclusionDurationMode] Audience exclusionDurationMode + * @property {Array.|null} [filterClauses] Audience filterClauses */ /** - * Constructs a new GetDataStreamRequest. + * Constructs a new Audience. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataStreamRequest. - * @implements IGetDataStreamRequest + * @classdesc Represents an Audience. + * @implements IAudience * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set */ - function GetDataStreamRequest(properties) { + function Audience(properties) { + this.filterClauses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22057,76 +33742,170 @@ } /** - * GetDataStreamRequest name. + * Audience name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - GetDataStreamRequest.prototype.name = ""; + Audience.prototype.name = ""; /** - * Creates a new GetDataStreamRequest instance using the specified properties. + * Audience displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.displayName = ""; + + /** + * Audience description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.description = ""; + + /** + * Audience membershipDurationDays. + * @member {number} membershipDurationDays + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.membershipDurationDays = 0; + + /** + * Audience adsPersonalizationEnabled. + * @member {boolean} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.adsPersonalizationEnabled = false; + + /** + * Audience eventTrigger. + * @member {google.analytics.admin.v1alpha.IAudienceEventTrigger|null|undefined} eventTrigger + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.eventTrigger = null; + + /** + * Audience exclusionDurationMode. + * @member {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} exclusionDurationMode + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.exclusionDurationMode = 0; + + /** + * Audience filterClauses. + * @member {Array.} filterClauses + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.filterClauses = $util.emptyArray; + + /** + * Creates a new Audience instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Audience} Audience instance */ - GetDataStreamRequest.create = function create(properties) { - return new GetDataStreamRequest(properties); + Audience.create = function create(properties) { + return new Audience(properties); }; /** - * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataStreamRequest.encode = function encode(message, writer) { + Audience.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.membershipDurationDays != null && Object.hasOwnProperty.call(message, "membershipDurationDays")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.membershipDurationDays); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.adsPersonalizationEnabled); + if (message.eventTrigger != null && Object.hasOwnProperty.call(message, "eventTrigger")) + $root.google.analytics.admin.v1alpha.AudienceEventTrigger.encode(message.eventTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.exclusionDurationMode != null && Object.hasOwnProperty.call(message, "exclusionDurationMode")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.exclusionDurationMode); + if (message.filterClauses != null && message.filterClauses.length) + for (var i = 0; i < message.filterClauses.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceFilterClause.encode(message.filterClauses[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + Audience.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * Decodes an Audience message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @returns {google.analytics.admin.v1alpha.Audience} Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataStreamRequest.decode = function decode(reader, length) { + Audience.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.analytics.admin.v1alpha.GetDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Audience(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.membershipDurationDays = reader.int32(); + break; + case 5: + message.adsPersonalizationEnabled = reader.bool(); + break; + case 6: + message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.decode(reader, reader.uint32()); + break; + case 7: + message.exclusionDurationMode = reader.int32(); + break; + case 8: + if (!(message.filterClauses && message.filterClauses.length)) + message.filterClauses = []; + message.filterClauses.push($root.google.analytics.admin.v1alpha.AudienceFilterClause.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -22136,87 +33915,201 @@ }; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an Audience message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @returns {google.analytics.admin.v1alpha.Audience} Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + Audience.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataStreamRequest message. + * Verifies an Audience message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataStreamRequest.verify = function verify(message) { + Audience.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) + if (!$util.isInteger(message.membershipDurationDays)) + return "membershipDurationDays: integer expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + if (typeof message.adsPersonalizationEnabled !== "boolean") + return "adsPersonalizationEnabled: boolean expected"; + if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) { + var error = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.verify(message.eventTrigger); + if (error) + return "eventTrigger." + error; + } + if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) + switch (message.exclusionDurationMode) { + default: + return "exclusionDurationMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.filterClauses != null && message.hasOwnProperty("filterClauses")) { + if (!Array.isArray(message.filterClauses)) + return "filterClauses: array expected"; + for (var i = 0; i < message.filterClauses.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterClause.verify(message.filterClauses[i]); + if (error) + return "filterClauses." + error; + } + } return null; }; /** - * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Audience message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @returns {google.analytics.admin.v1alpha.Audience} Audience */ - GetDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataStreamRequest) + Audience.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Audience) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); + var message = new $root.google.analytics.admin.v1alpha.Audience(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.membershipDurationDays != null) + message.membershipDurationDays = object.membershipDurationDays | 0; + if (object.adsPersonalizationEnabled != null) + message.adsPersonalizationEnabled = Boolean(object.adsPersonalizationEnabled); + if (object.eventTrigger != null) { + if (typeof object.eventTrigger !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Audience.eventTrigger: object expected"); + message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.fromObject(object.eventTrigger); + } + switch (object.exclusionDurationMode) { + case "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED": + case 0: + message.exclusionDurationMode = 0; + break; + case "EXCLUDE_TEMPORARILY": + case 1: + message.exclusionDurationMode = 1; + break; + case "EXCLUDE_PERMANENTLY": + case 2: + message.exclusionDurationMode = 2; + break; + } + if (object.filterClauses) { + if (!Array.isArray(object.filterClauses)) + throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: array expected"); + message.filterClauses = []; + for (var i = 0; i < object.filterClauses.length; ++i) { + if (typeof object.filterClauses[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: object expected"); + message.filterClauses[i] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.fromObject(object.filterClauses[i]); + } + } return message; }; /** - * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an Audience message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.GetDataStreamRequest} message GetDataStreamRequest + * @param {google.analytics.admin.v1alpha.Audience} message Audience * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataStreamRequest.toObject = function toObject(message, options) { + Audience.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.filterClauses = []; + if (options.defaults) { object.name = ""; + object.displayName = ""; + object.description = ""; + object.membershipDurationDays = 0; + object.adsPersonalizationEnabled = false; + object.eventTrigger = null; + object.exclusionDurationMode = options.enums === String ? "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" : 0; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) + object.membershipDurationDays = message.membershipDurationDays; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = message.adsPersonalizationEnabled; + if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) + object.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.toObject(message.eventTrigger, options); + if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) + object.exclusionDurationMode = options.enums === String ? $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] : message.exclusionDurationMode; + if (message.filterClauses && message.filterClauses.length) { + object.filterClauses = []; + for (var j = 0; j < message.filterClauses.length; ++j) + object.filterClauses[j] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.toObject(message.filterClauses[j], options); + } return object; }; /** - * Converts this GetDataStreamRequest to JSON. + * Converts this Audience to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.Audience * @instance * @returns {Object.} JSON object */ - GetDataStreamRequest.prototype.toJSON = function toJSON() { + Audience.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDataStreamRequest; + /** + * AudienceExclusionDurationMode enum. + * @name google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + * @enum {number} + * @property {number} AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED=0 AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED value + * @property {number} EXCLUDE_TEMPORARILY=1 EXCLUDE_TEMPORARILY value + * @property {number} EXCLUDE_PERMANENTLY=2 EXCLUDE_PERMANENTLY value + */ + Audience.AudienceExclusionDurationMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXCLUDE_TEMPORARILY"] = 1; + values[valuesById[2] = "EXCLUDE_PERMANENTLY"] = 2; + return values; + })(); + + return Audience; })(); /** @@ -22352,7 +34245,9 @@ * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK=14 DISPLAY_VIDEO_360_ADVERTISER_LINK value * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL=15 DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL value + * @property {number} SEARCH_ADS_360_LINK=16 SEARCH_ADS_360_LINK value * @property {number} DATA_STREAM=18 DATA_STREAM value + * @property {number} ATTRIBUTION_SETTINGS=20 ATTRIBUTION_SETTINGS value */ v1alpha.ChangeHistoryResourceType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -22369,7 +34264,9 @@ values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; values[valuesById[14] = "DISPLAY_VIDEO_360_ADVERTISER_LINK"] = 14; values[valuesById[15] = "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"] = 15; + values[valuesById[16] = "SEARCH_ADS_360_LINK"] = 16; values[valuesById[18] = "DATA_STREAM"] = 18; + values[valuesById[20] = "ATTRIBUTION_SETTINGS"] = 20; return values; })(); @@ -22445,6 +34342,24 @@ return values; })(); + /** + * PropertyType enum. + * @name google.analytics.admin.v1alpha.PropertyType + * @enum {number} + * @property {number} PROPERTY_TYPE_UNSPECIFIED=0 PROPERTY_TYPE_UNSPECIFIED value + * @property {number} PROPERTY_TYPE_ORDINARY=1 PROPERTY_TYPE_ORDINARY value + * @property {number} PROPERTY_TYPE_SUBPROPERTY=2 PROPERTY_TYPE_SUBPROPERTY value + * @property {number} PROPERTY_TYPE_ROLLUP=3 PROPERTY_TYPE_ROLLUP value + */ + v1alpha.PropertyType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROPERTY_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROPERTY_TYPE_ORDINARY"] = 1; + values[valuesById[2] = "PROPERTY_TYPE_SUBPROPERTY"] = 2; + values[valuesById[3] = "PROPERTY_TYPE_ROLLUP"] = 3; + return values; + })(); + v1alpha.Account = (function() { /** @@ -22760,6 +34675,7 @@ * @memberof google.analytics.admin.v1alpha * @interface IProperty * @property {string|null} [name] Property name + * @property {google.analytics.admin.v1alpha.PropertyType|null} [propertyType] Property propertyType * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime * @property {string|null} [parent] Property parent @@ -22796,6 +34712,14 @@ */ Property.prototype.name = ""; + /** + * Property propertyType. + * @member {google.analytics.admin.v1alpha.PropertyType} propertyType + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.propertyType = 0; + /** * Property createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime @@ -22932,6 +34856,8 @@ $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.account != null && Object.hasOwnProperty.call(message, "account")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.account); + if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.propertyType); return writer; }; @@ -22969,6 +34895,9 @@ case 1: message.name = reader.string(); break; + case 14: + message.propertyType = reader.int32(); + break; case 3: message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; @@ -23040,6 +34969,16 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + switch (message.propertyType) { + default: + return "propertyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) @@ -23134,6 +35073,24 @@ var message = new $root.google.analytics.admin.v1alpha.Property(); if (object.name != null) message.name = String(object.name); + switch (object.propertyType) { + case "PROPERTY_TYPE_UNSPECIFIED": + case 0: + message.propertyType = 0; + break; + case "PROPERTY_TYPE_ORDINARY": + case 1: + message.propertyType = 1; + break; + case "PROPERTY_TYPE_SUBPROPERTY": + case 2: + message.propertyType = 2; + break; + case "PROPERTY_TYPE_ROLLUP": + case 3: + message.propertyType = 3; + break; + } if (object.createTime != null) { if (typeof object.createTime !== "object") throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); @@ -23317,6 +35274,7 @@ object.deleteTime = null; object.expireTime = null; object.account = ""; + object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -23342,6 +35300,8 @@ object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); if (message.account != null && message.hasOwnProperty("account")) object.account = message.account; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; return object; }; @@ -26354,6 +38314,8 @@ * @interface IPropertySummary * @property {string|null} [property] PropertySummary property * @property {string|null} [displayName] PropertySummary displayName + * @property {google.analytics.admin.v1alpha.PropertyType|null} [propertyType] PropertySummary propertyType + * @property {string|null} [parent] PropertySummary parent */ /** @@ -26387,6 +38349,22 @@ */ PropertySummary.prototype.displayName = ""; + /** + * PropertySummary propertyType. + * @member {google.analytics.admin.v1alpha.PropertyType} propertyType + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.propertyType = 0; + + /** + * PropertySummary parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.parent = ""; + /** * Creates a new PropertySummary instance using the specified properties. * @function create @@ -26415,6 +38393,10 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.propertyType); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; @@ -26455,6 +38437,12 @@ case 2: message.displayName = reader.string(); break; + case 3: + message.propertyType = reader.int32(); + break; + case 4: + message.parent = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -26496,6 +38484,19 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + switch (message.propertyType) { + default: + return "propertyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; @@ -26515,6 +38516,26 @@ message.property = String(object.property); if (object.displayName != null) message.displayName = String(object.displayName); + switch (object.propertyType) { + case "PROPERTY_TYPE_UNSPECIFIED": + case 0: + message.propertyType = 0; + break; + case "PROPERTY_TYPE_ORDINARY": + case 1: + message.propertyType = 1; + break; + case "PROPERTY_TYPE_SUBPROPERTY": + case 2: + message.propertyType = 2; + break; + case "PROPERTY_TYPE_ROLLUP": + case 3: + message.propertyType = 3; + break; + } + if (object.parent != null) + message.parent = String(object.parent); return message; }; @@ -26534,11 +38555,17 @@ if (options.defaults) { object.property = ""; object.displayName = ""; + object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; + object.parent = ""; } if (message.property != null && message.hasOwnProperty("property")) object.property = message.property; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; @@ -27439,6 +39466,7 @@ * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] ChangeHistoryResource customMetric * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] ChangeHistoryResource dataRetentionSettings * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] ChangeHistoryResource dataStream + * @property {google.analytics.admin.v1alpha.IAttributionSettings|null} [attributionSettings] ChangeHistoryResource attributionSettings */ /** @@ -27560,17 +39588,25 @@ */ ChangeHistoryResource.prototype.dataStream = null; + /** + * ChangeHistoryResource attributionSettings. + * @member {google.analytics.admin.v1alpha.IAttributionSettings|null|undefined} attributionSettings + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.attributionSettings = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * ChangeHistoryResource resource. - * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"|undefined} resource + * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"|"attributionSettings"|undefined} resource * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource * @instance */ Object.defineProperty(ChangeHistoryResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings", "dataStream"]), + get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings", "dataStream", "attributionSettings"]), set: $util.oneOfSetter($oneOfFields) }); @@ -27624,6 +39660,8 @@ $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.attributionSettings != null && Object.hasOwnProperty.call(message, "attributionSettings")) + $root.google.analytics.admin.v1alpha.AttributionSettings.encode(message.attributionSettings, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; @@ -27697,6 +39735,9 @@ case 18: message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); break; + case 20: + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -27861,6 +39902,16 @@ return "dataStream." + error; } } + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.AttributionSettings.verify(message.attributionSettings); + if (error) + return "attributionSettings." + error; + } + } return null; }; @@ -27941,6 +39992,11 @@ throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataStream: object expected"); message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); } + if (object.attributionSettings != null) { + if (typeof object.attributionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.attributionSettings: object expected"); + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.fromObject(object.attributionSettings); + } return message; }; @@ -28022,6 +40078,11 @@ if (options.oneofs) object.resource = "dataStream"; } + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { + object.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.toObject(message.attributionSettings, options); + if (options.oneofs) + object.resource = "attributionSettings"; + } return object; }; @@ -30671,6 +42732,404 @@ return DataRetentionSettings; })(); + v1alpha.AttributionSettings = (function() { + + /** + * Properties of an AttributionSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IAttributionSettings + * @property {string|null} [name] AttributionSettings name + * @property {google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|null} [acquisitionConversionEventLookbackWindow] AttributionSettings acquisitionConversionEventLookbackWindow + * @property {google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|null} [otherConversionEventLookbackWindow] AttributionSettings otherConversionEventLookbackWindow + * @property {google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|null} [reportingAttributionModel] AttributionSettings reportingAttributionModel + */ + + /** + * Constructs a new AttributionSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AttributionSettings. + * @implements IAttributionSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IAttributionSettings=} [properties] Properties to set + */ + function AttributionSettings(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]]; + } + + /** + * AttributionSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @instance + */ + AttributionSettings.prototype.name = ""; + + /** + * AttributionSettings acquisitionConversionEventLookbackWindow. + * @member {google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow} acquisitionConversionEventLookbackWindow + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @instance + */ + AttributionSettings.prototype.acquisitionConversionEventLookbackWindow = 0; + + /** + * AttributionSettings otherConversionEventLookbackWindow. + * @member {google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow} otherConversionEventLookbackWindow + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @instance + */ + AttributionSettings.prototype.otherConversionEventLookbackWindow = 0; + + /** + * AttributionSettings reportingAttributionModel. + * @member {google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel} reportingAttributionModel + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @instance + */ + AttributionSettings.prototype.reportingAttributionModel = 0; + + /** + * Creates a new AttributionSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {google.analytics.admin.v1alpha.IAttributionSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings instance + */ + AttributionSettings.create = function create(properties) { + return new AttributionSettings(properties); + }; + + /** + * Encodes the specified AttributionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {google.analytics.admin.v1alpha.IAttributionSettings} message AttributionSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttributionSettings.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.acquisitionConversionEventLookbackWindow != null && Object.hasOwnProperty.call(message, "acquisitionConversionEventLookbackWindow")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.acquisitionConversionEventLookbackWindow); + if (message.otherConversionEventLookbackWindow != null && Object.hasOwnProperty.call(message, "otherConversionEventLookbackWindow")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.otherConversionEventLookbackWindow); + if (message.reportingAttributionModel != null && Object.hasOwnProperty.call(message, "reportingAttributionModel")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.reportingAttributionModel); + return writer; + }; + + /** + * Encodes the specified AttributionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {google.analytics.admin.v1alpha.IAttributionSettings} message AttributionSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttributionSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AttributionSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttributionSettings.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.analytics.admin.v1alpha.AttributionSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.acquisitionConversionEventLookbackWindow = reader.int32(); + break; + case 3: + message.otherConversionEventLookbackWindow = reader.int32(); + break; + case 4: + message.reportingAttributionModel = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AttributionSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttributionSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AttributionSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AttributionSettings.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.acquisitionConversionEventLookbackWindow != null && message.hasOwnProperty("acquisitionConversionEventLookbackWindow")) + switch (message.acquisitionConversionEventLookbackWindow) { + default: + return "acquisitionConversionEventLookbackWindow: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.otherConversionEventLookbackWindow != null && message.hasOwnProperty("otherConversionEventLookbackWindow")) + switch (message.otherConversionEventLookbackWindow) { + default: + return "otherConversionEventLookbackWindow: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.reportingAttributionModel != null && message.hasOwnProperty("reportingAttributionModel")) + switch (message.reportingAttributionModel) { + default: + return "reportingAttributionModel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + /** + * Creates an AttributionSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings + */ + AttributionSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AttributionSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.AttributionSettings(); + if (object.name != null) + message.name = String(object.name); + switch (object.acquisitionConversionEventLookbackWindow) { + case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": + case 0: + message.acquisitionConversionEventLookbackWindow = 0; + break; + case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS": + case 1: + message.acquisitionConversionEventLookbackWindow = 1; + break; + case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": + case 2: + message.acquisitionConversionEventLookbackWindow = 2; + break; + } + switch (object.otherConversionEventLookbackWindow) { + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": + case 0: + message.otherConversionEventLookbackWindow = 0; + break; + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": + case 1: + message.otherConversionEventLookbackWindow = 1; + break; + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS": + case 2: + message.otherConversionEventLookbackWindow = 2; + break; + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS": + case 3: + message.otherConversionEventLookbackWindow = 3; + break; + } + switch (object.reportingAttributionModel) { + case "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED": + case 0: + message.reportingAttributionModel = 0; + break; + case "CROSS_CHANNEL_DATA_DRIVEN": + case 1: + message.reportingAttributionModel = 1; + break; + case "CROSS_CHANNEL_LAST_CLICK": + case 2: + message.reportingAttributionModel = 2; + break; + case "CROSS_CHANNEL_FIRST_CLICK": + case 3: + message.reportingAttributionModel = 3; + break; + case "CROSS_CHANNEL_LINEAR": + case 4: + message.reportingAttributionModel = 4; + break; + case "CROSS_CHANNEL_POSITION_BASED": + case 5: + message.reportingAttributionModel = 5; + break; + case "CROSS_CHANNEL_TIME_DECAY": + case 6: + message.reportingAttributionModel = 6; + break; + case "ADS_PREFERRED_LAST_CLICK": + case 7: + message.reportingAttributionModel = 7; + break; + } + return message; + }; + + /** + * Creates a plain object from an AttributionSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {google.analytics.admin.v1alpha.AttributionSettings} message AttributionSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AttributionSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.acquisitionConversionEventLookbackWindow = options.enums === String ? "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" : 0; + object.otherConversionEventLookbackWindow = options.enums === String ? "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" : 0; + object.reportingAttributionModel = options.enums === String ? "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.acquisitionConversionEventLookbackWindow != null && message.hasOwnProperty("acquisitionConversionEventLookbackWindow")) + object.acquisitionConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] : message.acquisitionConversionEventLookbackWindow; + if (message.otherConversionEventLookbackWindow != null && message.hasOwnProperty("otherConversionEventLookbackWindow")) + object.otherConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] : message.otherConversionEventLookbackWindow; + if (message.reportingAttributionModel != null && message.hasOwnProperty("reportingAttributionModel")) + object.reportingAttributionModel = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] : message.reportingAttributionModel; + return object; + }; + + /** + * Converts this AttributionSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @instance + * @returns {Object.} JSON object + */ + AttributionSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * AcquisitionConversionEventLookbackWindow enum. + * @name google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow + * @enum {number} + * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED=0 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED value + * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS=1 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS value + * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS=2 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS value + */ + AttributionSettings.AcquisitionConversionEventLookbackWindow = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS"] = 1; + values[valuesById[2] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"] = 2; + return values; + })(); + + /** + * OtherConversionEventLookbackWindow enum. + * @name google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + * @enum {number} + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED=0 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED value + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS=1 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS value + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS=2 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS value + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS=3 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS value + */ + AttributionSettings.OtherConversionEventLookbackWindow = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED"] = 0; + values[valuesById[1] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"] = 1; + values[valuesById[2] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS"] = 2; + values[valuesById[3] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"] = 3; + return values; + })(); + + /** + * ReportingAttributionModel enum. + * @name google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + * @enum {number} + * @property {number} REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED=0 REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED value + * @property {number} CROSS_CHANNEL_DATA_DRIVEN=1 CROSS_CHANNEL_DATA_DRIVEN value + * @property {number} CROSS_CHANNEL_LAST_CLICK=2 CROSS_CHANNEL_LAST_CLICK value + * @property {number} CROSS_CHANNEL_FIRST_CLICK=3 CROSS_CHANNEL_FIRST_CLICK value + * @property {number} CROSS_CHANNEL_LINEAR=4 CROSS_CHANNEL_LINEAR value + * @property {number} CROSS_CHANNEL_POSITION_BASED=5 CROSS_CHANNEL_POSITION_BASED value + * @property {number} CROSS_CHANNEL_TIME_DECAY=6 CROSS_CHANNEL_TIME_DECAY value + * @property {number} ADS_PREFERRED_LAST_CLICK=7 ADS_PREFERRED_LAST_CLICK value + */ + AttributionSettings.ReportingAttributionModel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "CROSS_CHANNEL_DATA_DRIVEN"] = 1; + values[valuesById[2] = "CROSS_CHANNEL_LAST_CLICK"] = 2; + values[valuesById[3] = "CROSS_CHANNEL_FIRST_CLICK"] = 3; + values[valuesById[4] = "CROSS_CHANNEL_LINEAR"] = 4; + values[valuesById[5] = "CROSS_CHANNEL_POSITION_BASED"] = 5; + values[valuesById[6] = "CROSS_CHANNEL_TIME_DECAY"] = 6; + values[valuesById[7] = "ADS_PREFERRED_LAST_CLICK"] = 7; + return values; + })(); + + return AttributionSettings; + })(); + return v1alpha; })(); @@ -61900,6 +74359,230 @@ return GeneratedCodeInfo; })(); + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(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]]; + } + + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Duration; + })(); + protobuf.Timestamp = (function() { /** diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index b7f5db4471a..c0baf31bae8 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -14,6 +14,339 @@ "java_package": "com.google.analytics.admin.v1alpha" }, "nested": { + "AccessDimension": { + "fields": { + "dimensionName": { + "type": "string", + "id": 1 + } + } + }, + "AccessMetric": { + "fields": { + "metricName": { + "type": "string", + "id": 1 + } + } + }, + "AccessDateRange": { + "fields": { + "startDate": { + "type": "string", + "id": 1 + }, + "endDate": { + "type": "string", + "id": 2 + } + } + }, + "AccessFilterExpression": { + "oneofs": { + "oneExpression": { + "oneof": [ + "andGroup", + "orGroup", + "notExpression", + "accessFilter" + ] + } + }, + "fields": { + "andGroup": { + "type": "AccessFilterExpressionList", + "id": 1 + }, + "orGroup": { + "type": "AccessFilterExpressionList", + "id": 2 + }, + "notExpression": { + "type": "AccessFilterExpression", + "id": 3 + }, + "accessFilter": { + "type": "AccessFilter", + "id": 4 + } + } + }, + "AccessFilterExpressionList": { + "fields": { + "expressions": { + "rule": "repeated", + "type": "AccessFilterExpression", + "id": 1 + } + } + }, + "AccessFilter": { + "oneofs": { + "oneFilter": { + "oneof": [ + "stringFilter", + "inListFilter", + "numericFilter", + "betweenFilter" + ] + } + }, + "fields": { + "stringFilter": { + "type": "AccessStringFilter", + "id": 2 + }, + "inListFilter": { + "type": "AccessInListFilter", + "id": 3 + }, + "numericFilter": { + "type": "AccessNumericFilter", + "id": 4 + }, + "betweenFilter": { + "type": "AccessBetweenFilter", + "id": 5 + }, + "fieldName": { + "type": "string", + "id": 1 + } + } + }, + "AccessStringFilter": { + "fields": { + "matchType": { + "type": "MatchType", + "id": 1 + }, + "value": { + "type": "string", + "id": 2 + }, + "caseSensitive": { + "type": "bool", + "id": 3 + } + }, + "nested": { + "MatchType": { + "values": { + "MATCH_TYPE_UNSPECIFIED": 0, + "EXACT": 1, + "BEGINS_WITH": 2, + "ENDS_WITH": 3, + "CONTAINS": 4, + "FULL_REGEXP": 5, + "PARTIAL_REGEXP": 6 + } + } + } + }, + "AccessInListFilter": { + "fields": { + "values": { + "rule": "repeated", + "type": "string", + "id": 1 + }, + "caseSensitive": { + "type": "bool", + "id": 2 + } + } + }, + "AccessNumericFilter": { + "fields": { + "operation": { + "type": "Operation", + "id": 1 + }, + "value": { + "type": "NumericValue", + "id": 2 + } + }, + "nested": { + "Operation": { + "values": { + "OPERATION_UNSPECIFIED": 0, + "EQUAL": 1, + "LESS_THAN": 2, + "LESS_THAN_OR_EQUAL": 3, + "GREATER_THAN": 4, + "GREATER_THAN_OR_EQUAL": 5 + } + } + } + }, + "AccessBetweenFilter": { + "fields": { + "fromValue": { + "type": "NumericValue", + "id": 1 + }, + "toValue": { + "type": "NumericValue", + "id": 2 + } + } + }, + "NumericValue": { + "oneofs": { + "oneValue": { + "oneof": [ + "int64Value", + "doubleValue" + ] + } + }, + "fields": { + "int64Value": { + "type": "int64", + "id": 1 + }, + "doubleValue": { + "type": "double", + "id": 2 + } + } + }, + "AccessOrderBy": { + "oneofs": { + "oneOrderBy": { + "oneof": [ + "metric", + "dimension" + ] + } + }, + "fields": { + "metric": { + "type": "MetricOrderBy", + "id": 1 + }, + "dimension": { + "type": "DimensionOrderBy", + "id": 2 + }, + "desc": { + "type": "bool", + "id": 3 + } + }, + "nested": { + "MetricOrderBy": { + "fields": { + "metricName": { + "type": "string", + "id": 1 + } + } + }, + "DimensionOrderBy": { + "fields": { + "dimensionName": { + "type": "string", + "id": 1 + }, + "orderType": { + "type": "OrderType", + "id": 2 + } + }, + "nested": { + "OrderType": { + "values": { + "ORDER_TYPE_UNSPECIFIED": 0, + "ALPHANUMERIC": 1, + "CASE_INSENSITIVE_ALPHANUMERIC": 2, + "NUMERIC": 3 + } + } + } + } + } + }, + "AccessDimensionHeader": { + "fields": { + "dimensionName": { + "type": "string", + "id": 1 + } + } + }, + "AccessMetricHeader": { + "fields": { + "metricName": { + "type": "string", + "id": 1 + } + } + }, + "AccessRow": { + "fields": { + "dimensionValues": { + "rule": "repeated", + "type": "AccessDimensionValue", + "id": 1 + }, + "metricValues": { + "rule": "repeated", + "type": "AccessMetricValue", + "id": 2 + } + } + }, + "AccessDimensionValue": { + "fields": { + "value": { + "type": "string", + "id": 1 + } + } + }, + "AccessMetricValue": { + "fields": { + "value": { + "type": "string", + "id": 1 + } + } + }, + "AccessQuota": { + "fields": { + "tokensPerDay": { + "type": "AccessQuotaStatus", + "id": 1 + }, + "tokensPerHour": { + "type": "AccessQuotaStatus", + "id": 2 + }, + "concurrentRequests": { + "type": "AccessQuotaStatus", + "id": 3 + }, + "serverErrorsPerProjectPerHour": { + "type": "AccessQuotaStatus", + "id": 4 + } + } + }, + "AccessQuotaStatus": { + "fields": { + "consumed": { + "type": "int32", + "id": 1 + }, + "remaining": { + "type": "int32", + "id": 2 + } + } + }, "AnalyticsAdminService": { "options": { "(google.api.default_host)": "analyticsadmin.googleapis.com", @@ -1363,35 +1696,260 @@ "(google.api.method_signature)": "name" } ] - } - } - }, - "GetAccountRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "GetAudience": { + "requestType": "GetAudienceRequest", + "responseType": "Audience", "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" - } - } - } - }, - "ListAccountsRequest": { - "fields": { - "pageSize": { - "type": "int32", - "id": 1 + "(google.api.http).get": "/v1alpha/{name=properties/*/audiences/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/audiences/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "pageToken": { - "type": "string", - "id": 2 + "ListAudiences": { + "requestType": "ListAudiencesRequest", + "responseType": "ListAudiencesResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/audiences", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/audiences" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, - "showDeleted": { - "type": "bool", - "id": 3 - } + "CreateAudience": { + "requestType": "CreateAudienceRequest", + "responseType": "Audience", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/audiences", + "(google.api.http).body": "audience", + "(google.api.method_signature)": "parent,audience" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/audiences", + "body": "audience" + } + }, + { + "(google.api.method_signature)": "parent,audience" + } + ] + }, + "UpdateAudience": { + "requestType": "UpdateAudienceRequest", + "responseType": "Audience", + "options": { + "(google.api.http).patch": "/v1alpha/{audience.name=properties/*/audiences/*}", + "(google.api.http).body": "audience", + "(google.api.method_signature)": "audience,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{audience.name=properties/*/audiences/*}", + "body": "audience" + } + }, + { + "(google.api.method_signature)": "audience,update_mask" + } + ] + }, + "ArchiveAudience": { + "requestType": "ArchiveAudienceRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1alpha/{name=properties/*/audiences/*}:archive", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{name=properties/*/audiences/*}:archive", + "body": "*" + } + } + ] + }, + "GetAttributionSettings": { + "requestType": "GetAttributionSettingsRequest", + "responseType": "AttributionSettings", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/attributionSettings}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/attributionSettings}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateAttributionSettings": { + "requestType": "UpdateAttributionSettingsRequest", + "responseType": "AttributionSettings", + "options": { + "(google.api.http).patch": "/v1alpha/{attribution_settings.name=properties/*/attributionSettings}", + "(google.api.http).body": "attribution_settings", + "(google.api.method_signature)": "attribution_settings,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{attribution_settings.name=properties/*/attributionSettings}", + "body": "attribution_settings" + } + }, + { + "(google.api.method_signature)": "attribution_settings,update_mask" + } + ] + }, + "RunAccessReport": { + "requestType": "RunAccessReportRequest", + "responseType": "RunAccessReportResponse", + "options": { + "(google.api.http).post": "/v1alpha/{entity=properties/*}:runAccessReport", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{entity=properties/*}:runAccessReport", + "body": "*" + } + } + ] + } + } + }, + "RunAccessReportRequest": { + "fields": { + "entity": { + "type": "string", + "id": 1 + }, + "dimensions": { + "rule": "repeated", + "type": "AccessDimension", + "id": 2 + }, + "metrics": { + "rule": "repeated", + "type": "AccessMetric", + "id": 3 + }, + "dateRanges": { + "rule": "repeated", + "type": "AccessDateRange", + "id": 4 + }, + "dimensionFilter": { + "type": "AccessFilterExpression", + "id": 5 + }, + "metricFilter": { + "type": "AccessFilterExpression", + "id": 6 + }, + "offset": { + "type": "int64", + "id": 7 + }, + "limit": { + "type": "int64", + "id": 8 + }, + "timeZone": { + "type": "string", + "id": 9 + }, + "orderBys": { + "rule": "repeated", + "type": "AccessOrderBy", + "id": 10 + }, + "returnEntityQuota": { + "type": "bool", + "id": 11 + } + } + }, + "RunAccessReportResponse": { + "fields": { + "dimensionHeaders": { + "rule": "repeated", + "type": "AccessDimensionHeader", + "id": 1 + }, + "metricHeaders": { + "rule": "repeated", + "type": "AccessMetricHeader", + "id": 2 + }, + "rows": { + "rule": "repeated", + "type": "AccessRow", + "id": 3 + }, + "rowCount": { + "type": "int32", + "id": 4 + }, + "quota": { + "type": "AccessQuota", + "id": 5 + } + } + }, + "GetAccountRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Account" + } + } + } + }, + "ListAccountsRequest": { + "fields": { + "pageSize": { + "type": "int32", + "id": 1 + }, + "pageToken": { + "type": "string", + "id": 2 + }, + "showDeleted": { + "type": "bool", + "id": 3 + } } }, "ListAccountsResponse": { @@ -2653,135 +3211,722 @@ } } }, - "GetCustomMetricRequest": { + "GetCustomMetricRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomMetric" + } + } + } + }, + "GetDataRetentionSettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataRetentionSettings" + } + } + } + }, + "UpdateDataRetentionSettingsRequest": { + "fields": { + "dataRetentionSettings": { + "type": "DataRetentionSettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CreateDataStreamRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + } + }, + "dataStream": { + "type": "DataStream", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + } + } + } + }, + "UpdateDataStreamRequest": { + "fields": { + "dataStream": { + "type": "DataStream", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListDataStreamsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDataStreamsResponse": { + "fields": { + "dataStreams": { + "rule": "repeated", + "type": "DataStream", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetDataStreamRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + } + } + } + }, + "GetAudienceRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/Audience" + } + } + } + }, + "ListAudiencesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/Audience" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListAudiencesResponse": { + "fields": { + "audiences": { + "rule": "repeated", + "type": "Audience", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateAudienceRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/Audience" + } + }, + "audience": { + "type": "Audience", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateAudienceRequest": { + "fields": { + "audience": { + "type": "Audience", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ArchiveAudienceRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/Audience" + } + } + } + }, + "GetAttributionSettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AttributionSettings" + } + } + } + }, + "UpdateAttributionSettingsRequest": { + "fields": { + "attributionSettings": { + "type": "AttributionSettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "AudienceFilterScope": { + "values": { + "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": 0, + "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": 1, + "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": 2, + "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": 3 + } + }, + "AudienceDimensionOrMetricFilter": { + "oneofs": { + "oneFilter": { + "oneof": [ + "stringFilter", + "inListFilter", + "numericFilter", + "betweenFilter" + ] + } + }, + "fields": { + "stringFilter": { + "type": "StringFilter", + "id": 2 + }, + "inListFilter": { + "type": "InListFilter", + "id": 3 + }, + "numericFilter": { + "type": "NumericFilter", + "id": 4 + }, + "betweenFilter": { + "type": "BetweenFilter", + "id": 5 + }, + "fieldName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "atAnyPointInTime": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "inAnyNDayPeriod": { + "type": "int32", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "StringFilter": { + "fields": { + "matchType": { + "type": "MatchType", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "value": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "caseSensitive": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "MatchType": { + "values": { + "MATCH_TYPE_UNSPECIFIED": 0, + "EXACT": 1, + "BEGINS_WITH": 2, + "ENDS_WITH": 3, + "CONTAINS": 4, + "FULL_REGEXP": 5, + "PARTIAL_REGEXP": 6 + } + } + } + }, + "InListFilter": { + "fields": { + "values": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "caseSensitive": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "NumericValue": { + "oneofs": { + "oneValue": { + "oneof": [ + "int64Value", + "doubleValue" + ] + } + }, + "fields": { + "int64Value": { + "type": "int64", + "id": 1 + }, + "doubleValue": { + "type": "double", + "id": 2 + } + } + }, + "NumericFilter": { + "fields": { + "operation": { + "type": "Operation", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "value": { + "type": "NumericValue", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "Operation": { + "values": { + "OPERATION_UNSPECIFIED": 0, + "EQUAL": 1, + "LESS_THAN": 2, + "LESS_THAN_OR_EQUAL": 3, + "GREATER_THAN": 4, + "GREATER_THAN_OR_EQUAL": 5 + } + } + } + }, + "BetweenFilter": { + "fields": { + "fromValue": { + "type": "NumericValue", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "toValue": { + "type": "NumericValue", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + }, + "AudienceEventFilter": { + "fields": { + "eventName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "eventParameterFilterExpression": { + "type": "AudienceFilterExpression", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "AudienceFilterExpression": { + "oneofs": { + "expr": { + "oneof": [ + "andGroup", + "orGroup", + "notExpression", + "dimensionOrMetricFilter", + "eventFilter" + ] + } + }, + "fields": { + "andGroup": { + "type": "AudienceFilterExpressionList", + "id": 1 + }, + "orGroup": { + "type": "AudienceFilterExpressionList", + "id": 2 + }, + "notExpression": { + "type": "AudienceFilterExpression", + "id": 3 + }, + "dimensionOrMetricFilter": { + "type": "AudienceDimensionOrMetricFilter", + "id": 4 + }, + "eventFilter": { + "type": "AudienceEventFilter", + "id": 5 + } + } + }, + "AudienceFilterExpressionList": { "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/CustomMetric" - } + "filterExpressions": { + "rule": "repeated", + "type": "AudienceFilterExpression", + "id": 1 } } }, - "GetDataRetentionSettingsRequest": { + "AudienceSimpleFilter": { "fields": { - "name": { - "type": "string", + "scope": { + "type": "AudienceFilterScope", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataRetentionSettings" + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "filterExpression": { + "type": "AudienceFilterExpression", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" } } } }, - "UpdateDataRetentionSettingsRequest": { + "AudienceSequenceFilter": { "fields": { - "dataRetentionSettings": { - "type": "DataRetentionSettings", + "scope": { + "type": "AudienceFilterScope", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "IMMUTABLE" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "sequenceMaximumDuration": { + "type": "google.protobuf.Duration", "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "sequenceSteps": { + "rule": "repeated", + "type": "AudienceSequenceStep", + "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } + }, + "nested": { + "AudienceSequenceStep": { + "fields": { + "scope": { + "type": "AudienceFilterScope", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "immediatelyFollows": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "constraintDuration": { + "type": "google.protobuf.Duration", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filterExpression": { + "type": "AudienceFilterExpression", + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + } } }, - "CreateDataStreamRequest": { + "AudienceFilterClause": { + "oneofs": { + "filter": { + "oneof": [ + "simpleFilter", + "sequenceFilter" + ] + } + }, "fields": { - "parent": { + "simpleFilter": { + "type": "AudienceSimpleFilter", + "id": 2 + }, + "sequenceFilter": { + "type": "AudienceSequenceFilter", + "id": 3 + }, + "clauseType": { + "type": "AudienceClauseType", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "AudienceClauseType": { + "values": { + "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED": 0, + "INCLUDE": 1, + "EXCLUDE": 2 + } + } + } + }, + "AudienceEventTrigger": { + "fields": { + "eventName": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + "(google.api.field_behavior)": "REQUIRED" } }, - "dataStream": { - "type": "DataStream", + "logCondition": { + "type": "LogCondition", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } + }, + "nested": { + "LogCondition": { + "values": { + "LOG_CONDITION_UNSPECIFIED": 0, + "AUDIENCE_JOINED": 1, + "AUDIENCE_MEMBERSHIP_RENEWED": 2 + } + } } }, - "DeleteDataStreamRequest": { + "Audience": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/Audience", + "(google.api.resource).pattern": "properties/{property}/audiences/{audience}" + }, "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "UpdateDataStreamRequest": { - "fields": { - "dataStream": { - "type": "DataStream", - "id": 1 }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "displayName": { + "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "ListDataStreamsRequest": { - "fields": { - "parent": { + }, + "description": { "type": "string", - "id": 1, + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/DataStream" + "(google.api.field_behavior)": "REQUIRED" } }, - "pageSize": { + "membershipDurationDays": { "type": "int32", - "id": 2 + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListDataStreamsResponse": { - "fields": { - "dataStreams": { - "rule": "repeated", - "type": "DataStream", - "id": 1 + "adsPersonalizationEnabled": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "GetDataStreamRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + "eventTrigger": { + "type": "AudienceEventTrigger", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/DataStream" + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "exclusionDurationMode": { + "type": "AudienceExclusionDurationMode", + "id": 7, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "filterClauses": { + "rule": "repeated", + "type": "AudienceFilterClause", + "id": 8, + "options": { + "(google.api.field_behavior)": "UNORDERED_LIST" + } + } + }, + "nested": { + "AudienceExclusionDurationMode": { + "values": { + "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED": 0, + "EXCLUDE_TEMPORARILY": 1, + "EXCLUDE_PERMANENTLY": 2 } } } @@ -2855,7 +4000,9 @@ "DATA_RETENTION_SETTINGS": 13, "DISPLAY_VIDEO_360_ADVERTISER_LINK": 14, "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": 15, - "DATA_STREAM": 18 + "SEARCH_ADS_360_LINK": 16, + "DATA_STREAM": 18, + "ATTRIBUTION_SETTINGS": 20 } }, "GoogleSignalsState": { @@ -2890,6 +4037,14 @@ "OBSOLETE": 6 } }, + "PropertyType": { + "values": { + "PROPERTY_TYPE_UNSPECIFIED": 0, + "PROPERTY_TYPE_ORDINARY": 1, + "PROPERTY_TYPE_SUBPROPERTY": 2, + "PROPERTY_TYPE_ROLLUP": 3 + } + }, "Account": { "options": { "(google.api.resource).type": "analyticsadmin.googleapis.com/Account", @@ -2950,6 +4105,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "propertyType": { + "type": "PropertyType", + "id": 14, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, "createTime": { "type": "google.protobuf.Timestamp", "id": 3, @@ -3385,6 +4547,14 @@ "displayName": { "type": "string", "id": 2 + }, + "propertyType": { + "type": "PropertyType", + "id": 3 + }, + "parent": { + "type": "string", + "id": 4 } } }, @@ -3482,7 +4652,8 @@ "customDimension", "customMetric", "dataRetentionSettings", - "dataStream" + "dataStream", + "attributionSettings" ] } }, @@ -3538,6 +4709,10 @@ "dataStream": { "type": "DataStream", "id": 18 + }, + "attributionSettings": { + "type": "AttributionSettings", + "id": 20 } } } @@ -3929,6 +5104,71 @@ } } } + }, + "AttributionSettings": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/AttributionSettings", + "(google.api.resource).pattern": "properties/{property}/attributionSettings" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "acquisitionConversionEventLookbackWindow": { + "type": "AcquisitionConversionEventLookbackWindow", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "otherConversionEventLookbackWindow": { + "type": "OtherConversionEventLookbackWindow", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reportingAttributionModel": { + "type": "ReportingAttributionModel", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "AcquisitionConversionEventLookbackWindow": { + "values": { + "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": 0, + "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS": 1, + "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": 2 + } + }, + "OtherConversionEventLookbackWindow": { + "values": { + "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": 0, + "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": 1, + "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS": 2, + "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS": 3 + } + }, + "ReportingAttributionModel": { + "values": { + "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED": 0, + "CROSS_CHANNEL_DATA_DRIVEN": 1, + "CROSS_CHANNEL_LAST_CLICK": 2, + "CROSS_CHANNEL_FIRST_CLICK": 3, + "CROSS_CHANNEL_LINEAR": 4, + "CROSS_CHANNEL_POSITION_BASED": 5, + "CROSS_CHANNEL_TIME_DECAY": 6, + "ADS_PREFERRED_LAST_CLICK": 7 + } + } + } } } }, @@ -7748,6 +8988,18 @@ } } }, + "Duration": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, "Timestamp": { "fields": { "seconds": { diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js index 5bcfc38bc05..577eea00f55 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js @@ -23,6 +23,9 @@ function main(property, acknowledgement) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js index 1f691a3c09c..ef5e800d9cb 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js new file mode 100644 index 00000000000..49ca19345d7 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js @@ -0,0 +1,61 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_async] + /** + * 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. Example format: properties/1234/audiences/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callArchiveAudience() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.archiveAudience(request); + console.log(response); + } + + callArchiveAudience(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js index 48be3a7a3f7..bf9f0146941 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js index 5afad7030d6..65273540dca 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js index 14e86fb59a6..2a5b953e883 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js index cf09400f176..53b986704dc 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js index 9e6d2d6c4f6..0d59cfa3ca7 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js index b43c8776382..13bbb261220 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js @@ -23,6 +23,9 @@ function main(parent, names) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js index b3e8d493cdd..dc027931097 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js index 9003bf739ba..2e8683b7ac3 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js new file mode 100644 index 00000000000..f4d10ddd1cb --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js @@ -0,0 +1,66 @@ +// 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 +// +// 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'; + +function main(parent, audience) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_async] + /** + * 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. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The audience to create. + */ + // const audience = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateAudience() { + // Construct request + const request = { + parent, + audience, + }; + + // Run request + const response = await adminClient.createAudience(request); + console.log(response); + } + + callCreateAudience(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js index 4e29baea85a..aee5cf3cde4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js @@ -23,6 +23,9 @@ function main(conversionEvent, parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js index 015b39dd61e..581a35b489b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js @@ -23,6 +23,9 @@ function main(parent, customDimension) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js index 896c7cae90d..5958c9438c3 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js @@ -23,6 +23,9 @@ function main(parent, customMetric) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js index 447c77a9e0a..b0d1b1f8f6c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js @@ -23,6 +23,9 @@ function main(parent, dataStream) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js index fc9ecfc0d55..145be4cf0c2 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js @@ -23,6 +23,9 @@ function main(parent, displayVideo_360AdvertiserLink) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js index 9815ab9bcb4..37270de9eab 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js @@ -23,6 +23,9 @@ function main(parent, displayVideo_360AdvertiserLinkProposal) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js index 2022590fe57..e6d3e44c47c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js @@ -23,6 +23,9 @@ function main(parent, firebaseLink) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js index fc6c764ecad..90f1ace8273 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js @@ -23,6 +23,9 @@ function main(parent, googleAdsLink) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js index 0eaa5d77ef6..91a3faf512f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(parent, measurementProtocolSecret) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js index 37a26536a0c..dc0c9c027cf 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js @@ -23,6 +23,9 @@ function main(property) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js index 7f10712fd48..9c5d32b29b1 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js @@ -23,6 +23,9 @@ function main(parent, userLink) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js index 0881043b914..21533dbf7a9 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js index 4d82df818be..b7710f2809f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js index 9ee9e2e35dd..5dd0389adbc 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js index 6709f70153b..6d7a487f5ad 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js index 49e71c499f3..41a6351661d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js index fa775a84e75..c45d479a2b9 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js index 7e4859959a4..fd73be10bd5 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js index 6bb0eab99ea..14936d60079 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js index a013f3d51aa..7cd20c8ee49 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js index c8e619786a6..b4d6114d8ec 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js index a8d2bd23b9d..19782ca0f50 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js new file mode 100644 index 00000000000..0a673ca00a9 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js @@ -0,0 +1,62 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async] + /** + * 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 name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetAttributionSettings() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getAttributionSettings(request); + console.log(response); + } + + callGetAttributionSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js new file mode 100644 index 00000000000..e29af31a855 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js @@ -0,0 +1,62 @@ +// 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 +// +// 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'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_async] + /** + * 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 name of the Audience to get. + * Example format: properties/1234/audiences/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetAudience() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getAudience(request); + console.log(response); + } + + callGetAudience(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js index 8eaf6d169c7..ce65b739bbc 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js index cf71366de5b..96f1e3452dd 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js index 3ee1ce9e65b..5e8514bfedb 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js index 7a734340ca8..643ff30678b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js index 651593e444c..a98b542bf8f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js index 9e94747b003..c41a6c08bcd 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js index fede5330880..9d646a5d016 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js index b13181c0dd6..a27aba5d68b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js index 159694c6730..077e52524fd 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js index 6843a1cd99d..6511ece8b63 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js index c8fd3d4c3c7..e8522f62f34 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js index 789def70fc6..61df45cee8c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js index 9fedb795963..fefd655bd45 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js index 98d74dfdee6..dafe9e1bb5b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js @@ -23,6 +23,9 @@ function main() { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js index a31cb17645c..68a9749b57d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js @@ -23,6 +23,9 @@ function main() { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js new file mode 100644 index 00000000000..852b499ee49 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js @@ -0,0 +1,76 @@ +// 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 +// +// 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'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async] + /** + * 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. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListAudiences() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listAudiencesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListAudiences(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js index c5e1b273421..f3c374a67b6 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js index fc6cd936ba9..3744725dee7 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js index 84b2067dc31..465f8baf35e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js index 76d3d10fead..eb4dc601bdb 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js index 2ed63f61622..4515609feb3 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js index 13637942239..e55c44b51b4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js index 07fb24d8107..bf132250083 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js index 96b093b9c7e..261283aad0f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js index 60896d44b13..1997d718824 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js index 90205277431..2944109154d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js @@ -23,6 +23,9 @@ function main(filter) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js index 0f0975f09e4..dc07e9ba163 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js index 9c9255008be..df8e58bdd87 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js @@ -23,6 +23,9 @@ function main() { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js new file mode 100644 index 00000000000..4cbdc6a09db --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js @@ -0,0 +1,134 @@ +// 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 +// +// 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'; + +function main() { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_async] + /** + * 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. + */ + /** + * The Data Access Report is requested for this property. + * For example if "123" is your GA4 property ID, then entity should be + * "properties/123". + */ + // const entity = 'abc123' + /** + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + */ + // const dimensions = 1234 + /** + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + */ + // const metrics = 1234 + /** + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + */ + // const dateRanges = 1234 + /** + * Dimension filters allow you to restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see Fundamentals of Dimension + * Filters (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + */ + // const dimensionFilter = {} + /** + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + */ + // const metricFilter = {} + /** + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * Pagination (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + */ + // const offset = 1234 + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * Pagination (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + */ + // const limit = 1234 + /** + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + */ + // const timeZone = 'abc123' + /** + * Specifies how rows are ordered in the response. + */ + // const orderBys = 1234 + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in AccessQuota (#AccessQuota). + */ + // const returnEntityQuota = true + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callRunAccessReport() { + // Construct request + const request = { + }; + + // Run request + const response = await adminClient.runAccessReport(request); + console.log(response); + } + + callRunAccessReport(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js index b9f9d576365..c59e9fddb77 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js @@ -23,6 +23,9 @@ function main(account) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js index 4a3829a66de..c3580e38f65 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js @@ -23,6 +23,9 @@ function main(account, updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js new file mode 100644 index 00000000000..222adb533eb --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js @@ -0,0 +1,69 @@ +// 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 +// +// 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'; + +function main(attributionSettings, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_async] + /** + * 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 attribution settings to update. + * The `name` field is used to identify the settings to be updated. + */ + // const attributionSettings = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateAttributionSettings() { + // Construct request + const request = { + attributionSettings, + updateMask, + }; + + // Run request + const response = await adminClient.updateAttributionSettings(request); + console.log(response); + } + + callUpdateAttributionSettings(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js new file mode 100644 index 00000000000..b5c23ad72d1 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js @@ -0,0 +1,69 @@ +// 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 +// +// 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'; + +function main(audience, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_async] + /** + * 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 audience to update. + * The audience's `name` field is used to identify the audience to be updated. + */ + // const audience = {} + /** + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateAudience() { + // Construct request + const request = { + audience, + updateMask, + }; + + // Run request + const response = await adminClient.updateAudience(request); + console.log(response); + } + + callUpdateAudience(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js index b6638b1f173..ebaf1ac001b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js index 50af269b9c3..dfdfd553548 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js index 13e6dd5cad7..61d890f08eb 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js @@ -23,6 +23,9 @@ function main(dataRetentionSettings, updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js index f3c6fc73620..0d1ef2f2ac0 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js index 1697b7a8489..bb721bbc482 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js index ba2fae475ea..af044749023 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js index 85e7f515556..8e1142f2b38 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js @@ -23,6 +23,9 @@ function main(googleSignalsSettings, updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js index 294e1271f18..1439a5e32e7 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(measurementProtocolSecret) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js index c4cbff7c281..172c157cbcd 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js @@ -23,6 +23,9 @@ function main(property, updateMask) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js index 3c3a48a7b0a..d14e6aa2f9e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js @@ -23,6 +23,9 @@ function main(userLink) { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index baac4ffb537..a1dd8200a5e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -62,7 +62,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -150,7 +150,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -194,7 +194,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -238,7 +238,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -282,7 +282,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -322,7 +322,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 89, "type": "FULL" } ], @@ -374,7 +374,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -414,7 +414,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -454,7 +454,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -498,7 +498,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -538,7 +538,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -582,7 +582,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -630,7 +630,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -678,7 +678,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -726,7 +726,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -774,7 +774,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -814,7 +814,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -858,7 +858,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -898,7 +898,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -942,7 +942,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -986,7 +986,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1026,7 +1026,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1074,7 +1074,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -1114,7 +1114,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1158,7 +1158,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1202,7 +1202,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1242,7 +1242,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -1290,7 +1290,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1330,7 +1330,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1370,7 +1370,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1418,7 +1418,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1462,7 +1462,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1502,7 +1502,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -1546,7 +1546,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -1590,7 +1590,7 @@ "segments": [ { "start": 25, - "end": 93, + "end": 96, "type": "FULL" } ], @@ -1662,7 +1662,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1702,7 +1702,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -1746,7 +1746,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1790,7 +1790,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1830,7 +1830,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1870,7 +1870,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1918,7 +1918,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1958,7 +1958,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -2006,7 +2006,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2050,7 +2050,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2090,7 +2090,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2134,7 +2134,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2174,7 +2174,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -2222,7 +2222,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2266,7 +2266,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2306,7 +2306,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2346,7 +2346,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2386,7 +2386,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2430,7 +2430,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2474,7 +2474,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -2522,7 +2522,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2562,7 +2562,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2602,7 +2602,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2646,7 +2646,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2690,7 +2690,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -2738,7 +2738,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2778,7 +2778,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2818,7 +2818,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2858,7 +2858,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -2902,7 +2902,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2946,7 +2946,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -2986,7 +2986,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3030,7 +3030,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -3078,7 +3078,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -3106,6 +3106,386 @@ } } } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_async", + "title": "AnalyticsAdminService getAudience Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single Audience. Audiences created before 2020 may not be supported.", + "canonical": true, + "file": "analytics_admin_service.get_audience.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudience", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Audience", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudience", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async", + "title": "AnalyticsAdminService listAudiences Sample", + "origin": "API_DEFINITION", + "description": " Lists Audiences on a property. Audiences created before 2020 may not be supported.", + "canonical": true, + "file": "analytics_admin_service.list_audiences.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAudiences", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiences", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListAudiencesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAudiences", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiences", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_async", + "title": "AnalyticsAdminService createAudience Sample", + "origin": "API_DEFINITION", + "description": " Creates an Audience.", + "canonical": true, + "file": "analytics_admin_service.create_audience.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudience", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "audience", + "type": ".google.analytics.admin.v1alpha.Audience" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Audience", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudience", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_async", + "title": "AnalyticsAdminService updateAudience Sample", + "origin": "API_DEFINITION", + "description": " Updates an Audience on a property.", + "canonical": true, + "file": "analytics_admin_service.update_audience.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudience", + "async": true, + "parameters": [ + { + "name": "audience", + "type": ".google.analytics.admin.v1alpha.Audience" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.Audience", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudience", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_async", + "title": "AnalyticsAdminService archiveAudience Sample", + "origin": "API_DEFINITION", + "description": " Archives an Audience on a property.", + "canonical": true, + "file": "analytics_admin_service.archive_audience.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ArchiveAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudience", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ArchiveAudience", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudience", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async", + "title": "AnalyticsAdminService getAttributionSettings Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a AttributionSettings singleton.", + "canonical": true, + "file": "analytics_admin_service.get_attribution_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAttributionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettings", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AttributionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetAttributionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_async", + "title": "AnalyticsAdminService updateAttributionSettings Sample", + "origin": "API_DEFINITION", + "description": " Updates attribution settings on a property.", + "canonical": true, + "file": "analytics_admin_service.update_attribution_settings.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAttributionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettings", + "async": true, + "parameters": [ + { + "name": "attribution_settings", + "type": ".google.analytics.admin.v1alpha.AttributionSettings" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AttributionSettings", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateAttributionSettings", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettings", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_async", + "title": "AnalyticsAdminService runAccessReport Sample", + "origin": "API_DEFINITION", + "description": " Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", + "canonical": true, + "file": "analytics_admin_service.run_access_report.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 126, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RunAccessReport", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReport", + "async": true, + "parameters": [ + { + "name": "entity", + "type": "TYPE_STRING" + }, + { + "name": "dimensions", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "metrics", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "date_ranges", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "dimension_filter", + "type": ".google.analytics.admin.v1alpha.AccessFilterExpression" + }, + { + "name": "metric_filter", + "type": ".google.analytics.admin.v1alpha.AccessFilterExpression" + }, + { + "name": "offset", + "type": "TYPE_INT64" + }, + { + "name": "limit", + "type": "TYPE_INT64" + }, + { + "name": "time_zone", + "type": "TYPE_STRING" + }, + { + "name": "order_bys", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "return_entity_quota", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1alpha.RunAccessReportResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "RunAccessReport", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReport", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js index f3fb9ba0d52..a22069b0e8c 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js @@ -23,6 +23,9 @@ function main(property, acknowledgement) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js index 5cb22754401..42f2159cd7a 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js index 0cd11bd005c..0ab93913118 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js index 3d169f7ab58..a426dfee5ec 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js @@ -23,6 +23,9 @@ function main(conversionEvent, parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js index 2ad5a5b1772..b274dfceab1 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js @@ -23,6 +23,9 @@ function main(parent, customDimension) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js index fde50de1c15..7920206b298 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js @@ -23,6 +23,9 @@ function main(parent, customMetric) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js index 734eb9133e2..6cb30d4c9da 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js @@ -23,6 +23,9 @@ function main(parent, dataStream) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js index e1ac22f1287..5ddbbc4d5c0 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js @@ -23,6 +23,9 @@ function main(parent, firebaseLink) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js index f33be60a6d8..ecaa1981e6f 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js @@ -23,6 +23,9 @@ function main(parent, googleAdsLink) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js index c4d9c0462a7..f37da66933f 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(parent, measurementProtocolSecret) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js index b73ce9e59a0..f1818fe885a 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js @@ -23,6 +23,9 @@ function main(property) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js index 6de1540902f..b499ff4b792 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js index c6f6ac29941..189082eb8b1 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js index 325dede5d39..e86366dba6d 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js index 53e3313491a..f76497d418f 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js index 49f266a9726..d682820094b 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js index d0017aaf633..a3c3a9b739b 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js index 4aaff875bd8..88f30db5d30 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js index 0e7d534a737..980f7da1474 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js index bfb0f8adc9a..5b1a45f23b4 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js index b3aa1e1fc66..eac58816518 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js index 8dca568d08c..f96b833ce79 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js index f542d5228eb..b5a4aff0bf5 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js index 11c03021515..ba84785ec1b 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js index 4442815fe17..6f9e0c94869 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js index 87b11659d31..e8d27527557 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js index 3476e2be6ab..948986741dd 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js @@ -23,6 +23,9 @@ function main(name) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js index 92d1e7590ff..821569f7930 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js @@ -23,6 +23,9 @@ function main() { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js index 22976f3bf5e..e605c98ae18 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js @@ -23,6 +23,9 @@ function main() { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js index a5fbbba9870..b8dab7faede 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js index 750767572f6..8496756e779 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js index 10e5b19efe4..4a80a2730c2 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js index e6f2bac46f4..9e749a16820 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js index 13a6b273de8..4cb08ac2fa1 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js index 398d86993c8..982120b3e06 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js index ebb8f344182..a13848e90a1 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js @@ -23,6 +23,9 @@ function main(parent) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js index 8e409c927e1..7eff4a3b6ce 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js @@ -23,6 +23,9 @@ function main(filter) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js index a66cf00800d..6eff98904ba 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js @@ -23,6 +23,9 @@ function main() { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js index 0f4e1282a1d..a9770d49284 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js @@ -23,6 +23,9 @@ function main(account) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js index 1173354951d..e6d2fec2705 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js @@ -23,6 +23,9 @@ function main(account, updateMask) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js index cdd342c49d7..2ca869907de 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js index 8b2703b9adb..cc8594bad62 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js index 8e5a2ebbb38..8f99afa4cbb 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js @@ -23,6 +23,9 @@ function main(dataRetentionSettings, updateMask) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js index b4f77da6e71..941ca8f83f9 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js index f8a266ecd19..9962e166ea5 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js @@ -23,6 +23,9 @@ function main(updateMask) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js index 93d33a6182c..50cc470ac69 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js @@ -23,6 +23,9 @@ function main(measurementProtocolSecret) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js index a161ec1bc77..7759e1969ef 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js +++ b/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js @@ -23,6 +23,9 @@ function main(property, updateMask) { // [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_async] /** + * 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. */ /** diff --git a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json index 2ff3d3f8dec..dfb64059cf1 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json +++ b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -62,7 +62,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -150,7 +150,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -194,7 +194,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -238,7 +238,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -282,7 +282,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -322,7 +322,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 89, "type": "FULL" } ], @@ -374,7 +374,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -414,7 +414,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -454,7 +454,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -498,7 +498,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -542,7 +542,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -582,7 +582,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -630,7 +630,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -674,7 +674,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -718,7 +718,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -758,7 +758,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -806,7 +806,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -846,7 +846,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -886,7 +886,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -934,7 +934,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -978,7 +978,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1018,7 +1018,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -1062,7 +1062,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -1106,7 +1106,7 @@ "segments": [ { "start": 25, - "end": 93, + "end": 96, "type": "FULL" } ], @@ -1178,7 +1178,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1222,7 +1222,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1262,7 +1262,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1302,7 +1302,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1350,7 +1350,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1394,7 +1394,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1438,7 +1438,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -1486,7 +1486,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1526,7 +1526,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1566,7 +1566,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1610,7 +1610,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1654,7 +1654,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -1702,7 +1702,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1742,7 +1742,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1782,7 +1782,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -1822,7 +1822,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -1866,7 +1866,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1910,7 +1910,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1950,7 +1950,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1994,7 +1994,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -2042,7 +2042,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index a136a045615..83632c13bec 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -173,6 +172,12 @@ export class AnalyticsAdminServiceClient { accountUserLinkPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}/userLinks/{user_link}' ), + attributionSettingsPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/attributionSettings' + ), + audiencePathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/audiences/{audience}' + ), conversionEventPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/conversionEvents/{conversion_event}' ), @@ -302,6 +307,11 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'dataStreams' ), + listAudiences: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'audiences' + ), }; // Put together the default options sent with requests. @@ -426,6 +436,14 @@ export class AnalyticsAdminServiceClient { 'updateDataStream', 'listDataStreams', 'getDataStream', + 'getAudience', + 'listAudiences', + 'createAudience', + 'updateAudience', + 'archiveAudience', + 'getAttributionSettings', + 'updateAttributionSettings', + 'runAccessReport', ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( @@ -446,7 +464,8 @@ export class AnalyticsAdminServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -6141,97 +6160,79 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.innerApiCalls.getDataStream(request, options, callback); } - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. + * Lookup for a single Audience. + * Audiences created before 2020 may not be supported. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * @param {string} request.name + * Required. The name of the Audience to get. + * Example format: properties/1234/audiences/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. + * The first element of the array is an object representing [Audience]{@link google.analytics.admin.v1alpha.Audience}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_audience.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_async */ - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getAudience( + request?: protos.google.analytics.admin.v1alpha.IGetAudienceRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IAudience, + protos.google.analytics.admin.v1alpha.IGetAudienceRequest | undefined, + {} | undefined ] >; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getAudience( + request: protos.google.analytics.admin.v1alpha.IGetAudienceRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IGetAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + getAudience( + request: protos.google.analytics.admin.v1alpha.IGetAudienceRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IGetAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getAudience( + request?: protos.google.analytics.admin.v1alpha.IGetAudienceRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IGetAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IGetAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IAudience, + protos.google.analytics.admin.v1alpha.IGetAudienceRequest | undefined, + {} | undefined ] > | void { request = request || {}; @@ -6245,190 +6246,86 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); this.initialize(); - return this.innerApiCalls.listAccounts(request, options, callback); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Stream} - * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed. Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccountsStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): Transform { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccounts.createStream( - this.innerApiCalls.listAccounts as gax.GaxCall, - request, - callSettings - ); - } - - /** - * Equivalent to `listAccounts`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * 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. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async - */ - listAccountsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccounts.asyncIterate( - this.innerApiCalls['listAccounts'] as GaxCall, - request as unknown as RequestType, - callSettings - ) as AsyncIterable; + return this.innerApiCalls.getAudience(request, options, callback); } /** - * Returns summaries of all accounts accessible by the caller. + * Creates an Audience. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.Audience} request.audience + * Required. The audience to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` - * method described below for async iteration which you can stop as needed. + * The first element of the array is an object representing [Audience]{@link google.analytics.admin.v1alpha.Audience}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_audience.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_async */ - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createAudience( + request?: protos.google.analytics.admin.v1alpha.ICreateAudienceRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IAudience, + protos.google.analytics.admin.v1alpha.ICreateAudienceRequest | undefined, + {} | undefined ] >; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createAudience( + request: protos.google.analytics.admin.v1alpha.ICreateAudienceRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.ICreateAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): void; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + createAudience( + request: protos.google.analytics.admin.v1alpha.ICreateAudienceRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.ICreateAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): void; - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createAudience( + request?: protos.google.analytics.admin.v1alpha.ICreateAudienceRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.ICreateAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.ICreateAudienceRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IAudience, + protos.google.analytics.admin.v1alpha.ICreateAudienceRequest | undefined, + {} | undefined ] > | void { request = request || {}; @@ -6442,25 +6339,889 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); - return this.innerApiCalls.listAccountSummaries(request, options, callback); + return this.innerApiCalls.createAudience(request, options, callback); } - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * Updates an Audience on a property. + * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * @param {object} [options] + * @param {google.analytics.admin.v1alpha.Audience} request.audience + * Required. The audience to update. + * The audience's `name` field is used to identify the audience to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Audience]{@link google.analytics.admin.v1alpha.Audience}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_audience.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_async + */ + updateAudience( + request?: protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAudience, + protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest | undefined, + {} | undefined + ] + >; + updateAudience( + request: protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAudience( + request: protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAudience( + request?: protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAudience, + | protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAudience, + protos.google.analytics.admin.v1alpha.IUpdateAudienceRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'audience.name': request.audience!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateAudience(request, options, callback); + } + /** + * Archives an Audience on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: properties/1234/audiences/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.archive_audience.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_async + */ + archiveAudience( + request?: protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest | undefined, + {} | undefined + ] + >; + archiveAudience( + request: protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveAudience( + request: protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + archiveAudience( + request?: protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.analytics.admin.v1alpha.IArchiveAudienceRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.archiveAudience(request, options, callback); + } + /** + * Lookup for a AttributionSettings singleton. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AttributionSettings]{@link google.analytics.admin.v1alpha.AttributionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async + */ + getAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getAttributionSettings( + request, + options, + callback + ); + } + /** + * Updates attribution settings on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.AttributionSettings} request.attributionSettings + * Required. The attribution settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace + * the entire entity, use one path with the string "*" to match all fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AttributionSettings]{@link google.analytics.admin.v1alpha.AttributionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_async + */ + updateAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + updateAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + 'attribution_settings.name': request.attributionSettings!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateAttributionSettings( + request, + options, + callback + ); + } + /** + * Returns a customized report of data access records. The report provides + * records of each time a user reads Google Analytics reporting data. Access + * records are retained for up to 2 years. + * + * Data Access Reports can be requested for a property. The property must be + * in Google Analytics 360. This method is only available to Administrators. + * + * These data access records include GA4 UI Reporting, GA4 UI Explorations, + * GA4 Data API, and other products like Firebase & Admob that can retrieve + * data from Google Analytics through a linkage. These records don't include + * property configuration changes like adding a stream or changing a + * property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.entity + * The Data Access Report is requested for this property. + * For example if "123" is your GA4 property ID, then entity should be + * "properties/123". + * @param {number[]} request.dimensions + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * @param {number[]} request.metrics + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * @param {number[]} request.dateRanges + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * @param {google.analytics.admin.v1alpha.AccessFilterExpression} request.dimensionFilter + * Dimension filters allow you to restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @param {google.analytics.admin.v1alpha.AccessFilterExpression} request.metricFilter + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * @param {number} request.offset + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @param {number} request.limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @param {string} request.timeZone + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * @param {number[]} request.orderBys + * Specifies how rows are ordered in the response. + * @param {boolean} request.returnEntityQuota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [RunAccessReportResponse]{@link google.analytics.admin.v1alpha.RunAccessReportResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.run_access_report.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_async + */ + runAccessReport( + request?: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + protos.google.analytics.admin.v1alpha.IRunAccessReportRequest | undefined, + {} | undefined + ] + >; + runAccessReport( + request: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + > + ): void; + runAccessReport( + request: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + > + ): void; + runAccessReport( + request?: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + protos.google.analytics.admin.v1alpha.IRunAccessReportRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + entity: request.entity || '', + }); + this.initialize(); + return this.innerApiCalls.runAccessReport(request, options, callback); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + >; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccounts(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccounts`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * 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. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async + */ + listAccountsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns summaries of all accounts accessible by the caller. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + >; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccountSummaries(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. @@ -6484,7 +7245,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listAccountSummaries.createStream( - this.innerApiCalls.listAccountSummaries as gax.GaxCall, + this.innerApiCalls.listAccountSummaries as GaxCall, request, callSettings ); @@ -6532,7 +7293,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listAccountSummaries.asyncIterate( this.innerApiCalls['listAccountSummaries'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6720,7 +7481,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listProperties.createStream( - this.innerApiCalls.listProperties as gax.GaxCall, + this.innerApiCalls.listProperties as GaxCall, request, callSettings ); @@ -6789,7 +7550,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listProperties.asyncIterate( this.innerApiCalls['listProperties'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6942,7 +7703,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listUserLinks.createStream( - this.innerApiCalls.listUserLinks as gax.GaxCall, + this.innerApiCalls.listUserLinks as GaxCall, request, callSettings ); @@ -6996,7 +7757,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listUserLinks.asyncIterate( this.innerApiCalls['listUserLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7157,7 +7918,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.auditUserLinks.createStream( - this.innerApiCalls.auditUserLinks as gax.GaxCall, + this.innerApiCalls.auditUserLinks as GaxCall, request, callSettings ); @@ -7211,7 +7972,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.auditUserLinks.asyncIterate( this.innerApiCalls['auditUserLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7367,7 +8128,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFirebaseLinks.createStream( - this.innerApiCalls.listFirebaseLinks as gax.GaxCall, + this.innerApiCalls.listFirebaseLinks as GaxCall, request, callSettings ); @@ -7422,7 +8183,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listFirebaseLinks.asyncIterate( this.innerApiCalls['listFirebaseLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7575,7 +8336,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listGoogleAdsLinks.createStream( - this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, + this.innerApiCalls.listGoogleAdsLinks as GaxCall, request, callSettings ); @@ -7629,7 +8390,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listGoogleAdsLinks.asyncIterate( this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7790,7 +8551,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listMeasurementProtocolSecrets.createStream( - this.innerApiCalls.listMeasurementProtocolSecrets as gax.GaxCall, + this.innerApiCalls.listMeasurementProtocolSecrets as GaxCall, request, callSettings ); @@ -7846,7 +8607,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -8034,7 +8795,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.searchChangeHistoryEvents.createStream( - this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, + this.innerApiCalls.searchChangeHistoryEvents as GaxCall, request, callSettings ); @@ -8103,7 +8864,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -8258,7 +9019,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listConversionEvents.createStream( - this.innerApiCalls.listConversionEvents as gax.GaxCall, + this.innerApiCalls.listConversionEvents as GaxCall, request, callSettings ); @@ -8312,7 +9073,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listConversionEvents.asyncIterate( this.innerApiCalls['listConversionEvents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -8472,7 +9233,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream( - this.innerApiCalls.listDisplayVideo360AdvertiserLinks as gax.GaxCall, + this.innerApiCalls.listDisplayVideo360AdvertiserLinks as GaxCall, request, callSettings ); @@ -8528,7 +9289,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate( this.innerApiCalls['listDisplayVideo360AdvertiserLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -8690,8 +9451,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream( - this.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as gax.GaxCall, + this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals as GaxCall, request, callSettings ); @@ -8750,7 +9510,7 @@ export class AnalyticsAdminServiceClient { this.innerApiCalls[ 'listDisplayVideo360AdvertiserLinkProposals' ] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -8903,7 +9663,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomDimensions.createStream( - this.innerApiCalls.listCustomDimensions as gax.GaxCall, + this.innerApiCalls.listCustomDimensions as GaxCall, request, callSettings ); @@ -8957,7 +9717,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listCustomDimensions.asyncIterate( this.innerApiCalls['listCustomDimensions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -9110,7 +9870,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomMetrics.createStream( - this.innerApiCalls.listCustomMetrics as gax.GaxCall, + this.innerApiCalls.listCustomMetrics as GaxCall, request, callSettings ); @@ -9164,7 +9924,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listCustomMetrics.asyncIterate( this.innerApiCalls['listCustomMetrics'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -9317,7 +10077,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDataStreams.createStream( - this.innerApiCalls.listDataStreams as gax.GaxCall, + this.innerApiCalls.listDataStreams as GaxCall, request, callSettings ); @@ -9371,10 +10131,218 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listDataStreams.asyncIterate( this.innerApiCalls['listDataStreams'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } + /** + * Lists Audiences on a property. + * Audiences created before 2020 may not be supported. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Audience]{@link google.analytics.admin.v1alpha.Audience}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAudiencesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAudiences( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAudience[], + protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, + protos.google.analytics.admin.v1alpha.IListAudiencesResponse + ] + >; + listAudiences( + request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAudience + > + ): void; + listAudiences( + request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAudience + > + ): void; + listAudiences( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAudience + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAudience + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAudience[], + protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, + protos.google.analytics.admin.v1alpha.IListAudiencesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listAudiences(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Audience]{@link google.analytics.admin.v1alpha.Audience} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAudiencesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAudiencesStream( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listAudiences']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAudiences.createStream( + this.innerApiCalls.listAudiences as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAudiences`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} request.pageToken + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Audience]{@link google.analytics.admin.v1alpha.Audience}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_audiences.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async + */ + listAudiencesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listAudiences']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAudiences.asyncIterate( + this.innerApiCalls['listAudiences'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } // -------------------- // -- Path templates -- // -------------------- @@ -9467,6 +10435,67 @@ export class AnalyticsAdminServiceClient { ).user_link; } + /** + * Return a fully-qualified attributionSettings resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + attributionSettingsPath(property: string) { + return this.pathTemplates.attributionSettingsPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from AttributionSettings resource. + * + * @param {string} attributionSettingsName + * A fully-qualified path representing AttributionSettings resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromAttributionSettingsName(attributionSettingsName: string) { + return this.pathTemplates.attributionSettingsPathTemplate.match( + attributionSettingsName + ).property; + } + + /** + * Return a fully-qualified audience resource name string. + * + * @param {string} property + * @param {string} audience + * @returns {string} Resource name string. + */ + audiencePath(property: string, audience: string) { + return this.pathTemplates.audiencePathTemplate.render({ + property: property, + audience: audience, + }); + } + + /** + * Parse the property from Audience resource. + * + * @param {string} audienceName + * A fully-qualified path representing Audience resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromAudienceName(audienceName: string) { + return this.pathTemplates.audiencePathTemplate.match(audienceName).property; + } + + /** + * Parse the audience from Audience resource. + * + * @param {string} audienceName + * A fully-qualified path representing Audience resource. + * @returns {string} A string representing the audience. + */ + matchAudienceFromAudienceName(audienceName: string) { + return this.pathTemplates.audiencePathTemplate.match(audienceName).audience; + } + /** * Return a fully-qualified conversionEvent resource name string. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index 24e060da5d1..2a59f9bc0db 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -387,6 +387,46 @@ "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetAudience": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListAudiences": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateAudience": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateAudience": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ArchiveAudience": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetAttributionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateAttributionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "RunAccessReport": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" } } } diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json index 731e0f166f8..8c16da7275b 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json @@ -1,4 +1,6 @@ [ + "../../protos/google/analytics/admin/v1alpha/access_report.proto", "../../protos/google/analytics/admin/v1alpha/analytics_admin.proto", + "../../protos/google/analytics/admin/v1alpha/audience.proto", "../../protos/google/analytics/admin/v1alpha/resources.proto" ] diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index 11e2655f52e..22aae87a2a0 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -290,6 +290,41 @@ "getDataStream" ] }, + "GetAudience": { + "methods": [ + "getAudience" + ] + }, + "CreateAudience": { + "methods": [ + "createAudience" + ] + }, + "UpdateAudience": { + "methods": [ + "updateAudience" + ] + }, + "ArchiveAudience": { + "methods": [ + "archiveAudience" + ] + }, + "GetAttributionSettings": { + "methods": [ + "getAttributionSettings" + ] + }, + "UpdateAttributionSettings": { + "methods": [ + "updateAttributionSettings" + ] + }, + "RunAccessReport": { + "methods": [ + "runAccessReport" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -394,6 +429,13 @@ "listDataStreamsStream", "listDataStreamsAsync" ] + }, + "ListAudiences": { + "methods": [ + "listAudiences", + "listAudiencesStream", + "listAudiencesAsync" + ] } } }, @@ -680,6 +722,41 @@ "getDataStream" ] }, + "GetAudience": { + "methods": [ + "getAudience" + ] + }, + "CreateAudience": { + "methods": [ + "createAudience" + ] + }, + "UpdateAudience": { + "methods": [ + "updateAudience" + ] + }, + "ArchiveAudience": { + "methods": [ + "archiveAudience" + ] + }, + "GetAttributionSettings": { + "methods": [ + "getAttributionSettings" + ] + }, + "UpdateAttributionSettings": { + "methods": [ + "updateAttributionSettings" + ] + }, + "RunAccessReport": { + "methods": [ + "runAccessReport" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -784,6 +861,13 @@ "listDataStreamsStream", "listDataStreamsAsync" ] + }, + "ListAudiences": { + "methods": [ + "listAudiences", + "listAudiencesStream", + "listAudiencesAsync" + ] } } } diff --git a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts index 6d9a358c583..aa20f464a6b 100644 --- a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts @@ -28,7 +28,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -381,7 +380,8 @@ export class AnalyticsAdminServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -4168,7 +4168,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listAccounts.createStream( - this.innerApiCalls.listAccounts as gax.GaxCall, + this.innerApiCalls.listAccounts as GaxCall, request, callSettings ); @@ -4220,7 +4220,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listAccounts.asyncIterate( this.innerApiCalls['listAccounts'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4361,7 +4361,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listAccountSummaries.createStream( - this.innerApiCalls.listAccountSummaries as gax.GaxCall, + this.innerApiCalls.listAccountSummaries as GaxCall, request, callSettings ); @@ -4409,7 +4409,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listAccountSummaries.asyncIterate( this.innerApiCalls['listAccountSummaries'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4597,7 +4597,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listProperties.createStream( - this.innerApiCalls.listProperties as gax.GaxCall, + this.innerApiCalls.listProperties as GaxCall, request, callSettings ); @@ -4666,7 +4666,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listProperties.asyncIterate( this.innerApiCalls['listProperties'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4822,7 +4822,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFirebaseLinks.createStream( - this.innerApiCalls.listFirebaseLinks as gax.GaxCall, + this.innerApiCalls.listFirebaseLinks as GaxCall, request, callSettings ); @@ -4877,7 +4877,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listFirebaseLinks.asyncIterate( this.innerApiCalls['listFirebaseLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5030,7 +5030,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listGoogleAdsLinks.createStream( - this.innerApiCalls.listGoogleAdsLinks as gax.GaxCall, + this.innerApiCalls.listGoogleAdsLinks as GaxCall, request, callSettings ); @@ -5084,7 +5084,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listGoogleAdsLinks.asyncIterate( this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5245,7 +5245,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listMeasurementProtocolSecrets.createStream( - this.innerApiCalls.listMeasurementProtocolSecrets as gax.GaxCall, + this.innerApiCalls.listMeasurementProtocolSecrets as GaxCall, request, callSettings ); @@ -5301,7 +5301,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5489,7 +5489,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.searchChangeHistoryEvents.createStream( - this.innerApiCalls.searchChangeHistoryEvents as gax.GaxCall, + this.innerApiCalls.searchChangeHistoryEvents as GaxCall, request, callSettings ); @@ -5558,7 +5558,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5713,7 +5713,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listConversionEvents.createStream( - this.innerApiCalls.listConversionEvents as gax.GaxCall, + this.innerApiCalls.listConversionEvents as GaxCall, request, callSettings ); @@ -5767,7 +5767,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listConversionEvents.asyncIterate( this.innerApiCalls['listConversionEvents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5920,7 +5920,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomDimensions.createStream( - this.innerApiCalls.listCustomDimensions as gax.GaxCall, + this.innerApiCalls.listCustomDimensions as GaxCall, request, callSettings ); @@ -5974,7 +5974,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listCustomDimensions.asyncIterate( this.innerApiCalls['listCustomDimensions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6127,7 +6127,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomMetrics.createStream( - this.innerApiCalls.listCustomMetrics as gax.GaxCall, + this.innerApiCalls.listCustomMetrics as GaxCall, request, callSettings ); @@ -6181,7 +6181,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listCustomMetrics.asyncIterate( this.innerApiCalls['listCustomMetrics'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6334,7 +6334,7 @@ export class AnalyticsAdminServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDataStreams.createStream( - this.innerApiCalls.listDataStreams as gax.GaxCall, + this.innerApiCalls.listDataStreams as GaxCall, request, callSettings ); @@ -6388,7 +6388,7 @@ export class AnalyticsAdminServiceClient { this.initialize(); return this.descriptors.page.listDataStreams.asyncIterate( this.innerApiCalls['listDataStreams'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index b723fe3f22a..6095afeccc6 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -113,111 +113,113 @@ function stubAsyncIterationCall( } describe('v1alpha.AnalyticsAdminServiceClient', () => { - it('has servicePath', () => { - const servicePath = - analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.analyticsAdminServiceStub, undefined); - await client.initialize(); - assert(client.analyticsAdminServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + await client.initialize(); + assert(client.analyticsAdminServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.analyticsAdminServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.analyticsAdminServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.analyticsAdminServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getAccount', () => { @@ -7732,8 +7734,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listAccounts', () => { - it('invokes listAccounts without error', async () => { + describe('getAudience', () => { + it('invokes getAudience without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7741,31 +7743,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); - const [response] = await client.listAccounts(request); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Audience() + ); + client.innerApiCalls.getAudience = stubSimpleCall(expectedResponse); + const [response] = await client.getAudience(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.getAudience as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccounts without error using callback', async () => { + it('invokes getAudience without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7773,28 +7775,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Audience() + ); + client.innerApiCalls.getAudience = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccounts( + client.getAudience( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + result?: protos.google.analytics.admin.v1alpha.IAudience | null ) => { if (err) { reject(err); @@ -7807,13 +7809,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.getAudience as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccounts with error', async () => { + it('invokes getAudience with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7821,23 +7823,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listAccounts = stubSimpleCall( + client.innerApiCalls.getAudience = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccounts(request), expectedError); + await assert.rejects(client.getAudience(request), expectedError); assert( - (client.innerApiCalls.listAccounts as SinonStub) + (client.innerApiCalls.getAudience as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountsStream without error', async () => { + it('invokes getAudience with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7845,47 +7855,97 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.descriptors.page.listAccounts.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAccountsStream(request); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getAudience(request), expectedError); + }); + }); + + describe('createAudience', () => { + it('invokes createAudience without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Audience() + ); + client.innerApiCalls.createAudience = stubSimpleCall(expectedResponse); + const [response] = await client.createAudience(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createAudience as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createAudience without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Audience() + ); + client.innerApiCalls.createAudience = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); + client.createAudience( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAudience | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } } ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.innerApiCalls.createAudience as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccountsStream with error', async () => { + it('invokes createAudience with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7893,38 +7953,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + client.innerApiCalls.createAudience = stubSimpleCall( undefined, expectedError ); - const stream = client.listAccountsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - await assert.rejects(promise, expectedError); + await assert.rejects(client.createAudience(request), expectedError); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.innerApiCalls.createAudience as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(request, expectedOptions, undefined) ); }); - it('uses async iteration with listAccounts without error', async () => { + it('invokes createAudience with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7932,36 +7985,1179 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createAudience(request), expectedError); + }); + }); + + describe('updateAudience', () => { + it('invokes updateAudience without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() + ); + request.audience = {}; + request.audience.name = ''; + const expectedHeaderRequestParams = 'audience.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Audience() + ); + client.innerApiCalls.updateAudience = stubSimpleCall(expectedResponse); + const [response] = await client.updateAudience(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAudience as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAudience without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() + ); + request.audience = {}; + request.audience.name = ''; + const expectedHeaderRequestParams = 'audience.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Audience() + ); + client.innerApiCalls.updateAudience = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateAudience( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAudience | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAudience as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateAudience with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() + ); + request.audience = {}; + request.audience.name = ''; + const expectedHeaderRequestParams = 'audience.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateAudience = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateAudience(request), expectedError); + assert( + (client.innerApiCalls.updateAudience as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAudience with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() + ); + request.audience = {}; + request.audience.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateAudience(request), expectedError); + }); + }); + + describe('archiveAudience', () => { + it('invokes archiveAudience without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveAudience = stubSimpleCall(expectedResponse); + const [response] = await client.archiveAudience(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveAudience as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveAudience without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.archiveAudience = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.archiveAudience( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.archiveAudience as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes archiveAudience with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.archiveAudience = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.archiveAudience(request), expectedError); + assert( + (client.innerApiCalls.archiveAudience as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes archiveAudience with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.archiveAudience(request), expectedError); + }); + }); + + describe('getAttributionSettings', () => { + it('invokes getAttributionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.getAttributionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getAttributionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAttributionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getAttributionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.getAttributionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getAttributionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAttributionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getAttributionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getAttributionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getAttributionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getAttributionSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.getAttributionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getAttributionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getAttributionSettings(request), + expectedError + ); + }); + }); + + describe('updateAttributionSettings', () => { + it('invokes updateAttributionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings = {}; + request.attributionSettings.name = ''; + const expectedHeaderRequestParams = 'attribution_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.updateAttributionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.updateAttributionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAttributionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAttributionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings = {}; + request.attributionSettings.name = ''; + const expectedHeaderRequestParams = 'attribution_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.updateAttributionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateAttributionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAttributionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateAttributionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateAttributionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings = {}; + request.attributionSettings.name = ''; + const expectedHeaderRequestParams = 'attribution_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateAttributionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateAttributionSettings(request), + expectedError + ); + assert( + (client.innerApiCalls.updateAttributionSettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateAttributionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings = {}; + request.attributionSettings.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateAttributionSettings(request), + expectedError + ); + }); + }); + + describe('runAccessReport', () => { + it('invokes runAccessReport without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + request.entity = ''; + const expectedHeaderRequestParams = 'entity='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() + ); + client.innerApiCalls.runAccessReport = stubSimpleCall(expectedResponse); + const [response] = await client.runAccessReport(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.runAccessReport as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes runAccessReport without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + request.entity = ''; + const expectedHeaderRequestParams = 'entity='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() + ); + client.innerApiCalls.runAccessReport = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.runAccessReport( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IRunAccessReportResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.runAccessReport as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes runAccessReport with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + request.entity = ''; + const expectedHeaderRequestParams = 'entity='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.runAccessReport = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.runAccessReport(request), expectedError); + assert( + (client.innerApiCalls.runAccessReport as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes runAccessReport with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + request.entity = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.runAccessReport(request), expectedError); + }); + }); + + describe('listAccounts', () => { + it('invokes listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + assert( + (client.innerApiCalls.listAccounts as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedOptions = {otherArgs: {headers: {}}}; + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + assert( + (client.innerApiCalls.listAccountSummaries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('uses async iteration with listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - const iterable = client.listAccountsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + const iterable = client.listAccountSummariesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); - it('uses async iteration with listAccounts with error', async () => { + it('uses async iteration with listAccountSummaries with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7969,29 +9165,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listAccountSummaries.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountsAsync(request); + const iterable = client.listAccountSummariesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); }); - describe('listAccountSummaries', () => { - it('invokes listAccountSummaries without error', async () => { + describe('listProperties', () => { + it('invokes listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -7999,32 +9196,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listAccountSummaries = - stubSimpleCall(expectedResponse); - const [response] = await client.listAccountSummaries(request); + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummaries without error using callback', async () => { + it('invokes listProperties without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8032,30 +9228,28 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listAccountSummaries = + client.innerApiCalls.listProperties = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccountSummaries( + client.listProperties( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IAccountSummary[] - | null + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null ) => { if (err) { reject(err); @@ -8068,13 +9262,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listAccountSummaries with error', async () => { + it('invokes listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8082,23 +9276,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); - client.innerApiCalls.listAccountSummaries = stubSimpleCall( + client.innerApiCalls.listProperties = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccountSummaries(request), expectedError); + await assert.rejects(client.listProperties(request), expectedError); assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) + (client.innerApiCalls.listProperties as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listAccountSummariesStream without error', async () => { + it('invokes listPropertiesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8106,28 +9300,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listProperties.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountSummariesStream(request); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -8141,13 +9334,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('invokes listAccountSummariesStream with error', async () => { + it('invokes listPropertiesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8155,18 +9348,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listProperties.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccountSummariesStream(request); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -8179,13 +9371,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('uses async iteration with listAccountSummaries without error', async () => { + it('uses async iteration with listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8193,37 +9385,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; - const iterable = client.listAccountSummariesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); - it('uses async iteration with listAccountSummaries with error', async () => { + it('uses async iteration with listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8231,30 +9422,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountSummariesAsync(request); + const iterable = client.listPropertiesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); }); - describe('listProperties', () => { - it('invokes listProperties without error', async () => { + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8262,31 +9452,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); - const [response] = await client.listProperties(request); + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listProperties without error using callback', async () => { + it('invokes listUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8294,28 +9492,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listProperties = + client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listProperties( + client.listUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null ) => { if (err) { reject(err); @@ -8328,13 +9534,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listProperties with error', async () => { + it('invokes listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8342,23 +9548,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; const expectedError = new Error('expected'); - client.innerApiCalls.listProperties = stubSimpleCall( + client.innerApiCalls.listUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listProperties(request), expectedError); + await assert.rejects(client.listUserLinks(request), expectedError); assert( - (client.innerApiCalls.listProperties as SinonStub) + (client.innerApiCalls.listUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listPropertiesStream without error', async () => { + it('invokes listUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8366,27 +9580,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listProperties.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listPropertiesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -8400,13 +9616,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('invokes listPropertiesStream with error', async () => { + it('invokes listUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8414,17 +9636,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listPropertiesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -8437,13 +9661,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams ); }); - it('uses async iteration with listProperties without error', async () => { + it('uses async iteration with listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8451,36 +9681,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - const iterable = client.listPropertiesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); - it('uses async iteration with listProperties with error', async () => { + it('uses async iteration with listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8488,29 +9726,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPropertiesAsync(request); + const iterable = client.listUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert.strictEqual( + ( + client.descriptors.page.listUserLinks.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); }); }); - describe('listUserLinks', () => { - it('invokes listUserLinks without error', async () => { + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8518,7 +9764,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8531,26 +9777,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listUserLinks(request); + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinks without error using callback', async () => { + it('invokes auditUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8558,7 +9804,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8571,23 +9817,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listUserLinks = + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listUserLinks( + client.auditUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | null ) => { if (err) { reject(err); @@ -8600,13 +9848,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listUserLinks with error', async () => { + it('invokes auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8614,7 +9862,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8626,19 +9874,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listUserLinks = stubSimpleCall( + client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listUserLinks(request), expectedError); + await assert.rejects(client.auditUserLinks(request), expectedError); assert( - (client.innerApiCalls.listUserLinks as SinonStub) + (client.innerApiCalls.auditUserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listUserLinksStream without error', async () => { + it('invokes auditUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8646,29 +9894,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listUserLinksStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -8682,19 +9931,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.auditUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listUserLinksStream with error', async () => { + it('invokes auditUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8702,19 +9951,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listUserLinksStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -8727,19 +9977,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.createStream as SinonStub + client.descriptors.page.auditUserLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks without error', async () => { + it('uses async iteration with auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8747,44 +9997,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; - const iterable = client.listUserLinksAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; + const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listUserLinks with error', async () => { + it('uses async iteration with auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8792,37 +10043,38 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listUserLinksAsync(request); + const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('auditUserLinks', () => { - it('invokes auditUserLinks without error', async () => { + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8830,7 +10082,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8843,26 +10095,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.auditUserLinks(request); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinks without error using callback', async () => { + it('invokes listFirebaseLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8870,7 +10122,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8883,24 +10135,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.auditUserLinks = + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.auditUserLinks( + client.listFirebaseLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | protos.google.analytics.admin.v1alpha.IFirebaseLink[] | null ) => { if (err) { @@ -8914,13 +10166,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes auditUserLinks with error', async () => { + it('invokes listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8928,7 +10180,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -8940,19 +10192,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.auditUserLinks = stubSimpleCall( + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.auditUserLinks(request), expectedError); + await assert.rejects(client.listFirebaseLinks(request), expectedError); assert( - (client.innerApiCalls.auditUserLinks as SinonStub) + (client.innerApiCalls.listFirebaseLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes auditUserLinksStream without error', async () => { + it('invokes listFirebaseLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8960,30 +10212,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.auditUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -8997,19 +10249,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes auditUserLinksStream with error', async () => { + it('invokes listFirebaseLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9017,20 +10269,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.auditUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -9043,19 +10295,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.createStream as SinonStub + client.descriptors.page.listFirebaseLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks without error', async () => { + it('uses async iteration with listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9063,45 +10315,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listFirebaseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with auditUserLinks with error', async () => { + it('uses async iteration with listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9109,16 +10361,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listFirebaseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9126,21 +10378,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listFirebaseLinks', () => { - it('invokes listFirebaseLinks without error', async () => { + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9148,7 +10400,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9161,26 +10413,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listFirebaseLinks(request); + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCall(expectedResponse); + const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinks without error using callback', async () => { + it('invokes listGoogleAdsLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9188,7 +10441,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9201,24 +10454,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.listFirebaseLinks = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFirebaseLinks( + client.listGoogleAdsLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] | null ) => { if (err) { @@ -9232,13 +10485,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listFirebaseLinks with error', async () => { + it('invokes listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9246,7 +10499,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9258,19 +10511,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFirebaseLinks(request), expectedError); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) + (client.innerApiCalls.listGoogleAdsLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listFirebaseLinksStream without error', async () => { + it('invokes listGoogleAdsLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9278,30 +10531,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -9315,19 +10568,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listFirebaseLinksStream with error', async () => { + it('invokes listGoogleAdsLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9335,20 +10588,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -9361,19 +10614,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub + client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks without error', async () => { + it('uses async iteration with listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9381,45 +10634,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listFirebaseLinks with error', async () => { + it('uses async iteration with listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9427,16 +10680,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9444,21 +10697,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listGoogleAdsLinks', () => { - it('invokes listGoogleAdsLinks without error', async () => { + describe('listMeasurementProtocolSecrets', () => { + it('invokes listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9466,7 +10719,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9479,27 +10732,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall(expectedResponse); - const [response] = await client.listGoogleAdsLinks(request); + const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinks without error using callback', async () => { + it('invokes listMeasurementProtocolSecrets without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9507,7 +10760,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9520,24 +10773,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listGoogleAdsLinks( + client.listMeasurementProtocolSecrets( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] + | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] | null ) => { if (err) { @@ -9551,13 +10804,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listGoogleAdsLinks with error', async () => { + it('invokes listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9565,7 +10818,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -9577,19 +10830,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + await assert.rejects( + client.listMeasurementProtocolSecrets(request), + expectedError + ); assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) + (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listGoogleAdsLinksStream without error', async () => { + it('invokes listMeasurementProtocolSecretsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9597,30 +10853,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -9634,19 +10892,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listGoogleAdsLinksStream with error', async () => { + it('invokes listMeasurementProtocolSecretsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9654,20 +10919,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -9680,19 +10947,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks without error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9700,45 +10974,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listGoogleAdsLinks with error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9746,16 +11022,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -9763,21 +11039,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listMeasurementProtocolSecrets', () => { - it('invokes listMeasurementProtocolSecrets without error', async () => { + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9785,10 +11063,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -9798,27 +11076,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listMeasurementProtocolSecrets(request); + const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listMeasurementProtocolSecrets without error using callback', async () => { + it('invokes searchChangeHistoryEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9826,10 +11104,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -9839,24 +11117,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listMeasurementProtocolSecrets( + client.searchChangeHistoryEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] + | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] | null ) => { if (err) { @@ -9870,13 +11148,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listMeasurementProtocolSecrets with error', async () => { + it('invokes searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9884,10 +11162,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedOptions = { otherArgs: { headers: { @@ -9896,22 +11174,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.listMeasurementProtocolSecrets(request), + client.searchChangeHistoryEvents(request), expectedError ); assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) + (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listMeasurementProtocolSecretsStream without error', async () => { + it('invokes searchChangeHistoryEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9919,31 +11197,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent ) => { responses.push(response); } @@ -9959,25 +11237,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listMeasurementProtocolSecretsStream with error', async () => { + it('invokes searchChangeHistoryEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9985,21 +11260,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent ) => { responses.push(response); } @@ -10014,25 +11289,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { + it('uses async iteration with searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10040,47 +11312,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { + it('uses async iteration with searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10088,16 +11360,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.account = ''; + const expectedHeaderRequestParams = 'account='; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10105,14 +11377,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets + client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -10120,8 +11392,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('searchChangeHistoryEvents', () => { - it('invokes searchChangeHistoryEvents without error', async () => { + describe('listConversionEvents', () => { + it('invokes listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10129,10 +11401,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -10142,27 +11414,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listConversionEvents = stubSimpleCall(expectedResponse); - const [response] = await client.searchChangeHistoryEvents(request); + const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEvents without error using callback', async () => { + it('invokes listConversionEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10170,10 +11442,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -10183,24 +11455,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listConversionEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.searchChangeHistoryEvents( + client.listConversionEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] + | protos.google.analytics.admin.v1alpha.IConversionEvent[] | null ) => { if (err) { @@ -10214,13 +11486,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes searchChangeHistoryEvents with error', async () => { + it('invokes listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10228,10 +11500,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedOptions = { otherArgs: { headers: { @@ -10240,22 +11512,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.searchChangeHistoryEvents(request), - expectedError - ); + await assert.rejects(client.listConversionEvents(request), expectedError); assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) + (client.innerApiCalls.listConversionEvents as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes searchChangeHistoryEventsStream without error', async () => { + it('invokes listConversionEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10263,32 +11532,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -10302,23 +11569,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes searchChangeHistoryEventsStream with error', async () => { + it('invokes listConversionEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10326,22 +11589,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -10354,23 +11615,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .createStream as SinonStub + client.descriptors.page.listConversionEvents.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents without error', async () => { + it('uses async iteration with listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10378,47 +11635,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listConversionEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with searchChangeHistoryEvents with error', async () => { + it('uses async iteration with listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10426,16 +11681,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listConversionEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10443,23 +11698,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.searchChangeHistoryEvents - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listConversionEvents', () => { - it('invokes listConversionEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinks', () => { + it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10467,7 +11720,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10480,27 +11733,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listConversionEvents(request); + const [response] = await client.listDisplayVideo360AdvertiserLinks( + request + ); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listConversionEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10508,7 +11763,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10521,24 +11776,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listConversionEvents( + client.listDisplayVideo360AdvertiserLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IConversionEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] | null ) => { if (err) { @@ -10552,13 +11807,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listConversionEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10566,7 +11821,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10578,19 +11833,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listConversionEvents = stubSimpleCall( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listConversionEvents(request), expectedError); + await assert.rejects( + client.listDisplayVideo360AdvertiserLinks(request), + expectedError + ); assert( - (client.innerApiCalls.listConversionEvents as SinonStub) + (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listConversionEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10598,30 +11856,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listConversionEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + ) => { responses.push(response); } ); @@ -10635,19 +11895,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.createStream as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listConversionEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10655,20 +11922,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listConversionEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + ) => { responses.push(response); } ); @@ -10681,19 +11950,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.createStream as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listConversionEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10701,45 +11977,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; - const iterable = client.listConversionEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listConversionEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10747,16 +12025,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listConversionEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10764,21 +12042,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinks + .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listDisplayVideo360AdvertiserLinks', () => { - it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { + describe('listDisplayVideo360AdvertiserLinkProposals', () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10786,7 +12066,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10799,29 +12079,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCall(expectedResponse); - const [response] = await client.listDisplayVideo360AdvertiserLinks( - request - ); + const [response] = + await client.listDisplayVideo360AdvertiserLinkProposals(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10829,7 +12111,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10842,24 +12124,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinks( + client.listDisplayVideo360AdvertiserLinkProposals( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] | null ) => { if (err) { @@ -10873,13 +12155,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10887,7 +12172,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -10899,22 +12184,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( - undefined, - expectedError - ); + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + stubSimpleCall(undefined, expectedError); await assert.rejects( - client.listDisplayVideo360AdvertiserLinks(request), + client.listDisplayVideo360AdvertiserLinkProposals(request), expectedError ); assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) + ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10922,31 +12208,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal ) => { responses.push(response); } @@ -10962,25 +12249,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ) .getCall(0) .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, request ) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10988,21 +12275,22 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal ) => { responses.push(response); } @@ -11017,25 +12305,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ) .getCall(0) .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, request ) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11043,47 +12331,48 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11091,16 +12380,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11108,14 +12398,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams @@ -11123,8 +12413,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDisplayVideo360AdvertiserLinkProposals', () => { - it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { + describe('listCustomDimensions', () => { + it('invokes listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11132,7 +12422,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11145,31 +12435,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + client.innerApiCalls.listCustomDimensions = stubSimpleCall(expectedResponse); - const [response] = - await client.listDisplayVideo360AdvertiserLinkProposals(request); + const [response] = await client.listCustomDimensions(request); assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { + it('invokes listCustomDimensions without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11177,7 +12463,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11190,24 +12476,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + client.innerApiCalls.listCustomDimensions = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinkProposals( + client.listCustomDimensions( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] + | protos.google.analytics.admin.v1alpha.ICustomDimension[] | null ) => { if (err) { @@ -11221,16 +12507,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('invokes listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11238,7 +12521,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11250,23 +12533,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = - stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.listDisplayVideo360AdvertiserLinkProposals(request), + client.innerApiCalls.listCustomDimensions = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.listCustomDimensions(request), expectedError); assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) + (client.innerApiCalls.listCustomDimensions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { + it('invokes listCustomDimensionsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11274,33 +12553,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(expectedResponse); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -11314,26 +12590,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub + client.descriptors.page.listCustomDimensions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { + it('invokes listCustomDimensionsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11341,23 +12610,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -11370,26 +12636,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub + client.descriptors.page.listCustomDimensions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { + it('uses async iteration with listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11397,48 +12656,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomDimensionsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('uses async iteration with listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11446,17 +12702,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomDimensionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11464,23 +12719,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listCustomDimensions', () => { - it('invokes listCustomDimensions without error', async () => { + describe('listCustomMetrics', () => { + it('invokes listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11488,7 +12741,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11501,27 +12754,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listCustomDimensions = - stubSimpleCall(expectedResponse); - const [response] = await client.listCustomDimensions(request); + client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomMetrics(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomDimensions without error using callback', async () => { + it('invokes listCustomMetrics without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11529,7 +12781,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11542,24 +12794,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listCustomDimensions = + client.innerApiCalls.listCustomMetrics = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomDimensions( + client.listCustomMetrics( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.ICustomDimension[] + | protos.google.analytics.admin.v1alpha.ICustomMetric[] | null ) => { if (err) { @@ -11573,13 +12825,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listCustomDimensions with error', async () => { + it('invokes listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11587,7 +12839,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11599,19 +12851,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomDimensions = stubSimpleCall( + client.innerApiCalls.listCustomMetrics = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomDimensions(request), expectedError); + await assert.rejects(client.listCustomMetrics(request), expectedError); assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) + (client.innerApiCalls.listCustomMetrics as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomDimensionsStream without error', async () => { + it('invokes listCustomMetricsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11619,30 +12871,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -11656,19 +12908,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub + client.descriptors.page.listCustomMetrics.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listCustomDimensionsStream with error', async () => { + it('invokes listCustomMetricsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11676,20 +12928,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -11702,19 +12954,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub + client.descriptors.page.listCustomMetrics.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomDimensions without error', async () => { + it('uses async iteration with listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11722,45 +12974,45 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; - const iterable = client.listCustomDimensionsAsync(request); + const iterable = client.listCustomMetricsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomDimensions with error', async () => { + it('uses async iteration with listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11768,16 +13020,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomDimensionsAsync(request); + const iterable = client.listCustomMetricsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11785,21 +13037,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listCustomMetrics', () => { - it('invokes listCustomMetrics without error', async () => { + describe('listDataStreams', () => { + it('invokes listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11807,7 +13059,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11820,26 +13072,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomMetrics(request); + client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); + const [response] = await client.listDataStreams(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) + (client.innerApiCalls.listDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomMetrics without error using callback', async () => { + it('invokes listDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11847,7 +13099,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11860,25 +13112,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomMetrics = + client.innerApiCalls.listDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomMetrics( + client.listDataStreams( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.ICustomMetric[] - | null + result?: protos.google.analytics.admin.v1alpha.IDataStream[] | null ) => { if (err) { reject(err); @@ -11891,13 +13141,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) + (client.innerApiCalls.listDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listCustomMetrics with error', async () => { + it('invokes listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11905,7 +13155,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -11917,19 +13167,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomMetrics = stubSimpleCall( + client.innerApiCalls.listDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomMetrics(request), expectedError); + await assert.rejects(client.listDataStreams(request), expectedError); assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) + (client.innerApiCalls.listDataStreams as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listCustomMetricsStream without error', async () => { + it('invokes listDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11937,30 +13187,30 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomMetricsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -11974,19 +13224,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub + client.descriptors.page.listDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listCustomMetricsStream with error', async () => { + it('invokes listDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11994,20 +13244,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomMetricsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -12020,19 +13270,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub + client.descriptors.page.listDataStreams.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomMetrics without error', async () => { + it('uses async iteration with listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12040,45 +13290,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = - []; - const iterable = client.listCustomMetricsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; + const iterable = client.listDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listCustomMetrics with error', async () => { + it('uses async iteration with listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12086,16 +13335,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomMetricsAsync(request); + const iterable = client.listDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -12103,21 +13352,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listDataStreams', () => { - it('invokes listDataStreams without error', async () => { + describe('listAudiences', () => { + it('invokes listAudiences without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12125,7 +13374,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12138,26 +13387,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); - const [response] = await client.listDataStreams(request); + client.innerApiCalls.listAudiences = stubSimpleCall(expectedResponse); + const [response] = await client.listAudiences(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listDataStreams as SinonStub) + (client.innerApiCalls.listAudiences as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDataStreams without error using callback', async () => { + it('invokes listAudiences without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12165,7 +13414,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12178,23 +13427,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.innerApiCalls.listDataStreams = + client.innerApiCalls.listAudiences = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDataStreams( + client.listAudiences( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataStream[] | null + result?: protos.google.analytics.admin.v1alpha.IAudience[] | null ) => { if (err) { reject(err); @@ -12207,13 +13456,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listDataStreams as SinonStub) + (client.innerApiCalls.listAudiences as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listDataStreams with error', async () => { + it('invokes listAudiences with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12221,7 +13470,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -12233,19 +13482,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listDataStreams = stubSimpleCall( + client.innerApiCalls.listAudiences = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDataStreams(request), expectedError); + await assert.rejects(client.listAudiences(request), expectedError); assert( - (client.innerApiCalls.listDataStreams as SinonStub) + (client.innerApiCalls.listAudiences as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listDataStreamsStream without error', async () => { + it('invokes listAudiencesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12253,30 +13502,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.descriptors.page.listDataStreams.createStream = + client.descriptors.page.listAudiences.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDataStreamsStream(request); + const stream = client.listAudiencesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.DataStream) => { + (response: protos.google.analytics.admin.v1alpha.Audience) => { responses.push(response); } ); @@ -12290,19 +13538,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataStreams, request) + .calledWith(client.innerApiCalls.listAudiences, request) ); assert.strictEqual( ( - client.descriptors.page.listDataStreams.createStream as SinonStub + client.descriptors.page.listAudiences.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listDataStreamsStream with error', async () => { + it('invokes listAudiencesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12310,20 +13558,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDataStreams.createStream = + client.descriptors.page.listAudiences.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDataStreamsStream(request); + const stream = client.listAudiencesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.DataStream) => { + (response: protos.google.analytics.admin.v1alpha.Audience) => { responses.push(response); } ); @@ -12336,19 +13583,19 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataStreams, request) + .calledWith(client.innerApiCalls.listAudiences, request) ); assert.strictEqual( ( - client.descriptors.page.listDataStreams.createStream as SinonStub + client.descriptors.page.listAudiences.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDataStreams without error', async () => { + it('uses async iteration with listAudiences without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12356,44 +13603,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.descriptors.page.listDataStreams.asyncIterate = + client.descriptors.page.listAudiences.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; - const iterable = client.listDataStreamsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; + const iterable = client.listAudiencesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listDataStreams with error', async () => { + it('uses async iteration with listAudiences with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12401,30 +13648,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listDataStreams.asyncIterate = + client.descriptors.page.listAudiences.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDataStreamsAsync(request); + const iterable = client.listAudiencesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); @@ -12564,6 +13810,102 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('attributionSettings', () => { + const fakePath = '/rendered/path/attributionSettings'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.attributionSettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.attributionSettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('attributionSettingsPath', () => { + const result = client.attributionSettingsPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.attributionSettingsPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromAttributionSettingsName', () => { + const result = + client.matchPropertyFromAttributionSettingsName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + ( + client.pathTemplates.attributionSettingsPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('audience', () => { + const fakePath = '/rendered/path/audience'; + const expectedParameters = { + property: 'propertyValue', + audience: 'audienceValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.audiencePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.audiencePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('audiencePath', () => { + const result = client.audiencePath('propertyValue', 'audienceValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.audiencePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromAudienceName', () => { + const result = client.matchPropertyFromAudienceName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.audiencePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAudienceFromAudienceName', () => { + const result = client.matchAudienceFromAudienceName(fakePath); + assert.strictEqual(result, 'audienceValue'); + assert( + (client.pathTemplates.audiencePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('conversionEvent', () => { const fakePath = '/rendered/path/conversionEvent'; const expectedParameters = { diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts index 413d0be6e4c..ecf2474c042 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts @@ -113,111 +113,113 @@ function stubAsyncIterationCall( } describe('v1beta.AnalyticsAdminServiceClient', () => { - it('has servicePath', () => { - const servicePath = - analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.analyticsAdminServiceStub, undefined); - await client.initialize(); - assert(client.analyticsAdminServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + await client.initialize(); + assert(client.analyticsAdminServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.analyticsAdminServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.analyticsAdminServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.analyticsAdminServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.analyticsAdminServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new analyticsadminserviceModule.v1beta.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getAccount', () => { From 685b339cf9f959a188330a9ff08c1311f527b3c4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 19:10:12 +0000 Subject: [PATCH 125/142] fix: change import long to require (#217) Source-Link: https://github.com/googleapis/synthtool/commit/d229a1258999f599a90a9b674a1c5541e00db588 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:74ab2b3c71ef27e6d8b69b1d0a0c9d31447777b79ac3cd4be82c265b45f37e5e --- .../google-analytics-admin/protos/protos.d.ts | 2305 +++- .../google-analytics-admin/protos/protos.js | 10935 ++++++++++++---- .../google-analytics-admin/protos/protos.json | 24 + 3 files changed, 10296 insertions(+), 2968 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 31ebc81b692..46a624d320c 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import * as Long from "long"; +import Long = require("long"); import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { @@ -114,6 +114,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessDimension + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessMetric. */ @@ -204,6 +211,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessMetric + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessDateRange. */ @@ -300,6 +314,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessDateRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessFilterExpression. */ @@ -411,6 +432,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessFilterExpression + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessFilterExpressionList. */ @@ -501,6 +529,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessFilterExpressionList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessFilter. */ @@ -618,6 +653,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessStringFilter. */ @@ -720,6 +762,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessStringFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AccessStringFilter { @@ -830,6 +879,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessInListFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessNumericFilter. */ @@ -926,6 +982,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessNumericFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AccessNumericFilter { @@ -1035,6 +1098,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessBetweenFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NumericValue. */ @@ -1134,6 +1204,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessOrderBy. */ @@ -1239,6 +1316,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessOrderBy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AccessOrderBy { @@ -1331,6 +1415,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricOrderBy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DimensionOrderBy. */ @@ -1427,6 +1518,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DimensionOrderBy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DimensionOrderBy { @@ -1529,6 +1627,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessDimensionHeader + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessMetricHeader. */ @@ -1619,6 +1724,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessMetricHeader + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessRow. */ @@ -1715,6 +1827,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessRow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessDimensionValue. */ @@ -1805,6 +1924,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessDimensionValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessMetricValue. */ @@ -1895,6 +2021,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessMetricValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessQuota. */ @@ -2003,6 +2136,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessQuota + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccessQuotaStatus. */ @@ -2099,6 +2239,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessQuotaStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Represents an AnalyticsAdminService */ @@ -3231,553 +3378,553 @@ export namespace google { namespace AnalyticsAdminService { /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAccount}. * @param error Error, if any * @param [response] Account */ type GetAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAccounts}. * @param error Error, if any * @param [response] ListAccountsResponse */ type ListAccountsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAccount}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|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.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateAccount}. * @param error Error, if any * @param [response] Account */ type UpdateAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Account) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|provisionAccountTicket}. * @param error Error, if any * @param [response] ProvisionAccountTicketResponse */ type ProvisionAccountTicketCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAccountSummaries}. * @param error Error, if any * @param [response] ListAccountSummariesResponse */ type ListAccountSummariesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAccountSummariesResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getProperty}. * @param error Error, if any * @param [response] Property */ type GetPropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listProperties}. * @param error Error, if any * @param [response] ListPropertiesResponse */ type ListPropertiesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListPropertiesResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createProperty}. * @param error Error, if any * @param [response] Property */ type CreatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteProperty}. * @param error Error, if any * @param [response] Property */ type DeletePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateProperty}. * @param error Error, if any * @param [response] Property */ type UpdatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getUserLink}. * @param error Error, if any * @param [response] UserLink */ type GetUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchGetUserLinks}. * @param error Error, if any * @param [response] BatchGetUserLinksResponse */ type BatchGetUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchGetUserLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listUserLinks}. * @param error Error, if any * @param [response] ListUserLinksResponse */ type ListUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListUserLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|auditUserLinks}. * @param error Error, if any * @param [response] AuditUserLinksResponse */ type AuditUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AuditUserLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createUserLink}. * @param error Error, if any * @param [response] UserLink */ type CreateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchCreateUserLinks}. * @param error Error, if any * @param [response] BatchCreateUserLinksResponse */ type BatchCreateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateUserLink}. * @param error Error, if any * @param [response] UserLink */ type UpdateUserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.UserLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchUpdateUserLinks}. * @param error Error, if any * @param [response] BatchUpdateUserLinksResponse */ type BatchUpdateUserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteUserLink}. * @param error Error, if any * @param [response] Empty */ type DeleteUserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchDeleteUserLinks}. * @param error Error, if any * @param [response] Empty */ type BatchDeleteUserLinksCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createFirebaseLink}. * @param error Error, if any * @param [response] FirebaseLink */ type CreateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FirebaseLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteFirebaseLink}. * @param error Error, if any * @param [response] Empty */ type DeleteFirebaseLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listFirebaseLinks}. * @param error Error, if any * @param [response] ListFirebaseLinksResponse */ type ListFirebaseLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListFirebaseLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getGlobalSiteTag}. * @param error Error, if any * @param [response] GlobalSiteTag */ type GetGlobalSiteTagCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GlobalSiteTag) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createGoogleAdsLink}. * @param error Error, if any * @param [response] GoogleAdsLink */ type CreateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateGoogleAdsLink}. * @param error Error, if any * @param [response] GoogleAdsLink */ type UpdateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleAdsLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteGoogleAdsLink}. * @param error Error, if any * @param [response] Empty */ type DeleteGoogleAdsLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listGoogleAdsLinks}. * @param error Error, if any * @param [response] ListGoogleAdsLinksResponse */ type ListGoogleAdsLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDataSharingSettings}. * @param error Error, if any * @param [response] DataSharingSettings */ type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataSharingSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getMeasurementProtocolSecret}. * @param error Error, if any * @param [response] MeasurementProtocolSecret */ type GetMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listMeasurementProtocolSecrets}. * @param error Error, if any * @param [response] ListMeasurementProtocolSecretsResponse */ type ListMeasurementProtocolSecretsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createMeasurementProtocolSecret}. * @param error Error, if any * @param [response] MeasurementProtocolSecret */ type CreateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteMeasurementProtocolSecret}. * @param error Error, if any * @param [response] Empty */ type DeleteMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateMeasurementProtocolSecret}. * @param error Error, if any * @param [response] MeasurementProtocolSecret */ type UpdateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.MeasurementProtocolSecret) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|acknowledgeUserDataCollection}. * @param error Error, if any * @param [response] AcknowledgeUserDataCollectionResponse */ type AcknowledgeUserDataCollectionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|searchChangeHistoryEvents}. * @param error Error, if any * @param [response] SearchChangeHistoryEventsResponse */ type SearchChangeHistoryEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getGoogleSignalsSettings}. * @param error Error, if any * @param [response] GoogleSignalsSettings */ type GetGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateGoogleSignalsSettings}. * @param error Error, if any * @param [response] GoogleSignalsSettings */ type UpdateGoogleSignalsSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.GoogleSignalsSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createConversionEvent}. * @param error Error, if any * @param [response] ConversionEvent */ type CreateConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getConversionEvent}. * @param error Error, if any * @param [response] ConversionEvent */ type GetConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ConversionEvent) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteConversionEvent}. * @param error Error, if any * @param [response] Empty */ type DeleteConversionEventCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listConversionEvents}. * @param error Error, if any * @param [response] ListConversionEventsResponse */ type ListConversionEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListConversionEventsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDisplayVideo360AdvertiserLink}. * @param error Error, if any * @param [response] DisplayVideo360AdvertiserLink */ type GetDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listDisplayVideo360AdvertiserLinks}. * @param error Error, if any * @param [response] ListDisplayVideo360AdvertiserLinksResponse */ type ListDisplayVideo360AdvertiserLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createDisplayVideo360AdvertiserLink}. * @param error Error, if any * @param [response] DisplayVideo360AdvertiserLink */ type CreateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteDisplayVideo360AdvertiserLink}. * @param error Error, if any * @param [response] Empty */ type DeleteDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateDisplayVideo360AdvertiserLink}. * @param error Error, if any * @param [response] DisplayVideo360AdvertiserLink */ type UpdateDisplayVideo360AdvertiserLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDisplayVideo360AdvertiserLinkProposal}. * @param error Error, if any * @param [response] DisplayVideo360AdvertiserLinkProposal */ type GetDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listDisplayVideo360AdvertiserLinkProposals}. * @param error Error, if any * @param [response] ListDisplayVideo360AdvertiserLinkProposalsResponse */ type ListDisplayVideo360AdvertiserLinkProposalsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createDisplayVideo360AdvertiserLinkProposal}. * @param error Error, if any * @param [response] DisplayVideo360AdvertiserLinkProposal */ type CreateDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteDisplayVideo360AdvertiserLinkProposal}. * @param error Error, if any * @param [response] Empty */ type DeleteDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|approveDisplayVideo360AdvertiserLinkProposal}. * @param error Error, if any * @param [response] ApproveDisplayVideo360AdvertiserLinkProposalResponse */ type ApproveDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|cancelDisplayVideo360AdvertiserLinkProposal}. * @param error Error, if any * @param [response] DisplayVideo360AdvertiserLinkProposal */ type CancelDisplayVideo360AdvertiserLinkProposalCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createCustomDimension}. * @param error Error, if any * @param [response] CustomDimension */ type CreateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateCustomDimension}. * @param error Error, if any * @param [response] CustomDimension */ type UpdateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listCustomDimensions}. * @param error Error, if any * @param [response] ListCustomDimensionsResponse */ type ListCustomDimensionsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomDimensionsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|archiveCustomDimension}. * @param error Error, if any * @param [response] Empty */ type ArchiveCustomDimensionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getCustomDimension}. * @param error Error, if any * @param [response] CustomDimension */ type GetCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomDimension) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createCustomMetric}. * @param error Error, if any * @param [response] CustomMetric */ type CreateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateCustomMetric}. * @param error Error, if any * @param [response] CustomMetric */ type UpdateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listCustomMetrics}. * @param error Error, if any * @param [response] ListCustomMetricsResponse */ type ListCustomMetricsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListCustomMetricsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|archiveCustomMetric}. * @param error Error, if any * @param [response] Empty */ type ArchiveCustomMetricCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getCustomMetric}. * @param error Error, if any * @param [response] CustomMetric */ type GetCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.CustomMetric) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDataRetentionSettings}. * @param error Error, if any * @param [response] DataRetentionSettings */ type GetDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateDataRetentionSettings}. * @param error Error, if any * @param [response] DataRetentionSettings */ type UpdateDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataRetentionSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createDataStream}. * @param error Error, if any * @param [response] DataStream */ type CreateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteDataStream}. * @param error Error, if any * @param [response] Empty */ type DeleteDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateDataStream}. * @param error Error, if any * @param [response] DataStream */ type UpdateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listDataStreams}. * @param error Error, if any * @param [response] ListDataStreamsResponse */ type ListDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListDataStreamsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDataStream}. * @param error Error, if any * @param [response] DataStream */ type GetDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.DataStream) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAudience}. * @param error Error, if any * @param [response] Audience */ type GetAudienceCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Audience) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAudiences}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAudiences}. * @param error Error, if any * @param [response] ListAudiencesResponse */ type ListAudiencesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAudiencesResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createAudience}. * @param error Error, if any * @param [response] Audience */ type CreateAudienceCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Audience) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateAudience}. * @param error Error, if any * @param [response] Audience */ type UpdateAudienceCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.Audience) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|archiveAudience}. * @param error Error, if any * @param [response] Empty */ type ArchiveAudienceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAttributionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAttributionSettings}. * @param error Error, if any * @param [response] AttributionSettings */ type GetAttributionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AttributionSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAttributionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateAttributionSettings}. * @param error Error, if any * @param [response] AttributionSettings */ type UpdateAttributionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AttributionSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#runAccessReport}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|runAccessReport}. * @param error Error, if any * @param [response] RunAccessReportResponse */ @@ -3932,6 +4079,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RunAccessReportRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RunAccessReportResponse. */ @@ -4046,6 +4200,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RunAccessReportResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetAccountRequest. */ @@ -4136,6 +4297,13 @@ export namespace google { * @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 ListAccountsRequest. */ @@ -4238,6 +4406,13 @@ export namespace google { * @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. */ @@ -4334,6 +4509,13 @@ export namespace google { * @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 DeleteAccountRequest. */ @@ -4424,6 +4606,13 @@ export namespace google { * @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. */ @@ -4520,6 +4709,13 @@ export namespace google { * @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 ProvisionAccountTicketRequest. */ @@ -4616,6 +4812,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProvisionAccountTicketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ProvisionAccountTicketResponse. */ @@ -4706,6 +4909,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProvisionAccountTicketResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetPropertyRequest. */ @@ -4796,6 +5006,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListPropertiesRequest. */ @@ -4904,6 +5121,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPropertiesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListPropertiesResponse. */ @@ -5000,6 +5224,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPropertiesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdatePropertyRequest. */ @@ -5096,6 +5327,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdatePropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreatePropertyRequest. */ @@ -5186,6 +5424,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreatePropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeletePropertyRequest. */ @@ -5276,6 +5521,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeletePropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetUserLinkRequest. */ @@ -5366,6 +5618,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetUserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchGetUserLinksRequest. */ @@ -5462,6 +5721,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchGetUserLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchGetUserLinksResponse. */ @@ -5552,6 +5818,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchGetUserLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListUserLinksRequest. */ @@ -5654,6 +5927,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListUserLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListUserLinksResponse. */ @@ -5750,6 +6030,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListUserLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AuditUserLinksRequest. */ @@ -5852,6 +6139,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AuditUserLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AuditUserLinksResponse. */ @@ -5948,6 +6242,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AuditUserLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateUserLinkRequest. */ @@ -6050,6 +6351,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateUserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchCreateUserLinksRequest. */ @@ -6152,6 +6460,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateUserLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchCreateUserLinksResponse. */ @@ -6242,6 +6557,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateUserLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateUserLinkRequest. */ @@ -6332,6 +6654,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateUserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchUpdateUserLinksRequest. */ @@ -6428,6 +6757,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchUpdateUserLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchUpdateUserLinksResponse. */ @@ -6518,6 +6854,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchUpdateUserLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteUserLinkRequest. */ @@ -6608,6 +6951,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteUserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchDeleteUserLinksRequest. */ @@ -6704,6 +7054,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchDeleteUserLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateFirebaseLinkRequest. */ @@ -6800,6 +7157,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFirebaseLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteFirebaseLinkRequest. */ @@ -6890,6 +7254,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFirebaseLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListFirebaseLinksRequest. */ @@ -6992,6 +7363,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFirebaseLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListFirebaseLinksResponse. */ @@ -7088,6 +7466,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFirebaseLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetGlobalSiteTagRequest. */ @@ -7178,6 +7563,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetGlobalSiteTagRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateGoogleAdsLinkRequest. */ @@ -7274,6 +7666,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateGoogleAdsLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateGoogleAdsLinkRequest. */ @@ -7370,6 +7769,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateGoogleAdsLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteGoogleAdsLinkRequest. */ @@ -7460,6 +7866,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteGoogleAdsLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListGoogleAdsLinksRequest. */ @@ -7562,6 +7975,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListGoogleAdsLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListGoogleAdsLinksResponse. */ @@ -7658,6 +8078,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListGoogleAdsLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDataSharingSettingsRequest. */ @@ -7748,6 +8175,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDataSharingSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListAccountSummariesRequest. */ @@ -7844,6 +8278,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAccountSummariesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListAccountSummariesResponse. */ @@ -7940,6 +8381,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAccountSummariesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AcknowledgeUserDataCollectionRequest. */ @@ -8036,6 +8484,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcknowledgeUserDataCollectionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AcknowledgeUserDataCollectionResponse. */ @@ -8120,6 +8575,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcknowledgeUserDataCollectionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchChangeHistoryEventsRequest. */ @@ -8258,6 +8720,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchChangeHistoryEventsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchChangeHistoryEventsResponse. */ @@ -8354,6 +8823,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchChangeHistoryEventsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetMeasurementProtocolSecretRequest. */ @@ -8444,6 +8920,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateMeasurementProtocolSecretRequest. */ @@ -8540,6 +9023,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteMeasurementProtocolSecretRequest. */ @@ -8630,6 +9120,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateMeasurementProtocolSecretRequest. */ @@ -8726,6 +9223,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListMeasurementProtocolSecretsRequest. */ @@ -8828,6 +9332,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListMeasurementProtocolSecretsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListMeasurementProtocolSecretsResponse. */ @@ -8924,6 +9435,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListMeasurementProtocolSecretsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetGoogleSignalsSettingsRequest. */ @@ -9014,6 +9532,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetGoogleSignalsSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateGoogleSignalsSettingsRequest. */ @@ -9110,6 +9635,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateGoogleSignalsSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateConversionEventRequest. */ @@ -9206,6 +9738,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateConversionEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetConversionEventRequest. */ @@ -9296,6 +9835,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetConversionEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteConversionEventRequest. */ @@ -9386,6 +9932,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteConversionEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListConversionEventsRequest. */ @@ -9488,6 +10041,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListConversionEventsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListConversionEventsResponse. */ @@ -9584,6 +10144,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListConversionEventsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDisplayVideo360AdvertiserLinkRequest. */ @@ -9674,6 +10241,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDisplayVideo360AdvertiserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDisplayVideo360AdvertiserLinksRequest. */ @@ -9776,6 +10350,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDisplayVideo360AdvertiserLinksResponse. */ @@ -9872,6 +10453,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateDisplayVideo360AdvertiserLinkRequest. */ @@ -9968,6 +10556,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateDisplayVideo360AdvertiserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteDisplayVideo360AdvertiserLinkRequest. */ @@ -10058,6 +10653,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteDisplayVideo360AdvertiserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateDisplayVideo360AdvertiserLinkRequest. */ @@ -10154,6 +10756,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateDisplayVideo360AdvertiserLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDisplayVideo360AdvertiserLinkProposalRequest. */ @@ -10244,6 +10853,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDisplayVideo360AdvertiserLinkProposalRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsRequest. */ @@ -10346,6 +10962,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinkProposalsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDisplayVideo360AdvertiserLinkProposalsResponse. */ @@ -10442,6 +11065,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinkProposalsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateDisplayVideo360AdvertiserLinkProposalRequest. */ @@ -10538,6 +11168,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateDisplayVideo360AdvertiserLinkProposalRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteDisplayVideo360AdvertiserLinkProposalRequest. */ @@ -10628,6 +11265,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalRequest. */ @@ -10718,6 +11362,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ApproveDisplayVideo360AdvertiserLinkProposalResponse. */ @@ -10808,6 +11459,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CancelDisplayVideo360AdvertiserLinkProposalRequest. */ @@ -10898,6 +11556,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelDisplayVideo360AdvertiserLinkProposalRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateCustomDimensionRequest. */ @@ -10994,6 +11659,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateCustomDimensionRequest. */ @@ -11090,6 +11762,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomDimensionsRequest. */ @@ -11192,6 +11871,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomDimensionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomDimensionsResponse. */ @@ -11288,6 +11974,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomDimensionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ArchiveCustomDimensionRequest. */ @@ -11378,6 +12071,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArchiveCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetCustomDimensionRequest. */ @@ -11468,6 +12168,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateCustomMetricRequest. */ @@ -11564,6 +12271,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateCustomMetricRequest. */ @@ -11660,6 +12374,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomMetricsRequest. */ @@ -11762,6 +12483,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomMetricsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomMetricsResponse. */ @@ -11858,6 +12586,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomMetricsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ArchiveCustomMetricRequest. */ @@ -11948,6 +12683,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArchiveCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetCustomMetricRequest. */ @@ -12038,6 +12780,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDataRetentionSettingsRequest. */ @@ -12128,6 +12877,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDataRetentionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateDataRetentionSettingsRequest. */ @@ -12224,6 +12980,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateDataRetentionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateDataStreamRequest. */ @@ -12320,6 +13083,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteDataStreamRequest. */ @@ -12410,6 +13180,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateDataStreamRequest. */ @@ -12506,6 +13283,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDataStreamsRequest. */ @@ -12608,6 +13392,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDataStreamsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDataStreamsResponse. */ @@ -12704,6 +13495,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDataStreamsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDataStreamRequest. */ @@ -12794,6 +13592,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetAudienceRequest. */ @@ -12884,6 +13689,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetAudienceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListAudiencesRequest. */ @@ -12986,6 +13798,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAudiencesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListAudiencesResponse. */ @@ -13082,6 +13901,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAudiencesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateAudienceRequest. */ @@ -13178,6 +14004,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateAudienceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateAudienceRequest. */ @@ -13274,6 +14107,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateAudienceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ArchiveAudienceRequest. */ @@ -13364,6 +14204,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArchiveAudienceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetAttributionSettingsRequest. */ @@ -13454,6 +14301,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetAttributionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateAttributionSettingsRequest. */ @@ -13550,6 +14404,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateAttributionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** AudienceFilterScope enum. */ @@ -13687,6 +14548,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceDimensionOrMetricFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AudienceDimensionOrMetricFilter { @@ -13791,6 +14659,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StringFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace StringFilter { @@ -13901,6 +14776,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InListFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NumericValue. */ @@ -14000,6 +14882,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NumericFilter. */ @@ -14096,6 +14985,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NumericFilter { @@ -14205,6 +15101,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BetweenFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -14302,6 +15205,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceEventFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AudienceFilterExpression. */ @@ -14419,6 +15329,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceFilterExpression + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AudienceFilterExpressionList. */ @@ -14509,6 +15426,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceFilterExpressionList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AudienceSimpleFilter. */ @@ -14605,6 +15529,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceSimpleFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AudienceSequenceFilter. */ @@ -14707,6 +15638,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceSequenceFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AudienceSequenceFilter { @@ -14817,6 +15755,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceSequenceStep + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -14923,6 +15868,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceFilterClause + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AudienceFilterClause { @@ -15029,6 +15981,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceEventTrigger + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AudienceEventTrigger { @@ -15171,6 +16130,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Audience + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Audience { @@ -15415,6 +16381,13 @@ export namespace google { * @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 Property. */ @@ -15577,6 +16550,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Property + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DataStream. */ @@ -15712,6 +16692,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataStream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DataStream { @@ -15816,6 +16803,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WebStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AndroidAppStreamData. */ @@ -15912,6 +16906,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AndroidAppStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an IosAppStreamData. */ @@ -16008,6 +17009,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IosAppStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** DataStreamType enum. */ @@ -16119,6 +17127,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UserLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AuditUserLink. */ @@ -16227,6 +17242,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AuditUserLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FirebaseLink. */ @@ -16329,6 +17351,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FirebaseLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GlobalSiteTag. */ @@ -16425,6 +17454,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalSiteTag + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GoogleAdsLink. */ @@ -16551,6 +17587,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GoogleAdsLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DataSharingSettings. */ @@ -16671,6 +17714,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataSharingSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccountSummary. */ @@ -16779,6 +17829,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccountSummary + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a PropertySummary. */ @@ -16887,6 +17944,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PropertySummary + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MeasurementProtocolSecret. */ @@ -16989,6 +18053,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MeasurementProtocolSecret + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ChangeHistoryEvent. */ @@ -17109,6 +18180,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeHistoryEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ChangeHistoryChange. */ @@ -17217,6 +18295,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeHistoryChange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ChangeHistoryChange { @@ -17390,6 +18475,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeHistoryResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -17511,6 +18603,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DisplayVideo360AdvertiserLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DisplayVideo360AdvertiserLinkProposal. */ @@ -17643,6 +18742,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DisplayVideo360AdvertiserLinkProposal + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a LinkProposalStatusDetails. */ @@ -17745,6 +18851,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LinkProposalStatusDetails + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ConversionEvent. */ @@ -17859,6 +18972,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConversionEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GoogleSignalsSettings. */ @@ -17961,6 +19081,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GoogleSignalsSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CustomDimension. */ @@ -18081,6 +19208,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomDimension + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace CustomDimension { @@ -18217,6 +19351,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomMetric + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace CustomMetric { @@ -18350,6 +19491,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataRetentionSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DataRetentionSettings { @@ -18471,6 +19619,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AttributionSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AttributionSettings { @@ -19189,329 +20344,329 @@ export namespace google { namespace AnalyticsAdminService { /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getAccount}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getAccount}. * @param error Error, if any * @param [response] Account */ type GetAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Account) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccounts}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listAccounts}. * @param error Error, if any * @param [response] ListAccountsResponse */ type ListAccountsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListAccountsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteAccount}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|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.analytics.admin.v1beta.AnalyticsAdminService#updateAccount}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateAccount}. * @param error Error, if any * @param [response] Account */ type UpdateAccountCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Account) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#provisionAccountTicket}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|provisionAccountTicket}. * @param error Error, if any * @param [response] ProvisionAccountTicketResponse */ type ProvisionAccountTicketCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ProvisionAccountTicketResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccountSummaries}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listAccountSummaries}. * @param error Error, if any * @param [response] ListAccountSummariesResponse */ type ListAccountSummariesCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListAccountSummariesResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getProperty}. * @param error Error, if any * @param [response] Property */ type GetPropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listProperties}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listProperties}. * @param error Error, if any * @param [response] ListPropertiesResponse */ type ListPropertiesCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListPropertiesResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createProperty}. * @param error Error, if any * @param [response] Property */ type CreatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteProperty}. * @param error Error, if any * @param [response] Property */ type DeletePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateProperty}. * @param error Error, if any * @param [response] Property */ type UpdatePropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.Property) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createFirebaseLink}. * @param error Error, if any * @param [response] FirebaseLink */ type CreateFirebaseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.FirebaseLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteFirebaseLink}. * @param error Error, if any * @param [response] Empty */ type DeleteFirebaseLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listFirebaseLinks}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listFirebaseLinks}. * @param error Error, if any * @param [response] ListFirebaseLinksResponse */ type ListFirebaseLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListFirebaseLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createGoogleAdsLink}. * @param error Error, if any * @param [response] GoogleAdsLink */ type CreateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.GoogleAdsLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateGoogleAdsLink}. * @param error Error, if any * @param [response] GoogleAdsLink */ type UpdateGoogleAdsLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.GoogleAdsLink) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteGoogleAdsLink}. * @param error Error, if any * @param [response] Empty */ type DeleteGoogleAdsLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listGoogleAdsLinks}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listGoogleAdsLinks}. * @param error Error, if any * @param [response] ListGoogleAdsLinksResponse */ type ListGoogleAdsLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataSharingSettings}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getDataSharingSettings}. * @param error Error, if any * @param [response] DataSharingSettings */ type GetDataSharingSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataSharingSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getMeasurementProtocolSecret}. * @param error Error, if any * @param [response] MeasurementProtocolSecret */ type GetMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.MeasurementProtocolSecret) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listMeasurementProtocolSecrets}. * @param error Error, if any * @param [response] ListMeasurementProtocolSecretsResponse */ type ListMeasurementProtocolSecretsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createMeasurementProtocolSecret}. * @param error Error, if any * @param [response] MeasurementProtocolSecret */ type CreateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.MeasurementProtocolSecret) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteMeasurementProtocolSecret}. * @param error Error, if any * @param [response] Empty */ type DeleteMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateMeasurementProtocolSecret}. * @param error Error, if any * @param [response] MeasurementProtocolSecret */ type UpdateMeasurementProtocolSecretCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.MeasurementProtocolSecret) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#acknowledgeUserDataCollection}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|acknowledgeUserDataCollection}. * @param error Error, if any * @param [response] AcknowledgeUserDataCollectionResponse */ type AcknowledgeUserDataCollectionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#searchChangeHistoryEvents}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|searchChangeHistoryEvents}. * @param error Error, if any * @param [response] SearchChangeHistoryEventsResponse */ type SearchChangeHistoryEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createConversionEvent}. * @param error Error, if any * @param [response] ConversionEvent */ type CreateConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ConversionEvent) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getConversionEvent}. * @param error Error, if any * @param [response] ConversionEvent */ type GetConversionEventCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ConversionEvent) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteConversionEvent}. * @param error Error, if any * @param [response] Empty */ type DeleteConversionEventCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listConversionEvents}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listConversionEvents}. * @param error Error, if any * @param [response] ListConversionEventsResponse */ type ListConversionEventsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListConversionEventsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createCustomDimension}. * @param error Error, if any * @param [response] CustomDimension */ type CreateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomDimension) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateCustomDimension}. * @param error Error, if any * @param [response] CustomDimension */ type UpdateCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomDimension) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomDimensions}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listCustomDimensions}. * @param error Error, if any * @param [response] ListCustomDimensionsResponse */ type ListCustomDimensionsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListCustomDimensionsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|archiveCustomDimension}. * @param error Error, if any * @param [response] Empty */ type ArchiveCustomDimensionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getCustomDimension}. * @param error Error, if any * @param [response] CustomDimension */ type GetCustomDimensionCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomDimension) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createCustomMetric}. * @param error Error, if any * @param [response] CustomMetric */ type CreateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomMetric) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateCustomMetric}. * @param error Error, if any * @param [response] CustomMetric */ type UpdateCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomMetric) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomMetrics}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listCustomMetrics}. * @param error Error, if any * @param [response] ListCustomMetricsResponse */ type ListCustomMetricsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListCustomMetricsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|archiveCustomMetric}. * @param error Error, if any * @param [response] Empty */ type ArchiveCustomMetricCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getCustomMetric}. * @param error Error, if any * @param [response] CustomMetric */ type GetCustomMetricCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.CustomMetric) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getDataRetentionSettings}. * @param error Error, if any * @param [response] DataRetentionSettings */ type GetDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataRetentionSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateDataRetentionSettings}. * @param error Error, if any * @param [response] DataRetentionSettings */ type UpdateDataRetentionSettingsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataRetentionSettings) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createDataStream}. * @param error Error, if any * @param [response] DataStream */ type CreateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataStream) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteDataStream}. * @param error Error, if any * @param [response] Empty */ type DeleteDataStreamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateDataStream}. * @param error Error, if any * @param [response] DataStream */ type UpdateDataStreamCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.DataStream) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listDataStreams}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listDataStreams}. * @param error Error, if any * @param [response] ListDataStreamsResponse */ type ListDataStreamsCallback = (error: (Error|null), response?: google.analytics.admin.v1beta.ListDataStreamsResponse) => void; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getDataStream}. * @param error Error, if any * @param [response] DataStream */ @@ -19606,6 +20761,13 @@ export namespace google { * @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 ListAccountsRequest. */ @@ -19708,6 +20870,13 @@ export namespace google { * @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. */ @@ -19804,6 +20973,13 @@ export namespace google { * @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 DeleteAccountRequest. */ @@ -19894,6 +21070,13 @@ export namespace google { * @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. */ @@ -19990,6 +21173,13 @@ export namespace google { * @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 ProvisionAccountTicketRequest. */ @@ -20086,6 +21276,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProvisionAccountTicketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ProvisionAccountTicketResponse. */ @@ -20176,6 +21373,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProvisionAccountTicketResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetPropertyRequest. */ @@ -20266,6 +21470,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListPropertiesRequest. */ @@ -20374,6 +21585,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPropertiesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListPropertiesResponse. */ @@ -20470,6 +21688,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPropertiesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdatePropertyRequest. */ @@ -20566,6 +21791,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdatePropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreatePropertyRequest. */ @@ -20656,6 +21888,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreatePropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeletePropertyRequest. */ @@ -20746,6 +21985,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeletePropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateFirebaseLinkRequest. */ @@ -20842,6 +22088,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFirebaseLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteFirebaseLinkRequest. */ @@ -20932,6 +22185,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFirebaseLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListFirebaseLinksRequest. */ @@ -21034,6 +22294,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFirebaseLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListFirebaseLinksResponse. */ @@ -21130,6 +22397,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFirebaseLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateGoogleAdsLinkRequest. */ @@ -21226,6 +22500,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateGoogleAdsLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateGoogleAdsLinkRequest. */ @@ -21322,6 +22603,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateGoogleAdsLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteGoogleAdsLinkRequest. */ @@ -21412,6 +22700,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteGoogleAdsLinkRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListGoogleAdsLinksRequest. */ @@ -21514,6 +22809,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListGoogleAdsLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListGoogleAdsLinksResponse. */ @@ -21610,6 +22912,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListGoogleAdsLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDataSharingSettingsRequest. */ @@ -21700,6 +23009,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDataSharingSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListAccountSummariesRequest. */ @@ -21796,6 +23112,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAccountSummariesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListAccountSummariesResponse. */ @@ -21892,6 +23215,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAccountSummariesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AcknowledgeUserDataCollectionRequest. */ @@ -21988,6 +23318,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcknowledgeUserDataCollectionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AcknowledgeUserDataCollectionResponse. */ @@ -22072,6 +23409,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcknowledgeUserDataCollectionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchChangeHistoryEventsRequest. */ @@ -22210,6 +23554,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchChangeHistoryEventsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchChangeHistoryEventsResponse. */ @@ -22306,6 +23657,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchChangeHistoryEventsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetMeasurementProtocolSecretRequest. */ @@ -22396,6 +23754,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateMeasurementProtocolSecretRequest. */ @@ -22492,6 +23857,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteMeasurementProtocolSecretRequest. */ @@ -22582,6 +23954,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateMeasurementProtocolSecretRequest. */ @@ -22678,6 +24057,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateMeasurementProtocolSecretRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListMeasurementProtocolSecretsRequest. */ @@ -22780,6 +24166,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListMeasurementProtocolSecretsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListMeasurementProtocolSecretsResponse. */ @@ -22876,6 +24269,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListMeasurementProtocolSecretsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateConversionEventRequest. */ @@ -22972,6 +24372,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateConversionEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetConversionEventRequest. */ @@ -23062,6 +24469,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetConversionEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteConversionEventRequest. */ @@ -23152,6 +24566,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteConversionEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListConversionEventsRequest. */ @@ -23254,6 +24675,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListConversionEventsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListConversionEventsResponse. */ @@ -23350,6 +24778,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListConversionEventsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateCustomDimensionRequest. */ @@ -23446,6 +24881,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateCustomDimensionRequest. */ @@ -23542,6 +24984,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomDimensionsRequest. */ @@ -23644,6 +25093,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomDimensionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomDimensionsResponse. */ @@ -23740,6 +25196,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomDimensionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ArchiveCustomDimensionRequest. */ @@ -23830,6 +25293,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArchiveCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetCustomDimensionRequest. */ @@ -23920,6 +25390,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCustomDimensionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateCustomMetricRequest. */ @@ -24016,6 +25493,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateCustomMetricRequest. */ @@ -24112,6 +25596,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomMetricsRequest. */ @@ -24214,6 +25705,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomMetricsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCustomMetricsResponse. */ @@ -24310,6 +25808,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListCustomMetricsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ArchiveCustomMetricRequest. */ @@ -24400,6 +25905,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArchiveCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetCustomMetricRequest. */ @@ -24490,6 +26002,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCustomMetricRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDataRetentionSettingsRequest. */ @@ -24580,6 +26099,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDataRetentionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateDataRetentionSettingsRequest. */ @@ -24676,6 +26202,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateDataRetentionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateDataStreamRequest. */ @@ -24772,6 +26305,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteDataStreamRequest. */ @@ -24862,6 +26402,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateDataStreamRequest. */ @@ -24958,6 +26505,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDataStreamsRequest. */ @@ -25060,6 +26614,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDataStreamsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListDataStreamsResponse. */ @@ -25156,6 +26717,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDataStreamsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetDataStreamRequest. */ @@ -25246,6 +26814,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDataStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** IndustryCategory enum. */ @@ -25445,6 +27020,13 @@ export namespace google { * @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 Property. */ @@ -25607,6 +27189,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Property + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DataStream. */ @@ -25742,6 +27331,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataStream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DataStream { @@ -25846,6 +27442,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WebStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AndroidAppStreamData. */ @@ -25942,6 +27545,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AndroidAppStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an IosAppStreamData. */ @@ -26038,6 +27648,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IosAppStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** DataStreamType enum. */ @@ -26149,6 +27766,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FirebaseLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GoogleAdsLink. */ @@ -26275,6 +27899,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GoogleAdsLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DataSharingSettings. */ @@ -26395,6 +28026,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataSharingSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AccountSummary. */ @@ -26503,6 +28141,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccountSummary + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a PropertySummary. */ @@ -26611,6 +28256,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PropertySummary + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MeasurementProtocolSecret. */ @@ -26713,6 +28365,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MeasurementProtocolSecret + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ChangeHistoryEvent. */ @@ -26833,6 +28492,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeHistoryEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ChangeHistoryChange. */ @@ -26941,6 +28607,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeHistoryChange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ChangeHistoryChange { @@ -27078,6 +28751,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeHistoryResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -27193,6 +28873,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConversionEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CustomDimension. */ @@ -27313,6 +29000,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomDimension + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace CustomDimension { @@ -27449,6 +29143,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomMetric + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace CustomMetric { @@ -27582,6 +29283,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataRetentionSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DataRetentionSettings { @@ -27739,6 +29447,13 @@ export namespace google { * @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 { @@ -27851,6 +29566,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Http. */ @@ -27947,6 +29669,13 @@ export namespace google { * @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. */ @@ -28094,6 +29823,13 @@ export namespace google { * @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. */ @@ -28190,6 +29926,13 @@ export namespace google { * @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; } } @@ -28284,6 +30027,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileDescriptorProto. */ @@ -28324,6 +30074,9 @@ export namespace google { /** FileDescriptorProto syntax */ syntax?: (string|null); + + /** FileDescriptorProto edition */ + edition?: (string|null); } /** Represents a FileDescriptorProto. */ @@ -28371,6 +30124,9 @@ export namespace google { /** FileDescriptorProto syntax. */ public syntax: string; + /** FileDescriptorProto edition. */ + public edition: string; + /** * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set @@ -28440,6 +30196,13 @@ export namespace google { * @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. */ @@ -28584,6 +30347,13 @@ export namespace google { * @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 { @@ -28688,6 +30458,13 @@ export namespace google { * @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. */ @@ -28784,6 +30561,13 @@ export namespace google { * @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; } } @@ -28875,6 +30659,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FieldDescriptorProto. */ @@ -29025,6 +30816,13 @@ export namespace google { * @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 { @@ -29153,6 +30951,13 @@ export namespace google { * @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. */ @@ -29267,6 +31072,13 @@ export namespace google { * @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 { @@ -29365,6 +31177,13 @@ export namespace google { * @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; } } @@ -29468,6 +31287,13 @@ export namespace google { * @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. */ @@ -29570,6 +31396,13 @@ export namespace google { * @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. */ @@ -29690,6 +31523,13 @@ export namespace google { * @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. */ @@ -29903,6 +31743,13 @@ export namespace google { * @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 { @@ -30030,6 +31877,13 @@ export namespace google { * @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. */ @@ -30047,6 +31901,9 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -30084,6 +31941,9 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + /** FieldOptions deprecated. */ public deprecated: boolean; @@ -30162,6 +32022,13 @@ export namespace google { * @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 { @@ -30269,6 +32136,13 @@ export namespace google { * @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. */ @@ -30371,6 +32245,13 @@ export namespace google { * @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. */ @@ -30467,6 +32348,13 @@ export namespace google { * @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. */ @@ -30569,6 +32457,13 @@ export namespace google { * @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. */ @@ -30677,6 +32572,13 @@ export namespace google { * @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 { @@ -30813,6 +32715,13 @@ export namespace google { * @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 { @@ -30911,6 +32820,13 @@ export namespace google { * @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; } } @@ -31002,6 +32918,13 @@ export namespace google { * @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 { @@ -31118,6 +33041,13 @@ export namespace google { * @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; } } @@ -31209,6 +33139,13 @@ export namespace google { * @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 { @@ -31227,6 +33164,9 @@ export namespace google { /** Annotation end */ end?: (number|null); + + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); } /** Represents an Annotation. */ @@ -31250,6 +33190,9 @@ export namespace google { /** 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 @@ -31319,6 +33262,23 @@ export namespace google { * @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 + } } } @@ -31416,6 +33376,13 @@ export namespace google { * @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 Timestamp. */ @@ -31512,6 +33479,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Timestamp + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DoubleValue. */ @@ -31602,6 +33576,13 @@ export namespace google { * @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. */ @@ -31692,6 +33673,13 @@ export namespace google { * @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. */ @@ -31782,6 +33770,13 @@ export namespace google { * @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. */ @@ -31872,6 +33867,13 @@ export namespace google { * @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. */ @@ -31962,6 +33964,13 @@ export namespace google { * @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. */ @@ -32052,6 +34061,13 @@ export namespace google { * @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. */ @@ -32142,6 +34158,13 @@ export namespace google { * @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. */ @@ -32232,6 +34255,13 @@ export namespace google { * @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. */ @@ -32322,6 +34352,13 @@ export namespace google { * @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; } /** Properties of an Empty. */ @@ -32406,6 +34443,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Empty + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FieldMask. */ @@ -32496,6 +34540,13 @@ export namespace google { * @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; } } } diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 0870f5c7f03..66fc8381d57 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -158,9 +158,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dimensionName = reader.string(); - break; + case 1: { + message.dimensionName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -250,6 +251,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessDimension + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessDimension + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessDimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessDimension"; + }; + return AccessDimension; })(); @@ -345,9 +361,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.metricName = reader.string(); - break; + case 1: { + message.metricName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -437,6 +454,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessMetric + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessMetric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessMetric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessMetric"; + }; + return AccessMetric; })(); @@ -543,12 +575,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.startDate = reader.string(); - break; - case 2: - message.endDate = reader.string(); - break; + case 1: { + message.startDate = reader.string(); + break; + } + case 2: { + message.endDate = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -647,6 +681,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessDateRange + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessDateRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessDateRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessDateRange"; + }; + return AccessDateRange; })(); @@ -789,18 +838,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.andGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.decode(reader, reader.uint32()); - break; - case 2: - message.orGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.decode(reader, reader.uint32()); - break; - case 3: - message.notExpression = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); - break; - case 4: - message.accessFilter = $root.google.analytics.admin.v1alpha.AccessFilter.decode(reader, reader.uint32()); - break; + case 1: { + message.andGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.decode(reader, reader.uint32()); + break; + } + case 2: { + message.orGroup = $root.google.analytics.admin.v1alpha.AccessFilterExpressionList.decode(reader, reader.uint32()); + break; + } + case 3: { + message.notExpression = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); + break; + } + case 4: { + message.accessFilter = $root.google.analytics.admin.v1alpha.AccessFilter.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -960,6 +1013,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessFilterExpression + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessFilterExpression + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessFilterExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessFilterExpression"; + }; + return AccessFilterExpression; })(); @@ -1057,11 +1125,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.expressions && message.expressions.length)) - message.expressions = []; - message.expressions.push($root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.expressions && message.expressions.length)) + message.expressions = []; + message.expressions.push($root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -1168,6 +1237,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessFilterExpressionList + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessFilterExpressionList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessFilterExpressionList"; + }; + return AccessFilterExpressionList; })(); @@ -1321,21 +1405,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.stringFilter = $root.google.analytics.admin.v1alpha.AccessStringFilter.decode(reader, reader.uint32()); - break; - case 3: - message.inListFilter = $root.google.analytics.admin.v1alpha.AccessInListFilter.decode(reader, reader.uint32()); - break; - case 4: - message.numericFilter = $root.google.analytics.admin.v1alpha.AccessNumericFilter.decode(reader, reader.uint32()); - break; - case 5: - message.betweenFilter = $root.google.analytics.admin.v1alpha.AccessBetweenFilter.decode(reader, reader.uint32()); - break; - case 1: - message.fieldName = reader.string(); - break; + case 2: { + message.stringFilter = $root.google.analytics.admin.v1alpha.AccessStringFilter.decode(reader, reader.uint32()); + break; + } + case 3: { + message.inListFilter = $root.google.analytics.admin.v1alpha.AccessInListFilter.decode(reader, reader.uint32()); + break; + } + case 4: { + message.numericFilter = $root.google.analytics.admin.v1alpha.AccessNumericFilter.decode(reader, reader.uint32()); + break; + } + case 5: { + message.betweenFilter = $root.google.analytics.admin.v1alpha.AccessBetweenFilter.decode(reader, reader.uint32()); + break; + } + case 1: { + message.fieldName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1504,6 +1593,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessFilter"; + }; + return AccessFilter; })(); @@ -1621,15 +1725,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.matchType = reader.int32(); - break; - case 2: - message.value = reader.string(); - break; - case 3: - message.caseSensitive = reader.bool(); - break; + case 1: { + message.matchType = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + case 3: { + message.caseSensitive = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -1774,6 +1881,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessStringFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessStringFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessStringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessStringFilter"; + }; + /** * MatchType enum. * @name google.analytics.admin.v1alpha.AccessStringFilter.MatchType @@ -1906,14 +2028,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - case 2: - message.caseSensitive = reader.bool(); - break; + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + case 2: { + message.caseSensitive = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -2024,6 +2148,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessInListFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessInListFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessInListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessInListFilter"; + }; + return AccessInListFilter; })(); @@ -2130,12 +2269,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.operation = reader.int32(); - break; - case 2: - message.value = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); - break; + case 1: { + message.operation = reader.int32(); + break; + } + case 2: { + message.value = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -2272,6 +2413,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessNumericFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessNumericFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessNumericFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessNumericFilter"; + }; + /** * Operation enum. * @name google.analytics.admin.v1alpha.AccessNumericFilter.Operation @@ -2400,12 +2556,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.fromValue = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); - break; - case 2: - message.toValue = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); - break; + case 1: { + message.fromValue = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); + break; + } + case 2: { + message.toValue = $root.google.analytics.admin.v1alpha.NumericValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -2514,6 +2672,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessBetweenFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessBetweenFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessBetweenFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessBetweenFilter"; + }; + return AccessBetweenFilter; })(); @@ -2634,12 +2807,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.int64Value = reader.int64(); - break; - case 2: - message.doubleValue = reader.double(); - break; + case 1: { + message.int64Value = reader.int64(); + break; + } + case 2: { + message.doubleValue = reader.double(); + break; + } default: reader.skipType(tag & 7); break; @@ -2757,6 +2932,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NumericValue + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.NumericValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NumericValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.NumericValue"; + }; + return NumericValue; })(); @@ -2888,15 +3078,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.metric = $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.decode(reader, reader.uint32()); - break; - case 2: - message.dimension = $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.decode(reader, reader.uint32()); - break; - case 3: - message.desc = reader.bool(); - break; + case 1: { + message.metric = $root.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.decode(reader, reader.uint32()); + break; + } + case 2: { + message.dimension = $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.decode(reader, reader.uint32()); + break; + } + case 3: { + message.desc = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3025,6 +3218,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessOrderBy + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessOrderBy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessOrderBy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessOrderBy"; + }; + AccessOrderBy.MetricOrderBy = (function() { /** @@ -3117,9 +3325,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.metricName = reader.string(); - break; + case 1: { + message.metricName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -3209,6 +3418,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MetricOrderBy + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricOrderBy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy"; + }; + return MetricOrderBy; })(); @@ -3315,12 +3539,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dimensionName = reader.string(); - break; - case 2: - message.orderType = reader.int32(); - break; + case 1: { + message.dimensionName = reader.string(); + break; + } + case 2: { + message.orderType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -3442,6 +3668,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DimensionOrderBy + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DimensionOrderBy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy"; + }; + /** * OrderType enum. * @name google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType @@ -3558,9 +3799,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dimensionName = reader.string(); - break; + case 1: { + message.dimensionName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -3650,6 +3892,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessDimensionHeader + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessDimensionHeader + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessDimensionHeader.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessDimensionHeader"; + }; + return AccessDimensionHeader; })(); @@ -3745,9 +4002,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.metricName = reader.string(); - break; + case 1: { + message.metricName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -3837,6 +4095,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessMetricHeader + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessMetricHeader + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessMetricHeader.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessMetricHeader"; + }; + return AccessMetricHeader; })(); @@ -3947,16 +4220,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.dimensionValues && message.dimensionValues.length)) - message.dimensionValues = []; - message.dimensionValues.push($root.google.analytics.admin.v1alpha.AccessDimensionValue.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.metricValues && message.metricValues.length)) - message.metricValues = []; - message.metricValues.push($root.google.analytics.admin.v1alpha.AccessMetricValue.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.dimensionValues && message.dimensionValues.length)) + message.dimensionValues = []; + message.dimensionValues.push($root.google.analytics.admin.v1alpha.AccessDimensionValue.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.metricValues && message.metricValues.length)) + message.metricValues = []; + message.metricValues.push($root.google.analytics.admin.v1alpha.AccessMetricValue.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -4089,6 +4364,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessRow + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessRow + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessRow"; + }; + return AccessRow; })(); @@ -4184,9 +4474,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; + case 1: { + message.value = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -4276,6 +4567,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessDimensionValue + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessDimensionValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessDimensionValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessDimensionValue"; + }; + return AccessDimensionValue; })(); @@ -4371,9 +4677,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; + case 1: { + message.value = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -4463,6 +4770,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessMetricValue + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessMetricValue"; + }; + return AccessMetricValue; })(); @@ -4591,18 +4913,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.tokensPerDay = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); - break; - case 2: - message.tokensPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); - break; - case 3: - message.concurrentRequests = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); - break; - case 4: - message.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); - break; + case 1: { + message.tokensPerDay = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + } + case 2: { + message.tokensPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + } + case 3: { + message.concurrentRequests = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + } + case 4: { + message.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -4737,6 +5063,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessQuota + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessQuota + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessQuota.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessQuota"; + }; + return AccessQuota; })(); @@ -4843,12 +5184,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.consumed = reader.int32(); - break; - case 2: - message.remaining = reader.int32(); - break; + case 1: { + message.consumed = reader.int32(); + break; + } + case 2: { + message.remaining = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -4947,6 +5290,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccessQuotaStatus + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccessQuotaStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessQuotaStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccessQuotaStatus"; + }; + return AccessQuotaStatus; })(); @@ -4983,7 +5341,7 @@ }; /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAccount}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAccount}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetAccountCallback * @type {function} @@ -5016,7 +5374,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccounts}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAccounts}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListAccountsCallback * @type {function} @@ -5049,7 +5407,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteAccount}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteAccount}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteAccountCallback * @type {function} @@ -5082,7 +5440,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAccount}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateAccount}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateAccountCallback * @type {function} @@ -5115,7 +5473,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#provisionAccountTicket}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|provisionAccountTicket}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ProvisionAccountTicketCallback * @type {function} @@ -5148,7 +5506,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAccountSummaries}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAccountSummaries}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListAccountSummariesCallback * @type {function} @@ -5181,7 +5539,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getProperty}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetPropertyCallback * @type {function} @@ -5214,7 +5572,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listProperties}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listProperties}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListPropertiesCallback * @type {function} @@ -5247,7 +5605,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createProperty}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreatePropertyCallback * @type {function} @@ -5280,7 +5638,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteProperty}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeletePropertyCallback * @type {function} @@ -5313,7 +5671,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateProperty}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateProperty}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdatePropertyCallback * @type {function} @@ -5346,7 +5704,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getUserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetUserLinkCallback * @type {function} @@ -5379,7 +5737,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchGetUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchGetUserLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef BatchGetUserLinksCallback * @type {function} @@ -5412,7 +5770,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listUserLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListUserLinksCallback * @type {function} @@ -5445,7 +5803,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#auditUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|auditUserLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef AuditUserLinksCallback * @type {function} @@ -5478,7 +5836,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createUserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateUserLinkCallback * @type {function} @@ -5511,7 +5869,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchCreateUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchCreateUserLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef BatchCreateUserLinksCallback * @type {function} @@ -5544,7 +5902,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateUserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateUserLinkCallback * @type {function} @@ -5577,7 +5935,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchUpdateUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchUpdateUserLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef BatchUpdateUserLinksCallback * @type {function} @@ -5610,7 +5968,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteUserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteUserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteUserLinkCallback * @type {function} @@ -5643,7 +6001,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#batchDeleteUserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|batchDeleteUserLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef BatchDeleteUserLinksCallback * @type {function} @@ -5676,7 +6034,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createFirebaseLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateFirebaseLinkCallback * @type {function} @@ -5709,7 +6067,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteFirebaseLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteFirebaseLinkCallback * @type {function} @@ -5742,7 +6100,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listFirebaseLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listFirebaseLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListFirebaseLinksCallback * @type {function} @@ -5775,7 +6133,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGlobalSiteTag}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getGlobalSiteTag}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetGlobalSiteTagCallback * @type {function} @@ -5808,7 +6166,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createGoogleAdsLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateGoogleAdsLinkCallback * @type {function} @@ -5841,7 +6199,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateGoogleAdsLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateGoogleAdsLinkCallback * @type {function} @@ -5874,7 +6232,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteGoogleAdsLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteGoogleAdsLinkCallback * @type {function} @@ -5907,7 +6265,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listGoogleAdsLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listGoogleAdsLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListGoogleAdsLinksCallback * @type {function} @@ -5940,7 +6298,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataSharingSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDataSharingSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetDataSharingSettingsCallback * @type {function} @@ -5973,7 +6331,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetMeasurementProtocolSecretCallback * @type {function} @@ -6006,7 +6364,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listMeasurementProtocolSecrets}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListMeasurementProtocolSecretsCallback * @type {function} @@ -6039,7 +6397,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateMeasurementProtocolSecretCallback * @type {function} @@ -6072,7 +6430,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteMeasurementProtocolSecretCallback * @type {function} @@ -6105,7 +6463,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateMeasurementProtocolSecretCallback * @type {function} @@ -6138,7 +6496,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#acknowledgeUserDataCollection}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|acknowledgeUserDataCollection}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef AcknowledgeUserDataCollectionCallback * @type {function} @@ -6171,7 +6529,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#searchChangeHistoryEvents}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|searchChangeHistoryEvents}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef SearchChangeHistoryEventsCallback * @type {function} @@ -6204,7 +6562,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getGoogleSignalsSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getGoogleSignalsSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetGoogleSignalsSettingsCallback * @type {function} @@ -6237,7 +6595,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateGoogleSignalsSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateGoogleSignalsSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateGoogleSignalsSettingsCallback * @type {function} @@ -6270,7 +6628,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createConversionEvent}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateConversionEventCallback * @type {function} @@ -6303,7 +6661,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getConversionEvent}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetConversionEventCallback * @type {function} @@ -6336,7 +6694,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteConversionEvent}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteConversionEventCallback * @type {function} @@ -6369,7 +6727,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listConversionEvents}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listConversionEvents}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListConversionEventsCallback * @type {function} @@ -6402,7 +6760,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDisplayVideo360AdvertiserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetDisplayVideo360AdvertiserLinkCallback * @type {function} @@ -6435,7 +6793,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinks}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listDisplayVideo360AdvertiserLinks}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListDisplayVideo360AdvertiserLinksCallback * @type {function} @@ -6468,7 +6826,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createDisplayVideo360AdvertiserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateDisplayVideo360AdvertiserLinkCallback * @type {function} @@ -6501,7 +6859,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteDisplayVideo360AdvertiserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteDisplayVideo360AdvertiserLinkCallback * @type {function} @@ -6534,7 +6892,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDisplayVideo360AdvertiserLink}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateDisplayVideo360AdvertiserLink}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateDisplayVideo360AdvertiserLinkCallback * @type {function} @@ -6567,7 +6925,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDisplayVideo360AdvertiserLinkProposal}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetDisplayVideo360AdvertiserLinkProposalCallback * @type {function} @@ -6600,7 +6958,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDisplayVideo360AdvertiserLinkProposals}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listDisplayVideo360AdvertiserLinkProposals}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListDisplayVideo360AdvertiserLinkProposalsCallback * @type {function} @@ -6633,7 +6991,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createDisplayVideo360AdvertiserLinkProposal}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateDisplayVideo360AdvertiserLinkProposalCallback * @type {function} @@ -6666,7 +7024,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteDisplayVideo360AdvertiserLinkProposal}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteDisplayVideo360AdvertiserLinkProposalCallback * @type {function} @@ -6699,7 +7057,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#approveDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|approveDisplayVideo360AdvertiserLinkProposal}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ApproveDisplayVideo360AdvertiserLinkProposalCallback * @type {function} @@ -6732,7 +7090,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#cancelDisplayVideo360AdvertiserLinkProposal}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|cancelDisplayVideo360AdvertiserLinkProposal}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CancelDisplayVideo360AdvertiserLinkProposalCallback * @type {function} @@ -6765,7 +7123,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createCustomDimension}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateCustomDimensionCallback * @type {function} @@ -6798,7 +7156,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateCustomDimension}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateCustomDimensionCallback * @type {function} @@ -6831,7 +7189,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomDimensions}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listCustomDimensions}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListCustomDimensionsCallback * @type {function} @@ -6864,7 +7222,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|archiveCustomDimension}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ArchiveCustomDimensionCallback * @type {function} @@ -6897,7 +7255,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getCustomDimension}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetCustomDimensionCallback * @type {function} @@ -6930,7 +7288,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createCustomMetric}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateCustomMetricCallback * @type {function} @@ -6963,7 +7321,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateCustomMetric}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateCustomMetricCallback * @type {function} @@ -6996,7 +7354,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listCustomMetrics}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listCustomMetrics}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListCustomMetricsCallback * @type {function} @@ -7029,7 +7387,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|archiveCustomMetric}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ArchiveCustomMetricCallback * @type {function} @@ -7062,7 +7420,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getCustomMetric}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetCustomMetricCallback * @type {function} @@ -7095,7 +7453,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDataRetentionSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetDataRetentionSettingsCallback * @type {function} @@ -7128,7 +7486,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateDataRetentionSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateDataRetentionSettingsCallback * @type {function} @@ -7161,7 +7519,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createDataStream}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateDataStreamCallback * @type {function} @@ -7194,7 +7552,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#deleteDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteDataStream}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef DeleteDataStreamCallback * @type {function} @@ -7227,7 +7585,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateDataStream}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateDataStreamCallback * @type {function} @@ -7260,7 +7618,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listDataStreams}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listDataStreams}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListDataStreamsCallback * @type {function} @@ -7293,7 +7651,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getDataStream}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getDataStream}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetDataStreamCallback * @type {function} @@ -7326,7 +7684,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAudience}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetAudienceCallback * @type {function} @@ -7359,7 +7717,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#listAudiences}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAudiences}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ListAudiencesCallback * @type {function} @@ -7392,7 +7750,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#createAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createAudience}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef CreateAudienceCallback * @type {function} @@ -7425,7 +7783,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateAudience}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateAudienceCallback * @type {function} @@ -7458,7 +7816,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#archiveAudience}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|archiveAudience}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef ArchiveAudienceCallback * @type {function} @@ -7491,7 +7849,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#getAttributionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAttributionSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef GetAttributionSettingsCallback * @type {function} @@ -7524,7 +7882,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#updateAttributionSettings}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateAttributionSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef UpdateAttributionSettingsCallback * @type {function} @@ -7557,7 +7915,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService#runAccessReport}. + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|runAccessReport}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService * @typedef RunAccessReportCallback * @type {function} @@ -7802,47 +8160,58 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.entity = reader.string(); - break; - case 2: - if (!(message.dimensions && message.dimensions.length)) - message.dimensions = []; - message.dimensions.push($root.google.analytics.admin.v1alpha.AccessDimension.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.analytics.admin.v1alpha.AccessMetric.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.dateRanges && message.dateRanges.length)) - message.dateRanges = []; - message.dateRanges.push($root.google.analytics.admin.v1alpha.AccessDateRange.decode(reader, reader.uint32())); - break; - case 5: - message.dimensionFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); - break; - case 6: - message.metricFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); - break; - case 7: - message.offset = reader.int64(); - break; - case 8: - message.limit = reader.int64(); - break; - case 9: - message.timeZone = reader.string(); - break; - case 10: - if (!(message.orderBys && message.orderBys.length)) - message.orderBys = []; - message.orderBys.push($root.google.analytics.admin.v1alpha.AccessOrderBy.decode(reader, reader.uint32())); - break; - case 11: - message.returnEntityQuota = reader.bool(); - break; + case 1: { + message.entity = reader.string(); + break; + } + case 2: { + if (!(message.dimensions && message.dimensions.length)) + message.dimensions = []; + message.dimensions.push($root.google.analytics.admin.v1alpha.AccessDimension.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.analytics.admin.v1alpha.AccessMetric.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.dateRanges && message.dateRanges.length)) + message.dateRanges = []; + message.dateRanges.push($root.google.analytics.admin.v1alpha.AccessDateRange.decode(reader, reader.uint32())); + break; + } + case 5: { + message.dimensionFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); + break; + } + case 6: { + message.metricFilter = $root.google.analytics.admin.v1alpha.AccessFilterExpression.decode(reader, reader.uint32()); + break; + } + case 7: { + message.offset = reader.int64(); + break; + } + case 8: { + message.limit = reader.int64(); + break; + } + case 9: { + message.timeZone = reader.string(); + break; + } + case 10: { + if (!(message.orderBys && message.orderBys.length)) + message.orderBys = []; + message.orderBys.push($root.google.analytics.admin.v1alpha.AccessOrderBy.decode(reader, reader.uint32())); + break; + } + case 11: { + message.returnEntityQuota = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -8121,6 +8490,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for RunAccessReportRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.RunAccessReportRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RunAccessReportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.RunAccessReportRequest"; + }; + return RunAccessReportRequest; })(); @@ -8266,27 +8650,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.dimensionHeaders && message.dimensionHeaders.length)) - message.dimensionHeaders = []; - message.dimensionHeaders.push($root.google.analytics.admin.v1alpha.AccessDimensionHeader.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.metricHeaders && message.metricHeaders.length)) - message.metricHeaders = []; - message.metricHeaders.push($root.google.analytics.admin.v1alpha.AccessMetricHeader.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.google.analytics.admin.v1alpha.AccessRow.decode(reader, reader.uint32())); - break; - case 4: - message.rowCount = reader.int32(); - break; - case 5: - message.quota = $root.google.analytics.admin.v1alpha.AccessQuota.decode(reader, reader.uint32()); - break; + case 1: { + if (!(message.dimensionHeaders && message.dimensionHeaders.length)) + message.dimensionHeaders = []; + message.dimensionHeaders.push($root.google.analytics.admin.v1alpha.AccessDimensionHeader.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.metricHeaders && message.metricHeaders.length)) + message.metricHeaders = []; + message.metricHeaders.push($root.google.analytics.admin.v1alpha.AccessMetricHeader.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.google.analytics.admin.v1alpha.AccessRow.decode(reader, reader.uint32())); + break; + } + case 4: { + message.rowCount = reader.int32(); + break; + } + case 5: { + message.quota = $root.google.analytics.admin.v1alpha.AccessQuota.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -8467,6 +8856,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for RunAccessReportResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.RunAccessReportResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RunAccessReportResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.RunAccessReportResponse"; + }; + return RunAccessReportResponse; })(); @@ -8562,9 +8966,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -8654,6 +9059,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetAccountRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.GetAccountRequest"; + }; + return GetAccountRequest; })(); @@ -8771,15 +9191,18 @@ 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.showDeleted = reader.bool(); - break; + case 1: { + message.pageSize = reader.int32(); + break; + } + case 2: { + message.pageToken = reader.string(); + break; + } + case 3: { + message.showDeleted = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -8886,6 +9309,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsRequest"; + }; + return ListAccountsRequest; })(); @@ -8994,14 +9432,16 @@ 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.analytics.admin.v1alpha.Account.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.accounts && message.accounts.length)) + message.accounts = []; + message.accounts.push($root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -9117,6 +9557,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.ListAccountsResponse"; + }; + return ListAccountsResponse; })(); @@ -9212,9 +9667,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -9304,6 +9760,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteAccountRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.DeleteAccountRequest"; + }; + return DeleteAccountRequest; })(); @@ -9410,12 +9881,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.account = $root.google.analytics.admin.v1alpha.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; @@ -9524,6 +9997,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateAccountRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.UpdateAccountRequest"; + }; + return UpdateAccountRequest; })(); @@ -9630,12 +10118,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); - break; - case 2: - message.redirectUri = reader.string(); - break; + case 1: { + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + } + case 2: { + message.redirectUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -9739,6 +10229,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ProvisionAccountTicketRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProvisionAccountTicketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ProvisionAccountTicketRequest"; + }; + return ProvisionAccountTicketRequest; })(); @@ -9834,9 +10339,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.accountTicketId = reader.string(); - break; + case 1: { + message.accountTicketId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -9926,6 +10432,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ProvisionAccountTicketResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProvisionAccountTicketResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ProvisionAccountTicketResponse"; + }; + return ProvisionAccountTicketResponse; })(); @@ -10021,9 +10542,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -10113,6 +10635,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetPropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetPropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetPropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetPropertyRequest"; + }; + return GetPropertyRequest; })(); @@ -10241,18 +10778,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.filter = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.showDeleted = reader.bool(); - break; + case 1: { + message.filter = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.showDeleted = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -10367,6 +10908,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListPropertiesRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListPropertiesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPropertiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListPropertiesRequest"; + }; + return ListPropertiesRequest; })(); @@ -10475,14 +11031,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.properties && message.properties.length)) - message.properties = []; - message.properties.push($root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.properties && message.properties.length)) + message.properties = []; + message.properties.push($root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -10598,6 +11156,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListPropertiesResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListPropertiesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPropertiesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListPropertiesResponse"; + }; + return ListPropertiesResponse; })(); @@ -10704,12 +11277,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -10818,6 +11393,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdatePropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdatePropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdatePropertyRequest"; + }; + return UpdatePropertyRequest; })(); @@ -10913,9 +11503,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; + case 1: { + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -11010,6 +11601,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreatePropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreatePropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreatePropertyRequest"; + }; + return CreatePropertyRequest; })(); @@ -11105,9 +11711,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11197,6 +11804,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeletePropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeletePropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeletePropertyRequest"; + }; + return DeletePropertyRequest; })(); @@ -11292,9 +11914,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11384,6 +12007,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetUserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetUserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetUserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetUserLinkRequest"; + }; + return GetUserLinkRequest; })(); @@ -11492,14 +12130,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -11610,6 +12250,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchGetUserLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchGetUserLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BatchGetUserLinksRequest"; + }; + return BatchGetUserLinksRequest; })(); @@ -11707,11 +12362,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -11818,6 +12474,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchGetUserLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.BatchGetUserLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchGetUserLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BatchGetUserLinksResponse"; + }; + return BatchGetUserLinksResponse; })(); @@ -11935,15 +12606,18 @@ 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 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; @@ -12050,6 +12724,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListUserLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListUserLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListUserLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListUserLinksRequest"; + }; + return ListUserLinksRequest; })(); @@ -12158,14 +12847,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -12281,6 +12972,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListUserLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListUserLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListUserLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListUserLinksResponse"; + }; + return ListUserLinksResponse; })(); @@ -12398,15 +13104,18 @@ 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 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; @@ -12513,6 +13222,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AuditUserLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AuditUserLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuditUserLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AuditUserLinksRequest"; + }; + return AuditUserLinksRequest; })(); @@ -12621,14 +13345,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.AuditUserLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.AuditUserLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -12744,6 +13470,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AuditUserLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AuditUserLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuditUserLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AuditUserLinksResponse"; + }; + return AuditUserLinksResponse; })(); @@ -12861,15 +13602,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.notifyNewUser = reader.bool(); - break; - case 3: - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.notifyNewUser = reader.bool(); + break; + } + case 3: { + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -12981,6 +13725,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateUserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateUserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateUserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateUserLinkRequest"; + }; + return CreateUserLinkRequest; })(); @@ -13100,17 +13859,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.notifyNewUsers = reader.bool(); - break; - case 3: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.CreateUserLinkRequest.decode(reader, reader.uint32())); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.notifyNewUsers = reader.bool(); + break; + } + case 3: { + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.CreateUserLinkRequest.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -13235,6 +13997,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchCreateUserLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateUserLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BatchCreateUserLinksRequest"; + }; + return BatchCreateUserLinksRequest; })(); @@ -13332,11 +14109,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -13443,6 +14221,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchCreateUserLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.BatchCreateUserLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateUserLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BatchCreateUserLinksResponse"; + }; + return BatchCreateUserLinksResponse; })(); @@ -13538,9 +14331,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); - break; + case 1: { + message.userLink = $root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -13635,6 +14429,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateUserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateUserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateUserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateUserLinkRequest"; + }; + return UpdateUserLinkRequest; })(); @@ -13743,14 +14552,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.decode(reader, reader.uint32())); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.UpdateUserLinkRequest.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -13866,6 +14677,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchUpdateUserLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchUpdateUserLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest"; + }; + return BatchUpdateUserLinksRequest; })(); @@ -13963,11 +14789,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.userLinks && message.userLinks.length)) - message.userLinks = []; - message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.userLinks && message.userLinks.length)) + message.userLinks = []; + message.userLinks.push($root.google.analytics.admin.v1alpha.UserLink.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -14074,6 +14901,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchUpdateUserLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchUpdateUserLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse"; + }; + return BatchUpdateUserLinksResponse; })(); @@ -14169,9 +15011,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -14261,6 +15104,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteUserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteUserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteUserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteUserLinkRequest"; + }; + return DeleteUserLinkRequest; })(); @@ -14369,14 +15227,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.decode(reader, reader.uint32())); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.analytics.admin.v1alpha.DeleteUserLinkRequest.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -14492,6 +15352,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchDeleteUserLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchDeleteUserLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest"; + }; + return BatchDeleteUserLinksRequest; })(); @@ -14598,12 +15473,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -14707,6 +15584,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateFirebaseLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFirebaseLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateFirebaseLinkRequest"; + }; + return CreateFirebaseLinkRequest; })(); @@ -14802,9 +15694,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -14894,6 +15787,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteFirebaseLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFirebaseLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest"; + }; + return DeleteFirebaseLinkRequest; })(); @@ -15011,15 +15919,18 @@ 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 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; @@ -15126,6 +16037,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListFirebaseLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFirebaseLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListFirebaseLinksRequest"; + }; + return ListFirebaseLinksRequest; })(); @@ -15234,14 +16160,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.firebaseLinks && message.firebaseLinks.length)) - message.firebaseLinks = []; - message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -15357,6 +16285,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListFirebaseLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListFirebaseLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFirebaseLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListFirebaseLinksResponse"; + }; + return ListFirebaseLinksResponse; })(); @@ -15452,9 +16395,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -15544,6 +16488,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetGlobalSiteTagRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetGlobalSiteTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetGlobalSiteTagRequest"; + }; + return GetGlobalSiteTagRequest; })(); @@ -15650,12 +16609,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -15759,6 +16720,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateGoogleAdsLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateGoogleAdsLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest"; + }; + return CreateGoogleAdsLinkRequest; })(); @@ -15865,12 +16841,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -15979,6 +16957,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateGoogleAdsLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateGoogleAdsLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest"; + }; + return UpdateGoogleAdsLinkRequest; })(); @@ -16074,9 +17067,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -16166,6 +17160,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteGoogleAdsLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteGoogleAdsLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest"; + }; + return DeleteGoogleAdsLinkRequest; })(); @@ -16283,15 +17292,18 @@ 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 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; @@ -16398,6 +17410,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListGoogleAdsLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListGoogleAdsLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest"; + }; + return ListGoogleAdsLinksRequest; })(); @@ -16506,14 +17533,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.googleAdsLinks && message.googleAdsLinks.length)) - message.googleAdsLinks = []; - message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -16629,6 +17658,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListGoogleAdsLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListGoogleAdsLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse"; + }; + return ListGoogleAdsLinksResponse; })(); @@ -16724,9 +17768,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -16816,6 +17861,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDataSharingSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDataSharingSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDataSharingSettingsRequest"; + }; + return GetDataSharingSettingsRequest; })(); @@ -16922,12 +17982,14 @@ 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 1: { + message.pageSize = reader.int32(); + break; + } + case 2: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -17026,6 +18088,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountSummariesRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAccountSummariesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAccountSummariesRequest"; + }; + return ListAccountSummariesRequest; })(); @@ -17134,14 +18211,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.accountSummaries && message.accountSummaries.length)) - message.accountSummaries = []; - message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1alpha.AccountSummary.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -17257,6 +18336,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountSummariesResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListAccountSummariesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAccountSummariesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAccountSummariesResponse"; + }; + return ListAccountSummariesResponse; })(); @@ -17363,12 +18457,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = reader.string(); - break; - case 2: - message.acknowledgement = reader.string(); - break; + case 1: { + message.property = reader.string(); + break; + } + case 2: { + message.acknowledgement = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -17467,6 +18563,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AcknowledgeUserDataCollectionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcknowledgeUserDataCollectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest"; + }; + return AcknowledgeUserDataCollectionRequest; })(); @@ -17627,6 +18738,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AcknowledgeUserDataCollectionResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcknowledgeUserDataCollectionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse"; + }; + return AcknowledgeUserDataCollectionResponse; })(); @@ -17822,49 +18948,58 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = reader.string(); - break; - case 2: - message.property = reader.string(); - break; - case 3: - if (!(message.resourceType && message.resourceType.length)) - message.resourceType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.account = reader.string(); + break; + } + case 2: { + message.property = reader.string(); + break; + } + case 3: { + if (!(message.resourceType && message.resourceType.length)) + message.resourceType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.resourceType.push(reader.int32()); + } else message.resourceType.push(reader.int32()); - } else - message.resourceType.push(reader.int32()); - break; - case 4: - if (!(message.action && message.action.length)) - message.action = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 4: { + if (!(message.action && message.action.length)) + message.action = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.action.push(reader.int32()); + } else message.action.push(reader.int32()); - } else - message.action.push(reader.int32()); - break; - case 5: - if (!(message.actorEmail && message.actorEmail.length)) - message.actorEmail = []; - message.actorEmail.push(reader.string()); - break; - case 6: - message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.pageSize = reader.int32(); - break; - case 9: - message.pageToken = reader.string(); - break; + break; + } + case 5: { + if (!(message.actorEmail && message.actorEmail.length)) + message.actorEmail = []; + message.actorEmail.push(reader.string()); + break; + } + case 6: { + message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.pageSize = reader.int32(); + break; + } + case 9: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18177,6 +19312,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SearchChangeHistoryEventsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchChangeHistoryEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest"; + }; + return SearchChangeHistoryEventsRequest; })(); @@ -18285,14 +19435,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) - message.changeHistoryEvents = []; - message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) + message.changeHistoryEvents = []; + message.changeHistoryEvents.push($root.google.analytics.admin.v1alpha.ChangeHistoryEvent.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18408,6 +19560,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SearchChangeHistoryEventsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchChangeHistoryEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse"; + }; + return SearchChangeHistoryEventsResponse; })(); @@ -18503,9 +19670,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18595,6 +19763,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest"; + }; + return GetMeasurementProtocolSecretRequest; })(); @@ -18701,12 +19884,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -18810,6 +19995,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest"; + }; + return CreateMeasurementProtocolSecretRequest; })(); @@ -18905,9 +20105,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18997,6 +20198,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest"; + }; + return DeleteMeasurementProtocolSecretRequest; })(); @@ -19103,12 +20319,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -19217,6 +20435,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest"; + }; + return UpdateMeasurementProtocolSecretRequest; })(); @@ -19334,15 +20567,18 @@ 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 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; @@ -19449,6 +20685,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListMeasurementProtocolSecretsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListMeasurementProtocolSecretsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest"; + }; + return ListMeasurementProtocolSecretsRequest; })(); @@ -19557,14 +20808,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) - message.measurementProtocolSecrets = []; - message.measurementProtocolSecrets.push($root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) + message.measurementProtocolSecrets = []; + message.measurementProtocolSecrets.push($root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19680,6 +20933,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListMeasurementProtocolSecretsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListMeasurementProtocolSecretsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse"; + }; + return ListMeasurementProtocolSecretsResponse; })(); @@ -19775,9 +21043,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19867,6 +21136,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetGoogleSignalsSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetGoogleSignalsSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest"; + }; + return GetGoogleSignalsSettingsRequest; })(); @@ -19973,12 +21257,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -20087,6 +21373,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateGoogleSignalsSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateGoogleSignalsSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest"; + }; + return UpdateGoogleSignalsSettingsRequest; })(); @@ -20193,12 +21494,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; + case 1: { + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); + break; + } + case 2: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20302,6 +21605,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateConversionEventRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateConversionEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateConversionEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateConversionEventRequest"; + }; + return CreateConversionEventRequest; })(); @@ -20397,9 +21715,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20489,6 +21808,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetConversionEventRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetConversionEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetConversionEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetConversionEventRequest"; + }; + return GetConversionEventRequest; })(); @@ -20584,9 +21918,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20676,6 +22011,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteConversionEventRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteConversionEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteConversionEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteConversionEventRequest"; + }; + return DeleteConversionEventRequest; })(); @@ -20793,15 +22143,18 @@ 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 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; @@ -20908,6 +22261,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListConversionEventsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListConversionEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListConversionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListConversionEventsRequest"; + }; + return ListConversionEventsRequest; })(); @@ -21016,14 +22384,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.conversionEvents && message.conversionEvents.length)) - message.conversionEvents = []; - message.conversionEvents.push($root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.conversionEvents && message.conversionEvents.length)) + message.conversionEvents = []; + message.conversionEvents.push($root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21139,6 +22509,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListConversionEventsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListConversionEventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListConversionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListConversionEventsResponse"; + }; + return ListConversionEventsResponse; })(); @@ -21234,9 +22619,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21326,6 +22712,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDisplayVideo360AdvertiserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDisplayVideo360AdvertiserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest"; + }; + return GetDisplayVideo360AdvertiserLinkRequest; })(); @@ -21443,15 +22844,18 @@ 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 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; @@ -21558,6 +22962,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDisplayVideo360AdvertiserLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest"; + }; + return ListDisplayVideo360AdvertiserLinksRequest; })(); @@ -21666,14 +23085,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length)) - message.displayVideo_360AdvertiserLinks = []; - message.displayVideo_360AdvertiserLinks.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.displayVideo_360AdvertiserLinks && message.displayVideo_360AdvertiserLinks.length)) + message.displayVideo_360AdvertiserLinks = []; + message.displayVideo_360AdvertiserLinks.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21789,6 +23210,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDisplayVideo360AdvertiserLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse"; + }; + return ListDisplayVideo360AdvertiserLinksResponse; })(); @@ -21895,12 +23331,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22004,6 +23442,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateDisplayVideo360AdvertiserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateDisplayVideo360AdvertiserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest"; + }; + return CreateDisplayVideo360AdvertiserLinkRequest; })(); @@ -22099,9 +23552,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -22191,6 +23645,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteDisplayVideo360AdvertiserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDisplayVideo360AdvertiserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest"; + }; + return DeleteDisplayVideo360AdvertiserLinkRequest; })(); @@ -22297,12 +23766,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22411,6 +23882,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateDisplayVideo360AdvertiserLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateDisplayVideo360AdvertiserLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest"; + }; + return UpdateDisplayVideo360AdvertiserLinkRequest; })(); @@ -22506,9 +23992,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -22598,6 +24085,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDisplayVideo360AdvertiserLinkProposalRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDisplayVideo360AdvertiserLinkProposalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest"; + }; + return GetDisplayVideo360AdvertiserLinkProposalRequest; })(); @@ -22715,15 +24217,18 @@ 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 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; @@ -22830,6 +24335,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinkProposalsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDisplayVideo360AdvertiserLinkProposalsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest"; + }; + return ListDisplayVideo360AdvertiserLinkProposalsRequest; })(); @@ -22938,14 +24458,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length)) - message.displayVideo_360AdvertiserLinkProposals = []; - message.displayVideo_360AdvertiserLinkProposals.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.displayVideo_360AdvertiserLinkProposals && message.displayVideo_360AdvertiserLinkProposals.length)) + message.displayVideo_360AdvertiserLinkProposals = []; + message.displayVideo_360AdvertiserLinkProposals.push($root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -23061,6 +24583,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDisplayVideo360AdvertiserLinkProposalsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDisplayVideo360AdvertiserLinkProposalsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse"; + }; + return ListDisplayVideo360AdvertiserLinkProposalsResponse; })(); @@ -23167,12 +24704,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -23276,6 +24815,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateDisplayVideo360AdvertiserLinkProposalRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateDisplayVideo360AdvertiserLinkProposalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest"; + }; + return CreateDisplayVideo360AdvertiserLinkProposalRequest; })(); @@ -23371,9 +24925,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -23463,6 +25018,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDisplayVideo360AdvertiserLinkProposalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest"; + }; + return DeleteDisplayVideo360AdvertiserLinkProposalRequest; })(); @@ -23558,9 +25128,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -23650,6 +25221,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApproveDisplayVideo360AdvertiserLinkProposalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest"; + }; + return ApproveDisplayVideo360AdvertiserLinkProposalRequest; })(); @@ -23745,9 +25331,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); - break; + case 1: { + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -23842,6 +25429,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApproveDisplayVideo360AdvertiserLinkProposalResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse"; + }; + return ApproveDisplayVideo360AdvertiserLinkProposalResponse; })(); @@ -23937,9 +25539,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24029,6 +25632,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CancelDisplayVideo360AdvertiserLinkProposalRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelDisplayVideo360AdvertiserLinkProposalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest"; + }; + return CancelDisplayVideo360AdvertiserLinkProposalRequest; })(); @@ -24135,12 +25753,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -24244,6 +25864,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateCustomDimensionRequest"; + }; + return CreateCustomDimensionRequest; })(); @@ -24350,12 +25985,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -24464,6 +26101,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateCustomDimensionRequest"; + }; + return UpdateCustomDimensionRequest; })(); @@ -24581,15 +26233,18 @@ 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 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; @@ -24696,6 +26351,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomDimensionsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomDimensionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomDimensionsRequest"; + }; + return ListCustomDimensionsRequest; })(); @@ -24804,14 +26474,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.customDimensions && message.customDimensions.length)) - message.customDimensions = []; - message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24927,6 +26599,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomDimensionsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomDimensionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomDimensionsResponse"; + }; + return ListCustomDimensionsResponse; })(); @@ -25022,9 +26709,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -25114,6 +26802,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ArchiveCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArchiveCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest"; + }; + return ArchiveCustomDimensionRequest; })(); @@ -25209,9 +26912,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -25301,6 +27005,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetCustomDimensionRequest"; + }; + return GetCustomDimensionRequest; })(); @@ -25407,12 +27126,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -25516,6 +27237,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateCustomMetricRequest"; + }; + return CreateCustomMetricRequest; })(); @@ -25622,12 +27358,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -25736,6 +27474,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateCustomMetricRequest"; + }; + return UpdateCustomMetricRequest; })(); @@ -25853,15 +27606,18 @@ 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 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; @@ -25968,6 +27724,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomMetricsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomMetricsRequest"; + }; + return ListCustomMetricsRequest; })(); @@ -26076,14 +27847,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.customMetrics && message.customMetrics.length)) - message.customMetrics = []; - message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26199,6 +27972,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomMetricsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomMetricsResponse"; + }; + return ListCustomMetricsResponse; })(); @@ -26294,9 +28082,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26386,6 +28175,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ArchiveCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArchiveCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveCustomMetricRequest"; + }; + return ArchiveCustomMetricRequest; })(); @@ -26481,9 +28285,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26573,6 +28378,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetCustomMetricRequest"; + }; + return GetCustomMetricRequest; })(); @@ -26668,9 +28488,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26760,6 +28581,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDataRetentionSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest"; + }; + return GetDataRetentionSettingsRequest; })(); @@ -26866,12 +28702,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -26980,6 +28818,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateDataRetentionSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest"; + }; + return UpdateDataRetentionSettingsRequest; })(); @@ -27086,12 +28939,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -27195,6 +29050,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateDataStreamRequest"; + }; + return CreateDataStreamRequest; })(); @@ -27290,9 +29160,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -27382,6 +29253,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteDataStreamRequest"; + }; + return DeleteDataStreamRequest; })(); @@ -27488,12 +29374,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -27602,6 +29490,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateDataStreamRequest"; + }; + return UpdateDataStreamRequest; })(); @@ -27719,15 +29622,18 @@ 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 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; @@ -27834,6 +29740,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDataStreamsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDataStreamsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDataStreamsRequest"; + }; + return ListDataStreamsRequest; })(); @@ -27942,14 +29863,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.dataStreams && message.dataStreams.length)) - message.dataStreams = []; - message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.dataStreams && message.dataStreams.length)) + message.dataStreams = []; + message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -28065,6 +29988,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDataStreamsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDataStreamsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDataStreamsResponse"; + }; + return ListDataStreamsResponse; })(); @@ -28160,9 +30098,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -28252,6 +30191,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDataStreamRequest"; + }; + return GetDataStreamRequest; })(); @@ -28347,9 +30301,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -28439,6 +30394,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetAudienceRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetAudienceRequest"; + }; + return GetAudienceRequest; })(); @@ -28556,15 +30526,18 @@ 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 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; @@ -28671,6 +30644,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAudiencesRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAudiencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAudiencesRequest"; + }; + return ListAudiencesRequest; })(); @@ -28779,14 +30767,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.audiences && message.audiences.length)) - message.audiences = []; - message.audiences.push($root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.audiences && message.audiences.length)) + message.audiences = []; + message.audiences.push($root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -28902,6 +30892,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAudiencesResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAudiencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAudiencesResponse"; + }; + return ListAudiencesResponse; })(); @@ -29008,12 +31013,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -29117,6 +31124,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateAudienceRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateAudienceRequest"; + }; + return CreateAudienceRequest; })(); @@ -29223,12 +31245,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -29337,6 +31361,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateAudienceRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateAudienceRequest"; + }; + return UpdateAudienceRequest; })(); @@ -29432,9 +31471,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -29524,6 +31564,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ArchiveAudienceRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArchiveAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveAudienceRequest"; + }; + return ArchiveAudienceRequest; })(); @@ -29619,9 +31674,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -29711,6 +31767,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetAttributionSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetAttributionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetAttributionSettingsRequest"; + }; + return GetAttributionSettingsRequest; })(); @@ -29817,12 +31888,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -29931,6 +32004,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateAttributionSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateAttributionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest"; + }; + return UpdateAttributionSettingsRequest; })(); @@ -30124,27 +32212,34 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.decode(reader, reader.uint32()); - break; - case 3: - message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.decode(reader, reader.uint32()); - break; - case 4: - message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.decode(reader, reader.uint32()); - break; - case 5: - message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.decode(reader, reader.uint32()); - break; - case 1: - message.fieldName = reader.string(); - break; - case 6: - message.atAnyPointInTime = reader.bool(); - break; - case 7: - message.inAnyNDayPeriod = reader.int32(); - break; + case 2: { + message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.decode(reader, reader.uint32()); + break; + } + case 3: { + message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.decode(reader, reader.uint32()); + break; + } + case 4: { + message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.decode(reader, reader.uint32()); + break; + } + case 5: { + message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.decode(reader, reader.uint32()); + break; + } + case 1: { + message.fieldName = reader.string(); + break; + } + case 6: { + message.atAnyPointInTime = reader.bool(); + break; + } + case 7: { + message.inAnyNDayPeriod = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -30330,6 +32425,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceDimensionOrMetricFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceDimensionOrMetricFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter"; + }; + AudienceDimensionOrMetricFilter.StringFilter = (function() { /** @@ -30444,15 +32554,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.matchType = reader.int32(); - break; - case 2: - message.value = reader.string(); - break; - case 3: - message.caseSensitive = reader.bool(); - break; + case 1: { + message.matchType = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + case 3: { + message.caseSensitive = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -30597,6 +32710,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for StringFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter"; + }; + /** * MatchType enum. * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType @@ -30729,14 +32857,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - case 2: - message.caseSensitive = reader.bool(); - break; + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + case 2: { + message.caseSensitive = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -30847,6 +32977,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for InListFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter"; + }; + return InListFilter; })(); @@ -30967,12 +33112,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.int64Value = reader.int64(); - break; - case 2: - message.doubleValue = reader.double(); - break; + case 1: { + message.int64Value = reader.int64(); + break; + } + case 2: { + message.doubleValue = reader.double(); + break; + } default: reader.skipType(tag & 7); break; @@ -31090,6 +33237,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NumericValue + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NumericValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue"; + }; + return NumericValue; })(); @@ -31196,12 +33358,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.operation = reader.int32(); - break; - case 2: - message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); - break; + case 1: { + message.operation = reader.int32(); + break; + } + case 2: { + message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -31338,6 +33502,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NumericFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NumericFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter"; + }; + /** * Operation enum. * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation @@ -31466,12 +33645,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); - break; - case 2: - message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); - break; + case 1: { + message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); + break; + } + case 2: { + message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -31580,6 +33761,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BetweenFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BetweenFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter"; + }; + return BetweenFilter; })(); @@ -31689,12 +33885,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventName = reader.string(); - break; - case 2: - message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); - break; + case 1: { + message.eventName = reader.string(); + break; + } + case 2: { + message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -31798,6 +33996,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceEventFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceEventFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventFilter"; + }; + return AudienceEventFilter; })(); @@ -31951,21 +34164,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); - break; - case 2: - message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); - break; - case 3: - message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); - break; - case 4: - message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.decode(reader, reader.uint32()); - break; - case 5: - message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.decode(reader, reader.uint32()); - break; + case 1: { + message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); + break; + } + case 2: { + message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); + break; + } + case 3: { + message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + } + case 4: { + message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.decode(reader, reader.uint32()); + break; + } + case 5: { + message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -32145,6 +34363,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceFilterExpression + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceFilterExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpression"; + }; + return AudienceFilterExpression; })(); @@ -32242,11 +34475,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.filterExpressions && message.filterExpressions.length)) - message.filterExpressions = []; - message.filterExpressions.push($root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.filterExpressions && message.filterExpressions.length)) + message.filterExpressions = []; + message.filterExpressions.push($root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -32353,6 +34587,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceFilterExpressionList + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpressionList"; + }; + return AudienceFilterExpressionList; })(); @@ -32459,12 +34708,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.scope = reader.int32(); - break; - case 2: - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); - break; + case 1: { + message.scope = reader.int32(); + break; + } + case 2: { + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -32591,6 +34842,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceSimpleFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceSimpleFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSimpleFilter"; + }; + return AudienceSimpleFilter; })(); @@ -32710,17 +34976,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.scope = reader.int32(); - break; - case 2: - message.sequenceMaximumDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.sequenceSteps && message.sequenceSteps.length)) - message.sequenceSteps = []; - message.sequenceSteps.push($root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.decode(reader, reader.uint32())); - break; + case 1: { + message.scope = reader.int32(); + break; + } + case 2: { + message.sequenceMaximumDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.sequenceSteps && message.sequenceSteps.length)) + message.sequenceSteps = []; + message.sequenceSteps.push($root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -32873,6 +35142,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceSequenceFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceSequenceFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter"; + }; + AudienceSequenceFilter.AudienceSequenceStep = (function() { /** @@ -32998,18 +35282,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.scope = reader.int32(); - break; - case 2: - message.immediatelyFollows = reader.bool(); - break; - case 3: - message.constraintDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 4: - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); - break; + case 1: { + message.scope = reader.int32(); + break; + } + case 2: { + message.immediatelyFollows = reader.bool(); + break; + } + case 3: { + message.constraintDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -33157,6 +35445,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceSequenceStep + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceSequenceStep.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep"; + }; + return AudienceSequenceStep; })(); @@ -33291,15 +35594,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.decode(reader, reader.uint32()); - break; - case 3: - message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.decode(reader, reader.uint32()); - break; - case 1: - message.clauseType = reader.int32(); - break; + case 2: { + message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.decode(reader, reader.uint32()); + break; + } + case 3: { + message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.decode(reader, reader.uint32()); + break; + } + case 1: { + message.clauseType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -33446,6 +35752,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceFilterClause + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceFilterClause.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterClause"; + }; + /** * AudienceClauseType enum. * @name google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType @@ -33568,12 +35889,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventName = reader.string(); - break; - case 2: - message.logCondition = reader.int32(); - break; + case 1: { + message.eventName = reader.string(); + break; + } + case 2: { + message.logCondition = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -33690,6 +36013,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AudienceEventTrigger + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceEventTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventTrigger"; + }; + /** * LogCondition enum. * @name google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition @@ -33880,32 +36218,40 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.membershipDurationDays = reader.int32(); - break; - case 5: - message.adsPersonalizationEnabled = reader.bool(); - break; - case 6: - message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.decode(reader, reader.uint32()); - break; - case 7: - message.exclusionDurationMode = reader.int32(); - break; - case 8: - if (!(message.filterClauses && message.filterClauses.length)) - message.filterClauses = []; - message.filterClauses.push($root.google.analytics.admin.v1alpha.AudienceFilterClause.decode(reader, reader.uint32())); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + message.membershipDurationDays = reader.int32(); + break; + } + case 5: { + message.adsPersonalizationEnabled = reader.bool(); + break; + } + case 6: { + message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.decode(reader, reader.uint32()); + break; + } + case 7: { + message.exclusionDurationMode = reader.int32(); + break; + } + case 8: { + if (!(message.filterClauses && message.filterClauses.length)) + message.filterClauses = []; + message.filterClauses.push($root.google.analytics.admin.v1alpha.AudienceFilterClause.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -34093,6 +36439,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Audience + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.Audience + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Audience.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.Audience"; + }; + /** * AudienceExclusionDurationMode enum. * @name google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode @@ -34507,24 +36868,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.displayName = reader.string(); - break; - case 5: - message.regionCode = reader.string(); - break; - case 6: - message.deleted = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.displayName = reader.string(); + break; + } + case 5: { + message.regionCode = reader.string(); + break; + } + case 6: { + message.deleted = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -34665,6 +37032,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Account + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.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.analytics.admin.v1alpha.Account"; + }; + return Account; })(); @@ -34892,45 +37274,58 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 14: - message.propertyType = reader.int32(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; - case 5: - message.displayName = reader.string(); - break; - case 6: - message.industryCategory = reader.int32(); - break; - case 7: - message.timeZone = reader.string(); - break; - case 8: - message.currencyCode = reader.string(); - break; - case 10: - message.serviceLevel = reader.int32(); - break; - case 11: - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 13: - message.account = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 14: { + message.propertyType = reader.int32(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.parent = reader.string(); + break; + } + case 5: { + message.displayName = reader.string(); + break; + } + case 6: { + message.industryCategory = reader.int32(); + break; + } + case 7: { + message.timeZone = reader.string(); + break; + } + case 8: { + message.currencyCode = reader.string(); + break; + } + case 10: { + message.serviceLevel = reader.int32(); + break; + } + case 11: { + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.account = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -35316,6 +37711,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Property + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.Property + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Property.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.Property"; + }; + return Property; })(); @@ -35502,30 +37912,38 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: - message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.decode(reader, reader.uint32()); - break; - case 7: - message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); - break; - case 8: - message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.decode(reader, reader.uint32()); - break; - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 6: { + message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.decode(reader, reader.uint32()); + break; + } + case 7: { + message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); + break; + } + case 8: { + message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.decode(reader, reader.uint32()); + break; + } + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.type = reader.int32(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -35740,6 +38158,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DataStream + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream"; + }; + DataStream.WebStreamData = (function() { /** @@ -35854,15 +38287,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.measurementId = reader.string(); - break; - case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.defaultUri = reader.string(); - break; + case 1: { + message.measurementId = reader.string(); + break; + } + case 2: { + message.firebaseAppId = reader.string(); + break; + } + case 3: { + message.defaultUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -35969,6 +38405,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for WebStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WebStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.WebStreamData"; + }; + return WebStreamData; })(); @@ -36075,12 +38526,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.firebaseAppId = reader.string(); - break; - case 2: - message.packageName = reader.string(); - break; + case 1: { + message.firebaseAppId = reader.string(); + break; + } + case 2: { + message.packageName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -36179,6 +38632,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AndroidAppStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AndroidAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData"; + }; + return AndroidAppStreamData; })(); @@ -36285,12 +38753,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.firebaseAppId = reader.string(); - break; - case 2: - message.bundleId = reader.string(); - break; + case 1: { + message.firebaseAppId = reader.string(); + break; + } + case 2: { + message.bundleId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -36389,6 +38859,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for IosAppStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IosAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.IosAppStreamData"; + }; + return IosAppStreamData; })(); @@ -36529,17 +39014,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.emailAddress = reader.string(); - break; - case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.emailAddress = reader.string(); + break; + } + case 3: { + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -36659,6 +39147,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UserLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UserLink"; + }; + return UserLink; })(); @@ -36791,22 +39294,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.emailAddress = reader.string(); - break; - case 3: - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); - break; - case 4: - if (!(message.effectiveRoles && message.effectiveRoles.length)) - message.effectiveRoles = []; - message.effectiveRoles.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.emailAddress = reader.string(); + break; + } + case 3: { + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + } + case 4: { + if (!(message.effectiveRoles && message.effectiveRoles.length)) + message.effectiveRoles = []; + message.effectiveRoles.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -36947,6 +39454,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AuditUserLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuditUserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AuditUserLink"; + }; + return AuditUserLink; })(); @@ -37064,15 +39586,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.project = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.project = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -37184,6 +39709,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FirebaseLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FirebaseLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.FirebaseLink"; + }; + return FirebaseLink; })(); @@ -37290,12 +39830,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.snippet = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.snippet = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -37394,6 +39936,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GlobalSiteTag + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalSiteTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GlobalSiteTag"; + }; + return GlobalSiteTag; })(); @@ -37555,27 +40112,34 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.customerId = reader.string(); - break; - case 4: - message.canManageClients = reader.bool(); - break; - case 5: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.creatorEmailAddress = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.customerId = reader.string(); + break; + } + case 4: { + message.canManageClients = reader.bool(); + break; + } + case 5: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.creatorEmailAddress = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -37729,6 +40293,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GoogleAdsLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoogleAdsLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GoogleAdsLink"; + }; + return GoogleAdsLink; })(); @@ -37879,24 +40458,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.sharingWithGoogleSupportEnabled = reader.bool(); - break; - case 3: - message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); - break; - case 4: - message.sharingWithGoogleAnySalesEnabled = reader.bool(); - break; - case 5: - message.sharingWithGoogleProductsEnabled = reader.bool(); - break; - case 6: - message.sharingWithOthersEnabled = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + } + case 3: { + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + } + case 4: { + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + } + case 5: { + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + } + case 6: { + message.sharingWithOthersEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -38027,6 +40612,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DataSharingSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataSharingSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataSharingSettings"; + }; + return DataSharingSettings; })(); @@ -38157,20 +40757,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.account = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - if (!(message.propertySummaries && message.propertySummaries.length)) - message.propertySummaries = []; - message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.account = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -38303,6 +40907,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccountSummary + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccountSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccountSummary"; + }; + return AccountSummary; })(); @@ -38431,18 +41050,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.propertyType = reader.int32(); - break; - case 4: - message.parent = reader.string(); - break; + case 1: { + message.property = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.propertyType = reader.int32(); + break; + } + case 4: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -38580,6 +41203,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PropertySummary + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PropertySummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.PropertySummary"; + }; + return PropertySummary; })(); @@ -38697,15 +41335,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.secretValue = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.secretValue = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -38812,6 +41453,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MeasurementProtocolSecret + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MeasurementProtocolSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.MeasurementProtocolSecret"; + }; + return MeasurementProtocolSecret; })(); @@ -38964,26 +41620,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.actorType = reader.int32(); - break; - case 4: - message.userActorEmail = reader.string(); - break; - case 5: - message.changesFiltered = reader.bool(); - break; - case 6: - if (!(message.changes && message.changes.length)) - message.changes = []; - message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); - break; + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.actorType = reader.int32(); + break; + } + case 4: { + message.userActorEmail = reader.string(); + break; + } + case 5: { + message.changesFiltered = reader.bool(); + break; + } + case 6: { + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -39160,6 +41822,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeHistoryEvent + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryEvent"; + }; + return ChangeHistoryEvent; })(); @@ -39288,18 +41965,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resource = reader.string(); - break; - case 2: - message.action = reader.int32(); - break; - case 3: - message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); - break; - case 4: - message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); - break; + case 1: { + message.resource = reader.string(); + break; + } + case 2: { + message.action = reader.int32(); + break; + } + case 3: { + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + } + case 4: { + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -39447,6 +42128,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeHistoryChange + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryChange"; + }; + ChangeHistoryChange.ChangeHistoryResource = (function() { /** @@ -39696,48 +42392,62 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); - break; - case 2: - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; - case 6: - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); - break; - case 7: - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); - break; - case 8: - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); - break; - case 9: - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); - break; - case 10: - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); - break; - case 11: - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); - break; - case 12: - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - case 13: - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); - break; - case 14: - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); - break; - case 15: - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); - break; - case 18: - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); - break; - case 20: - message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); - break; + case 1: { + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + } + case 2: { + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + } + case 6: { + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + break; + } + case 7: { + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + } + case 8: { + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); + break; + } + case 9: { + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + } + case 10: { + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); + break; + } + case 11: { + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); + break; + } + case 12: { + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + } + case 13: { + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + } + case 14: { + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + } + case 15: { + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); + break; + } + case 18: { + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + break; + } + case 20: { + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -40097,6 +42807,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeHistoryResource + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource"; + }; + return ChangeHistoryResource; })(); @@ -40250,24 +42975,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.advertiserId = reader.string(); - break; - case 3: - message.advertiserDisplayName = reader.string(); - break; - case 4: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 5: - message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 6: - message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.advertiserId = reader.string(); + break; + } + case 3: { + message.advertiserDisplayName = reader.string(); + break; + } + case 4: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 5: { + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 6: { + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -40413,6 +43144,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DisplayVideo360AdvertiserLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DisplayVideo360AdvertiserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"; + }; + return DisplayVideo360AdvertiserLink; })(); @@ -40585,30 +43331,38 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.advertiserId = reader.string(); - break; - case 3: - message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.decode(reader, reader.uint32()); - break; - case 4: - message.advertiserDisplayName = reader.string(); - break; - case 5: - message.validationEmail = reader.string(); - break; - case 6: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 7: - message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 8: - message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.advertiserId = reader.string(); + break; + } + case 3: { + message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.decode(reader, reader.uint32()); + break; + } + case 4: { + message.advertiserDisplayName = reader.string(); + break; + } + case 5: { + message.validationEmail = reader.string(); + break; + } + case 6: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 7: { + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 8: { + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -40775,6 +43529,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DisplayVideo360AdvertiserLinkProposal + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DisplayVideo360AdvertiserLinkProposal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"; + }; + return DisplayVideo360AdvertiserLinkProposal; })(); @@ -40892,15 +43661,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.linkProposalInitiatingProduct = reader.int32(); - break; - case 2: - message.requestorEmail = reader.string(); - break; - case 3: - message.linkProposalState = reader.int32(); - break; + case 1: { + message.linkProposalInitiatingProduct = reader.int32(); + break; + } + case 2: { + message.requestorEmail = reader.string(); + break; + } + case 3: { + message.linkProposalState = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -41063,6 +43835,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for LinkProposalStatusDetails + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LinkProposalStatusDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.LinkProposalStatusDetails"; + }; + return LinkProposalStatusDetails; })(); @@ -41202,21 +43989,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.eventName = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.deletable = reader.bool(); - break; - case 5: - message.custom = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.eventName = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.deletable = reader.bool(); + break; + } + case 5: { + message.custom = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -41344,6 +44136,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ConversionEvent + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConversionEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ConversionEvent"; + }; + return ConversionEvent; })(); @@ -41461,15 +44268,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.state = reader.int32(); - break; - case 4: - message.consent = reader.int32(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.state = reader.int32(); + break; + } + case 4: { + message.consent = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -41612,6 +44422,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GoogleSignalsSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoogleSignalsSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GoogleSignalsSettings"; + }; + return GoogleSignalsSettings; })(); @@ -41762,24 +44587,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.parameterName = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.scope = reader.int32(); - break; - case 6: - message.disallowAdsPersonalization = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.parameterName = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.description = reader.string(); + break; + } + case 5: { + message.scope = reader.int32(); + break; + } + case 6: { + message.disallowAdsPersonalization = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -41928,6 +44759,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CustomDimension + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CustomDimension + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomDimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CustomDimension"; + }; + /** * DimensionScope enum. * @name google.analytics.admin.v1alpha.CustomDimension.DimensionScope @@ -42110,34 +44956,41 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.parameterName = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.measurementUnit = reader.int32(); - break; - case 6: - message.scope = reader.int32(); - break; - case 8: - if (!(message.restrictedMetricType && message.restrictedMetricType.length)) - message.restrictedMetricType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.parameterName = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.description = reader.string(); + break; + } + case 5: { + message.measurementUnit = reader.int32(); + break; + } + case 6: { + message.scope = reader.int32(); + break; + } + case 8: { + if (!(message.restrictedMetricType && message.restrictedMetricType.length)) + message.restrictedMetricType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.restrictedMetricType.push(reader.int32()); + } else message.restrictedMetricType.push(reader.int32()); - } else - message.restrictedMetricType.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -42380,6 +45233,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CustomMetric + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CustomMetric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomMetric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CustomMetric"; + }; + /** * MeasurementUnit enum. * @name google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit @@ -42559,15 +45427,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.eventDataRetention = reader.int32(); - break; - case 3: - message.resetUserDataOnNewActivity = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.eventDataRetention = reader.int32(); + break; + } + case 3: { + message.resetUserDataOnNewActivity = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -42707,6 +45578,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DataRetentionSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataRetentionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataRetentionSettings"; + }; + /** * RetentionDuration enum. * @name google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration @@ -42857,18 +45743,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.acquisitionConversionEventLookbackWindow = reader.int32(); - break; - case 3: - message.otherConversionEventLookbackWindow = reader.int32(); - break; - case 4: - message.reportingAttributionModel = reader.int32(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.acquisitionConversionEventLookbackWindow = reader.int32(); + break; + } + case 3: { + message.otherConversionEventLookbackWindow = reader.int32(); + break; + } + case 4: { + message.reportingAttributionModel = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -43067,6 +45957,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AttributionSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AttributionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AttributionSettings"; + }; + /** * AcquisitionConversionEventLookbackWindow enum. * @name google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow @@ -43175,7 +46080,7 @@ }; /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getAccount}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getAccount}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetAccountCallback * @type {function} @@ -43208,7 +46113,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccounts}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listAccounts}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListAccountsCallback * @type {function} @@ -43241,7 +46146,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteAccount}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteAccount}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef DeleteAccountCallback * @type {function} @@ -43274,7 +46179,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateAccount}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateAccount}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdateAccountCallback * @type {function} @@ -43307,7 +46212,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#provisionAccountTicket}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|provisionAccountTicket}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ProvisionAccountTicketCallback * @type {function} @@ -43340,7 +46245,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listAccountSummaries}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listAccountSummaries}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListAccountSummariesCallback * @type {function} @@ -43373,7 +46278,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getProperty}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetPropertyCallback * @type {function} @@ -43406,7 +46311,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listProperties}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listProperties}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListPropertiesCallback * @type {function} @@ -43439,7 +46344,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createProperty}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreatePropertyCallback * @type {function} @@ -43472,7 +46377,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteProperty}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef DeletePropertyCallback * @type {function} @@ -43505,7 +46410,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateProperty}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateProperty}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdatePropertyCallback * @type {function} @@ -43538,7 +46443,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createFirebaseLink}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreateFirebaseLinkCallback * @type {function} @@ -43571,7 +46476,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteFirebaseLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteFirebaseLink}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef DeleteFirebaseLinkCallback * @type {function} @@ -43604,7 +46509,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listFirebaseLinks}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listFirebaseLinks}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListFirebaseLinksCallback * @type {function} @@ -43637,7 +46542,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createGoogleAdsLink}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreateGoogleAdsLinkCallback * @type {function} @@ -43670,7 +46575,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateGoogleAdsLink}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdateGoogleAdsLinkCallback * @type {function} @@ -43703,7 +46608,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteGoogleAdsLink}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteGoogleAdsLink}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef DeleteGoogleAdsLinkCallback * @type {function} @@ -43736,7 +46641,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listGoogleAdsLinks}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listGoogleAdsLinks}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListGoogleAdsLinksCallback * @type {function} @@ -43769,7 +46674,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataSharingSettings}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getDataSharingSettings}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetDataSharingSettingsCallback * @type {function} @@ -43802,7 +46707,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetMeasurementProtocolSecretCallback * @type {function} @@ -43835,7 +46740,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listMeasurementProtocolSecrets}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listMeasurementProtocolSecrets}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListMeasurementProtocolSecretsCallback * @type {function} @@ -43868,7 +46773,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreateMeasurementProtocolSecretCallback * @type {function} @@ -43901,7 +46806,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef DeleteMeasurementProtocolSecretCallback * @type {function} @@ -43934,7 +46839,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateMeasurementProtocolSecret}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateMeasurementProtocolSecret}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdateMeasurementProtocolSecretCallback * @type {function} @@ -43967,7 +46872,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#acknowledgeUserDataCollection}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|acknowledgeUserDataCollection}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef AcknowledgeUserDataCollectionCallback * @type {function} @@ -44000,7 +46905,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#searchChangeHistoryEvents}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|searchChangeHistoryEvents}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef SearchChangeHistoryEventsCallback * @type {function} @@ -44033,7 +46938,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createConversionEvent}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreateConversionEventCallback * @type {function} @@ -44066,7 +46971,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getConversionEvent}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetConversionEventCallback * @type {function} @@ -44099,7 +47004,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteConversionEvent}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteConversionEvent}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef DeleteConversionEventCallback * @type {function} @@ -44132,7 +47037,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listConversionEvents}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listConversionEvents}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListConversionEventsCallback * @type {function} @@ -44165,7 +47070,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createCustomDimension}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreateCustomDimensionCallback * @type {function} @@ -44198,7 +47103,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateCustomDimension}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdateCustomDimensionCallback * @type {function} @@ -44231,7 +47136,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomDimensions}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listCustomDimensions}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListCustomDimensionsCallback * @type {function} @@ -44264,7 +47169,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|archiveCustomDimension}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ArchiveCustomDimensionCallback * @type {function} @@ -44297,7 +47202,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomDimension}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getCustomDimension}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetCustomDimensionCallback * @type {function} @@ -44330,7 +47235,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createCustomMetric}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreateCustomMetricCallback * @type {function} @@ -44363,7 +47268,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateCustomMetric}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdateCustomMetricCallback * @type {function} @@ -44396,7 +47301,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listCustomMetrics}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listCustomMetrics}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListCustomMetricsCallback * @type {function} @@ -44429,7 +47334,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#archiveCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|archiveCustomMetric}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ArchiveCustomMetricCallback * @type {function} @@ -44462,7 +47367,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getCustomMetric}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getCustomMetric}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetCustomMetricCallback * @type {function} @@ -44495,7 +47400,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getDataRetentionSettings}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetDataRetentionSettingsCallback * @type {function} @@ -44528,7 +47433,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataRetentionSettings}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateDataRetentionSettings}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdateDataRetentionSettingsCallback * @type {function} @@ -44561,7 +47466,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#createDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|createDataStream}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef CreateDataStreamCallback * @type {function} @@ -44594,7 +47499,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#deleteDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|deleteDataStream}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef DeleteDataStreamCallback * @type {function} @@ -44627,7 +47532,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#updateDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|updateDataStream}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef UpdateDataStreamCallback * @type {function} @@ -44660,7 +47565,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#listDataStreams}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|listDataStreams}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef ListDataStreamsCallback * @type {function} @@ -44693,7 +47598,7 @@ */ /** - * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService#getDataStream}. + * Callback as used by {@link google.analytics.admin.v1beta.AnalyticsAdminService|getDataStream}. * @memberof google.analytics.admin.v1beta.AnalyticsAdminService * @typedef GetDataStreamCallback * @type {function} @@ -44820,9 +47725,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -44912,6 +47818,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetAccountRequest + * @function getTypeUrl + * @memberof google.analytics.admin.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.analytics.admin.v1beta.GetAccountRequest"; + }; + return GetAccountRequest; })(); @@ -45029,15 +47950,18 @@ 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.showDeleted = reader.bool(); - break; + case 1: { + message.pageSize = reader.int32(); + break; + } + case 2: { + message.pageToken = reader.string(); + break; + } + case 3: { + message.showDeleted = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -45144,6 +48068,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.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.analytics.admin.v1beta.ListAccountsRequest"; + }; + return ListAccountsRequest; })(); @@ -45252,14 +48191,16 @@ 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.analytics.admin.v1beta.Account.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.accounts && message.accounts.length)) + message.accounts = []; + message.accounts.push($root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -45375,6 +48316,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.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.analytics.admin.v1beta.ListAccountsResponse"; + }; + return ListAccountsResponse; })(); @@ -45470,9 +48426,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -45562,6 +48519,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteAccountRequest + * @function getTypeUrl + * @memberof google.analytics.admin.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.analytics.admin.v1beta.DeleteAccountRequest"; + }; + return DeleteAccountRequest; })(); @@ -45668,12 +48640,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.account = $root.google.analytics.admin.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; @@ -45782,6 +48756,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateAccountRequest + * @function getTypeUrl + * @memberof google.analytics.admin.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.analytics.admin.v1beta.UpdateAccountRequest"; + }; + return UpdateAccountRequest; })(); @@ -45888,12 +48877,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32()); - break; - case 2: - message.redirectUri = reader.string(); - break; + case 1: { + message.account = $root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32()); + break; + } + case 2: { + message.redirectUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -45997,6 +48988,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ProvisionAccountTicketRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProvisionAccountTicketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ProvisionAccountTicketRequest"; + }; + return ProvisionAccountTicketRequest; })(); @@ -46092,9 +49098,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.accountTicketId = reader.string(); - break; + case 1: { + message.accountTicketId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -46184,6 +49191,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ProvisionAccountTicketResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ProvisionAccountTicketResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProvisionAccountTicketResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ProvisionAccountTicketResponse"; + }; + return ProvisionAccountTicketResponse; })(); @@ -46279,9 +49301,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -46371,6 +49394,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetPropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetPropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetPropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetPropertyRequest"; + }; + return GetPropertyRequest; })(); @@ -46499,18 +49537,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.filter = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.showDeleted = reader.bool(); - break; + case 1: { + message.filter = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.showDeleted = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -46625,6 +49667,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListPropertiesRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListPropertiesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPropertiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListPropertiesRequest"; + }; + return ListPropertiesRequest; })(); @@ -46733,14 +49790,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.properties && message.properties.length)) - message.properties = []; - message.properties.push($root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.properties && message.properties.length)) + message.properties = []; + message.properties.push($root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -46856,6 +49915,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListPropertiesResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListPropertiesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPropertiesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListPropertiesResponse"; + }; + return ListPropertiesResponse; })(); @@ -46962,12 +50036,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -47076,6 +50152,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdatePropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.UpdatePropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.UpdatePropertyRequest"; + }; + return UpdatePropertyRequest; })(); @@ -47171,9 +50262,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); - break; + case 1: { + message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -47268,6 +50360,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreatePropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreatePropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreatePropertyRequest"; + }; + return CreatePropertyRequest; })(); @@ -47363,9 +50470,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -47455,6 +50563,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeletePropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DeletePropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DeletePropertyRequest"; + }; + return DeletePropertyRequest; })(); @@ -47561,12 +50684,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -47670,6 +50795,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateFirebaseLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreateFirebaseLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFirebaseLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreateFirebaseLinkRequest"; + }; + return CreateFirebaseLinkRequest; })(); @@ -47765,9 +50905,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -47857,6 +50998,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteFirebaseLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFirebaseLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DeleteFirebaseLinkRequest"; + }; + return DeleteFirebaseLinkRequest; })(); @@ -47974,15 +51130,18 @@ 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 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; @@ -48089,6 +51248,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListFirebaseLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFirebaseLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListFirebaseLinksRequest"; + }; + return ListFirebaseLinksRequest; })(); @@ -48197,14 +51371,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.firebaseLinks && message.firebaseLinks.length)) - message.firebaseLinks = []; - message.firebaseLinks.push($root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.firebaseLinks && message.firebaseLinks.length)) + message.firebaseLinks = []; + message.firebaseLinks.push($root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -48320,6 +51496,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListFirebaseLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListFirebaseLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFirebaseLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListFirebaseLinksResponse"; + }; + return ListFirebaseLinksResponse; })(); @@ -48426,12 +51617,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -48535,6 +51728,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateGoogleAdsLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateGoogleAdsLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest"; + }; + return CreateGoogleAdsLinkRequest; })(); @@ -48641,12 +51849,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -48755,6 +51965,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateGoogleAdsLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateGoogleAdsLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest"; + }; + return UpdateGoogleAdsLinkRequest; })(); @@ -48850,9 +52075,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -48942,6 +52168,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteGoogleAdsLinkRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteGoogleAdsLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest"; + }; + return DeleteGoogleAdsLinkRequest; })(); @@ -49059,15 +52300,18 @@ 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 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; @@ -49174,6 +52418,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListGoogleAdsLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListGoogleAdsLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListGoogleAdsLinksRequest"; + }; + return ListGoogleAdsLinksRequest; })(); @@ -49282,14 +52541,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.googleAdsLinks && message.googleAdsLinks.length)) - message.googleAdsLinks = []; - message.googleAdsLinks.push($root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.googleAdsLinks && message.googleAdsLinks.length)) + message.googleAdsLinks = []; + message.googleAdsLinks.push($root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -49405,6 +52666,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListGoogleAdsLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListGoogleAdsLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListGoogleAdsLinksResponse"; + }; + return ListGoogleAdsLinksResponse; })(); @@ -49500,9 +52776,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -49592,6 +52869,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDataSharingSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetDataSharingSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDataSharingSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetDataSharingSettingsRequest"; + }; + return GetDataSharingSettingsRequest; })(); @@ -49698,12 +52990,14 @@ 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 1: { + message.pageSize = reader.int32(); + break; + } + case 2: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -49802,6 +53096,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountSummariesRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListAccountSummariesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAccountSummariesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListAccountSummariesRequest"; + }; + return ListAccountSummariesRequest; })(); @@ -49910,14 +53219,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.accountSummaries && message.accountSummaries.length)) - message.accountSummaries = []; - message.accountSummaries.push($root.google.analytics.admin.v1beta.AccountSummary.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.accountSummaries && message.accountSummaries.length)) + message.accountSummaries = []; + message.accountSummaries.push($root.google.analytics.admin.v1beta.AccountSummary.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -50033,6 +53344,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListAccountSummariesResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListAccountSummariesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAccountSummariesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListAccountSummariesResponse"; + }; + return ListAccountSummariesResponse; })(); @@ -50139,12 +53465,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = reader.string(); - break; - case 2: - message.acknowledgement = reader.string(); - break; + case 1: { + message.property = reader.string(); + break; + } + case 2: { + message.acknowledgement = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -50243,6 +53571,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AcknowledgeUserDataCollectionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcknowledgeUserDataCollectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest"; + }; + return AcknowledgeUserDataCollectionRequest; })(); @@ -50403,6 +53746,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AcknowledgeUserDataCollectionResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcknowledgeUserDataCollectionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse"; + }; + return AcknowledgeUserDataCollectionResponse; })(); @@ -50598,49 +53956,58 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = reader.string(); - break; - case 2: - message.property = reader.string(); - break; - case 3: - if (!(message.resourceType && message.resourceType.length)) - message.resourceType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.account = reader.string(); + break; + } + case 2: { + message.property = reader.string(); + break; + } + case 3: { + if (!(message.resourceType && message.resourceType.length)) + message.resourceType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.resourceType.push(reader.int32()); + } else message.resourceType.push(reader.int32()); - } else - message.resourceType.push(reader.int32()); - break; - case 4: - if (!(message.action && message.action.length)) - message.action = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 4: { + if (!(message.action && message.action.length)) + message.action = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.action.push(reader.int32()); + } else message.action.push(reader.int32()); - } else - message.action.push(reader.int32()); - break; - case 5: - if (!(message.actorEmail && message.actorEmail.length)) - message.actorEmail = []; - message.actorEmail.push(reader.string()); - break; - case 6: - message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.pageSize = reader.int32(); - break; - case 9: - message.pageToken = reader.string(); - break; + break; + } + case 5: { + if (!(message.actorEmail && message.actorEmail.length)) + message.actorEmail = []; + message.actorEmail.push(reader.string()); + break; + } + case 6: { + message.earliestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.latestChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.pageSize = reader.int32(); + break; + } + case 9: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -50938,6 +54305,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SearchChangeHistoryEventsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchChangeHistoryEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest"; + }; + return SearchChangeHistoryEventsRequest; })(); @@ -51046,14 +54428,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) - message.changeHistoryEvents = []; - message.changeHistoryEvents.push($root.google.analytics.admin.v1beta.ChangeHistoryEvent.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.changeHistoryEvents && message.changeHistoryEvents.length)) + message.changeHistoryEvents = []; + message.changeHistoryEvents.push($root.google.analytics.admin.v1beta.ChangeHistoryEvent.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -51169,6 +54553,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SearchChangeHistoryEventsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchChangeHistoryEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse"; + }; + return SearchChangeHistoryEventsResponse; })(); @@ -51264,9 +54663,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -51356,6 +54756,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest"; + }; + return GetMeasurementProtocolSecretRequest; })(); @@ -51462,12 +54877,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -51571,6 +54988,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest"; + }; + return CreateMeasurementProtocolSecretRequest; })(); @@ -51666,9 +55098,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -51758,6 +55191,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest"; + }; + return DeleteMeasurementProtocolSecretRequest; })(); @@ -51864,12 +55312,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -51978,6 +55428,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateMeasurementProtocolSecretRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateMeasurementProtocolSecretRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest"; + }; + return UpdateMeasurementProtocolSecretRequest; })(); @@ -52095,15 +55560,18 @@ 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 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; @@ -52210,6 +55678,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListMeasurementProtocolSecretsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListMeasurementProtocolSecretsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest"; + }; + return ListMeasurementProtocolSecretsRequest; })(); @@ -52318,14 +55801,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) - message.measurementProtocolSecrets = []; - message.measurementProtocolSecrets.push($root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.measurementProtocolSecrets && message.measurementProtocolSecrets.length)) + message.measurementProtocolSecrets = []; + message.measurementProtocolSecrets.push($root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -52441,6 +55926,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListMeasurementProtocolSecretsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListMeasurementProtocolSecretsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse"; + }; + return ListMeasurementProtocolSecretsResponse; })(); @@ -52547,12 +56047,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; + case 1: { + message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32()); + break; + } + case 2: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -52656,6 +56158,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateConversionEventRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreateConversionEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateConversionEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreateConversionEventRequest"; + }; + return CreateConversionEventRequest; })(); @@ -52751,9 +56268,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -52843,6 +56361,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetConversionEventRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetConversionEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetConversionEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetConversionEventRequest"; + }; + return GetConversionEventRequest; })(); @@ -52938,9 +56471,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -53030,6 +56564,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteConversionEventRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DeleteConversionEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteConversionEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DeleteConversionEventRequest"; + }; + return DeleteConversionEventRequest; })(); @@ -53147,15 +56696,18 @@ 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 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; @@ -53262,6 +56814,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListConversionEventsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListConversionEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListConversionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListConversionEventsRequest"; + }; + return ListConversionEventsRequest; })(); @@ -53370,14 +56937,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.conversionEvents && message.conversionEvents.length)) - message.conversionEvents = []; - message.conversionEvents.push($root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.conversionEvents && message.conversionEvents.length)) + message.conversionEvents = []; + message.conversionEvents.push($root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -53493,6 +57062,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListConversionEventsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListConversionEventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListConversionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListConversionEventsResponse"; + }; + return ListConversionEventsResponse; })(); @@ -53599,12 +57183,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -53708,6 +57294,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreateCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreateCustomDimensionRequest"; + }; + return CreateCustomDimensionRequest; })(); @@ -53814,12 +57415,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.customDimension = $root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -53928,6 +57531,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.UpdateCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.UpdateCustomDimensionRequest"; + }; + return UpdateCustomDimensionRequest; })(); @@ -54045,15 +57663,18 @@ 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 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; @@ -54160,6 +57781,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomDimensionsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomDimensionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListCustomDimensionsRequest"; + }; + return ListCustomDimensionsRequest; })(); @@ -54268,14 +57904,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.customDimensions && message.customDimensions.length)) - message.customDimensions = []; - message.customDimensions.push($root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1beta.CustomDimension.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -54391,6 +58029,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomDimensionsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListCustomDimensionsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomDimensionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListCustomDimensionsResponse"; + }; + return ListCustomDimensionsResponse; })(); @@ -54486,9 +58139,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -54578,6 +58232,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ArchiveCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArchiveCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ArchiveCustomDimensionRequest"; + }; + return ArchiveCustomDimensionRequest; })(); @@ -54673,9 +58342,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -54765,6 +58435,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetCustomDimensionRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetCustomDimensionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetCustomDimensionRequest"; + }; + return GetCustomDimensionRequest; })(); @@ -54871,12 +58556,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -54980,6 +58667,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreateCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreateCustomMetricRequest"; + }; + return CreateCustomMetricRequest; })(); @@ -55086,12 +58788,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.customMetric = $root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -55200,6 +58904,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.UpdateCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.UpdateCustomMetricRequest"; + }; + return UpdateCustomMetricRequest; })(); @@ -55317,15 +59036,18 @@ 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 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; @@ -55432,6 +59154,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomMetricsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListCustomMetricsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListCustomMetricsRequest"; + }; + return ListCustomMetricsRequest; })(); @@ -55540,14 +59277,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.customMetrics && message.customMetrics.length)) - message.customMetrics = []; - message.customMetrics.push($root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1beta.CustomMetric.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -55663,6 +59402,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListCustomMetricsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListCustomMetricsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListCustomMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListCustomMetricsResponse"; + }; + return ListCustomMetricsResponse; })(); @@ -55758,9 +59512,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -55850,6 +59605,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ArchiveCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ArchiveCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArchiveCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ArchiveCustomMetricRequest"; + }; + return ArchiveCustomMetricRequest; })(); @@ -55945,9 +59715,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -56037,6 +59808,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetCustomMetricRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetCustomMetricRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetCustomMetricRequest"; + }; + return GetCustomMetricRequest; })(); @@ -56132,9 +59918,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -56224,6 +60011,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDataRetentionSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetDataRetentionSettingsRequest"; + }; + return GetDataRetentionSettingsRequest; })(); @@ -56330,12 +60132,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -56444,6 +60248,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateDataRetentionSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest"; + }; + return UpdateDataRetentionSettingsRequest; })(); @@ -56550,12 +60369,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -56659,6 +60480,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CreateDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CreateDataStreamRequest"; + }; + return CreateDataStreamRequest; })(); @@ -56754,9 +60590,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -56846,6 +60683,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DeleteDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DeleteDataStreamRequest"; + }; + return DeleteDataStreamRequest; })(); @@ -56952,12 +60804,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -57066,6 +60920,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.UpdateDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.UpdateDataStreamRequest"; + }; + return UpdateDataStreamRequest; })(); @@ -57183,15 +61052,18 @@ 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 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; @@ -57298,6 +61170,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDataStreamsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListDataStreamsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDataStreamsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListDataStreamsRequest"; + }; + return ListDataStreamsRequest; })(); @@ -57406,14 +61293,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.dataStreams && message.dataStreams.length)) - message.dataStreams = []; - message.dataStreams.push($root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.dataStreams && message.dataStreams.length)) + message.dataStreams = []; + message.dataStreams.push($root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -57529,6 +61418,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListDataStreamsResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ListDataStreamsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDataStreamsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ListDataStreamsResponse"; + }; + return ListDataStreamsResponse; })(); @@ -57624,9 +61528,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -57716,6 +61621,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetDataStreamRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GetDataStreamRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GetDataStreamRequest"; + }; + return GetDataStreamRequest; })(); @@ -58036,24 +61956,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.displayName = reader.string(); - break; - case 5: - message.regionCode = reader.string(); - break; - case 6: - message.deleted = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.displayName = reader.string(); + break; + } + case 5: { + message.regionCode = reader.string(); + break; + } + case 6: { + message.deleted = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -58194,6 +62120,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Account + * @function getTypeUrl + * @memberof google.analytics.admin.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.analytics.admin.v1beta.Account"; + }; + return Account; })(); @@ -58421,45 +62362,58 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 14: - message.propertyType = reader.int32(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.parent = reader.string(); - break; - case 5: - message.displayName = reader.string(); - break; - case 6: - message.industryCategory = reader.int32(); - break; - case 7: - message.timeZone = reader.string(); - break; - case 8: - message.currencyCode = reader.string(); - break; - case 10: - message.serviceLevel = reader.int32(); - break; - case 11: - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 13: - message.account = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 14: { + message.propertyType = reader.int32(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.parent = reader.string(); + break; + } + case 5: { + message.displayName = reader.string(); + break; + } + case 6: { + message.industryCategory = reader.int32(); + break; + } + case 7: { + message.timeZone = reader.string(); + break; + } + case 8: { + message.currencyCode = reader.string(); + break; + } + case 10: { + message.serviceLevel = reader.int32(); + break; + } + case 11: { + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.account = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -58845,6 +62799,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Property + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.Property + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Property.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.Property"; + }; + return Property; })(); @@ -59031,30 +63000,38 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: - message.webStreamData = $root.google.analytics.admin.v1beta.DataStream.WebStreamData.decode(reader, reader.uint32()); - break; - case 7: - message.androidAppStreamData = $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); - break; - case 8: - message.iosAppStreamData = $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData.decode(reader, reader.uint32()); - break; - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 6: { + message.webStreamData = $root.google.analytics.admin.v1beta.DataStream.WebStreamData.decode(reader, reader.uint32()); + break; + } + case 7: { + message.androidAppStreamData = $root.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); + break; + } + case 8: { + message.iosAppStreamData = $root.google.analytics.admin.v1beta.DataStream.IosAppStreamData.decode(reader, reader.uint32()); + break; + } + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.type = reader.int32(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -59269,6 +63246,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DataStream + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DataStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DataStream"; + }; + DataStream.WebStreamData = (function() { /** @@ -59383,15 +63375,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.measurementId = reader.string(); - break; - case 2: - message.firebaseAppId = reader.string(); - break; - case 3: - message.defaultUri = reader.string(); - break; + case 1: { + message.measurementId = reader.string(); + break; + } + case 2: { + message.firebaseAppId = reader.string(); + break; + } + case 3: { + message.defaultUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -59498,6 +63493,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for WebStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DataStream.WebStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WebStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DataStream.WebStreamData"; + }; + return WebStreamData; })(); @@ -59604,12 +63614,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.firebaseAppId = reader.string(); - break; - case 2: - message.packageName = reader.string(); - break; + case 1: { + message.firebaseAppId = reader.string(); + break; + } + case 2: { + message.packageName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -59708,6 +63720,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AndroidAppStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AndroidAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DataStream.AndroidAppStreamData"; + }; + return AndroidAppStreamData; })(); @@ -59814,12 +63841,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.firebaseAppId = reader.string(); - break; - case 2: - message.bundleId = reader.string(); - break; + case 1: { + message.firebaseAppId = reader.string(); + break; + } + case 2: { + message.bundleId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -59918,6 +63947,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for IosAppStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DataStream.IosAppStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IosAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DataStream.IosAppStreamData"; + }; + return IosAppStreamData; })(); @@ -60056,15 +64100,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.project = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.project = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -60176,6 +64223,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FirebaseLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.FirebaseLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FirebaseLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.FirebaseLink"; + }; + return FirebaseLink; })(); @@ -60337,27 +64399,34 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.customerId = reader.string(); - break; - case 4: - message.canManageClients = reader.bool(); - break; - case 5: - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.creatorEmailAddress = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.customerId = reader.string(); + break; + } + case 4: { + message.canManageClients = reader.bool(); + break; + } + case 5: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.creatorEmailAddress = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -60511,6 +64580,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GoogleAdsLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.GoogleAdsLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoogleAdsLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.GoogleAdsLink"; + }; + return GoogleAdsLink; })(); @@ -60661,24 +64745,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.sharingWithGoogleSupportEnabled = reader.bool(); - break; - case 3: - message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); - break; - case 4: - message.sharingWithGoogleAnySalesEnabled = reader.bool(); - break; - case 5: - message.sharingWithGoogleProductsEnabled = reader.bool(); - break; - case 6: - message.sharingWithOthersEnabled = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + } + case 3: { + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + } + case 4: { + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + } + case 5: { + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + } + case 6: { + message.sharingWithOthersEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -60809,6 +64899,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DataSharingSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DataSharingSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataSharingSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DataSharingSettings"; + }; + return DataSharingSettings; })(); @@ -60939,20 +65044,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.account = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - if (!(message.propertySummaries && message.propertySummaries.length)) - message.propertySummaries = []; - message.propertySummaries.push($root.google.analytics.admin.v1beta.PropertySummary.decode(reader, reader.uint32())); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.account = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1beta.PropertySummary.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -61085,6 +65194,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AccountSummary + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.AccountSummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccountSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.AccountSummary"; + }; + return AccountSummary; })(); @@ -61213,18 +65337,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.property = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.propertyType = reader.int32(); - break; - case 4: - message.parent = reader.string(); - break; + case 1: { + message.property = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.propertyType = reader.int32(); + break; + } + case 4: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -61362,6 +65490,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PropertySummary + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.PropertySummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PropertySummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.PropertySummary"; + }; + return PropertySummary; })(); @@ -61479,15 +65622,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.secretValue = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.secretValue = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -61594,6 +65740,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MeasurementProtocolSecret + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.MeasurementProtocolSecret + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MeasurementProtocolSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.MeasurementProtocolSecret"; + }; + return MeasurementProtocolSecret; })(); @@ -61746,26 +65907,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.actorType = reader.int32(); - break; - case 4: - message.userActorEmail = reader.string(); - break; - case 5: - message.changesFiltered = reader.bool(); - break; - case 6: - if (!(message.changes && message.changes.length)) - message.changes = []; - message.changes.push($root.google.analytics.admin.v1beta.ChangeHistoryChange.decode(reader, reader.uint32())); - break; + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.actorType = reader.int32(); + break; + } + case 4: { + message.userActorEmail = reader.string(); + break; + } + case 5: { + message.changesFiltered = reader.bool(); + break; + } + case 6: { + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push($root.google.analytics.admin.v1beta.ChangeHistoryChange.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -61942,6 +66109,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeHistoryEvent + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ChangeHistoryEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ChangeHistoryEvent"; + }; + return ChangeHistoryEvent; })(); @@ -62070,18 +66252,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resource = reader.string(); - break; - case 2: - message.action = reader.int32(); - break; - case 3: - message.resourceBeforeChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); - break; - case 4: - message.resourceAfterChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); - break; + case 1: { + message.resource = reader.string(); + break; + } + case 2: { + message.action = reader.int32(); + break; + } + case 3: { + message.resourceBeforeChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + } + case 4: { + message.resourceAfterChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -62229,6 +66415,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeHistoryChange + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ChangeHistoryChange"; + }; + ChangeHistoryChange.ChangeHistoryResource = (function() { /** @@ -62412,30 +66613,38 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.account = $root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32()); - break; - case 2: - message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); - break; - case 6: - message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32()); - break; - case 7: - message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); - break; - case 11: - message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32()); - break; - case 12: - message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - case 15: - message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.decode(reader, reader.uint32()); - break; - case 18: - message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); - break; + case 1: { + message.account = $root.google.analytics.admin.v1beta.Account.decode(reader, reader.uint32()); + break; + } + case 2: { + message.property = $root.google.analytics.admin.v1beta.Property.decode(reader, reader.uint32()); + break; + } + case 6: { + message.firebaseLink = $root.google.analytics.admin.v1beta.FirebaseLink.decode(reader, reader.uint32()); + break; + } + case 7: { + message.googleAdsLink = $root.google.analytics.admin.v1beta.GoogleAdsLink.decode(reader, reader.uint32()); + break; + } + case 11: { + message.conversionEvent = $root.google.analytics.admin.v1beta.ConversionEvent.decode(reader, reader.uint32()); + break; + } + case 12: { + message.measurementProtocolSecret = $root.google.analytics.admin.v1beta.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + } + case 15: { + message.dataRetentionSettings = $root.google.analytics.admin.v1beta.DataRetentionSettings.decode(reader, reader.uint32()); + break; + } + case 18: { + message.dataStream = $root.google.analytics.admin.v1beta.DataStream.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -62675,6 +66884,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeHistoryResource + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource"; + }; + return ChangeHistoryResource; })(); @@ -62817,21 +67041,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.eventName = reader.string(); - break; - case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.deletable = reader.bool(); - break; - case 5: - message.custom = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.eventName = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.deletable = reader.bool(); + break; + } + case 5: { + message.custom = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -62959,6 +67188,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ConversionEvent + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.ConversionEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConversionEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.ConversionEvent"; + }; + return ConversionEvent; })(); @@ -63109,24 +67353,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.parameterName = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.scope = reader.int32(); - break; - case 6: - message.disallowAdsPersonalization = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.parameterName = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.description = reader.string(); + break; + } + case 5: { + message.scope = reader.int32(); + break; + } + case 6: { + message.disallowAdsPersonalization = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -63275,6 +67525,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CustomDimension + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CustomDimension + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomDimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CustomDimension"; + }; + /** * DimensionScope enum. * @name google.analytics.admin.v1beta.CustomDimension.DimensionScope @@ -63457,34 +67722,41 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.parameterName = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.measurementUnit = reader.int32(); - break; - case 6: - message.scope = reader.int32(); - break; - case 8: - if (!(message.restrictedMetricType && message.restrictedMetricType.length)) - message.restrictedMetricType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.parameterName = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.description = reader.string(); + break; + } + case 5: { + message.measurementUnit = reader.int32(); + break; + } + case 6: { + message.scope = reader.int32(); + break; + } + case 8: { + if (!(message.restrictedMetricType && message.restrictedMetricType.length)) + message.restrictedMetricType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.restrictedMetricType.push(reader.int32()); + } else message.restrictedMetricType.push(reader.int32()); - } else - message.restrictedMetricType.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -63727,6 +67999,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CustomMetric + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.CustomMetric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomMetric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.CustomMetric"; + }; + /** * MeasurementUnit enum. * @name google.analytics.admin.v1beta.CustomMetric.MeasurementUnit @@ -63906,15 +68193,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.eventDataRetention = reader.int32(); - break; - case 3: - message.resetUserDataOnNewActivity = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.eventDataRetention = reader.int32(); + break; + } + case 3: { + message.resetUserDataOnNewActivity = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -64054,6 +68344,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DataRetentionSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1beta.DataRetentionSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataRetentionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1beta.DataRetentionSettings"; + }; + /** * RetentionDuration enum. * @name google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration @@ -64288,36 +68593,43 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - if (!(message.pattern && message.pattern.length)) - message.pattern = []; - message.pattern.push(reader.string()); - break; - case 3: - message.nameField = reader.string(); - break; - case 4: - message.history = reader.int32(); - break; - case 5: - message.plural = reader.string(); - break; - case 6: - message.singular = reader.string(); - break; - case 10: - if (!(message.style && message.style.length)) - message.style = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else message.style.push(reader.int32()); - } else - message.style.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -64515,6 +68827,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + /** * History enum. * @name google.api.ResourceDescriptor.History @@ -64651,12 +68978,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.childType = reader.string(); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -64755,6 +69084,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + return ResourceReference; })(); @@ -64863,14 +69207,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -64986,6 +69332,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + return Http; })(); @@ -65196,38 +69557,48 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -65449,6 +69820,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + return HttpRule; })(); @@ -65555,12 +69941,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -65659,6 +70047,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + return CustomHttpPattern; })(); @@ -65768,11 +70171,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -65879,6 +70283,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + return FileDescriptorSet; })(); @@ -65900,6 +70319,7 @@ * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition */ /** @@ -66020,6 +70440,14 @@ */ FileDescriptorProto.prototype.syntax = ""; + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; + /** * Creates a new FileDescriptorProto instance using the specified properties. * @function create @@ -66075,6 +70503,8 @@ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); return writer; }; @@ -66109,66 +70539,82 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - case 11: - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - case 4: - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 13: { + message.edition = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -66280,6 +70726,9 @@ if (message.syntax != null && message.hasOwnProperty("syntax")) if (!$util.isString(message.syntax)) return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; return null; }; @@ -66372,6 +70821,8 @@ } if (object.syntax != null) message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); return message; }; @@ -66403,6 +70854,7 @@ object.options = null; object.sourceCodeInfo = null; object.syntax = ""; + object.edition = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -66449,6 +70901,8 @@ } if (message.syntax != null && message.hasOwnProperty("syntax")) object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; return object; }; @@ -66463,6 +70917,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + return FileDescriptorProto; })(); @@ -66673,52 +71142,62 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -67019,6 +71498,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + DescriptorProto.ExtensionRange = (function() { /** @@ -67133,15 +71627,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -67253,6 +71750,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + return ExtensionRange; })(); @@ -67359,12 +71871,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -67463,6 +71977,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + return ReservedRange; })(); @@ -67563,11 +72092,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -67674,6 +72204,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + return ExtensionRangeOptions; })(); @@ -67879,39 +72424,50 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - case 17: - message.proto3Optional = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -68198,6 +72754,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type @@ -68366,12 +72937,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -68475,6 +73048,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + return OneofDescriptorProto; })(); @@ -68620,27 +73208,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -68816,6 +73409,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + EnumDescriptorProto.EnumReservedRange = (function() { /** @@ -68919,12 +73527,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -69023,6 +73633,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + return EnumReservedRange; })(); @@ -69143,15 +73768,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -69263,6 +73891,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + return EnumValueDescriptorProto; })(); @@ -69382,17 +74025,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -69522,6 +74168,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + return ServiceDescriptorProto; })(); @@ -69672,24 +74333,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -69825,6 +74492,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + return MethodDescriptorProto; })(); @@ -70155,76 +74837,98 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1053: - if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) - message[".google.api.resourceDefinition"] = []; - message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); - break; + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 42: { + message.phpGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -70537,6 +75241,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode @@ -70705,26 +75424,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1053: - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); - break; + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -70878,6 +75603,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + return MessageOptions; })(); @@ -70891,6 +75631,7 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -70947,6 +75688,14 @@ */ FieldOptions.prototype.lazy = false; + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -71023,6 +75772,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -71068,42 +75819,55 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1052: - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); - break; - case 1055: - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); - break; + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -71163,6 +75927,9 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -71248,6 +76015,8 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -71335,6 +76104,7 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; + object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -71349,6 +76119,8 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -71375,6 +76147,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + /** * CType enum. * @name google.protobuf.FieldOptions.CType @@ -71504,11 +76291,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -71615,6 +76403,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + return OneofOptions; })(); @@ -71734,17 +76537,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -71869,6 +76675,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + return EnumOptions; })(); @@ -71977,14 +76798,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 1: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -72100,6 +76923,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + return EnumValueOptions; })(); @@ -72230,20 +77068,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1049: - message[".google.api.defaultHost"] = reader.string(); - break; - case 1050: - message[".google.api.oauthScopes"] = reader.string(); - break; + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -72376,6 +77218,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + return ServiceOptions; })(); @@ -72519,25 +77376,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 34: - message.idempotencyLevel = reader.int32(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - case 1051: - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); - break; + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -72714,6 +77576,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + /** * IdempotencyLevel enum. * @name google.protobuf.MethodOptions.IdempotencyLevel @@ -72893,29 +77770,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -73028,7 +77912,7 @@ if (object.stringValue != null) if (typeof object.stringValue === "string") $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length) + else if (object.stringValue.length >= 0) message.stringValue = object.stringValue; if (object.aggregateValue != null) message.aggregateValue = String(object.aggregateValue); @@ -73109,6 +77993,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + UninterpretedOption.NamePart = (function() { /** @@ -73210,12 +78109,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -73316,6 +78217,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + return NamePart; })(); @@ -73416,11 +78332,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -73527,6 +78444,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + SourceCodeInfo.Location = (function() { /** @@ -73675,37 +78607,42 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -73866,6 +78803,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + return Location; })(); @@ -73966,11 +78918,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -74077,6 +79030,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + GeneratedCodeInfo.Annotation = (function() { /** @@ -74087,6 +79055,7 @@ * @property {string|null} [sourceFile] Annotation sourceFile * @property {number|null} [begin] Annotation begin * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic */ /** @@ -74137,6 +79106,14 @@ */ Annotation.prototype.end = 0; + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + /** * Creates a new Annotation instance using the specified properties. * @function create @@ -74173,6 +79150,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); return writer; }; @@ -74207,25 +79186,33 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -74277,6 +79264,15 @@ if (message.end != null && message.hasOwnProperty("end")) if (!$util.isInteger(message.end)) return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -74305,6 +79301,20 @@ message.begin = object.begin | 0; if (object.end != null) message.end = object.end | 0; + switch (object.semantic) { + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } return message; }; @@ -74327,6 +79337,7 @@ object.sourceFile = ""; object.begin = 0; object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; } if (message.path && message.path.length) { object.path = []; @@ -74339,6 +79350,8 @@ object.begin = message.begin; if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; }; @@ -74353,6 +79366,37 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + return Annotation; })(); @@ -74462,12 +79506,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -74580,6 +79626,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Duration + * @function getTypeUrl + * @memberof google.protobuf.Duration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Duration"; + }; + return Duration; })(); @@ -74686,12 +79747,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -74804,6 +79867,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + return Timestamp; })(); @@ -74899,9 +79977,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.double(); - break; + case 1: { + message.value = reader.double(); + break; + } default: reader.skipType(tag & 7); break; @@ -74991,6 +80070,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DoubleValue + * @function getTypeUrl + * @memberof google.protobuf.DoubleValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DoubleValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DoubleValue"; + }; + return DoubleValue; })(); @@ -75086,9 +80180,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.float(); - break; + case 1: { + message.value = reader.float(); + break; + } default: reader.skipType(tag & 7); break; @@ -75178,6 +80273,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FloatValue + * @function getTypeUrl + * @memberof google.protobuf.FloatValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FloatValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FloatValue"; + }; + return FloatValue; })(); @@ -75273,9 +80383,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.int64(); - break; + case 1: { + message.value = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -75379,6 +80490,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Int64Value + * @function getTypeUrl + * @memberof google.protobuf.Int64Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Int64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Int64Value"; + }; + return Int64Value; })(); @@ -75474,9 +80600,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.uint64(); - break; + case 1: { + message.value = reader.uint64(); + break; + } default: reader.skipType(tag & 7); break; @@ -75580,6 +80707,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UInt64Value + * @function getTypeUrl + * @memberof google.protobuf.UInt64Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UInt64Value"; + }; + return UInt64Value; })(); @@ -75675,9 +80817,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.int32(); - break; + case 1: { + message.value = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -75767,6 +80910,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Int32Value + * @function getTypeUrl + * @memberof google.protobuf.Int32Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Int32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Int32Value"; + }; + return Int32Value; })(); @@ -75862,9 +81020,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.uint32(); - break; + case 1: { + message.value = reader.uint32(); + break; + } default: reader.skipType(tag & 7); break; @@ -75954,6 +81113,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UInt32Value + * @function getTypeUrl + * @memberof google.protobuf.UInt32Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UInt32Value"; + }; + return UInt32Value; })(); @@ -76049,9 +81223,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.bool(); - break; + case 1: { + message.value = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -76141,6 +81316,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BoolValue + * @function getTypeUrl + * @memberof google.protobuf.BoolValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BoolValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.BoolValue"; + }; + return BoolValue; })(); @@ -76236,9 +81426,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; + case 1: { + message.value = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -76328,6 +81519,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for StringValue + * @function getTypeUrl + * @memberof google.protobuf.StringValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.StringValue"; + }; + return StringValue; })(); @@ -76423,9 +81629,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.bytes(); - break; + case 1: { + message.value = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -76482,7 +81689,7 @@ if (object.value != null) if (typeof object.value === "string") $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) + else if (object.value.length >= 0) message.value = object.value; return message; }; @@ -76524,6 +81731,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BytesValue + * @function getTypeUrl + * @memberof google.protobuf.BytesValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.BytesValue"; + }; + return BytesValue; })(); @@ -76684,6 +81906,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Empty + * @function getTypeUrl + * @memberof google.protobuf.Empty + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Empty"; + }; + return Empty; })(); @@ -76781,11 +82018,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); - break; + case 1: { + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -76887,6 +82125,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldMask + * @function getTypeUrl + * @memberof google.protobuf.FieldMask + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldMask"; + }; + return FieldMask; })(); diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index c0baf31bae8..743079aaad6 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -8163,6 +8163,10 @@ "syntax": { "type": "string", "id": 12 + }, + "edition": { + "type": "string", + "id": 13 } } }, @@ -8691,6 +8695,13 @@ "default": false } }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, "deprecated": { "type": "bool", "id": 3, @@ -8983,6 +8994,19 @@ "end": { "type": "int32", "id": 4 + }, + "semantic": { + "type": "Semantic", + "id": 5 + } + }, + "nested": { + "Semantic": { + "values": { + "NONE": 0, + "SET": 1, + "ALIAS": 2 + } } } } From ff34b824dd0f060da758f077f4f6f0ba5f8b8391 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 27 Aug 2022 05:08:22 +0000 Subject: [PATCH 126/142] fix: do not import the whole google-gax from proto JS (#1553) (#221) fix: use google-gax v3.3.0 Source-Link: https://github.com/googleapis/synthtool/commit/c73d112a11a1f1a93efa67c50495c19aa3a88910 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:b15a6f06cc06dcffa11e1bebdf1a74b6775a134aac24a0f86f51ddf728eb373e --- packages/google-analytics-admin/package.json | 2 +- packages/google-analytics-admin/protos/protos.d.ts | 2 +- packages/google-analytics-admin/protos/protos.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index ce67ccf8fc0..7740468be38 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "google-auth-library": "^8.0.2", - "google-gax": "^3.0.1", + "google-gax": "^3.3.0", "server-destroy": "^1.0.1" }, "devDependencies": { diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 46a624d320c..02425656792 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import Long = require("long"); -import {protobuf as $protobuf} from "google-gax"; +import type {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 66fc8381d57..cc6bfe3a073 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("google-gax").protobufMinimal); + module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); })(this, function($protobuf) { "use strict"; From 2c53dc40e4c719f9b57dad66fea929c76929f061 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 1 Sep 2022 20:50:18 +0000 Subject: [PATCH 127/142] fix: allow passing gax instance to client constructor (#222) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 470911839 Source-Link: https://github.com/googleapis/googleapis/commit/352756699ebc5b2144c252867c265ea44448712e Source-Link: https://github.com/googleapis/googleapis-gen/commit/f16a1d224f00a630ea43d6a9a1a31f566f45cdea Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9 feat: accept google-gax instance as a parameter Please see the documentation of the client constructor for details. PiperOrigin-RevId: 470332808 Source-Link: https://github.com/googleapis/googleapis/commit/d4a23675457cd8f0b44080e0594ec72de1291b89 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e97a1ac204ead4fe7341f91e72db7c6ac6016341 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9 --- .../v1alpha/analytics_admin_service_client.ts | 229 +++++++++--------- .../v1beta/analytics_admin_service_client.ts | 143 ++++++----- 2 files changed, 199 insertions(+), 173 deletions(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 83632c13bec..36ba219a508 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -26,7 +26,6 @@ import { PaginationCallback, GaxCall, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -36,7 +35,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './analytics_admin_service_client_config.json'; - const version = require('../../../package.json').version; /** @@ -96,8 +94,18 @@ export class AnalyticsAdminServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - */ - constructor(opts?: ClientOptions) { + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new AnalyticsAdminServiceClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof AnalyticsAdminServiceClient; @@ -118,8 +126,13 @@ export class AnalyticsAdminServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -328,7 +341,7 @@ export class AnalyticsAdminServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -619,7 +632,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -722,7 +735,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -818,7 +831,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'account.name': request.account!.name || '', }); this.initialize(); @@ -1011,7 +1024,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1202,7 +1215,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1299,7 +1312,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'property.name': request.property!.name || '', }); this.initialize(); @@ -1390,7 +1403,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1494,7 +1507,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1594,7 +1607,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1704,7 +1717,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1795,7 +1808,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'user_link.name': request.userLink!.name || '', }); this.initialize(); @@ -1898,7 +1911,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1989,7 +2002,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2092,7 +2105,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2194,7 +2207,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2292,7 +2305,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2393,7 +2406,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2492,7 +2505,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2593,7 +2606,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'google_ads_link.name': request.googleAdsLink!.name || '', }); this.initialize(); @@ -2690,7 +2703,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2790,7 +2803,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2893,7 +2906,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2997,7 +3010,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3100,7 +3113,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3203,7 +3216,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'measurement_protocol_secret.name': request.measurementProtocolSecret!.name || '', }); @@ -3317,7 +3330,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ property: request.property || '', }); this.initialize(); @@ -3419,7 +3432,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3525,7 +3538,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'google_signals_settings.name': request.googleSignalsSettings!.name || '', }); @@ -3630,7 +3643,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3729,7 +3742,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3828,7 +3841,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3926,7 +3939,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4033,7 +4046,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4135,7 +4148,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4240,7 +4253,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'display_video_360_advertiser_link.name': request.displayVideo_360AdvertiserLink!.name || '', }); @@ -4343,7 +4356,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4446,7 +4459,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4549,7 +4562,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4653,7 +4666,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4759,7 +4772,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4862,7 +4875,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4963,7 +4976,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'custom_dimension.name': request.customDimension!.name || '', }); this.initialize(); @@ -5061,7 +5074,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -5163,7 +5176,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -5262,7 +5275,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5363,7 +5376,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'custom_metric.name': request.customMetric!.name || '', }); this.initialize(); @@ -5461,7 +5474,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -5553,7 +5566,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -5653,7 +5666,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -5759,7 +5772,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'data_retention_settings.name': request.dataRetentionSettings!.name || '', }); @@ -5863,7 +5876,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5961,7 +5974,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -6062,7 +6075,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'data_stream.name': request.dataStream!.name || '', }); this.initialize(); @@ -6154,7 +6167,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -6247,7 +6260,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -6340,7 +6353,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -6436,7 +6449,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'audience.name': request.audience!.name || '', }); this.initialize(); @@ -6527,7 +6540,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -6625,7 +6638,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -6731,7 +6744,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'attribution_settings.name': request.attributionSettings!.name || '', }); this.initialize(); @@ -6896,7 +6909,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ entity: request.entity || '', }); this.initialize(); @@ -7652,7 +7665,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -7696,7 +7709,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listUserLinks']; @@ -7749,7 +7762,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listUserLinks']; @@ -7867,7 +7880,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -7911,7 +7924,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['auditUserLinks']; @@ -7964,7 +7977,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['auditUserLinks']; @@ -8076,7 +8089,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -8121,7 +8134,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; @@ -8175,7 +8188,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; @@ -8285,7 +8298,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -8329,7 +8342,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; @@ -8382,7 +8395,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; @@ -8494,7 +8507,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -8543,7 +8556,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -8598,7 +8611,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -8725,7 +8738,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ account: request.account || '', }); this.initialize(); @@ -8788,7 +8801,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ account: request.account || '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; @@ -8856,7 +8869,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ account: request.account || '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; @@ -8968,7 +8981,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -9012,7 +9025,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listConversionEvents']; @@ -9065,7 +9078,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listConversionEvents']; @@ -9176,7 +9189,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -9225,7 +9238,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -9280,7 +9293,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -9393,7 +9406,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -9443,7 +9456,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -9499,7 +9512,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -9612,7 +9625,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -9656,7 +9669,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; @@ -9709,7 +9722,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; @@ -9819,7 +9832,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -9863,7 +9876,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; @@ -9916,7 +9929,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; @@ -10026,7 +10039,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -10070,7 +10083,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataStreams']; @@ -10123,7 +10136,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataStreams']; @@ -10234,7 +10247,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -10278,7 +10291,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listAudiences']; @@ -10331,7 +10344,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listAudiences']; diff --git a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts index aa20f464a6b..9601c90abb0 100644 --- a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -26,7 +26,6 @@ import { PaginationCallback, GaxCall, } from 'google-gax'; - import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -36,7 +35,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './analytics_admin_service_client_config.json'; - const version = require('../../../package.json').version; /** @@ -96,8 +94,18 @@ export class AnalyticsAdminServiceClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new AnalyticsAdminServiceClient({fallback: 'rest'}, gax); + * ``` */ - constructor(opts?: ClientOptions) { + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this .constructor as typeof AnalyticsAdminServiceClient; @@ -118,8 +126,13 @@ export class AnalyticsAdminServiceClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -276,7 +289,7 @@ export class AnalyticsAdminServiceClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -533,7 +546,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -636,7 +649,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -732,7 +745,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'account.name': request.account!.name || '', }); this.initialize(); @@ -925,7 +938,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1116,7 +1129,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1213,7 +1226,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'property.name': request.property!.name || '', }); this.initialize(); @@ -1315,7 +1328,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1413,7 +1426,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1512,7 +1525,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -1613,7 +1626,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'google_ads_link.name': request.googleAdsLink!.name || '', }); this.initialize(); @@ -1710,7 +1723,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1810,7 +1823,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -1913,7 +1926,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2017,7 +2030,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2120,7 +2133,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2223,7 +2236,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'measurement_protocol_secret.name': request.measurementProtocolSecret!.name || '', }); @@ -2337,7 +2350,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ property: request.property || '', }); this.initialize(); @@ -2441,7 +2454,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2540,7 +2553,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2639,7 +2652,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2738,7 +2751,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2839,7 +2852,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'custom_dimension.name': request.customDimension!.name || '', }); this.initialize(); @@ -2937,7 +2950,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3039,7 +3052,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3138,7 +3151,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3239,7 +3252,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'custom_metric.name': request.customMetric!.name || '', }); this.initialize(); @@ -3337,7 +3350,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3429,7 +3442,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3529,7 +3542,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3635,7 +3648,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'data_retention_settings.name': request.dataRetentionSettings!.name || '', }); @@ -3733,7 +3746,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3825,7 +3838,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -3920,7 +3933,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ 'data_stream.name': request.dataStream!.name || '', }); this.initialize(); @@ -4012,7 +4025,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -4770,7 +4783,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -4815,7 +4828,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; @@ -4869,7 +4882,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; @@ -4979,7 +4992,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5023,7 +5036,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; @@ -5076,7 +5089,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; @@ -5188,7 +5201,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5237,7 +5250,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -5292,7 +5305,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = @@ -5419,7 +5432,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ account: request.account || '', }); this.initialize(); @@ -5482,7 +5495,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ account: request.account || '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; @@ -5550,7 +5563,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ account: request.account || '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; @@ -5662,7 +5675,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5706,7 +5719,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listConversionEvents']; @@ -5759,7 +5772,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listConversionEvents']; @@ -5869,7 +5882,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -5913,7 +5926,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; @@ -5966,7 +5979,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; @@ -6076,7 +6089,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -6120,7 +6133,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; @@ -6173,7 +6186,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; @@ -6283,7 +6296,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -6327,7 +6340,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataStreams']; @@ -6380,7 +6393,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listDataStreams']; From 4851178c0b3c93bb69a4e00a314f616b7fd5e230 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Sep 2022 22:30:18 +0000 Subject: [PATCH 128/142] fix: preserve default values in x-goog-request-params header (#224) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 474338479 Source-Link: https://github.com/googleapis/googleapis/commit/d5d35e0353b59719e8917103b1bc7df2782bf6ba Source-Link: https://github.com/googleapis/googleapis-gen/commit/efcd3f93962a103f68f003e2a1eecde6fa216a27 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9 --- .../v1alpha/analytics_admin_service_client.ts | 200 +- .../v1beta/analytics_admin_service_client.ts | 116 +- .../gapic_analytics_admin_service_v1alpha.ts | 7635 +++++++++-------- .../gapic_analytics_admin_service_v1beta.ts | 4371 +++++----- 4 files changed, 6335 insertions(+), 5987 deletions(-) diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 36ba219a508..3169fba0fb3 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -633,7 +633,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getAccount(request, options, callback); @@ -736,7 +736,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteAccount(request, options, callback); @@ -832,7 +832,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'account.name': request.account!.name || '', + 'account.name': request.account!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateAccount(request, options, callback); @@ -1025,7 +1025,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getProperty(request, options, callback); @@ -1216,7 +1216,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteProperty(request, options, callback); @@ -1313,7 +1313,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'property.name': request.property!.name || '', + 'property.name': request.property!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateProperty(request, options, callback); @@ -1404,7 +1404,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getUserLink(request, options, callback); @@ -1508,7 +1508,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.batchGetUserLinks(request, options, callback); @@ -1608,7 +1608,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createUserLink(request, options, callback); @@ -1718,7 +1718,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.batchCreateUserLinks(request, options, callback); @@ -1809,7 +1809,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'user_link.name': request.userLink!.name || '', + 'user_link.name': request.userLink!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateUserLink(request, options, callback); @@ -1912,7 +1912,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.batchUpdateUserLinks(request, options, callback); @@ -2003,7 +2003,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteUserLink(request, options, callback); @@ -2106,7 +2106,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.batchDeleteUserLinks(request, options, callback); @@ -2208,7 +2208,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createFirebaseLink(request, options, callback); @@ -2306,7 +2306,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteFirebaseLink(request, options, callback); @@ -2407,7 +2407,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getGlobalSiteTag(request, options, callback); @@ -2506,7 +2506,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createGoogleAdsLink(request, options, callback); @@ -2607,7 +2607,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'google_ads_link.name': request.googleAdsLink!.name || '', + 'google_ads_link.name': request.googleAdsLink!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); @@ -2704,7 +2704,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); @@ -2804,7 +2804,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDataSharingSettings( @@ -2907,7 +2907,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getMeasurementProtocolSecret( @@ -3011,7 +3011,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createMeasurementProtocolSecret( @@ -3114,7 +3114,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteMeasurementProtocolSecret( @@ -3218,7 +3218,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ 'measurement_protocol_secret.name': - request.measurementProtocolSecret!.name || '', + request.measurementProtocolSecret!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateMeasurementProtocolSecret( @@ -3331,7 +3331,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - property: request.property || '', + property: request.property ?? '', }); this.initialize(); return this.innerApiCalls.acknowledgeUserDataCollection( @@ -3433,7 +3433,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getGoogleSignalsSettings( @@ -3540,7 +3540,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ 'google_signals_settings.name': - request.googleSignalsSettings!.name || '', + request.googleSignalsSettings!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateGoogleSignalsSettings( @@ -3644,7 +3644,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createConversionEvent(request, options, callback); @@ -3743,7 +3743,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getConversionEvent(request, options, callback); @@ -3842,7 +3842,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteConversionEvent(request, options, callback); @@ -3940,7 +3940,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDisplayVideo360AdvertiserLink( @@ -4047,7 +4047,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createDisplayVideo360AdvertiserLink( @@ -4149,7 +4149,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteDisplayVideo360AdvertiserLink( @@ -4255,7 +4255,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ 'display_video_360_advertiser_link.name': - request.displayVideo_360AdvertiserLink!.name || '', + request.displayVideo_360AdvertiserLink!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateDisplayVideo360AdvertiserLink( @@ -4357,7 +4357,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal( @@ -4460,7 +4460,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal( @@ -4563,7 +4563,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal( @@ -4667,7 +4667,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal( @@ -4773,7 +4773,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal( @@ -4876,7 +4876,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createCustomDimension(request, options, callback); @@ -4977,7 +4977,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'custom_dimension.name': request.customDimension!.name || '', + 'custom_dimension.name': request.customDimension!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateCustomDimension(request, options, callback); @@ -5075,7 +5075,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.archiveCustomDimension( @@ -5177,7 +5177,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getCustomDimension(request, options, callback); @@ -5276,7 +5276,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createCustomMetric(request, options, callback); @@ -5377,7 +5377,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'custom_metric.name': request.customMetric!.name || '', + 'custom_metric.name': request.customMetric!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateCustomMetric(request, options, callback); @@ -5475,7 +5475,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.archiveCustomMetric(request, options, callback); @@ -5567,7 +5567,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getCustomMetric(request, options, callback); @@ -5667,7 +5667,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDataRetentionSettings( @@ -5774,7 +5774,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ 'data_retention_settings.name': - request.dataRetentionSettings!.name || '', + request.dataRetentionSettings!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateDataRetentionSettings( @@ -5877,7 +5877,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createDataStream(request, options, callback); @@ -5975,7 +5975,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteDataStream(request, options, callback); @@ -6076,7 +6076,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'data_stream.name': request.dataStream!.name || '', + 'data_stream.name': request.dataStream!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateDataStream(request, options, callback); @@ -6168,7 +6168,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDataStream(request, options, callback); @@ -6261,7 +6261,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getAudience(request, options, callback); @@ -6354,7 +6354,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createAudience(request, options, callback); @@ -6450,7 +6450,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'audience.name': request.audience!.name || '', + 'audience.name': request.audience!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateAudience(request, options, callback); @@ -6541,7 +6541,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.archiveAudience(request, options, callback); @@ -6639,7 +6639,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getAttributionSettings( @@ -6745,7 +6745,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'attribution_settings.name': request.attributionSettings!.name || '', + 'attribution_settings.name': request.attributionSettings!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateAttributionSettings( @@ -6910,7 +6910,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - entity: request.entity || '', + entity: request.entity ?? '', }); this.initialize(); return this.innerApiCalls.runAccessReport(request, options, callback); @@ -7666,7 +7666,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listUserLinks(request, options, callback); @@ -7710,7 +7710,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); @@ -7763,7 +7763,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); @@ -7881,7 +7881,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.auditUserLinks(request, options, callback); @@ -7925,7 +7925,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); @@ -7978,7 +7978,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); @@ -8090,7 +8090,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listFirebaseLinks(request, options, callback); @@ -8135,7 +8135,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); @@ -8189,7 +8189,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); @@ -8299,7 +8299,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); @@ -8343,7 +8343,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); @@ -8396,7 +8396,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); @@ -8508,7 +8508,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listMeasurementProtocolSecrets( @@ -8557,7 +8557,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listMeasurementProtocolSecrets']; @@ -8612,7 +8612,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listMeasurementProtocolSecrets']; @@ -8739,7 +8739,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account || '', + account: request.account ?? '', }); this.initialize(); return this.innerApiCalls.searchChangeHistoryEvents( @@ -8802,7 +8802,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account || '', + account: request.account ?? '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); @@ -8870,7 +8870,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account || '', + account: request.account ?? '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); @@ -8982,7 +8982,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listConversionEvents(request, options, callback); @@ -9026,7 +9026,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listConversionEvents']; const callSettings = defaultCallSettings.merge(options); @@ -9079,7 +9079,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listConversionEvents']; const callSettings = defaultCallSettings.merge(options); @@ -9190,7 +9190,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listDisplayVideo360AdvertiserLinks( @@ -9239,7 +9239,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDisplayVideo360AdvertiserLinks']; @@ -9294,7 +9294,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDisplayVideo360AdvertiserLinks']; @@ -9407,7 +9407,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals( @@ -9457,7 +9457,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDisplayVideo360AdvertiserLinkProposals']; @@ -9513,7 +9513,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDisplayVideo360AdvertiserLinkProposals']; @@ -9626,7 +9626,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listCustomDimensions(request, options, callback); @@ -9670,7 +9670,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); @@ -9723,7 +9723,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); @@ -9833,7 +9833,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listCustomMetrics(request, options, callback); @@ -9877,7 +9877,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); @@ -9930,7 +9930,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); @@ -10040,7 +10040,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listDataStreams(request, options, callback); @@ -10084,7 +10084,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); @@ -10137,7 +10137,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); @@ -10248,7 +10248,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listAudiences(request, options, callback); @@ -10292,7 +10292,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listAudiences']; const callSettings = defaultCallSettings.merge(options); @@ -10345,7 +10345,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listAudiences']; const callSettings = defaultCallSettings.merge(options); diff --git a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts index 9601c90abb0..8a53f70eebf 100644 --- a/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1beta/analytics_admin_service_client.ts @@ -547,7 +547,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getAccount(request, options, callback); @@ -650,7 +650,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteAccount(request, options, callback); @@ -746,7 +746,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'account.name': request.account!.name || '', + 'account.name': request.account!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateAccount(request, options, callback); @@ -939,7 +939,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getProperty(request, options, callback); @@ -1130,7 +1130,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteProperty(request, options, callback); @@ -1227,7 +1227,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'property.name': request.property!.name || '', + 'property.name': request.property!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateProperty(request, options, callback); @@ -1329,7 +1329,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createFirebaseLink(request, options, callback); @@ -1427,7 +1427,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteFirebaseLink(request, options, callback); @@ -1526,7 +1526,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createGoogleAdsLink(request, options, callback); @@ -1627,7 +1627,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'google_ads_link.name': request.googleAdsLink!.name || '', + 'google_ads_link.name': request.googleAdsLink!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateGoogleAdsLink(request, options, callback); @@ -1724,7 +1724,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteGoogleAdsLink(request, options, callback); @@ -1824,7 +1824,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDataSharingSettings( @@ -1927,7 +1927,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getMeasurementProtocolSecret( @@ -2031,7 +2031,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createMeasurementProtocolSecret( @@ -2134,7 +2134,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteMeasurementProtocolSecret( @@ -2238,7 +2238,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ 'measurement_protocol_secret.name': - request.measurementProtocolSecret!.name || '', + request.measurementProtocolSecret!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateMeasurementProtocolSecret( @@ -2351,7 +2351,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - property: request.property || '', + property: request.property ?? '', }); this.initialize(); return this.innerApiCalls.acknowledgeUserDataCollection( @@ -2455,7 +2455,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createConversionEvent(request, options, callback); @@ -2554,7 +2554,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getConversionEvent(request, options, callback); @@ -2653,7 +2653,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteConversionEvent(request, options, callback); @@ -2752,7 +2752,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createCustomDimension(request, options, callback); @@ -2853,7 +2853,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'custom_dimension.name': request.customDimension!.name || '', + 'custom_dimension.name': request.customDimension!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateCustomDimension(request, options, callback); @@ -2951,7 +2951,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.archiveCustomDimension( @@ -3053,7 +3053,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getCustomDimension(request, options, callback); @@ -3152,7 +3152,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createCustomMetric(request, options, callback); @@ -3253,7 +3253,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'custom_metric.name': request.customMetric!.name || '', + 'custom_metric.name': request.customMetric!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateCustomMetric(request, options, callback); @@ -3351,7 +3351,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.archiveCustomMetric(request, options, callback); @@ -3443,7 +3443,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getCustomMetric(request, options, callback); @@ -3543,7 +3543,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDataRetentionSettings( @@ -3650,7 +3650,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ 'data_retention_settings.name': - request.dataRetentionSettings!.name || '', + request.dataRetentionSettings!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateDataRetentionSettings( @@ -3747,7 +3747,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.createDataStream(request, options, callback); @@ -3839,7 +3839,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.deleteDataStream(request, options, callback); @@ -3934,7 +3934,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'data_stream.name': request.dataStream!.name || '', + 'data_stream.name': request.dataStream!.name ?? '', }); this.initialize(); return this.innerApiCalls.updateDataStream(request, options, callback); @@ -4026,7 +4026,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getDataStream(request, options, callback); @@ -4784,7 +4784,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listFirebaseLinks(request, options, callback); @@ -4829,7 +4829,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); @@ -4883,7 +4883,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); @@ -4993,7 +4993,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); @@ -5037,7 +5037,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); @@ -5090,7 +5090,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); @@ -5202,7 +5202,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listMeasurementProtocolSecrets( @@ -5251,7 +5251,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listMeasurementProtocolSecrets']; @@ -5306,7 +5306,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listMeasurementProtocolSecrets']; @@ -5433,7 +5433,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account || '', + account: request.account ?? '', }); this.initialize(); return this.innerApiCalls.searchChangeHistoryEvents( @@ -5496,7 +5496,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account || '', + account: request.account ?? '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); @@ -5564,7 +5564,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account || '', + account: request.account ?? '', }); const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); @@ -5676,7 +5676,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listConversionEvents(request, options, callback); @@ -5720,7 +5720,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listConversionEvents']; const callSettings = defaultCallSettings.merge(options); @@ -5773,7 +5773,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listConversionEvents']; const callSettings = defaultCallSettings.merge(options); @@ -5883,7 +5883,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listCustomDimensions(request, options, callback); @@ -5927,7 +5927,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); @@ -5980,7 +5980,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); @@ -6090,7 +6090,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listCustomMetrics(request, options, callback); @@ -6134,7 +6134,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); @@ -6187,7 +6187,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); @@ -6297,7 +6297,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listDataStreams(request, options, callback); @@ -6341,7 +6341,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); @@ -6394,7 +6394,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index 6095afeccc6..f6652002763 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -27,6 +27,21 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + function generateSampleMessage(instance: T) { const filledObject = ( instance.constructor as typeof protobuf.Message @@ -233,26 +248,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() ); client.innerApiCalls.getAccount = stubSimpleCall(expectedResponse); const [response] = await client.getAccount(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAccount without error using callback', async () => { @@ -265,15 +277,9 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() ); @@ -296,11 +302,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAccount with error', async () => { @@ -313,26 +322,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getAccount = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getAccount(request), expectedError); - assert( - (client.innerApiCalls.getAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAccount with closed client', async () => { @@ -345,7 +351,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAccount(request), expectedError); @@ -363,26 +370,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); client.innerApiCalls.deleteAccount = stubSimpleCall(expectedResponse); const [response] = await client.deleteAccount(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteAccount without error using callback', async () => { @@ -395,15 +401,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -426,11 +428,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteAccount with error', async () => { @@ -443,26 +448,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteAccount = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteAccount(request), expectedError); - assert( - (client.innerApiCalls.deleteAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteAccount with closed client', async () => { @@ -475,7 +479,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteAccount(request), expectedError); @@ -493,27 +500,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; - const expectedHeaderRequestParams = 'account.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; + const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() ); client.innerApiCalls.updateAccount = stubSimpleCall(expectedResponse); const [response] = await client.updateAccount(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAccount without error using callback', async () => { @@ -526,16 +533,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; - const expectedHeaderRequestParams = 'account.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; + const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() ); @@ -558,11 +562,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAccount with error', async () => { @@ -575,27 +582,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; - const expectedHeaderRequestParams = 'account.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; + const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateAccount = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateAccount(request), expectedError); - assert( - (client.innerApiCalls.updateAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAccount with closed client', async () => { @@ -608,8 +615,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateAccount(request), expectedError); @@ -627,7 +638,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() ); @@ -635,11 +645,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.provisionAccountTicket(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.provisionAccountTicket as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes provisionAccountTicket without error using callback', async () => { @@ -652,7 +657,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse() ); @@ -675,11 +679,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.provisionAccountTicket as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes provisionAccountTicket with error', async () => { @@ -692,7 +691,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.provisionAccountTicket = stubSimpleCall( undefined, @@ -702,11 +700,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.provisionAccountTicket(request), expectedError ); - assert( - (client.innerApiCalls.provisionAccountTicket as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes provisionAccountTicket with closed client', async () => { @@ -739,26 +732,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); client.innerApiCalls.getProperty = stubSimpleCall(expectedResponse); const [response] = await client.getProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getProperty without error using callback', async () => { @@ -771,15 +761,9 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); @@ -802,11 +786,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getProperty with error', async () => { @@ -819,26 +806,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getProperty(request), expectedError); - assert( - (client.innerApiCalls.getProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getProperty with closed client', async () => { @@ -851,7 +835,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getProperty(request), expectedError); @@ -869,18 +854,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); client.innerApiCalls.createProperty = stubSimpleCall(expectedResponse); const [response] = await client.createProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes createProperty without error using callback', async () => { @@ -893,7 +872,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); @@ -916,11 +894,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes createProperty with error', async () => { @@ -933,18 +906,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreatePropertyRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.createProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createProperty(request), expectedError); - assert( - (client.innerApiCalls.createProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes createProperty with closed client', async () => { @@ -974,26 +941,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); client.innerApiCalls.deleteProperty = stubSimpleCall(expectedResponse); const [response] = await client.deleteProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteProperty without error using callback', async () => { @@ -1006,15 +972,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); @@ -1037,11 +999,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteProperty with error', async () => { @@ -1054,26 +1019,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteProperty(request), expectedError); - assert( - (client.innerApiCalls.deleteProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteProperty with closed client', async () => { @@ -1086,7 +1050,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteProperty(request), expectedError); @@ -1104,27 +1071,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; - const expectedHeaderRequestParams = 'property.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; + const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); client.innerApiCalls.updateProperty = stubSimpleCall(expectedResponse); const [response] = await client.updateProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateProperty without error using callback', async () => { @@ -1137,16 +1104,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; - const expectedHeaderRequestParams = 'property.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; + const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() ); @@ -1169,11 +1133,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateProperty with error', async () => { @@ -1186,27 +1153,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; - const expectedHeaderRequestParams = 'property.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; + const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateProperty(request), expectedError); - assert( - (client.innerApiCalls.updateProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateProperty with closed client', async () => { @@ -1219,8 +1186,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateProperty(request), expectedError); @@ -1238,26 +1209,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); client.innerApiCalls.getUserLink = stubSimpleCall(expectedResponse); const [response] = await client.getUserLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getUserLink without error using callback', async () => { @@ -1270,15 +1238,9 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); @@ -1301,11 +1263,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getUserLink with error', async () => { @@ -1318,26 +1283,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getUserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getUserLink(request), expectedError); - assert( - (client.innerApiCalls.getUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getUserLink with closed client', async () => { @@ -1350,7 +1312,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getUserLink(request), expectedError); @@ -1368,26 +1331,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksResponse() ); client.innerApiCalls.batchGetUserLinks = stubSimpleCall(expectedResponse); const [response] = await client.batchGetUserLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchGetUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchGetUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchGetUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchGetUserLinks without error using callback', async () => { @@ -1400,15 +1362,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksResponse() ); @@ -1431,11 +1389,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchGetUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.batchGetUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchGetUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchGetUserLinks with error', async () => { @@ -1448,26 +1409,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.batchGetUserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.batchGetUserLinks(request), expectedError); - assert( - (client.innerApiCalls.batchGetUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchGetUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchGetUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchGetUserLinks with closed client', async () => { @@ -1480,7 +1440,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchGetUserLinks(request), expectedError); @@ -1498,26 +1461,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); client.innerApiCalls.createUserLink = stubSimpleCall(expectedResponse); const [response] = await client.createUserLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createUserLink without error using callback', async () => { @@ -1530,15 +1492,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); @@ -1561,11 +1519,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createUserLink with error', async () => { @@ -1578,26 +1539,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createUserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createUserLink(request), expectedError); - assert( - (client.innerApiCalls.createUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createUserLink with closed client', async () => { @@ -1610,7 +1570,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createUserLink(request), expectedError); @@ -1628,15 +1591,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse() ); @@ -1644,11 +1603,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.batchCreateUserLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchCreateUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchCreateUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchCreateUserLinks without error using callback', async () => { @@ -1661,15 +1623,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse() ); @@ -1692,11 +1650,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchCreateUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.batchCreateUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchCreateUserLinks with error', async () => { @@ -1709,26 +1670,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.batchCreateUserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.batchCreateUserLinks(request), expectedError); - assert( - (client.innerApiCalls.batchCreateUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchCreateUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchCreateUserLinks with closed client', async () => { @@ -1741,7 +1701,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchCreateUserLinks(request), expectedError); @@ -1759,27 +1722,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); - request.userLink = {}; - request.userLink.name = ''; - const expectedHeaderRequestParams = 'user_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.userLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ + 'userLink', + 'name', + ]); + request.userLink.name = defaultValue1; + const expectedHeaderRequestParams = `user_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); client.innerApiCalls.updateUserLink = stubSimpleCall(expectedResponse); const [response] = await client.updateUserLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateUserLink without error using callback', async () => { @@ -1792,16 +1755,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); - request.userLink = {}; - request.userLink.name = ''; - const expectedHeaderRequestParams = 'user_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.userLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ + 'userLink', + 'name', + ]); + request.userLink.name = defaultValue1; + const expectedHeaderRequestParams = `user_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() ); @@ -1824,11 +1784,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateUserLink with error', async () => { @@ -1841,27 +1804,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); - request.userLink = {}; - request.userLink.name = ''; - const expectedHeaderRequestParams = 'user_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.userLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ + 'userLink', + 'name', + ]); + request.userLink.name = defaultValue1; + const expectedHeaderRequestParams = `user_link.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateUserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateUserLink(request), expectedError); - assert( - (client.innerApiCalls.updateUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateUserLink with closed client', async () => { @@ -1874,8 +1837,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); - request.userLink = {}; - request.userLink.name = ''; + request.userLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ + 'userLink', + 'name', + ]); + request.userLink.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateUserLink(request), expectedError); @@ -1893,15 +1860,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse() ); @@ -1909,11 +1872,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.batchUpdateUserLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchUpdateUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchUpdateUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchUpdateUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchUpdateUserLinks without error using callback', async () => { @@ -1926,15 +1892,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse() ); @@ -1957,11 +1919,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchUpdateUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.batchUpdateUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchUpdateUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchUpdateUserLinks with error', async () => { @@ -1974,26 +1939,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.batchUpdateUserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.batchUpdateUserLinks(request), expectedError); - assert( - (client.innerApiCalls.batchUpdateUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchUpdateUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchUpdateUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchUpdateUserLinks with closed client', async () => { @@ -2006,7 +1970,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchUpdateUserLinks(request), expectedError); @@ -2024,26 +1991,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); client.innerApiCalls.deleteUserLink = stubSimpleCall(expectedResponse); const [response] = await client.deleteUserLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteUserLink without error using callback', async () => { @@ -2056,15 +2022,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2087,11 +2049,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteUserLink with error', async () => { @@ -2104,26 +2069,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteUserLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteUserLink(request), expectedError); - assert( - (client.innerApiCalls.deleteUserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteUserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteUserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteUserLink with closed client', async () => { @@ -2136,7 +2100,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteUserLink(request), expectedError); @@ -2154,15 +2121,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2170,11 +2133,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.batchDeleteUserLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchDeleteUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchDeleteUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchDeleteUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchDeleteUserLinks without error using callback', async () => { @@ -2187,15 +2153,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2218,11 +2180,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.batchDeleteUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.batchDeleteUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchDeleteUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchDeleteUserLinks with error', async () => { @@ -2235,26 +2200,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.batchDeleteUserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.batchDeleteUserLinks(request), expectedError); - assert( - (client.innerApiCalls.batchDeleteUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.batchDeleteUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchDeleteUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes batchDeleteUserLinks with closed client', async () => { @@ -2267,7 +2231,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchDeleteUserLinks(request), expectedError); @@ -2285,15 +2252,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() ); @@ -2301,11 +2264,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createFirebaseLink without error using callback', async () => { @@ -2318,15 +2284,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() ); @@ -2349,11 +2311,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createFirebaseLink with error', async () => { @@ -2366,26 +2331,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createFirebaseLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createFirebaseLink(request), expectedError); - assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createFirebaseLink with closed client', async () => { @@ -2398,7 +2362,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createFirebaseLink(request), expectedError); @@ -2416,15 +2383,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2432,11 +2395,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteFirebaseLink without error using callback', async () => { @@ -2449,15 +2415,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2480,11 +2442,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteFirebaseLink with error', async () => { @@ -2497,26 +2462,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteFirebaseLink(request), expectedError); - assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteFirebaseLink with closed client', async () => { @@ -2529,7 +2493,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteFirebaseLink(request), expectedError); @@ -2547,26 +2514,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GlobalSiteTag() ); client.innerApiCalls.getGlobalSiteTag = stubSimpleCall(expectedResponse); const [response] = await client.getGlobalSiteTag(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getGlobalSiteTag as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getGlobalSiteTag as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getGlobalSiteTag as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getGlobalSiteTag without error using callback', async () => { @@ -2579,15 +2545,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GlobalSiteTag() ); @@ -2610,11 +2572,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getGlobalSiteTag as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getGlobalSiteTag as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getGlobalSiteTag as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getGlobalSiteTag with error', async () => { @@ -2627,26 +2592,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getGlobalSiteTag = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getGlobalSiteTag(request), expectedError); - assert( - (client.innerApiCalls.getGlobalSiteTag as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getGlobalSiteTag as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getGlobalSiteTag as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getGlobalSiteTag with closed client', async () => { @@ -2659,7 +2623,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getGlobalSiteTag(request), expectedError); @@ -2677,15 +2644,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); @@ -2693,11 +2656,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createGoogleAdsLink without error using callback', async () => { @@ -2710,15 +2676,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); @@ -2741,11 +2703,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createGoogleAdsLink with error', async () => { @@ -2758,26 +2723,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createGoogleAdsLink(request), expectedError); - assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createGoogleAdsLink with closed client', async () => { @@ -2790,7 +2754,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createGoogleAdsLink(request), expectedError); @@ -2808,16 +2775,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; + const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); @@ -2825,11 +2789,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleAdsLink without error using callback', async () => { @@ -2842,16 +2809,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; + const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ); @@ -2874,11 +2838,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleAdsLink with error', async () => { @@ -2891,27 +2858,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; + const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateGoogleAdsLink(request), expectedError); - assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleAdsLink with closed client', async () => { @@ -2924,8 +2891,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateGoogleAdsLink(request), expectedError); @@ -2943,15 +2914,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2959,11 +2926,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteGoogleAdsLink without error using callback', async () => { @@ -2976,15 +2946,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3007,11 +2973,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteGoogleAdsLink with error', async () => { @@ -3024,26 +2993,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); - assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteGoogleAdsLink with closed client', async () => { @@ -3056,7 +3024,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); @@ -3074,15 +3045,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataSharingSettings() ); @@ -3090,11 +3058,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getDataSharingSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataSharingSettings without error using callback', async () => { @@ -3107,15 +3078,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataSharingSettings() ); @@ -3138,11 +3106,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataSharingSettings with error', async () => { @@ -3155,15 +3126,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDataSharingSettings = stubSimpleCall( undefined, @@ -3173,11 +3141,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.getDataSharingSettings(request), expectedError ); - assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataSharingSettings with closed client', async () => { @@ -3190,7 +3161,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3211,15 +3186,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); @@ -3227,11 +3199,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getMeasurementProtocolSecret without error using callback', async () => { @@ -3244,15 +3219,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); @@ -3275,11 +3247,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getMeasurementProtocolSecret with error', async () => { @@ -3292,15 +3267,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -3310,11 +3282,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.getMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getMeasurementProtocolSecret with closed client', async () => { @@ -3327,7 +3302,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3348,15 +3327,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); @@ -3364,11 +3340,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createMeasurementProtocolSecret without error using callback', async () => { @@ -3381,15 +3360,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); @@ -3412,11 +3388,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createMeasurementProtocolSecret with error', async () => { @@ -3429,15 +3408,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -3447,11 +3423,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.createMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createMeasurementProtocolSecret with closed client', async () => { @@ -3464,7 +3443,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3485,15 +3468,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3501,11 +3481,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteMeasurementProtocolSecret without error using callback', async () => { @@ -3518,15 +3501,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3549,11 +3529,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteMeasurementProtocolSecret with error', async () => { @@ -3566,15 +3549,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -3584,11 +3564,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.deleteMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteMeasurementProtocolSecret with closed client', async () => { @@ -3601,7 +3584,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3622,16 +3609,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; + const expectedHeaderRequestParams = `measurement_protocol_secret.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); @@ -3639,11 +3623,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMeasurementProtocolSecret without error using callback', async () => { @@ -3656,16 +3643,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; + const expectedHeaderRequestParams = `measurement_protocol_secret.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ); @@ -3688,11 +3672,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMeasurementProtocolSecret with error', async () => { @@ -3705,16 +3692,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; + const expectedHeaderRequestParams = `measurement_protocol_secret.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -3724,11 +3708,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.updateMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMeasurementProtocolSecret with closed client', async () => { @@ -3741,8 +3728,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3763,15 +3754,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; + const expectedHeaderRequestParams = `property=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() ); @@ -3779,11 +3767,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.acknowledgeUserDataCollection(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes acknowledgeUserDataCollection without error using callback', async () => { @@ -3796,15 +3787,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; + const expectedHeaderRequestParams = `property=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse() ); @@ -3827,11 +3815,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes acknowledgeUserDataCollection with error', async () => { @@ -3844,15 +3835,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; + const expectedHeaderRequestParams = `property=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall( undefined, @@ -3862,11 +3850,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.acknowledgeUserDataCollection(request), expectedError ); - assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes acknowledgeUserDataCollection with closed client', async () => { @@ -3879,7 +3870,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3900,15 +3895,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetGoogleSignalsSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); @@ -3916,11 +3908,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getGoogleSignalsSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getGoogleSignalsSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getGoogleSignalsSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getGoogleSignalsSettings without error using callback', async () => { @@ -3933,15 +3928,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetGoogleSignalsSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); @@ -3964,11 +3956,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getGoogleSignalsSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getGoogleSignalsSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getGoogleSignalsSettings with error', async () => { @@ -3981,15 +3976,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetGoogleSignalsSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getGoogleSignalsSettings = stubSimpleCall( undefined, @@ -3999,11 +3991,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.getGoogleSignalsSettings(request), expectedError ); - assert( - (client.innerApiCalls.getGoogleSignalsSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getGoogleSignalsSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getGoogleSignalsSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getGoogleSignalsSettings with closed client', async () => { @@ -4016,7 +4011,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetGoogleSignalsSettingsRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4037,16 +4036,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleSignalsSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateGoogleSignalsSettingsRequest', + ['googleSignalsSettings', 'name'] + ); + request.googleSignalsSettings.name = defaultValue1; + const expectedHeaderRequestParams = `google_signals_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); @@ -4054,11 +4050,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateGoogleSignalsSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleSignalsSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleSignalsSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleSignalsSettings without error using callback', async () => { @@ -4071,16 +4070,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleSignalsSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateGoogleSignalsSettingsRequest', + ['googleSignalsSettings', 'name'] + ); + request.googleSignalsSettings.name = defaultValue1; + const expectedHeaderRequestParams = `google_signals_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleSignalsSettings() ); @@ -4103,11 +4099,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleSignalsSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleSignalsSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleSignalsSettings with error', async () => { @@ -4120,16 +4119,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; - const expectedHeaderRequestParams = 'google_signals_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleSignalsSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateGoogleSignalsSettingsRequest', + ['googleSignalsSettings', 'name'] + ); + request.googleSignalsSettings.name = defaultValue1; + const expectedHeaderRequestParams = `google_signals_settings.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateGoogleSignalsSettings = stubSimpleCall( undefined, @@ -4139,11 +4135,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.updateGoogleSignalsSettings(request), expectedError ); - assert( - (client.innerApiCalls.updateGoogleSignalsSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleSignalsSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleSignalsSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleSignalsSettings with closed client', async () => { @@ -4156,8 +4155,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest() ); - request.googleSignalsSettings = {}; - request.googleSignalsSettings.name = ''; + request.googleSignalsSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateGoogleSignalsSettingsRequest', + ['googleSignalsSettings', 'name'] + ); + request.googleSignalsSettings.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4178,15 +4181,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() ); @@ -4194,11 +4194,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createConversionEvent without error using callback', async () => { @@ -4211,15 +4214,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() ); @@ -4242,11 +4242,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createConversionEvent with error', async () => { @@ -4259,15 +4262,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createConversionEvent = stubSimpleCall( undefined, @@ -4277,11 +4277,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.createConversionEvent(request), expectedError ); - assert( - (client.innerApiCalls.createConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createConversionEvent with closed client', async () => { @@ -4294,7 +4297,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4315,15 +4322,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() ); @@ -4331,11 +4334,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getConversionEvent without error using callback', async () => { @@ -4348,15 +4354,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() ); @@ -4379,11 +4381,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getConversionEvent with error', async () => { @@ -4396,26 +4401,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getConversionEvent = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getConversionEvent(request), expectedError); - assert( - (client.innerApiCalls.getConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getConversionEvent with closed client', async () => { @@ -4428,7 +4432,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getConversionEvent(request), expectedError); @@ -4446,15 +4453,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -4462,11 +4466,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteConversionEvent without error using callback', async () => { @@ -4479,15 +4486,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -4510,11 +4514,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteConversionEvent with error', async () => { @@ -4527,15 +4534,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteConversionEvent = stubSimpleCall( undefined, @@ -4545,11 +4549,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.deleteConversionEvent(request), expectedError ); - assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteConversionEvent with closed client', async () => { @@ -4562,7 +4569,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4583,15 +4594,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); @@ -4599,11 +4607,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getDisplayVideo360AdvertiserLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDisplayVideo360AdvertiserLink without error using callback', async () => { @@ -4616,15 +4627,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); @@ -4647,11 +4655,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDisplayVideo360AdvertiserLink with error', async () => { @@ -4664,15 +4675,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, @@ -4682,11 +4690,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.getDisplayVideo360AdvertiserLink(request), expectedError ); - assert( - (client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDisplayVideo360AdvertiserLink with closed client', async () => { @@ -4699,7 +4710,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4720,15 +4735,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); @@ -4738,11 +4750,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDisplayVideo360AdvertiserLink without error using callback', async () => { @@ -4755,15 +4770,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); @@ -4786,11 +4798,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDisplayVideo360AdvertiserLink with error', async () => { @@ -4803,15 +4818,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, @@ -4821,11 +4833,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.createDisplayVideo360AdvertiserLink(request), expectedError ); - assert( - (client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDisplayVideo360AdvertiserLink with closed client', async () => { @@ -4838,7 +4853,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4859,15 +4878,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -4877,11 +4893,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDisplayVideo360AdvertiserLink without error using callback', async () => { @@ -4894,15 +4913,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -4925,11 +4941,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDisplayVideo360AdvertiserLink with error', async () => { @@ -4942,15 +4961,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, @@ -4960,11 +4976,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.deleteDisplayVideo360AdvertiserLink(request), expectedError ); - assert( - (client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDisplayVideo360AdvertiserLink with closed client', async () => { @@ -4977,7 +4996,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4998,17 +5021,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.displayVideo_360AdvertiserLink ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDisplayVideo360AdvertiserLinkRequest', + ['displayVideo_360AdvertiserLink', 'name'] + ); + request.displayVideo_360AdvertiserLink.name = defaultValue1; + const expectedHeaderRequestParams = `display_video_360_advertiser_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); @@ -5018,11 +5037,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDisplayVideo360AdvertiserLink without error using callback', async () => { @@ -5035,17 +5057,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.displayVideo_360AdvertiserLink ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDisplayVideo360AdvertiserLinkRequest', + ['displayVideo_360AdvertiserLink', 'name'] + ); + request.displayVideo_360AdvertiserLink.name = defaultValue1; + const expectedHeaderRequestParams = `display_video_360_advertiser_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ); @@ -5068,11 +5086,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDisplayVideo360AdvertiserLink with error', async () => { @@ -5085,17 +5106,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; - const expectedHeaderRequestParams = - 'display_video_360_advertiser_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.displayVideo_360AdvertiserLink ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDisplayVideo360AdvertiserLinkRequest', + ['displayVideo_360AdvertiserLink', 'name'] + ); + request.displayVideo_360AdvertiserLink.name = defaultValue1; + const expectedHeaderRequestParams = `display_video_360_advertiser_link.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateDisplayVideo360AdvertiserLink = stubSimpleCall( undefined, @@ -5105,11 +5122,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.updateDisplayVideo360AdvertiserLink(request), expectedError ); - assert( - (client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDisplayVideo360AdvertiserLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDisplayVideo360AdvertiserLink with closed client', async () => { @@ -5122,8 +5142,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest() ); - request.displayVideo_360AdvertiserLink = {}; - request.displayVideo_360AdvertiserLink.name = ''; + request.displayVideo_360AdvertiserLink ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDisplayVideo360AdvertiserLinkRequest', + ['displayVideo_360AdvertiserLink', 'name'] + ); + request.displayVideo_360AdvertiserLink.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5144,15 +5168,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); @@ -5162,14 +5183,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ); assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .getDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { @@ -5182,15 +5205,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); @@ -5213,14 +5233,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .getDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDisplayVideo360AdvertiserLinkProposal with error', async () => { @@ -5233,15 +5255,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(undefined, expectedError); @@ -5249,14 +5268,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.getDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - assert( - ( - client.innerApiCalls - .getDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .getDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDisplayVideo360AdvertiserLinkProposal with closed client', async () => { @@ -5269,7 +5290,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5290,15 +5315,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); @@ -5307,14 +5329,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const [response] = await client.createDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .createDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { @@ -5327,15 +5351,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); @@ -5358,14 +5379,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .createDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDisplayVideo360AdvertiserLinkProposal with error', async () => { @@ -5378,15 +5401,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(undefined, expectedError); @@ -5394,14 +5414,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.createDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - assert( - ( - client.innerApiCalls - .createDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .createDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDisplayVideo360AdvertiserLinkProposal with closed client', async () => { @@ -5414,7 +5436,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5435,15 +5461,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -5452,14 +5475,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const [response] = await client.deleteDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { @@ -5472,15 +5497,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -5503,14 +5525,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDisplayVideo360AdvertiserLinkProposal with error', async () => { @@ -5523,15 +5547,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(undefined, expectedError); @@ -5539,14 +5560,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.deleteDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - assert( - ( - client.innerApiCalls - .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .deleteDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDisplayVideo360AdvertiserLinkProposal with closed client', async () => { @@ -5559,7 +5582,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5580,15 +5607,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() ); @@ -5597,14 +5621,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const [response] = await client.approveDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .approveDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes approveDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { @@ -5617,15 +5643,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse() ); @@ -5648,14 +5671,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .approveDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes approveDisplayVideo360AdvertiserLinkProposal with error', async () => { @@ -5668,15 +5693,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.approveDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(undefined, expectedError); @@ -5684,14 +5706,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.approveDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - assert( - ( - client.innerApiCalls - .approveDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .approveDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes approveDisplayVideo360AdvertiserLinkProposal with closed client', async () => { @@ -5704,7 +5728,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5725,15 +5753,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); @@ -5742,14 +5767,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const [response] = await client.cancelDisplayVideo360AdvertiserLinkProposal(request); assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes cancelDisplayVideo360AdvertiserLinkProposal without error using callback', async () => { @@ -5762,15 +5789,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ); @@ -5793,14 +5817,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes cancelDisplayVideo360AdvertiserLinkProposal with error', async () => { @@ -5813,15 +5839,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.cancelDisplayVideo360AdvertiserLinkProposal = stubSimpleCall(undefined, expectedError); @@ -5829,14 +5852,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.cancelDisplayVideo360AdvertiserLinkProposal(request), expectedError ); - assert( - ( - client.innerApiCalls - .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .cancelDisplayVideo360AdvertiserLinkProposal as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes cancelDisplayVideo360AdvertiserLinkProposal with closed client', async () => { @@ -5849,7 +5874,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5870,15 +5899,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() ); @@ -5886,11 +5912,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomDimension without error using callback', async () => { @@ -5903,15 +5932,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() ); @@ -5934,11 +5960,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomDimension with error', async () => { @@ -5951,15 +5980,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createCustomDimension = stubSimpleCall( undefined, @@ -5969,11 +5995,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.createCustomDimension(request), expectedError ); - assert( - (client.innerApiCalls.createCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomDimension with closed client', async () => { @@ -5986,7 +6015,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -6007,16 +6040,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; + const expectedHeaderRequestParams = `custom_dimension.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() ); @@ -6024,11 +6054,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomDimension without error using callback', async () => { @@ -6041,16 +6074,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; + const expectedHeaderRequestParams = `custom_dimension.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() ); @@ -6073,11 +6103,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomDimension with error', async () => { @@ -6090,16 +6123,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; + const expectedHeaderRequestParams = `custom_dimension.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateCustomDimension = stubSimpleCall( undefined, @@ -6109,11 +6139,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.updateCustomDimension(request), expectedError ); - assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomDimension with closed client', async () => { @@ -6126,8 +6159,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -6148,15 +6185,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -6164,11 +6198,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.archiveCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomDimension without error using callback', async () => { @@ -6181,15 +6218,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -6212,11 +6246,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomDimension with error', async () => { @@ -6229,15 +6266,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.archiveCustomDimension = stubSimpleCall( undefined, @@ -6247,11 +6281,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.archiveCustomDimension(request), expectedError ); - assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomDimension with closed client', async () => { @@ -6264,7 +6301,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -6285,15 +6326,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() ); @@ -6301,11 +6338,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomDimension without error using callback', async () => { @@ -6318,15 +6358,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() ); @@ -6349,11 +6385,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomDimension with error', async () => { @@ -6366,26 +6405,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getCustomDimension = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getCustomDimension(request), expectedError); - assert( - (client.innerApiCalls.getCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomDimension with closed client', async () => { @@ -6398,7 +6436,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomDimension(request), expectedError); @@ -6416,15 +6457,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() ); @@ -6432,11 +6469,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomMetric without error using callback', async () => { @@ -6449,15 +6489,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() ); @@ -6480,11 +6516,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomMetric with error', async () => { @@ -6497,26 +6536,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.createCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomMetric with closed client', async () => { @@ -6529,7 +6567,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCustomMetric(request), expectedError); @@ -6547,16 +6588,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; + const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() ); @@ -6564,11 +6602,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomMetric without error using callback', async () => { @@ -6581,16 +6622,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; + const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() ); @@ -6613,11 +6651,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomMetric with error', async () => { @@ -6630,27 +6671,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; + const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomMetric with closed client', async () => { @@ -6663,8 +6704,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateCustomMetric(request), expectedError); @@ -6682,15 +6727,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -6698,11 +6739,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.archiveCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomMetric without error using callback', async () => { @@ -6715,15 +6759,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -6746,11 +6786,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomMetric with error', async () => { @@ -6763,26 +6806,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.archiveCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.archiveCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomMetric with closed client', async () => { @@ -6795,7 +6837,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.archiveCustomMetric(request), expectedError); @@ -6813,26 +6858,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() ); client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); const [response] = await client.getCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomMetric without error using callback', async () => { @@ -6845,15 +6889,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() ); @@ -6876,11 +6916,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomMetric with error', async () => { @@ -6893,26 +6936,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomMetric with closed client', async () => { @@ -6925,7 +6967,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomMetric(request), expectedError); @@ -6943,15 +6988,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); @@ -6959,11 +7001,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getDataRetentionSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataRetentionSettings without error using callback', async () => { @@ -6976,15 +7021,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); @@ -7007,11 +7049,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataRetentionSettings with error', async () => { @@ -7024,15 +7069,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDataRetentionSettings = stubSimpleCall( undefined, @@ -7042,11 +7084,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.getDataRetentionSettings(request), expectedError ); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataRetentionSettings with closed client', async () => { @@ -7059,7 +7104,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -7080,16 +7129,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `data_retention_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); @@ -7097,11 +7143,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateDataRetentionSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataRetentionSettings without error using callback', async () => { @@ -7114,16 +7163,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `data_retention_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataRetentionSettings() ); @@ -7146,11 +7192,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataRetentionSettings with error', async () => { @@ -7163,16 +7212,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `data_retention_settings.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateDataRetentionSettings = stubSimpleCall( undefined, @@ -7182,11 +7228,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.updateDataRetentionSettings(request), expectedError ); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataRetentionSettings with closed client', async () => { @@ -7199,8 +7248,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -7221,26 +7274,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() ); client.innerApiCalls.createDataStream = stubSimpleCall(expectedResponse); const [response] = await client.createDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDataStream without error using callback', async () => { @@ -7253,15 +7305,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() ); @@ -7284,11 +7332,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDataStream with error', async () => { @@ -7301,26 +7352,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createDataStream(request), expectedError); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDataStream with closed client', async () => { @@ -7333,7 +7383,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createDataStream(request), expectedError); @@ -7351,26 +7404,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); client.innerApiCalls.deleteDataStream = stubSimpleCall(expectedResponse); const [response] = await client.deleteDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDataStream without error using callback', async () => { @@ -7383,15 +7435,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -7414,11 +7462,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDataStream with error', async () => { @@ -7431,26 +7482,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteDataStream(request), expectedError); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDataStream with closed client', async () => { @@ -7463,7 +7513,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteDataStream(request), expectedError); @@ -7481,27 +7534,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; + const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() ); client.innerApiCalls.updateDataStream = stubSimpleCall(expectedResponse); const [response] = await client.updateDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataStream without error using callback', async () => { @@ -7514,16 +7567,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; + const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() ); @@ -7546,11 +7596,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataStream with error', async () => { @@ -7563,27 +7616,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; + const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateDataStream(request), expectedError); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataStream with closed client', async () => { @@ -7596,8 +7649,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateDataStream(request), expectedError); @@ -7615,26 +7672,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() ); client.innerApiCalls.getDataStream = stubSimpleCall(expectedResponse); const [response] = await client.getDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataStream without error using callback', async () => { @@ -7647,15 +7703,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() ); @@ -7678,11 +7730,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataStream with error', async () => { @@ -7695,26 +7750,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getDataStream(request), expectedError); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataStream with closed client', async () => { @@ -7727,7 +7781,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataStream(request), expectedError); @@ -7745,26 +7802,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() ); client.innerApiCalls.getAudience = stubSimpleCall(expectedResponse); const [response] = await client.getAudience(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAudience without error using callback', async () => { @@ -7777,15 +7831,9 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() ); @@ -7808,11 +7856,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAudience with error', async () => { @@ -7825,26 +7876,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getAudience = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getAudience(request), expectedError); - assert( - (client.innerApiCalls.getAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAudience with closed client', async () => { @@ -7857,7 +7905,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAudience(request), expectedError); @@ -7875,26 +7924,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() ); client.innerApiCalls.createAudience = stubSimpleCall(expectedResponse); const [response] = await client.createAudience(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createAudience without error using callback', async () => { @@ -7907,15 +7955,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() ); @@ -7938,11 +7982,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createAudience with error', async () => { @@ -7955,26 +8002,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createAudience = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createAudience(request), expectedError); - assert( - (client.innerApiCalls.createAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createAudience with closed client', async () => { @@ -7987,7 +8033,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createAudience(request), expectedError); @@ -8005,27 +8054,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); - request.audience = {}; - request.audience.name = ''; - const expectedHeaderRequestParams = 'audience.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.audience ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ + 'audience', + 'name', + ]); + request.audience.name = defaultValue1; + const expectedHeaderRequestParams = `audience.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() ); client.innerApiCalls.updateAudience = stubSimpleCall(expectedResponse); const [response] = await client.updateAudience(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAudience without error using callback', async () => { @@ -8038,16 +8087,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); - request.audience = {}; - request.audience.name = ''; - const expectedHeaderRequestParams = 'audience.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.audience ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ + 'audience', + 'name', + ]); + request.audience.name = defaultValue1; + const expectedHeaderRequestParams = `audience.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() ); @@ -8070,11 +8116,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAudience with error', async () => { @@ -8087,27 +8136,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); - request.audience = {}; - request.audience.name = ''; - const expectedHeaderRequestParams = 'audience.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.audience ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ + 'audience', + 'name', + ]); + request.audience.name = defaultValue1; + const expectedHeaderRequestParams = `audience.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateAudience = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateAudience(request), expectedError); - assert( - (client.innerApiCalls.updateAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAudience with closed client', async () => { @@ -8120,8 +8169,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); - request.audience = {}; - request.audience.name = ''; + request.audience ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ + 'audience', + 'name', + ]); + request.audience.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateAudience(request), expectedError); @@ -8139,26 +8192,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); client.innerApiCalls.archiveAudience = stubSimpleCall(expectedResponse); const [response] = await client.archiveAudience(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveAudience without error using callback', async () => { @@ -8171,15 +8223,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -8202,11 +8250,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.archiveAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveAudience with error', async () => { @@ -8219,26 +8270,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.archiveAudience = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.archiveAudience(request), expectedError); - assert( - (client.innerApiCalls.archiveAudience as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveAudience as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveAudience as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveAudience with closed client', async () => { @@ -8251,7 +8301,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.archiveAudience(request), expectedError); @@ -8269,15 +8322,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AttributionSettings() ); @@ -8285,11 +8335,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getAttributionSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAttributionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAttributionSettings without error using callback', async () => { @@ -8302,15 +8355,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AttributionSettings() ); @@ -8333,11 +8383,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAttributionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAttributionSettings with error', async () => { @@ -8350,15 +8403,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getAttributionSettings = stubSimpleCall( undefined, @@ -8368,11 +8418,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.getAttributionSettings(request), expectedError ); - assert( - (client.innerApiCalls.getAttributionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAttributionSettings with closed client', async () => { @@ -8385,7 +8438,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -8406,16 +8463,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() ); - request.attributionSettings = {}; - request.attributionSettings.name = ''; - const expectedHeaderRequestParams = 'attribution_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AttributionSettings() ); @@ -8423,11 +8477,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateAttributionSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAttributionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAttributionSettings without error using callback', async () => { @@ -8440,16 +8497,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() ); - request.attributionSettings = {}; - request.attributionSettings.name = ''; - const expectedHeaderRequestParams = 'attribution_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AttributionSettings() ); @@ -8472,11 +8526,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAttributionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAttributionSettings with error', async () => { @@ -8489,16 +8546,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() ); - request.attributionSettings = {}; - request.attributionSettings.name = ''; - const expectedHeaderRequestParams = 'attribution_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateAttributionSettings = stubSimpleCall( undefined, @@ -8508,11 +8562,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.updateAttributionSettings(request), expectedError ); - assert( - (client.innerApiCalls.updateAttributionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAttributionSettings with closed client', async () => { @@ -8525,8 +8582,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() ); - request.attributionSettings = {}; - request.attributionSettings.name = ''; + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -8547,26 +8608,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - request.entity = ''; - const expectedHeaderRequestParams = 'entity='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ + 'entity', + ]); + request.entity = defaultValue1; + const expectedHeaderRequestParams = `entity=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() ); client.innerApiCalls.runAccessReport = stubSimpleCall(expectedResponse); const [response] = await client.runAccessReport(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.runAccessReport as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes runAccessReport without error using callback', async () => { @@ -8579,15 +8639,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - request.entity = ''; - const expectedHeaderRequestParams = 'entity='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ + 'entity', + ]); + request.entity = defaultValue1; + const expectedHeaderRequestParams = `entity=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() ); @@ -8610,11 +8666,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.runAccessReport as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes runAccessReport with error', async () => { @@ -8627,26 +8686,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - request.entity = ''; - const expectedHeaderRequestParams = 'entity='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ + 'entity', + ]); + request.entity = defaultValue1; + const expectedHeaderRequestParams = `entity=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.runAccessReport = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.runAccessReport(request), expectedError); - assert( - (client.innerApiCalls.runAccessReport as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes runAccessReport with closed client', async () => { @@ -8659,7 +8717,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - request.entity = ''; + const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ + 'entity', + ]); + request.entity = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.runAccessReport(request), expectedError); @@ -8677,7 +8738,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() @@ -8692,11 +8752,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); const [response] = await client.listAccounts(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccounts without error using callback', async () => { @@ -8709,7 +8764,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Account() @@ -8740,11 +8794,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes listAccounts with error', async () => { @@ -8757,18 +8806,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountsRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.listAccounts = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listAccounts(request), expectedError); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccountsStream without error', async () => { @@ -8935,7 +8978,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.AccountSummary() @@ -8951,11 +8993,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listAccountSummaries(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccountSummaries without error using callback', async () => { @@ -8968,7 +9005,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.AccountSummary() @@ -9001,11 +9037,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes listAccountSummaries with error', async () => { @@ -9018,18 +9049,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.listAccountSummaries = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listAccountSummaries(request), expectedError); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccountSummariesStream without error', async () => { @@ -9198,7 +9223,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() @@ -9213,11 +9237,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); const [response] = await client.listProperties(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listProperties without error using callback', async () => { @@ -9230,7 +9249,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Property() @@ -9261,11 +9279,6 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes listProperties with error', async () => { @@ -9278,18 +9291,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.listProperties = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listProperties(request), expectedError); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listPropertiesStream without error', async () => { @@ -9454,15 +9461,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() @@ -9477,11 +9480,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); const [response] = await client.listUserLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listUserLinks without error using callback', async () => { @@ -9494,15 +9500,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() @@ -9533,11 +9535,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listUserLinks with error', async () => { @@ -9550,26 +9555,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listUserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listUserLinks(request), expectedError); - assert( - (client.innerApiCalls.listUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listUserLinksStream without error', async () => { @@ -9582,8 +9586,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() @@ -9620,11 +9627,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listUserLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -9638,8 +9646,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -9665,11 +9676,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listUserLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -9683,8 +9695,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.UserLink() @@ -9710,11 +9725,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -9728,8 +9744,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -9746,11 +9765,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -9766,15 +9786,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLink() @@ -9789,11 +9805,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.auditUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes auditUserLinks without error using callback', async () => { @@ -9806,15 +9825,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLink() @@ -9847,11 +9862,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.auditUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes auditUserLinks with error', async () => { @@ -9864,26 +9882,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.auditUserLinks(request), expectedError); - assert( - (client.innerApiCalls.auditUserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes auditUserLinksStream without error', async () => { @@ -9896,8 +9913,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLink() @@ -9935,11 +9955,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.auditUserLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -9953,8 +9974,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -9981,11 +10005,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.auditUserLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -9999,8 +10024,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLink() @@ -10027,11 +10055,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10045,8 +10074,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -10064,11 +10096,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -10084,15 +10117,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() @@ -10107,11 +10136,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listFirebaseLinks without error using callback', async () => { @@ -10124,15 +10156,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() @@ -10165,11 +10193,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listFirebaseLinks with error', async () => { @@ -10182,26 +10213,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listFirebaseLinks(request), expectedError); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listFirebaseLinksStream without error', async () => { @@ -10214,8 +10244,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() @@ -10253,11 +10286,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10271,8 +10305,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -10299,11 +10336,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10317,8 +10355,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.FirebaseLink() @@ -10345,11 +10386,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10363,8 +10405,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -10382,11 +10427,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -10402,15 +10448,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() @@ -10426,11 +10468,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listGoogleAdsLinks without error using callback', async () => { @@ -10443,15 +10488,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() @@ -10484,11 +10525,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listGoogleAdsLinks with error', async () => { @@ -10501,26 +10545,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listGoogleAdsLinks(request), expectedError); - assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listGoogleAdsLinksStream without error', async () => { @@ -10533,8 +10576,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() @@ -10572,11 +10618,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10590,8 +10637,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -10618,11 +10668,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10636,8 +10687,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.GoogleAdsLink() @@ -10664,11 +10718,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10682,8 +10737,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -10701,11 +10759,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -10721,15 +10780,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() @@ -10745,11 +10801,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listMeasurementProtocolSecrets without error using callback', async () => { @@ -10762,15 +10821,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() @@ -10803,11 +10859,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listMeasurementProtocolSecrets with error', async () => { @@ -10820,15 +10879,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, @@ -10838,11 +10894,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.listMeasurementProtocolSecrets(request), expectedError ); - assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listMeasurementProtocolSecretsStream without error', async () => { @@ -10855,8 +10914,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() @@ -10902,12 +10965,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10921,8 +10987,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); @@ -10957,12 +11027,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -10976,8 +11049,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() @@ -11005,12 +11082,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11024,8 +11104,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -11044,12 +11128,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -11065,15 +11152,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() @@ -11089,11 +11173,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes searchChangeHistoryEvents without error using callback', async () => { @@ -11106,15 +11193,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() @@ -11147,11 +11231,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes searchChangeHistoryEvents with error', async () => { @@ -11164,15 +11251,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, @@ -11182,11 +11266,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.searchChangeHistoryEvents(request), expectedError ); - assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes searchChangeHistoryEventsStream without error', async () => { @@ -11199,8 +11286,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() @@ -11243,12 +11334,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11262,8 +11356,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); @@ -11295,12 +11393,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11314,8 +11415,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() @@ -11343,12 +11448,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11362,8 +11470,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -11382,12 +11494,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -11402,16 +11517,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.initialize(); const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() - ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + ); + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() @@ -11427,11 +11538,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listConversionEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listConversionEvents without error using callback', async () => { @@ -11444,15 +11558,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() @@ -11485,11 +11595,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listConversionEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listConversionEvents with error', async () => { @@ -11502,26 +11615,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listConversionEvents(request), expectedError); - assert( - (client.innerApiCalls.listConversionEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listConversionEventsStream without error', async () => { @@ -11534,8 +11646,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() @@ -11573,11 +11688,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listConversionEvents, request) ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11591,8 +11707,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); @@ -11619,11 +11738,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listConversionEvents, request) ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11637,8 +11757,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.ConversionEvent() @@ -11665,11 +11788,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11683,8 +11807,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -11702,11 +11829,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -11722,15 +11850,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() @@ -11748,11 +11873,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { @@ -11765,15 +11893,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() @@ -11806,11 +11931,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { @@ -11823,15 +11951,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( undefined, @@ -11841,11 +11966,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.listDisplayVideo360AdvertiserLinks(request), expectedError ); - assert( - (client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { @@ -11858,8 +11986,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() @@ -11905,12 +12037,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11924,8 +12059,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -11960,12 +12099,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -11979,8 +12121,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() @@ -12008,12 +12154,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12027,8 +12176,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -12047,12 +12200,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -12068,15 +12224,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() @@ -12093,14 +12246,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const [response] = await client.listDisplayVideo360AdvertiserLinkProposals(request); assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { @@ -12113,15 +12268,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() @@ -12154,14 +12306,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { @@ -12174,15 +12328,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCall(undefined, expectedError); @@ -12190,14 +12341,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.listDisplayVideo360AdvertiserLinkProposals(request), expectedError ); - assert( - ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub - ) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { @@ -12210,8 +12363,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() @@ -12258,12 +12415,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12277,8 +12437,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(undefined, expectedError); @@ -12314,12 +12478,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12333,8 +12500,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() @@ -12363,12 +12534,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12382,8 +12556,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -12403,12 +12581,15 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -12424,15 +12605,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() @@ -12448,11 +12625,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listCustomDimensions(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomDimensions without error using callback', async () => { @@ -12465,15 +12645,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() @@ -12506,11 +12682,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomDimensions with error', async () => { @@ -12523,26 +12702,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listCustomDimensions = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listCustomDimensions(request), expectedError); - assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomDimensionsStream without error', async () => { @@ -12555,8 +12733,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() @@ -12594,11 +12775,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomDimensions, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12612,8 +12794,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(undefined, expectedError); @@ -12640,11 +12825,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomDimensions, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12658,8 +12844,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomDimension() @@ -12686,11 +12875,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12704,8 +12894,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -12723,11 +12916,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -12743,15 +12937,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() @@ -12766,11 +12956,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); const [response] = await client.listCustomMetrics(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomMetrics without error using callback', async () => { @@ -12783,15 +12976,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() @@ -12824,11 +13013,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomMetrics with error', async () => { @@ -12841,26 +13033,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listCustomMetrics = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listCustomMetrics(request), expectedError); - assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomMetricsStream without error', async () => { @@ -12873,8 +13064,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() @@ -12912,11 +13106,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomMetrics, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12930,8 +13125,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(undefined, expectedError); @@ -12958,11 +13156,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomMetrics, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -12976,8 +13175,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.CustomMetric() @@ -13004,11 +13206,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -13022,8 +13225,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -13041,11 +13247,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -13061,15 +13268,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() @@ -13084,11 +13287,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); const [response] = await client.listDataStreams(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listDataStreams as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDataStreams without error using callback', async () => { @@ -13101,15 +13307,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() @@ -13140,11 +13342,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listDataStreams as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDataStreams with error', async () => { @@ -13157,26 +13362,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listDataStreams = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listDataStreams(request), expectedError); - assert( - (client.innerApiCalls.listDataStreams as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDataStreamsStream without error', async () => { @@ -13189,8 +13393,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() @@ -13228,11 +13435,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listDataStreams, request) ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -13246,8 +13454,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); @@ -13274,11 +13485,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listDataStreams, request) ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -13292,8 +13504,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.DataStream() @@ -13319,11 +13534,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -13337,8 +13553,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -13356,11 +13575,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -13376,15 +13596,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() @@ -13399,11 +13615,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listAudiences = stubSimpleCall(expectedResponse); const [response] = await client.listAudiences(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAudiences as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listAudiences as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listAudiences as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listAudiences without error using callback', async () => { @@ -13416,15 +13635,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() @@ -13455,11 +13670,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAudiences as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listAudiences as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listAudiences as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listAudiences with error', async () => { @@ -13472,26 +13690,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listAudiences = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listAudiences(request), expectedError); - assert( - (client.innerApiCalls.listAudiences as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listAudiences as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listAudiences as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listAudiencesStream without error', async () => { @@ -13504,8 +13721,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() @@ -13542,11 +13762,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listAudiences, request) ); - assert.strictEqual( - ( - client.descriptors.page.listAudiences.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listAudiences.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -13560,8 +13781,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listAudiences.createStream = stubPageStreamingCall(undefined, expectedError); @@ -13587,11 +13811,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listAudiences, request) ); - assert.strictEqual( - ( - client.descriptors.page.listAudiences.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listAudiences.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -13605,8 +13830,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1alpha.Audience() @@ -13632,11 +13860,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listAudiences.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listAudiences.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -13650,8 +13879,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listAudiences.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -13668,11 +13900,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listAudiences.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listAudiences.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts index ecf2474c042..76d3b790c8a 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts @@ -27,6 +27,21 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + function generateSampleMessage(instance: T) { const filledObject = ( instance.constructor as typeof protobuf.Message @@ -233,26 +248,23 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Account() ); client.innerApiCalls.getAccount = stubSimpleCall(expectedResponse); const [response] = await client.getAccount(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAccount without error using callback', async () => { @@ -265,15 +277,9 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Account() ); @@ -296,11 +302,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAccount with error', async () => { @@ -313,26 +322,23 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getAccount = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getAccount(request), expectedError); - assert( - (client.innerApiCalls.getAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getAccount with closed client', async () => { @@ -345,7 +351,8 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAccount(request), expectedError); @@ -363,26 +370,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); client.innerApiCalls.deleteAccount = stubSimpleCall(expectedResponse); const [response] = await client.deleteAccount(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteAccount without error using callback', async () => { @@ -395,15 +401,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -426,11 +428,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteAccount with error', async () => { @@ -443,26 +448,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteAccount = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteAccount(request), expectedError); - assert( - (client.innerApiCalls.deleteAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteAccount with closed client', async () => { @@ -475,7 +479,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteAccount(request), expectedError); @@ -493,27 +500,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; - const expectedHeaderRequestParams = 'account.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; + const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Account() ); client.innerApiCalls.updateAccount = stubSimpleCall(expectedResponse); const [response] = await client.updateAccount(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAccount without error using callback', async () => { @@ -526,16 +533,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; - const expectedHeaderRequestParams = 'account.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; + const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Account() ); @@ -558,11 +562,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAccount with error', async () => { @@ -575,27 +582,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; - const expectedHeaderRequestParams = 'account.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; + const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateAccount = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateAccount(request), expectedError); - assert( - (client.innerApiCalls.updateAccount as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAccount as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateAccount with closed client', async () => { @@ -608,8 +615,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); - request.account = {}; - request.account.name = ''; + request.account ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ + 'account', + 'name', + ]); + request.account.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateAccount(request), expectedError); @@ -627,7 +638,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ProvisionAccountTicketRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.ProvisionAccountTicketResponse() ); @@ -635,11 +645,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.provisionAccountTicket(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.provisionAccountTicket as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes provisionAccountTicket without error using callback', async () => { @@ -652,7 +657,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ProvisionAccountTicketRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.ProvisionAccountTicketResponse() ); @@ -675,11 +679,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.provisionAccountTicket as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes provisionAccountTicket with error', async () => { @@ -692,7 +691,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ProvisionAccountTicketRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.provisionAccountTicket = stubSimpleCall( undefined, @@ -702,11 +700,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.provisionAccountTicket(request), expectedError ); - assert( - (client.innerApiCalls.provisionAccountTicket as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes provisionAccountTicket with closed client', async () => { @@ -739,26 +732,23 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); client.innerApiCalls.getProperty = stubSimpleCall(expectedResponse); const [response] = await client.getProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getProperty without error using callback', async () => { @@ -771,15 +761,9 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); @@ -802,11 +786,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getProperty with error', async () => { @@ -819,26 +806,23 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getProperty(request), expectedError); - assert( - (client.innerApiCalls.getProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getProperty with closed client', async () => { @@ -851,7 +835,8 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getProperty(request), expectedError); @@ -869,18 +854,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreatePropertyRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); client.innerApiCalls.createProperty = stubSimpleCall(expectedResponse); const [response] = await client.createProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes createProperty without error using callback', async () => { @@ -893,7 +872,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreatePropertyRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); @@ -916,11 +894,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes createProperty with error', async () => { @@ -933,18 +906,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreatePropertyRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.createProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createProperty(request), expectedError); - assert( - (client.innerApiCalls.createProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes createProperty with closed client', async () => { @@ -974,26 +941,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); client.innerApiCalls.deleteProperty = stubSimpleCall(expectedResponse); const [response] = await client.deleteProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteProperty without error using callback', async () => { @@ -1006,15 +972,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); @@ -1037,11 +999,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteProperty with error', async () => { @@ -1054,26 +1019,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteProperty(request), expectedError); - assert( - (client.innerApiCalls.deleteProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteProperty with closed client', async () => { @@ -1086,7 +1050,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteProperty(request), expectedError); @@ -1104,27 +1071,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; - const expectedHeaderRequestParams = 'property.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; + const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); client.innerApiCalls.updateProperty = stubSimpleCall(expectedResponse); const [response] = await client.updateProperty(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateProperty without error using callback', async () => { @@ -1137,16 +1104,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; - const expectedHeaderRequestParams = 'property.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; + const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() ); @@ -1169,11 +1133,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateProperty with error', async () => { @@ -1186,27 +1153,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; - const expectedHeaderRequestParams = 'property.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; + const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateProperty = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateProperty(request), expectedError); - assert( - (client.innerApiCalls.updateProperty as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProperty as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateProperty with closed client', async () => { @@ -1219,8 +1186,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); - request.property = {}; - request.property.name = ''; + request.property ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ + 'property', + 'name', + ]); + request.property.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateProperty(request), expectedError); @@ -1238,15 +1209,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.FirebaseLink() ); @@ -1254,11 +1221,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createFirebaseLink without error using callback', async () => { @@ -1271,15 +1241,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.FirebaseLink() ); @@ -1302,11 +1268,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createFirebaseLink with error', async () => { @@ -1319,26 +1288,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createFirebaseLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createFirebaseLink(request), expectedError); - assert( - (client.innerApiCalls.createFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createFirebaseLink with closed client', async () => { @@ -1351,7 +1319,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createFirebaseLink(request), expectedError); @@ -1369,15 +1340,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -1385,11 +1352,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteFirebaseLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteFirebaseLink without error using callback', async () => { @@ -1402,15 +1372,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -1433,11 +1399,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteFirebaseLink with error', async () => { @@ -1450,26 +1419,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteFirebaseLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteFirebaseLink(request), expectedError); - assert( - (client.innerApiCalls.deleteFirebaseLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFirebaseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteFirebaseLink with closed client', async () => { @@ -1482,7 +1450,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteFirebaseLink(request), expectedError); @@ -1500,15 +1471,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() ); @@ -1516,11 +1483,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createGoogleAdsLink without error using callback', async () => { @@ -1533,15 +1503,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() ); @@ -1564,11 +1530,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createGoogleAdsLink with error', async () => { @@ -1581,26 +1550,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createGoogleAdsLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createGoogleAdsLink(request), expectedError); - assert( - (client.innerApiCalls.createGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createGoogleAdsLink with closed client', async () => { @@ -1613,7 +1581,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createGoogleAdsLink(request), expectedError); @@ -1631,16 +1602,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; + const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() ); @@ -1648,11 +1616,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleAdsLink without error using callback', async () => { @@ -1665,16 +1636,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; + const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() ); @@ -1697,11 +1665,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleAdsLink with error', async () => { @@ -1714,27 +1685,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; - const expectedHeaderRequestParams = 'google_ads_link.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; + const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateGoogleAdsLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateGoogleAdsLink(request), expectedError); - assert( - (client.innerApiCalls.updateGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateGoogleAdsLink with closed client', async () => { @@ -1747,8 +1718,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); - request.googleAdsLink = {}; - request.googleAdsLink.name = ''; + request.googleAdsLink ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ + 'googleAdsLink', + 'name', + ]); + request.googleAdsLink.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateGoogleAdsLink(request), expectedError); @@ -1766,15 +1741,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -1782,11 +1753,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteGoogleAdsLink(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteGoogleAdsLink without error using callback', async () => { @@ -1799,15 +1773,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -1830,11 +1800,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteGoogleAdsLink with error', async () => { @@ -1847,26 +1820,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteGoogleAdsLink = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); - assert( - (client.innerApiCalls.deleteGoogleAdsLink as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteGoogleAdsLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteGoogleAdsLink with closed client', async () => { @@ -1879,7 +1851,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteGoogleAdsLink(request), expectedError); @@ -1897,15 +1872,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataSharingSettings() ); @@ -1913,11 +1885,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getDataSharingSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataSharingSettings without error using callback', async () => { @@ -1930,15 +1905,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataSharingSettings() ); @@ -1961,11 +1933,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataSharingSettings with error', async () => { @@ -1978,15 +1953,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDataSharingSettings = stubSimpleCall( undefined, @@ -1996,11 +1968,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.getDataSharingSettings(request), expectedError ); - assert( - (client.innerApiCalls.getDataSharingSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataSharingSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataSharingSettings with closed client', async () => { @@ -2013,7 +1988,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetDataSharingSettingsRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2034,15 +2013,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() ); @@ -2050,11 +2026,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getMeasurementProtocolSecret without error using callback', async () => { @@ -2067,15 +2046,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() ); @@ -2098,11 +2074,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getMeasurementProtocolSecret with error', async () => { @@ -2115,15 +2094,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -2133,11 +2109,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.getMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.getMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getMeasurementProtocolSecret with closed client', async () => { @@ -2150,7 +2129,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2171,15 +2154,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() ); @@ -2187,11 +2167,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createMeasurementProtocolSecret without error using callback', async () => { @@ -2204,15 +2187,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() ); @@ -2235,11 +2215,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createMeasurementProtocolSecret with error', async () => { @@ -2252,15 +2235,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -2270,11 +2250,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.createMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.createMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createMeasurementProtocolSecret with closed client', async () => { @@ -2287,7 +2270,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateMeasurementProtocolSecretRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2308,15 +2295,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2324,11 +2308,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteMeasurementProtocolSecret without error using callback', async () => { @@ -2341,15 +2328,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2372,11 +2356,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteMeasurementProtocolSecret with error', async () => { @@ -2389,15 +2376,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -2407,11 +2391,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.deleteMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteMeasurementProtocolSecret with closed client', async () => { @@ -2424,7 +2411,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'DeleteMeasurementProtocolSecretRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2445,16 +2436,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; + const expectedHeaderRequestParams = `measurement_protocol_secret.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() ); @@ -2462,11 +2450,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateMeasurementProtocolSecret(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMeasurementProtocolSecret without error using callback', async () => { @@ -2479,16 +2470,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; + const expectedHeaderRequestParams = `measurement_protocol_secret.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() ); @@ -2511,11 +2499,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMeasurementProtocolSecret with error', async () => { @@ -2528,16 +2519,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; - const expectedHeaderRequestParams = 'measurement_protocol_secret.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; + const expectedHeaderRequestParams = `measurement_protocol_secret.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateMeasurementProtocolSecret = stubSimpleCall( undefined, @@ -2547,11 +2535,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.updateMeasurementProtocolSecret(request), expectedError ); - assert( - (client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMeasurementProtocolSecret as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMeasurementProtocolSecret with closed client', async () => { @@ -2564,8 +2555,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest() ); - request.measurementProtocolSecret = {}; - request.measurementProtocolSecret.name = ''; + request.measurementProtocolSecret ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateMeasurementProtocolSecretRequest', + ['measurementProtocolSecret', 'name'] + ); + request.measurementProtocolSecret.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2586,15 +2581,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; + const expectedHeaderRequestParams = `property=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse() ); @@ -2602,11 +2594,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.acknowledgeUserDataCollection(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes acknowledgeUserDataCollection without error using callback', async () => { @@ -2619,15 +2614,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; + const expectedHeaderRequestParams = `property=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse() ); @@ -2650,11 +2642,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes acknowledgeUserDataCollection with error', async () => { @@ -2667,15 +2662,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; - const expectedHeaderRequestParams = 'property='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; + const expectedHeaderRequestParams = `property=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.acknowledgeUserDataCollection = stubSimpleCall( undefined, @@ -2685,11 +2677,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.acknowledgeUserDataCollection(request), expectedError ); - assert( - (client.innerApiCalls.acknowledgeUserDataCollection as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.acknowledgeUserDataCollection as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes acknowledgeUserDataCollection with closed client', async () => { @@ -2702,7 +2697,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); - request.property = ''; + const defaultValue1 = getTypeDefaultValue( + 'AcknowledgeUserDataCollectionRequest', + ['property'] + ); + request.property = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2723,15 +2722,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() ); @@ -2739,11 +2735,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createConversionEvent without error using callback', async () => { @@ -2756,15 +2755,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() ); @@ -2787,11 +2783,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createConversionEvent with error', async () => { @@ -2804,15 +2803,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createConversionEvent = stubSimpleCall( undefined, @@ -2822,11 +2818,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.createConversionEvent(request), expectedError ); - assert( - (client.innerApiCalls.createConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createConversionEvent with closed client', async () => { @@ -2839,7 +2838,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateConversionEventRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2860,15 +2863,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() ); @@ -2876,11 +2875,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getConversionEvent without error using callback', async () => { @@ -2893,15 +2895,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() ); @@ -2924,11 +2922,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getConversionEvent with error', async () => { @@ -2941,26 +2942,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getConversionEvent = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getConversionEvent(request), expectedError); - assert( - (client.innerApiCalls.getConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getConversionEvent with closed client', async () => { @@ -2973,7 +2973,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getConversionEvent(request), expectedError); @@ -2991,15 +2994,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3007,11 +3007,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.deleteConversionEvent(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteConversionEvent without error using callback', async () => { @@ -3024,15 +3027,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3055,11 +3055,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteConversionEvent with error', async () => { @@ -3072,15 +3075,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteConversionEvent = stubSimpleCall( undefined, @@ -3090,11 +3090,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.deleteConversionEvent(request), expectedError ); - assert( - (client.innerApiCalls.deleteConversionEvent as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteConversionEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteConversionEvent with closed client', async () => { @@ -3107,7 +3110,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'DeleteConversionEventRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3128,15 +3135,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() ); @@ -3144,11 +3148,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomDimension without error using callback', async () => { @@ -3161,15 +3168,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() ); @@ -3192,11 +3196,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomDimension with error', async () => { @@ -3209,15 +3216,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createCustomDimension = stubSimpleCall( undefined, @@ -3227,11 +3231,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.createCustomDimension(request), expectedError ); - assert( - (client.innerApiCalls.createCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomDimension with closed client', async () => { @@ -3244,7 +3251,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue( + 'CreateCustomDimensionRequest', + ['parent'] + ); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3265,16 +3276,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; + const expectedHeaderRequestParams = `custom_dimension.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() ); @@ -3282,11 +3290,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomDimension without error using callback', async () => { @@ -3299,16 +3310,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; + const expectedHeaderRequestParams = `custom_dimension.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() ); @@ -3331,11 +3339,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomDimension with error', async () => { @@ -3348,16 +3359,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; - const expectedHeaderRequestParams = 'custom_dimension.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; + const expectedHeaderRequestParams = `custom_dimension.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateCustomDimension = stubSimpleCall( undefined, @@ -3367,11 +3375,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.updateCustomDimension(request), expectedError ); - assert( - (client.innerApiCalls.updateCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomDimension with closed client', async () => { @@ -3384,8 +3395,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomDimensionRequest() ); - request.customDimension = {}; - request.customDimension.name = ''; + request.customDimension ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateCustomDimensionRequest', + ['customDimension', 'name'] + ); + request.customDimension.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3406,15 +3421,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3422,11 +3434,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.archiveCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomDimension without error using callback', async () => { @@ -3439,15 +3454,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3470,11 +3482,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomDimension with error', async () => { @@ -3487,15 +3502,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.archiveCustomDimension = stubSimpleCall( undefined, @@ -3505,11 +3517,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.archiveCustomDimension(request), expectedError ); - assert( - (client.innerApiCalls.archiveCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomDimension with closed client', async () => { @@ -3522,7 +3537,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'ArchiveCustomDimensionRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3543,15 +3562,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() ); @@ -3559,11 +3574,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getCustomDimension(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomDimension without error using callback', async () => { @@ -3576,15 +3594,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() ); @@ -3607,11 +3621,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomDimension with error', async () => { @@ -3624,26 +3641,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getCustomDimension = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getCustomDimension(request), expectedError); - assert( - (client.innerApiCalls.getCustomDimension as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomDimension as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomDimension with closed client', async () => { @@ -3656,7 +3672,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomDimension(request), expectedError); @@ -3674,15 +3693,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() ); @@ -3690,11 +3705,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.createCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomMetric without error using callback', async () => { @@ -3707,15 +3725,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() ); @@ -3738,11 +3752,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomMetric with error', async () => { @@ -3755,26 +3772,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.createCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCustomMetric with closed client', async () => { @@ -3787,7 +3803,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCustomMetric(request), expectedError); @@ -3805,16 +3824,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; + const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() ); @@ -3822,11 +3838,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomMetric without error using callback', async () => { @@ -3839,16 +3858,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; + const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() ); @@ -3871,11 +3887,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomMetric with error', async () => { @@ -3888,27 +3907,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; - const expectedHeaderRequestParams = 'custom_metric.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; + const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.updateCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCustomMetric with closed client', async () => { @@ -3921,8 +3940,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); - request.customMetric = {}; - request.customMetric.name = ''; + request.customMetric ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ + 'customMetric', + 'name', + ]); + request.customMetric.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateCustomMetric(request), expectedError); @@ -3940,15 +3963,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3956,11 +3975,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.archiveCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomMetric without error using callback', async () => { @@ -3973,15 +3995,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -4004,11 +4022,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomMetric with error', async () => { @@ -4021,26 +4042,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.archiveCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.archiveCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.archiveCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.archiveCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes archiveCustomMetric with closed client', async () => { @@ -4053,7 +4073,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.archiveCustomMetric(request), expectedError); @@ -4071,26 +4094,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() ); client.innerApiCalls.getCustomMetric = stubSimpleCall(expectedResponse); const [response] = await client.getCustomMetric(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomMetric without error using callback', async () => { @@ -4103,15 +4125,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() ); @@ -4134,11 +4152,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomMetric with error', async () => { @@ -4151,26 +4172,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getCustomMetric = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getCustomMetric(request), expectedError); - assert( - (client.innerApiCalls.getCustomMetric as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCustomMetric as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCustomMetric with closed client', async () => { @@ -4183,7 +4203,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomMetric(request), expectedError); @@ -4201,15 +4224,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataRetentionSettings() ); @@ -4217,11 +4237,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.getDataRetentionSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataRetentionSettings without error using callback', async () => { @@ -4234,15 +4257,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataRetentionSettings() ); @@ -4265,11 +4285,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataRetentionSettings with error', async () => { @@ -4282,15 +4305,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDataRetentionSettings = stubSimpleCall( undefined, @@ -4300,11 +4320,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.getDataRetentionSettings(request), expectedError ); - assert( - (client.innerApiCalls.getDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataRetentionSettings with closed client', async () => { @@ -4317,7 +4340,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'GetDataRetentionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4338,16 +4365,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `data_retention_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataRetentionSettings() ); @@ -4355,11 +4379,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.updateDataRetentionSettings(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataRetentionSettings without error using callback', async () => { @@ -4372,16 +4399,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `data_retention_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataRetentionSettings() ); @@ -4404,11 +4428,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataRetentionSettings with error', async () => { @@ -4421,16 +4448,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; - const expectedHeaderRequestParams = 'data_retention_settings.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `data_retention_settings.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateDataRetentionSettings = stubSimpleCall( undefined, @@ -4440,11 +4464,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.updateDataRetentionSettings(request), expectedError ); - assert( - (client.innerApiCalls.updateDataRetentionSettings as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataRetentionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataRetentionSettings with closed client', async () => { @@ -4457,8 +4484,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest() ); - request.dataRetentionSettings = {}; - request.dataRetentionSettings.name = ''; + request.dataRetentionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + 'UpdateDataRetentionSettingsRequest', + ['dataRetentionSettings', 'name'] + ); + request.dataRetentionSettings.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4479,26 +4510,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() ); client.innerApiCalls.createDataStream = stubSimpleCall(expectedResponse); const [response] = await client.createDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDataStream without error using callback', async () => { @@ -4511,15 +4541,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() ); @@ -4542,11 +4568,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDataStream with error', async () => { @@ -4559,26 +4588,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.createDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createDataStream(request), expectedError); - assert( - (client.innerApiCalls.createDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createDataStream with closed client', async () => { @@ -4591,7 +4619,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createDataStream(request), expectedError); @@ -4609,26 +4640,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); client.innerApiCalls.deleteDataStream = stubSimpleCall(expectedResponse); const [response] = await client.deleteDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDataStream without error using callback', async () => { @@ -4641,15 +4671,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -4672,11 +4698,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDataStream with error', async () => { @@ -4689,26 +4718,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteDataStream(request), expectedError); - assert( - (client.innerApiCalls.deleteDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteDataStream with closed client', async () => { @@ -4721,7 +4749,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteDataStream(request), expectedError); @@ -4739,27 +4770,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; + const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() ); client.innerApiCalls.updateDataStream = stubSimpleCall(expectedResponse); const [response] = await client.updateDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataStream without error using callback', async () => { @@ -4772,16 +4803,13 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; + const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() ); @@ -4804,11 +4832,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataStream with error', async () => { @@ -4821,27 +4852,27 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; - const expectedHeaderRequestParams = 'data_stream.name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; + const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.updateDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateDataStream(request), expectedError); - assert( - (client.innerApiCalls.updateDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateDataStream with closed client', async () => { @@ -4854,8 +4885,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); - request.dataStream = {}; - request.dataStream.name = ''; + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ + 'dataStream', + 'name', + ]); + request.dataStream.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateDataStream(request), expectedError); @@ -4873,26 +4908,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() ); client.innerApiCalls.getDataStream = stubSimpleCall(expectedResponse); const [response] = await client.getDataStream(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataStream without error using callback', async () => { @@ -4905,15 +4939,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() ); @@ -4936,11 +4966,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataStream with error', async () => { @@ -4953,26 +4986,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getDataStream = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getDataStream(request), expectedError); - assert( - (client.innerApiCalls.getDataStream as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataStream as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getDataStream with closed client', async () => { @@ -4985,7 +5017,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ + 'name', + ]); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataStream(request), expectedError); @@ -5003,7 +5038,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListAccountsRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.Account() @@ -5018,11 +5052,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); const [response] = await client.listAccounts(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccounts without error using callback', async () => { @@ -5035,7 +5064,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListAccountsRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.Account() @@ -5066,11 +5094,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes listAccounts with error', async () => { @@ -5083,18 +5106,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListAccountsRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.listAccounts = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listAccounts(request), expectedError); - assert( - (client.innerApiCalls.listAccounts as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccountsStream without error', async () => { @@ -5261,7 +5278,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.AccountSummary() @@ -5277,11 +5293,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listAccountSummaries(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccountSummaries without error using callback', async () => { @@ -5294,7 +5305,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.AccountSummary() @@ -5327,11 +5337,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes listAccountSummaries with error', async () => { @@ -5344,18 +5349,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListAccountSummariesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.listAccountSummaries = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listAccountSummaries(request), expectedError); - assert( - (client.innerApiCalls.listAccountSummaries as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listAccountSummariesStream without error', async () => { @@ -5524,7 +5523,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListPropertiesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() @@ -5539,11 +5537,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); const [response] = await client.listProperties(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listProperties without error using callback', async () => { @@ -5556,7 +5549,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListPropertiesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.Property() @@ -5587,11 +5579,6 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); }); it('invokes listProperties with error', async () => { @@ -5604,18 +5591,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListPropertiesRequest() ); - const expectedOptions = {otherArgs: {headers: {}}}; const expectedError = new Error('expected'); client.innerApiCalls.listProperties = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listProperties(request), expectedError); - assert( - (client.innerApiCalls.listProperties as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); }); it('invokes listPropertiesStream without error', async () => { @@ -5780,15 +5761,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.FirebaseLink() @@ -5803,11 +5780,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listFirebaseLinks without error using callback', async () => { @@ -5820,15 +5800,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.FirebaseLink() @@ -5859,11 +5835,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listFirebaseLinks with error', async () => { @@ -5876,26 +5855,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listFirebaseLinks(request), expectedError); - assert( - (client.innerApiCalls.listFirebaseLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFirebaseLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listFirebaseLinksStream without error', async () => { @@ -5908,8 +5886,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.FirebaseLink() @@ -5947,11 +5928,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -5965,8 +5947,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -5993,11 +5978,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6011,8 +5997,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.FirebaseLink() @@ -6039,11 +6028,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6057,8 +6047,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -6076,11 +6069,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -6096,15 +6090,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() @@ -6120,11 +6110,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listGoogleAdsLinks without error using callback', async () => { @@ -6137,15 +6130,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() @@ -6178,11 +6167,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listGoogleAdsLinks with error', async () => { @@ -6195,26 +6187,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listGoogleAdsLinks(request), expectedError); - assert( - (client.innerApiCalls.listGoogleAdsLinks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listGoogleAdsLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listGoogleAdsLinksStream without error', async () => { @@ -6227,8 +6218,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() @@ -6266,11 +6260,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6284,8 +6279,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -6312,11 +6310,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6330,8 +6329,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.GoogleAdsLink() @@ -6358,11 +6360,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6376,8 +6379,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -6395,11 +6401,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -6415,15 +6422,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() @@ -6439,11 +6443,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listMeasurementProtocolSecrets without error using callback', async () => { @@ -6456,15 +6463,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() @@ -6497,11 +6501,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listMeasurementProtocolSecrets with error', async () => { @@ -6514,15 +6521,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, @@ -6532,11 +6536,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.listMeasurementProtocolSecrets(request), expectedError ); - assert( - (client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listMeasurementProtocolSecretsStream without error', async () => { @@ -6549,8 +6556,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() @@ -6596,12 +6607,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6615,8 +6629,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); @@ -6651,12 +6669,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { request ) ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6670,8 +6691,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.MeasurementProtocolSecret() @@ -6699,12 +6724,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6718,8 +6746,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListMeasurementProtocolSecretsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -6738,12 +6770,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listMeasurementProtocolSecrets .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -6759,15 +6794,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() @@ -6783,11 +6815,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes searchChangeHistoryEvents without error using callback', async () => { @@ -6800,15 +6835,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() @@ -6841,11 +6873,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes searchChangeHistoryEvents with error', async () => { @@ -6858,15 +6893,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, @@ -6876,11 +6908,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.searchChangeHistoryEvents(request), expectedError ); - assert( - (client.innerApiCalls.searchChangeHistoryEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchChangeHistoryEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes searchChangeHistoryEventsStream without error', async () => { @@ -6893,8 +6928,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() @@ -6937,12 +6976,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -6956,8 +6998,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); @@ -6989,12 +7035,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7008,8 +7057,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ChangeHistoryEvent() @@ -7037,12 +7090,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7056,8 +7112,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); - request.account = ''; - const expectedHeaderRequestParams = 'account='; + const defaultValue1 = getTypeDefaultValue( + 'SearchChangeHistoryEventsRequest', + ['account'] + ); + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -7076,12 +7136,15 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.searchChangeHistoryEvents .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -7097,15 +7160,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() @@ -7121,11 +7180,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listConversionEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listConversionEvents without error using callback', async () => { @@ -7138,15 +7200,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() @@ -7179,11 +7237,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listConversionEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listConversionEvents with error', async () => { @@ -7196,26 +7257,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listConversionEvents(request), expectedError); - assert( - (client.innerApiCalls.listConversionEvents as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listConversionEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listConversionEventsStream without error', async () => { @@ -7228,8 +7288,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() @@ -7267,11 +7330,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listConversionEvents, request) ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7285,8 +7349,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); @@ -7313,11 +7380,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listConversionEvents, request) ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7331,8 +7399,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.ConversionEvent() @@ -7359,11 +7430,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7377,8 +7449,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -7396,11 +7471,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -7416,15 +7492,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() @@ -7440,11 +7512,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listCustomDimensions(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomDimensions without error using callback', async () => { @@ -7457,15 +7532,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() @@ -7498,11 +7569,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomDimensions with error', async () => { @@ -7515,26 +7589,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listCustomDimensions = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listCustomDimensions(request), expectedError); - assert( - (client.innerApiCalls.listCustomDimensions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomDimensions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomDimensionsStream without error', async () => { @@ -7547,8 +7620,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() @@ -7586,11 +7662,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomDimensions, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7604,8 +7681,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(undefined, expectedError); @@ -7632,11 +7712,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomDimensions, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7650,8 +7731,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomDimension() @@ -7678,11 +7762,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7696,8 +7781,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -7715,11 +7803,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -7735,15 +7824,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() @@ -7758,11 +7843,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); const [response] = await client.listCustomMetrics(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomMetrics without error using callback', async () => { @@ -7775,15 +7863,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() @@ -7814,11 +7898,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomMetrics with error', async () => { @@ -7831,26 +7918,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listCustomMetrics = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listCustomMetrics(request), expectedError); - assert( - (client.innerApiCalls.listCustomMetrics as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomMetrics as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listCustomMetricsStream without error', async () => { @@ -7863,8 +7949,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() @@ -7902,11 +7991,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomMetrics, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7920,8 +8010,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(undefined, expectedError); @@ -7948,11 +8041,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listCustomMetrics, request) ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -7966,8 +8060,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.CustomMetric() @@ -7994,11 +8091,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -8012,8 +8110,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -8031,11 +8132,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -8051,15 +8153,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() @@ -8074,11 +8172,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); const [response] = await client.listDataStreams(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listDataStreams as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDataStreams without error using callback', async () => { @@ -8091,15 +8192,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() @@ -8130,11 +8227,14 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listDataStreams as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDataStreams with error', async () => { @@ -8147,26 +8247,25 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listDataStreams = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listDataStreams(request), expectedError); - assert( - (client.innerApiCalls.listDataStreams as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataStreams as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listDataStreamsStream without error', async () => { @@ -8179,8 +8278,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() @@ -8217,11 +8319,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listDataStreams, request) ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -8235,8 +8338,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); @@ -8262,11 +8368,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listDataStreams, request) ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -8280,8 +8387,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.analytics.admin.v1beta.DataStream() @@ -8307,11 +8417,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -8325,8 +8436,11 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -8344,11 +8458,12 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); From 78989f90d1c52b8c2ae6a2e51e3559312908dba8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 14:56:35 -0700 Subject: [PATCH 129/142] build: use fully qualified request type name in tests (#226) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test: use fully qualified request type name in tests PiperOrigin-RevId: 475685359 Source-Link: https://github.com/googleapis/googleapis/commit/7a129736313ceb1f277c3b7f7e16d2e04cc901dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/370c729e2ba062a167449c27882ba5f379c5c34d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzcwYzcyOWUyYmEwNjJhMTY3NDQ5YzI3ODgyYmE1ZjM3OWM1YzM0ZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../gapic_analytics_admin_service_v1alpha.ts | 1683 +++++++++-------- .../gapic_analytics_admin_service_v1beta.ts | 1018 +++++----- 2 files changed, 1515 insertions(+), 1186 deletions(-) diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index f6652002763..7ee036ea8b6 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -248,7 +248,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -277,7 +280,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -322,7 +328,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -351,7 +360,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -370,9 +382,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -401,9 +414,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -448,9 +462,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -479,9 +494,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -501,10 +517,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -534,10 +550,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -583,10 +599,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -616,10 +632,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -732,7 +748,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -761,7 +780,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -806,7 +828,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -835,7 +860,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -941,9 +969,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -972,9 +1001,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1019,9 +1049,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1050,9 +1081,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1072,10 +1104,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1105,10 +1137,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1154,10 +1186,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1187,10 +1219,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1209,7 +1241,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1238,7 +1273,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1283,7 +1321,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1312,7 +1353,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('GetUserLinkRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1331,9 +1375,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchGetUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1362,9 +1407,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchGetUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1409,9 +1455,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchGetUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1440,9 +1487,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchGetUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchGetUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1461,9 +1509,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateUserLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1492,9 +1541,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateUserLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1539,9 +1589,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateUserLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1570,9 +1621,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateUserLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateUserLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1591,9 +1643,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1623,9 +1676,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1670,9 +1724,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1701,9 +1756,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchCreateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1723,10 +1779,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); request.userLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ - 'userLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateUserLinkRequest', + ['userLink', 'name'] + ); request.userLink.name = defaultValue1; const expectedHeaderRequestParams = `user_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1756,10 +1812,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); request.userLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ - 'userLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateUserLinkRequest', + ['userLink', 'name'] + ); request.userLink.name = defaultValue1; const expectedHeaderRequestParams = `user_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1805,10 +1861,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); request.userLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ - 'userLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateUserLinkRequest', + ['userLink', 'name'] + ); request.userLink.name = defaultValue1; const expectedHeaderRequestParams = `user_link.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1838,10 +1894,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateUserLinkRequest() ); request.userLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateUserLinkRequest', [ - 'userLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateUserLinkRequest', + ['userLink', 'name'] + ); request.userLink.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1860,9 +1916,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1892,9 +1949,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1939,9 +1997,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1970,9 +2029,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchUpdateUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1991,9 +2051,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2022,9 +2083,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2069,9 +2131,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2100,9 +2163,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteUserLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteUserLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteUserLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2121,9 +2185,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2153,9 +2218,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2200,9 +2266,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2231,9 +2298,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchDeleteUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2252,9 +2320,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2284,9 +2353,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2331,9 +2401,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2362,9 +2433,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2383,9 +2455,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2415,9 +2488,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2462,9 +2536,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2493,9 +2568,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2514,9 +2590,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2545,9 +2622,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2592,9 +2670,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2623,9 +2702,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest() ); - const defaultValue1 = getTypeDefaultValue('GetGlobalSiteTagRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2644,9 +2724,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2676,9 +2757,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2723,9 +2805,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2754,9 +2837,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2776,10 +2860,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2810,10 +2894,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2859,10 +2943,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2892,10 +2976,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2914,9 +2998,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2946,9 +3031,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2993,9 +3079,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3024,9 +3111,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3046,7 +3134,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -3079,7 +3167,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -3127,7 +3215,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -3162,7 +3250,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -3187,7 +3275,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3220,7 +3308,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3268,7 +3356,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3303,7 +3391,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3328,7 +3416,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -3361,7 +3449,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -3409,7 +3497,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -3444,7 +3532,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -3469,7 +3557,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3502,7 +3590,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3550,7 +3638,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3585,7 +3673,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -3611,7 +3699,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -3645,7 +3733,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -3694,7 +3782,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -3730,7 +3818,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -3755,7 +3843,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -3788,7 +3876,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -3836,7 +3924,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -3871,7 +3959,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -3896,7 +3984,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -3929,7 +4017,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -3977,7 +4065,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -4012,7 +4100,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -4038,7 +4126,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.googleSignalsSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest', ['googleSignalsSettings', 'name'] ); request.googleSignalsSettings.name = defaultValue1; @@ -4072,7 +4160,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.googleSignalsSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest', ['googleSignalsSettings', 'name'] ); request.googleSignalsSettings.name = defaultValue1; @@ -4121,7 +4209,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.googleSignalsSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest', ['googleSignalsSettings', 'name'] ); request.googleSignalsSettings.name = defaultValue1; @@ -4157,7 +4245,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.googleSignalsSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateGoogleSignalsSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest', ['googleSignalsSettings', 'name'] ); request.googleSignalsSettings.name = defaultValue1; @@ -4182,7 +4270,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1alpha.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -4215,7 +4303,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1alpha.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -4263,7 +4351,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1alpha.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -4298,7 +4386,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1alpha.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -4322,9 +4410,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4354,9 +4443,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4401,9 +4491,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4432,9 +4523,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4454,7 +4546,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1alpha.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -4487,7 +4579,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1alpha.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -4535,7 +4627,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1alpha.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -4570,7 +4662,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1alpha.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -4595,7 +4687,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -4628,7 +4720,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -4676,7 +4768,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -4711,7 +4803,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -4736,7 +4828,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest', ['parent'] ); request.parent = defaultValue1; @@ -4771,7 +4863,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest', ['parent'] ); request.parent = defaultValue1; @@ -4819,7 +4911,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest', ['parent'] ); request.parent = defaultValue1; @@ -4854,7 +4946,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest', ['parent'] ); request.parent = defaultValue1; @@ -4879,7 +4971,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -4914,7 +5006,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -4962,7 +5054,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -4997,7 +5089,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest', ['name'] ); request.name = defaultValue1; @@ -5023,7 +5115,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.displayVideo_360AdvertiserLink ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest', ['displayVideo_360AdvertiserLink', 'name'] ); request.displayVideo_360AdvertiserLink.name = defaultValue1; @@ -5059,7 +5151,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.displayVideo_360AdvertiserLink ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest', ['displayVideo_360AdvertiserLink', 'name'] ); request.displayVideo_360AdvertiserLink.name = defaultValue1; @@ -5108,7 +5200,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.displayVideo_360AdvertiserLink ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest', ['displayVideo_360AdvertiserLink', 'name'] ); request.displayVideo_360AdvertiserLink.name = defaultValue1; @@ -5144,7 +5236,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.displayVideo_360AdvertiserLink ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDisplayVideo360AdvertiserLinkRequest', + '.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest', ['displayVideo_360AdvertiserLink', 'name'] ); request.displayVideo_360AdvertiserLink.name = defaultValue1; @@ -5169,7 +5261,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5206,7 +5298,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5256,7 +5348,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5291,7 +5383,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5316,7 +5408,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest', ['parent'] ); request.parent = defaultValue1; @@ -5352,7 +5444,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest', ['parent'] ); request.parent = defaultValue1; @@ -5402,7 +5494,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest', ['parent'] ); request.parent = defaultValue1; @@ -5437,7 +5529,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest', ['parent'] ); request.parent = defaultValue1; @@ -5462,7 +5554,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5498,7 +5590,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5548,7 +5640,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5583,7 +5675,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5608,7 +5700,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5644,7 +5736,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5694,7 +5786,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5729,7 +5821,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ApproveDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5754,7 +5846,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5790,7 +5882,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5840,7 +5932,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5875,7 +5967,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CancelDisplayVideo360AdvertiserLinkProposalRequest', + '.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest', ['name'] ); request.name = defaultValue1; @@ -5900,7 +5992,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -5933,7 +6025,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -5981,7 +6073,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -6016,7 +6108,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -6042,7 +6134,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -6076,7 +6168,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -6125,7 +6217,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -6161,7 +6253,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -6186,7 +6278,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -6219,7 +6311,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -6267,7 +6359,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -6302,7 +6394,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -6326,9 +6418,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6358,9 +6451,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6405,9 +6499,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6436,9 +6531,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -6457,9 +6553,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6489,9 +6586,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6536,9 +6634,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6567,9 +6666,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -6589,10 +6689,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6623,10 +6723,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6672,10 +6772,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6705,10 +6805,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -6727,9 +6827,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6759,9 +6860,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6806,9 +6908,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6837,9 +6940,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -6858,9 +6962,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6889,9 +6994,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -6936,9 +7042,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6967,9 +7074,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -6989,7 +7097,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -7022,7 +7130,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -7070,7 +7178,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -7105,7 +7213,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -7131,7 +7239,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -7165,7 +7273,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -7214,7 +7322,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -7250,7 +7358,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -7274,9 +7382,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7305,9 +7414,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7352,9 +7462,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7383,9 +7494,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -7404,9 +7516,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7435,9 +7548,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7482,9 +7596,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7513,9 +7628,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -7535,10 +7651,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7568,10 +7684,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7616,11 +7732,11 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); - request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + request.dataStream ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7650,10 +7766,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateDataStreamRequest() ); request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -7672,9 +7788,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7703,9 +7820,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7750,9 +7868,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7781,9 +7900,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -7802,7 +7922,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7831,7 +7954,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7876,7 +8002,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7905,7 +8034,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.GetAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAudienceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -7924,9 +8056,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAudienceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -7955,9 +8088,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAudienceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -8002,9 +8136,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAudienceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8033,9 +8168,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.CreateAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAudienceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAudienceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -8055,10 +8191,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); request.audience ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ - 'audience', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAudienceRequest', + ['audience', 'name'] + ); request.audience.name = defaultValue1; const expectedHeaderRequestParams = `audience.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -8088,10 +8224,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); request.audience ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ - 'audience', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAudienceRequest', + ['audience', 'name'] + ); request.audience.name = defaultValue1; const expectedHeaderRequestParams = `audience.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -8137,10 +8273,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); request.audience ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ - 'audience', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAudienceRequest', + ['audience', 'name'] + ); request.audience.name = defaultValue1; const expectedHeaderRequestParams = `audience.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8170,10 +8306,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.UpdateAudienceRequest() ); request.audience ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAudienceRequest', [ - 'audience', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAudienceRequest', + ['audience', 'name'] + ); request.audience.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -8192,9 +8328,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -8223,9 +8360,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -8270,9 +8408,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8301,9 +8440,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ArchiveAudienceRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveAudienceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ArchiveAudienceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -8323,7 +8463,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -8356,7 +8496,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -8404,7 +8544,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -8439,7 +8579,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -8465,7 +8605,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', ['attributionSettings', 'name'] ); request.attributionSettings.name = defaultValue1; @@ -8499,7 +8639,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', ['attributionSettings', 'name'] ); request.attributionSettings.name = defaultValue1; @@ -8548,7 +8688,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', ['attributionSettings', 'name'] ); request.attributionSettings.name = defaultValue1; @@ -8584,7 +8724,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', ['attributionSettings', 'name'] ); request.attributionSettings.name = defaultValue1; @@ -8608,9 +8748,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ - 'entity', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); request.entity = defaultValue1; const expectedHeaderRequestParams = `entity=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -8639,9 +8780,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ - 'entity', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); request.entity = defaultValue1; const expectedHeaderRequestParams = `entity=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -8686,9 +8828,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ - 'entity', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); request.entity = defaultValue1; const expectedHeaderRequestParams = `entity=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8717,9 +8860,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAccessReportRequest', [ - 'entity', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); request.entity = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -9461,9 +9605,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -9500,9 +9645,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -9555,9 +9701,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -9586,9 +9733,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -9646,9 +9794,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -9695,9 +9844,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -9744,9 +9894,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -9786,9 +9937,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -9825,9 +9977,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -9882,9 +10035,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -9913,9 +10067,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -9974,9 +10129,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10024,9 +10180,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10074,9 +10231,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('AuditUserLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10117,9 +10275,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10156,9 +10315,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10213,9 +10373,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10244,9 +10405,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10305,9 +10467,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10355,9 +10518,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10405,9 +10569,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10448,9 +10613,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10488,9 +10654,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10545,9 +10712,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10576,9 +10744,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10637,9 +10806,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10687,9 +10857,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -10737,9 +10908,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -10781,7 +10953,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -10822,7 +10994,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -10880,7 +11052,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -10915,7 +11087,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -10988,7 +11160,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -11050,7 +11222,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -11105,7 +11277,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -11153,7 +11325,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -11194,7 +11366,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -11252,7 +11424,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -11287,7 +11459,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -11357,7 +11529,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -11416,7 +11588,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -11471,7 +11643,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -11518,9 +11690,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -11558,9 +11731,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -11615,9 +11789,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -11646,9 +11821,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -11707,9 +11883,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -11757,9 +11934,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -11807,9 +11985,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -11851,7 +12030,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', ['parent'] ); request.parent = defaultValue1; @@ -11894,7 +12073,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', ['parent'] ); request.parent = defaultValue1; @@ -11952,7 +12131,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', ['parent'] ); request.parent = defaultValue1; @@ -11987,7 +12166,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', ['parent'] ); request.parent = defaultValue1; @@ -12060,7 +12239,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', ['parent'] ); request.parent = defaultValue1; @@ -12122,7 +12301,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', ['parent'] ); request.parent = defaultValue1; @@ -12177,7 +12356,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', ['parent'] ); request.parent = defaultValue1; @@ -12225,7 +12404,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; @@ -12269,7 +12448,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; @@ -12329,7 +12508,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; @@ -12364,7 +12543,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; @@ -12438,7 +12617,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; @@ -12501,7 +12680,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; @@ -12557,7 +12736,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; @@ -12605,9 +12784,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -12645,9 +12825,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -12702,9 +12883,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -12733,9 +12915,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -12794,9 +12977,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -12844,9 +13028,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -12894,9 +13079,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -12937,9 +13123,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -12976,9 +13163,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13033,9 +13221,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13064,9 +13253,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13125,9 +13315,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13175,9 +13366,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13225,9 +13417,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13268,9 +13461,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13307,9 +13501,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13362,9 +13557,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13393,9 +13589,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13454,9 +13651,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13504,9 +13702,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13553,9 +13752,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13596,9 +13796,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListAudiencesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13635,9 +13836,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListAudiencesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13690,9 +13892,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListAudiencesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13721,9 +13924,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListAudiencesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13781,9 +13985,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListAudiencesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -13830,9 +14035,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListAudiencesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -13879,9 +14085,10 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAudiencesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListAudiencesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts index 76d3b790c8a..bce6a388254 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1beta.ts @@ -248,7 +248,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -277,7 +280,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -322,7 +328,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -351,7 +360,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('GetAccountRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -370,9 +382,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -401,9 +414,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -448,9 +462,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -479,9 +494,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteAccountRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAccountRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteAccountRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -501,10 +517,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -534,10 +550,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -583,10 +599,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedHeaderRequestParams = `account.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -616,10 +632,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateAccountRequest() ); request.account ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateAccountRequest', [ - 'account', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateAccountRequest', + ['account', 'name'] + ); request.account.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -732,7 +748,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -761,7 +780,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -806,7 +828,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -835,7 +860,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetPropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPropertyRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetPropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -941,9 +969,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -972,9 +1001,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1019,9 +1049,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1050,9 +1081,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeletePropertyRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePropertyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeletePropertyRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1072,10 +1104,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1105,10 +1137,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1154,10 +1186,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedHeaderRequestParams = `property.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1187,10 +1219,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdatePropertyRequest() ); request.property ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePropertyRequest', [ - 'property', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdatePropertyRequest', + ['property', 'name'] + ); request.property.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1209,9 +1241,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1241,9 +1274,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1288,9 +1322,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1319,9 +1354,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFirebaseLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateFirebaseLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1340,9 +1376,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1372,9 +1409,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1419,9 +1457,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1450,9 +1489,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteFirebaseLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1471,9 +1511,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1503,9 +1544,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1550,9 +1592,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1581,9 +1624,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateGoogleAdsLinkRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1603,10 +1647,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1637,10 +1681,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1686,10 +1730,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedHeaderRequestParams = `google_ads_link.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1719,10 +1763,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest() ); request.googleAdsLink ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateGoogleAdsLinkRequest', [ - 'googleAdsLink', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest', + ['googleAdsLink', 'name'] + ); request.googleAdsLink.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1741,9 +1785,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1773,9 +1818,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1820,9 +1866,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1851,9 +1898,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteGoogleAdsLinkRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1873,7 +1921,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1beta.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1906,7 +1954,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1beta.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1954,7 +2002,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1beta.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1989,7 +2037,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataSharingSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataSharingSettingsRequest', + '.google.analytics.admin.v1beta.GetDataSharingSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -2014,7 +2062,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2047,7 +2095,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2095,7 +2143,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2130,7 +2178,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2155,7 +2203,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -2188,7 +2236,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -2236,7 +2284,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -2271,7 +2319,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest', ['parent'] ); request.parent = defaultValue1; @@ -2296,7 +2344,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2329,7 +2377,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2377,7 +2425,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2412,7 +2460,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest', ['name'] ); request.name = defaultValue1; @@ -2438,7 +2486,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -2472,7 +2520,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -2521,7 +2569,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -2557,7 +2605,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.measurementProtocolSecret ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateMeasurementProtocolSecretRequest', + '.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest', ['measurementProtocolSecret', 'name'] ); request.measurementProtocolSecret.name = defaultValue1; @@ -2582,7 +2630,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -2615,7 +2663,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -2663,7 +2711,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -2698,7 +2746,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'AcknowledgeUserDataCollectionRequest', + '.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest', ['property'] ); request.property = defaultValue1; @@ -2723,7 +2771,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1beta.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -2756,7 +2804,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1beta.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -2804,7 +2852,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1beta.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -2839,7 +2887,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConversionEventRequest', + '.google.analytics.admin.v1beta.CreateConversionEventRequest', ['parent'] ); request.parent = defaultValue1; @@ -2863,9 +2911,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2895,9 +2944,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2942,9 +2992,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2973,9 +3024,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetConversionEventRequest() ); - const defaultValue1 = getTypeDefaultValue('GetConversionEventRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetConversionEventRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2995,7 +3047,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1beta.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -3028,7 +3080,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1beta.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -3076,7 +3128,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1beta.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -3111,7 +3163,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.DeleteConversionEventRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConversionEventRequest', + '.google.analytics.admin.v1beta.DeleteConversionEventRequest', ['name'] ); request.name = defaultValue1; @@ -3136,7 +3188,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1beta.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -3169,7 +3221,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1beta.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -3217,7 +3269,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1beta.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -3252,7 +3304,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.CreateCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateCustomDimensionRequest', + '.google.analytics.admin.v1beta.CreateCustomDimensionRequest', ['parent'] ); request.parent = defaultValue1; @@ -3278,7 +3330,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1beta.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -3312,7 +3364,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1beta.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -3361,7 +3413,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1beta.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -3397,7 +3449,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.customDimension ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateCustomDimensionRequest', + '.google.analytics.admin.v1beta.UpdateCustomDimensionRequest', ['customDimension', 'name'] ); request.customDimension.name = defaultValue1; @@ -3422,7 +3474,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -3455,7 +3507,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -3503,7 +3555,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -3538,7 +3590,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ArchiveCustomDimensionRequest', + '.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest', ['name'] ); request.name = defaultValue1; @@ -3562,9 +3614,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3594,9 +3647,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3641,9 +3695,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3672,9 +3727,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomDimensionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomDimensionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomDimensionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3693,9 +3749,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3725,9 +3782,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3772,9 +3830,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3803,9 +3862,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomMetricRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateCustomMetricRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3825,10 +3885,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3859,10 +3919,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3908,10 +3968,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedHeaderRequestParams = `custom_metric.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3941,10 +4001,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateCustomMetricRequest() ); request.customMetric ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomMetricRequest', [ - 'customMetric', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateCustomMetricRequest', + ['customMetric', 'name'] + ); request.customMetric.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3963,9 +4023,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3995,9 +4056,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4042,9 +4104,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4073,9 +4136,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ArchiveCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('ArchiveCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ArchiveCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4094,9 +4158,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4125,9 +4190,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4172,9 +4238,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4203,9 +4270,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetCustomMetricRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomMetricRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetCustomMetricRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4225,7 +4293,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -4258,7 +4326,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -4306,7 +4374,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -4341,7 +4409,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -4367,7 +4435,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -4401,7 +4469,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -4450,7 +4518,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -4486,7 +4554,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { ); request.dataRetentionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateDataRetentionSettingsRequest', + '.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest', ['dataRetentionSettings', 'name'] ); request.dataRetentionSettings.name = defaultValue1; @@ -4510,9 +4578,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4541,9 +4610,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4588,9 +4658,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4619,9 +4690,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.CreateDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateDataStreamRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.CreateDataStreamRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4640,9 +4712,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4671,9 +4744,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4718,9 +4792,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4749,9 +4824,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.DeleteDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.DeleteDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4771,10 +4847,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4804,10 +4880,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4853,10 +4929,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedHeaderRequestParams = `data_stream.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4886,10 +4962,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.UpdateDataStreamRequest() ); request.dataStream ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateDataStreamRequest', [ - 'dataStream', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.UpdateDataStreamRequest', + ['dataStream', 'name'] + ); request.dataStream.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4908,9 +4984,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4939,9 +5016,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -4986,9 +5064,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5017,9 +5096,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.GetDataStreamRequest() ); - const defaultValue1 = getTypeDefaultValue('GetDataStreamRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.GetDataStreamRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -5761,9 +5841,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5800,9 +5881,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5855,9 +5937,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5886,9 +5969,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5947,9 +6031,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5997,9 +6082,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6047,9 +6133,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListFirebaseLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFirebaseLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListFirebaseLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6090,9 +6177,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6130,9 +6218,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6187,9 +6276,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6218,9 +6308,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6279,9 +6370,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6329,9 +6421,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6379,9 +6472,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest() ); - const defaultValue1 = getTypeDefaultValue('ListGoogleAdsLinksRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6423,7 +6517,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6464,7 +6558,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6522,7 +6616,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6557,7 +6651,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6630,7 +6724,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6692,7 +6786,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6747,7 +6841,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6795,7 +6889,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -6836,7 +6930,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -6894,7 +6988,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -6929,7 +7023,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -6999,7 +7093,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -7058,7 +7152,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -7113,7 +7207,7 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { new protos.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SearchChangeHistoryEventsRequest', + '.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest', ['account'] ); request.account = defaultValue1; @@ -7160,9 +7254,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7200,9 +7295,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7257,9 +7353,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7288,9 +7385,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7349,9 +7447,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7399,9 +7498,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7449,9 +7549,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListConversionEventsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListConversionEventsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListConversionEventsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7492,9 +7593,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7532,9 +7634,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7589,9 +7692,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7620,9 +7724,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7681,9 +7786,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7731,9 +7837,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7781,9 +7888,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomDimensionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomDimensionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomDimensionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7824,9 +7932,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7863,9 +7972,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -7918,9 +8028,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -7949,9 +8060,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -8010,9 +8122,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8060,9 +8173,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -8110,9 +8224,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListCustomMetricsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomMetricsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListCustomMetricsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8153,9 +8268,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -8192,9 +8308,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -8247,9 +8364,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8278,9 +8396,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -8338,9 +8457,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -8387,9 +8507,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -8436,9 +8557,10 @@ describe('v1beta.AnalyticsAdminServiceClient', () => { const request = generateSampleMessage( new protos.google.analytics.admin.v1beta.ListDataStreamsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListDataStreamsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1beta.ListDataStreamsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); From a09af0b10329f8f07a180163b9f8ba3b567abeef Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 2 Nov 2022 14:56:27 -0700 Subject: [PATCH 130/142] fix(deps): use google-gax v3.5.2 (#230) - fix(deps): use google-gax v3.5.2 - fix: add comma --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 7740468be38..c37a9ed82ca 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "google-auth-library": "^8.0.2", - "google-gax": "^3.3.0", + "google-gax": "^3.5.2", "server-destroy": "^1.0.1" }, "devDependencies": { From af6ea479d8021354aa40567df2fba72ec5c75ec6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Nov 2022 10:26:27 +0100 Subject: [PATCH 131/142] chore(deps): update dependency @types/node to v18 (#228) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`^16.0.0` -> `^18.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/16.18.3/18.11.9) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/compatibility-slim/16.18.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/confidence-slim/16.18.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index c37a9ed82ca..f6ea4c9f6fe 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -45,7 +45,7 @@ }, "devDependencies": { "@types/mocha": "^9.0.0", - "@types/node": "^16.0.0", + "@types/node": "^18.0.0", "@types/sinon": "^10.0.0", "c8": "^7.2.0", "gts": "^3.1.0", From c52b580ea4b4b14900803971c1f62789b1f79dcb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Nov 2022 11:08:17 +0100 Subject: [PATCH 132/142] chore(deps): update dependency jsdoc to v4 (#232) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jsdoc](https://togithub.com/jsdoc/jsdoc) | [`^3.6.4` -> `^4.0.0`](https://renovatebot.com/diffs/npm/jsdoc/3.6.11/4.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/compatibility-slim/3.6.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/confidence-slim/3.6.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
jsdoc/jsdoc ### [`v4.0.0`](https://togithub.com/jsdoc/jsdoc/blob/HEAD/CHANGES.md#​400-November-2022) [Compare Source](https://togithub.com/jsdoc/jsdoc/compare/3.6.11...084218523a7d69fec14a852ce680f374f526af28) - JSDoc releases now use [semantic versioning](https://semver.org/). If JSDoc makes backwards-incompatible changes in the future, the major version will be incremented. - JSDoc no longer uses the [`taffydb`](https://taffydb.com/) package. If your JSDoc template or plugin uses the `taffydb` package, see the [instructions for replacing `taffydb` with `@jsdoc/salty`](https://togithub.com/jsdoc/jsdoc/tree/main/packages/jsdoc-salty#use-salty-in-a-jsdoc-template). - JSDoc now supports Node.js 12.0.0 and later.
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-analytics-admin). --- packages/google-analytics-admin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index f6ea4c9f6fe..7e087f6ebca 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -49,7 +49,7 @@ "@types/sinon": "^10.0.0", "c8": "^7.2.0", "gts": "^3.1.0", - "jsdoc": "^3.6.4", + "jsdoc": "^4.0.0", "jsdoc-fresh": "^2.0.0", "jsdoc-region-tag": "^2.0.0", "linkinator": "^4.0.0", From 26366e2277bf265f23380dab96d3d9c35a4eb42e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 11 Nov 2022 09:44:14 +0000 Subject: [PATCH 133/142] fix: regenerated protos JS and TS definitions (#233) samples: pull in latest typeless bot, clean up some comments Source-Link: https://togithub.com/googleapis/synthtool/commit/0a68e568b6911b60bb6fd452eba4848b176031d8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:5b05f26103855c3a15433141389c478d1d3fe088fb5d4e3217c4793f6b3f245e --- .../google-analytics-admin/protos/protos.d.ts | 2 +- .../google-analytics-admin/protos/protos.js | 432 +++++++++++++++--- 2 files changed, 377 insertions(+), 57 deletions(-) diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 02425656792..9f86d3eba41 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Long = require("long"); import type {protobuf as $protobuf} from "google-gax"; +import Long = require("long"); /** Namespace google. */ export namespace google { diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index cc6bfe3a073..d8ccad45b75 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -1807,6 +1807,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.AccessStringFilter(); switch (object.matchType) { + default: + if (typeof object.matchType === "number") { + message.matchType = object.matchType; + break; + } + break; case "MATCH_TYPE_UNSPECIFIED": case 0: message.matchType = 0; @@ -1862,7 +1868,7 @@ object.caseSensitive = false; } if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessStringFilter.MatchType[message.matchType] : message.matchType; + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessStringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.AccessStringFilter.MatchType[message.matchType] : message.matchType; if (message.value != null && message.hasOwnProperty("value")) object.value = message.value; if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) @@ -2345,6 +2351,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.AccessNumericFilter(); switch (object.operation) { + default: + if (typeof object.operation === "number") { + message.operation = object.operation; + break; + } + break; case "OPERATION_UNSPECIFIED": case 0: message.operation = 0; @@ -2396,7 +2408,7 @@ object.value = null; } if (message.operation != null && message.hasOwnProperty("operation")) - object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessNumericFilter.Operation[message.operation] : message.operation; + object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessNumericFilter.Operation[message.operation] === undefined ? message.operation : $root.google.analytics.admin.v1alpha.AccessNumericFilter.Operation[message.operation] : message.operation; if (message.value != null && message.hasOwnProperty("value")) object.value = $root.google.analytics.admin.v1alpha.NumericValue.toObject(message.value, options); return object; @@ -3613,6 +3625,12 @@ if (object.dimensionName != null) message.dimensionName = String(object.dimensionName); switch (object.orderType) { + default: + if (typeof object.orderType === "number") { + message.orderType = object.orderType; + break; + } + break; case "ORDER_TYPE_UNSPECIFIED": case 0: message.orderType = 0; @@ -3653,7 +3671,7 @@ if (message.dimensionName != null && message.hasOwnProperty("dimensionName")) object.dimensionName = message.dimensionName; if (message.orderType != null && message.hasOwnProperty("orderType")) - object.orderType = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType[message.orderType] : message.orderType; + object.orderType = options.enums === String ? $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType[message.orderType] === undefined ? message.orderType : $root.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType[message.orderType] : message.orderType; return object; }; @@ -19130,6 +19148,10 @@ for (var i = 0; i < object.resourceType.length; ++i) switch (object.resourceType[i]) { default: + if (typeof object.resourceType[i] === "number") { + message.resourceType[i] = object.resourceType[i]; + break; + } case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": case 0: message.resourceType[i] = 0; @@ -19203,6 +19225,10 @@ for (var i = 0; i < object.action.length; ++i) switch (object.action[i]) { default: + if (typeof object.action[i] === "number") { + message.action[i] = object.action[i]; + break; + } case "ACTION_TYPE_UNSPECIFIED": case 0: message.action[i] = 0; @@ -19278,12 +19304,12 @@ if (message.resourceType && message.resourceType.length) { object.resourceType = []; for (var j = 0; j < message.resourceType.length; ++j) - object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; + object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] === undefined ? message.resourceType[j] : $root.google.analytics.admin.v1alpha.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; } if (message.action && message.action.length) { object.action = []; for (var j = 0; j < message.action.length; ++j) - object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; + object.action[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] === undefined ? message.action[j] : $root.google.analytics.admin.v1alpha.ActionType[message.action[j]] : message.action[j]; } if (message.actorEmail && message.actorEmail.length) { object.actorEmail = []; @@ -32636,6 +32662,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); switch (object.matchType) { + default: + if (typeof object.matchType === "number") { + message.matchType = object.matchType; + break; + } + break; case "MATCH_TYPE_UNSPECIFIED": case 0: message.matchType = 0; @@ -32691,7 +32723,7 @@ object.caseSensitive = false; } if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] : message.matchType; + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] : message.matchType; if (message.value != null && message.hasOwnProperty("value")) object.value = message.value; if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) @@ -33434,6 +33466,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); switch (object.operation) { + default: + if (typeof object.operation === "number") { + message.operation = object.operation; + break; + } + break; case "OPERATION_UNSPECIFIED": case 0: message.operation = 0; @@ -33485,7 +33523,7 @@ object.value = null; } if (message.operation != null && message.hasOwnProperty("operation")) - object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] : message.operation; + object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] === undefined ? message.operation : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] : message.operation; if (message.value != null && message.hasOwnProperty("value")) object.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.value, options); return object; @@ -34782,6 +34820,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -34825,7 +34869,7 @@ object.filterExpression = null; } if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); return object; @@ -35065,6 +35109,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -35120,7 +35170,7 @@ object.sequenceMaximumDuration = null; } if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) object.sequenceMaximumDuration = $root.google.protobuf.Duration.toObject(message.sequenceMaximumDuration, options); if (message.sequenceSteps && message.sequenceSteps.length) { @@ -35372,6 +35422,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -35424,7 +35480,7 @@ object.filterExpression = null; } if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) object.immediatelyFollows = message.immediatelyFollows; if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) @@ -35695,6 +35751,12 @@ message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.fromObject(object.sequenceFilter); } switch (object.clauseType) { + default: + if (typeof object.clauseType === "number") { + message.clauseType = object.clauseType; + break; + } + break; case "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED": case 0: message.clauseType = 0; @@ -35727,7 +35789,7 @@ if (options.defaults) object.clauseType = options.enums === String ? "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED" : 0; if (message.clauseType != null && message.hasOwnProperty("clauseType")) - object.clauseType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] : message.clauseType; + object.clauseType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] === undefined ? message.clauseType : $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] : message.clauseType; if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { object.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.toObject(message.simpleFilter, options); if (options.oneofs) @@ -35962,6 +36024,12 @@ if (object.eventName != null) message.eventName = String(object.eventName); switch (object.logCondition) { + default: + if (typeof object.logCondition === "number") { + message.logCondition = object.logCondition; + break; + } + break; case "LOG_CONDITION_UNSPECIFIED": case 0: message.logCondition = 0; @@ -35998,7 +36066,7 @@ if (message.eventName != null && message.hasOwnProperty("eventName")) object.eventName = message.eventName; if (message.logCondition != null && message.hasOwnProperty("logCondition")) - object.logCondition = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] : message.logCondition; + object.logCondition = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] === undefined ? message.logCondition : $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] : message.logCondition; return object; }; @@ -36356,6 +36424,12 @@ message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.fromObject(object.eventTrigger); } switch (object.exclusionDurationMode) { + default: + if (typeof object.exclusionDurationMode === "number") { + message.exclusionDurationMode = object.exclusionDurationMode; + break; + } + break; case "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED": case 0: message.exclusionDurationMode = 0; @@ -36419,7 +36493,7 @@ if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) object.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.toObject(message.eventTrigger, options); if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) - object.exclusionDurationMode = options.enums === String ? $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] : message.exclusionDurationMode; + object.exclusionDurationMode = options.enums === String ? $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] === undefined ? message.exclusionDurationMode : $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] : message.exclusionDurationMode; if (message.filterClauses && message.filterClauses.length) { object.filterClauses = []; for (var j = 0; j < message.filterClauses.length; ++j) @@ -37469,6 +37543,12 @@ if (object.name != null) message.name = String(object.name); switch (object.propertyType) { + default: + if (typeof object.propertyType === "number") { + message.propertyType = object.propertyType; + break; + } + break; case "PROPERTY_TYPE_UNSPECIFIED": case 0: message.propertyType = 0; @@ -37501,6 +37581,12 @@ if (object.displayName != null) message.displayName = String(object.displayName); switch (object.industryCategory) { + default: + if (typeof object.industryCategory === "number") { + message.industryCategory = object.industryCategory; + break; + } + break; case "INDUSTRY_CATEGORY_UNSPECIFIED": case 0: message.industryCategory = 0; @@ -37615,6 +37701,12 @@ if (object.currencyCode != null) message.currencyCode = String(object.currencyCode); switch (object.serviceLevel) { + default: + if (typeof object.serviceLevel === "number") { + message.serviceLevel = object.serviceLevel; + break; + } + break; case "SERVICE_LEVEL_UNSPECIFIED": case 0: message.serviceLevel = 0; @@ -37682,13 +37774,13 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] === undefined ? message.industryCategory : $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; if (message.timeZone != null && message.hasOwnProperty("timeZone")) object.timeZone = message.timeZone; if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) object.currencyCode = message.currencyCode; if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; + object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); if (message.expireTime != null && message.hasOwnProperty("expireTime")) @@ -37696,7 +37788,7 @@ if (message.account != null && message.hasOwnProperty("account")) object.account = message.account; if (message.propertyType != null && message.hasOwnProperty("propertyType")) - object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; return object; }; @@ -38067,6 +38159,12 @@ if (object.name != null) message.name = String(object.name); switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "DATA_STREAM_TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -38122,7 +38220,7 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] : message.type; + object.type = options.enums === String ? $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] === undefined ? message.type : $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] : message.type; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.createTime != null && message.hasOwnProperty("createTime")) @@ -41140,6 +41238,12 @@ if (object.displayName != null) message.displayName = String(object.displayName); switch (object.propertyType) { + default: + if (typeof object.propertyType === "number") { + message.propertyType = object.propertyType; + break; + } + break; case "PROPERTY_TYPE_UNSPECIFIED": case 0: message.propertyType = 0; @@ -41186,7 +41290,7 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.propertyType != null && message.hasOwnProperty("propertyType")) - object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; return object; @@ -41737,6 +41841,12 @@ message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); } switch (object.actorType) { + default: + if (typeof object.actorType === "number") { + message.actorType = object.actorType; + break; + } + break; case "ACTOR_TYPE_UNSPECIFIED": case 0: message.actorType = 0; @@ -41798,7 +41908,7 @@ if (message.changeTime != null && message.hasOwnProperty("changeTime")) object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); if (message.actorType != null && message.hasOwnProperty("actorType")) - object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; + object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] === undefined ? message.actorType : $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) object.userActorEmail = message.userActorEmail; if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) @@ -42057,6 +42167,12 @@ if (object.resource != null) message.resource = String(object.resource); switch (object.action) { + default: + if (typeof object.action === "number") { + message.action = object.action; + break; + } + break; case "ACTION_TYPE_UNSPECIFIED": case 0: message.action = 0; @@ -42109,7 +42225,7 @@ if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; + object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] === undefined ? message.action : $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) @@ -43749,6 +43865,12 @@ return object; var message = new $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); switch (object.linkProposalInitiatingProduct) { + default: + if (typeof object.linkProposalInitiatingProduct === "number") { + message.linkProposalInitiatingProduct = object.linkProposalInitiatingProduct; + break; + } + break; case "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED": case 0: message.linkProposalInitiatingProduct = 0; @@ -43765,6 +43887,12 @@ if (object.requestorEmail != null) message.requestorEmail = String(object.requestorEmail); switch (object.linkProposalState) { + default: + if (typeof object.linkProposalState === "number") { + message.linkProposalState = object.linkProposalState; + break; + } + break; case "LINK_PROPOSAL_STATE_UNSPECIFIED": case 0: message.linkProposalState = 0; @@ -43816,11 +43944,11 @@ object.linkProposalState = options.enums === String ? "LINK_PROPOSAL_STATE_UNSPECIFIED" : 0; } if (message.linkProposalInitiatingProduct != null && message.hasOwnProperty("linkProposalInitiatingProduct")) - object.linkProposalInitiatingProduct = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] : message.linkProposalInitiatingProduct; + object.linkProposalInitiatingProduct = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] === undefined ? message.linkProposalInitiatingProduct : $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] : message.linkProposalInitiatingProduct; if (message.requestorEmail != null && message.hasOwnProperty("requestorEmail")) object.requestorEmail = message.requestorEmail; if (message.linkProposalState != null && message.hasOwnProperty("linkProposalState")) - object.linkProposalState = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] : message.linkProposalState; + object.linkProposalState = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] === undefined ? message.linkProposalState : $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] : message.linkProposalState; return object; }; @@ -44354,6 +44482,12 @@ 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 "GOOGLE_SIGNALS_STATE_UNSPECIFIED": case 0: message.state = 0; @@ -44368,6 +44502,12 @@ break; } switch (object.consent) { + default: + if (typeof object.consent === "number") { + message.consent = object.consent; + break; + } + break; case "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED": case 0: message.consent = 0; @@ -44405,9 +44545,9 @@ 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.analytics.admin.v1alpha.GoogleSignalsState[message.state] : message.state; + object.state = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsState[message.state] === undefined ? message.state : $root.google.analytics.admin.v1alpha.GoogleSignalsState[message.state] : message.state; if (message.consent != null && message.hasOwnProperty("consent")) - object.consent = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] : message.consent; + object.consent = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] === undefined ? message.consent : $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] : message.consent; return object; }; @@ -44694,6 +44834,12 @@ if (object.description != null) message.description = String(object.description); switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "DIMENSION_SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -44742,7 +44888,7 @@ if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] : message.scope; if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) object.disallowAdsPersonalization = message.disallowAdsPersonalization; return object; @@ -45100,6 +45246,12 @@ if (object.description != null) message.description = String(object.description); switch (object.measurementUnit) { + default: + if (typeof object.measurementUnit === "number") { + message.measurementUnit = object.measurementUnit; + break; + } + break; case "MEASUREMENT_UNIT_UNSPECIFIED": case 0: message.measurementUnit = 0; @@ -45146,6 +45298,12 @@ break; } switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "METRIC_SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -45162,6 +45320,10 @@ for (var i = 0; i < object.restrictedMetricType.length; ++i) switch (object.restrictedMetricType[i]) { default: + if (typeof object.restrictedMetricType[i] === "number") { + message.restrictedMetricType[i] = object.restrictedMetricType[i]; + break; + } case "RESTRICTED_METRIC_TYPE_UNSPECIFIED": case 0: message.restrictedMetricType[i] = 0; @@ -45211,13 +45373,13 @@ if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) - object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; + object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] === undefined ? message.measurementUnit : $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] : message.scope; if (message.restrictedMetricType && message.restrictedMetricType.length) { object.restrictedMetricType = []; for (var j = 0; j < message.restrictedMetricType.length; ++j) - object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; + object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] === undefined ? message.restrictedMetricType[j] : $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; } return object; }; @@ -45510,6 +45672,12 @@ if (object.name != null) message.name = String(object.name); switch (object.eventDataRetention) { + default: + if (typeof object.eventDataRetention === "number") { + message.eventDataRetention = object.eventDataRetention; + break; + } + break; case "RETENTION_DURATION_UNSPECIFIED": case 0: message.eventDataRetention = 0; @@ -45561,7 +45729,7 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) - object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; + object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] === undefined ? message.eventDataRetention : $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) object.resetUserDataOnNewActivity = message.resetUserDataOnNewActivity; return object; @@ -45848,6 +46016,12 @@ if (object.name != null) message.name = String(object.name); switch (object.acquisitionConversionEventLookbackWindow) { + default: + if (typeof object.acquisitionConversionEventLookbackWindow === "number") { + message.acquisitionConversionEventLookbackWindow = object.acquisitionConversionEventLookbackWindow; + break; + } + break; case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": case 0: message.acquisitionConversionEventLookbackWindow = 0; @@ -45862,6 +46036,12 @@ break; } switch (object.otherConversionEventLookbackWindow) { + default: + if (typeof object.otherConversionEventLookbackWindow === "number") { + message.otherConversionEventLookbackWindow = object.otherConversionEventLookbackWindow; + break; + } + break; case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": case 0: message.otherConversionEventLookbackWindow = 0; @@ -45880,6 +46060,12 @@ break; } switch (object.reportingAttributionModel) { + default: + if (typeof object.reportingAttributionModel === "number") { + message.reportingAttributionModel = object.reportingAttributionModel; + break; + } + break; case "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED": case 0: message.reportingAttributionModel = 0; @@ -45938,11 +46124,11 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.acquisitionConversionEventLookbackWindow != null && message.hasOwnProperty("acquisitionConversionEventLookbackWindow")) - object.acquisitionConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] : message.acquisitionConversionEventLookbackWindow; + object.acquisitionConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] === undefined ? message.acquisitionConversionEventLookbackWindow : $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] : message.acquisitionConversionEventLookbackWindow; if (message.otherConversionEventLookbackWindow != null && message.hasOwnProperty("otherConversionEventLookbackWindow")) - object.otherConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] : message.otherConversionEventLookbackWindow; + object.otherConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] === undefined ? message.otherConversionEventLookbackWindow : $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] : message.otherConversionEventLookbackWindow; if (message.reportingAttributionModel != null && message.hasOwnProperty("reportingAttributionModel")) - object.reportingAttributionModel = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] : message.reportingAttributionModel; + object.reportingAttributionModel = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] === undefined ? message.reportingAttributionModel : $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] : message.reportingAttributionModel; return object; }; @@ -54135,6 +54321,10 @@ for (var i = 0; i < object.resourceType.length; ++i) switch (object.resourceType[i]) { default: + if (typeof object.resourceType[i] === "number") { + message.resourceType[i] = object.resourceType[i]; + break; + } case "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED": case 0: message.resourceType[i] = 0; @@ -54196,6 +54386,10 @@ for (var i = 0; i < object.action.length; ++i) switch (object.action[i]) { default: + if (typeof object.action[i] === "number") { + message.action[i] = object.action[i]; + break; + } case "ACTION_TYPE_UNSPECIFIED": case 0: message.action[i] = 0; @@ -54271,12 +54465,12 @@ if (message.resourceType && message.resourceType.length) { object.resourceType = []; for (var j = 0; j < message.resourceType.length; ++j) - object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1beta.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; + object.resourceType[j] = options.enums === String ? $root.google.analytics.admin.v1beta.ChangeHistoryResourceType[message.resourceType[j]] === undefined ? message.resourceType[j] : $root.google.analytics.admin.v1beta.ChangeHistoryResourceType[message.resourceType[j]] : message.resourceType[j]; } if (message.action && message.action.length) { object.action = []; for (var j = 0; j < message.action.length; ++j) - object.action[j] = options.enums === String ? $root.google.analytics.admin.v1beta.ActionType[message.action[j]] : message.action[j]; + object.action[j] = options.enums === String ? $root.google.analytics.admin.v1beta.ActionType[message.action[j]] === undefined ? message.action[j] : $root.google.analytics.admin.v1beta.ActionType[message.action[j]] : message.action[j]; } if (message.actorEmail && message.actorEmail.length) { object.actorEmail = []; @@ -62557,6 +62751,12 @@ if (object.name != null) message.name = String(object.name); switch (object.propertyType) { + default: + if (typeof object.propertyType === "number") { + message.propertyType = object.propertyType; + break; + } + break; case "PROPERTY_TYPE_UNSPECIFIED": case 0: message.propertyType = 0; @@ -62589,6 +62789,12 @@ if (object.displayName != null) message.displayName = String(object.displayName); switch (object.industryCategory) { + default: + if (typeof object.industryCategory === "number") { + message.industryCategory = object.industryCategory; + break; + } + break; case "INDUSTRY_CATEGORY_UNSPECIFIED": case 0: message.industryCategory = 0; @@ -62703,6 +62909,12 @@ if (object.currencyCode != null) message.currencyCode = String(object.currencyCode); switch (object.serviceLevel) { + default: + if (typeof object.serviceLevel === "number") { + message.serviceLevel = object.serviceLevel; + break; + } + break; case "SERVICE_LEVEL_UNSPECIFIED": case 0: message.serviceLevel = 0; @@ -62770,13 +62982,13 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1beta.IndustryCategory[message.industryCategory] : message.industryCategory; + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1beta.IndustryCategory[message.industryCategory] === undefined ? message.industryCategory : $root.google.analytics.admin.v1beta.IndustryCategory[message.industryCategory] : message.industryCategory; if (message.timeZone != null && message.hasOwnProperty("timeZone")) object.timeZone = message.timeZone; if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) object.currencyCode = message.currencyCode; if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1beta.ServiceLevel[message.serviceLevel] : message.serviceLevel; + object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1beta.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.analytics.admin.v1beta.ServiceLevel[message.serviceLevel] : message.serviceLevel; if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); if (message.expireTime != null && message.hasOwnProperty("expireTime")) @@ -62784,7 +62996,7 @@ if (message.account != null && message.hasOwnProperty("account")) object.account = message.account; if (message.propertyType != null && message.hasOwnProperty("propertyType")) - object.propertyType = options.enums === String ? $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] : message.propertyType; + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] : message.propertyType; return object; }; @@ -63155,6 +63367,12 @@ if (object.name != null) message.name = String(object.name); switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "DATA_STREAM_TYPE_UNSPECIFIED": case 0: message.type = 0; @@ -63210,7 +63428,7 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.analytics.admin.v1beta.DataStream.DataStreamType[message.type] : message.type; + object.type = options.enums === String ? $root.google.analytics.admin.v1beta.DataStream.DataStreamType[message.type] === undefined ? message.type : $root.google.analytics.admin.v1beta.DataStream.DataStreamType[message.type] : message.type; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.createTime != null && message.hasOwnProperty("createTime")) @@ -65427,6 +65645,12 @@ if (object.displayName != null) message.displayName = String(object.displayName); switch (object.propertyType) { + default: + if (typeof object.propertyType === "number") { + message.propertyType = object.propertyType; + break; + } + break; case "PROPERTY_TYPE_UNSPECIFIED": case 0: message.propertyType = 0; @@ -65473,7 +65697,7 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.propertyType != null && message.hasOwnProperty("propertyType")) - object.propertyType = options.enums === String ? $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] : message.propertyType; + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1beta.PropertyType[message.propertyType] : message.propertyType; if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; return object; @@ -66024,6 +66248,12 @@ message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); } switch (object.actorType) { + default: + if (typeof object.actorType === "number") { + message.actorType = object.actorType; + break; + } + break; case "ACTOR_TYPE_UNSPECIFIED": case 0: message.actorType = 0; @@ -66085,7 +66315,7 @@ if (message.changeTime != null && message.hasOwnProperty("changeTime")) object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); if (message.actorType != null && message.hasOwnProperty("actorType")) - object.actorType = options.enums === String ? $root.google.analytics.admin.v1beta.ActorType[message.actorType] : message.actorType; + object.actorType = options.enums === String ? $root.google.analytics.admin.v1beta.ActorType[message.actorType] === undefined ? message.actorType : $root.google.analytics.admin.v1beta.ActorType[message.actorType] : message.actorType; if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) object.userActorEmail = message.userActorEmail; if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) @@ -66344,6 +66574,12 @@ if (object.resource != null) message.resource = String(object.resource); switch (object.action) { + default: + if (typeof object.action === "number") { + message.action = object.action; + break; + } + break; case "ACTION_TYPE_UNSPECIFIED": case 0: message.action = 0; @@ -66396,7 +66632,7 @@ if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.analytics.admin.v1beta.ActionType[message.action] : message.action; + object.action = options.enums === String ? $root.google.analytics.admin.v1beta.ActionType[message.action] === undefined ? message.action : $root.google.analytics.admin.v1beta.ActionType[message.action] : message.action; if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) object.resourceBeforeChange = $root.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) @@ -67460,6 +67696,12 @@ if (object.description != null) message.description = String(object.description); switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "DIMENSION_SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -67508,7 +67750,7 @@ if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1beta.CustomDimension.DimensionScope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.analytics.admin.v1beta.CustomDimension.DimensionScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1beta.CustomDimension.DimensionScope[message.scope] : message.scope; if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) object.disallowAdsPersonalization = message.disallowAdsPersonalization; return object; @@ -67866,6 +68108,12 @@ if (object.description != null) message.description = String(object.description); switch (object.measurementUnit) { + default: + if (typeof object.measurementUnit === "number") { + message.measurementUnit = object.measurementUnit; + break; + } + break; case "MEASUREMENT_UNIT_UNSPECIFIED": case 0: message.measurementUnit = 0; @@ -67912,6 +68160,12 @@ break; } switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "METRIC_SCOPE_UNSPECIFIED": case 0: message.scope = 0; @@ -67928,6 +68182,10 @@ for (var i = 0; i < object.restrictedMetricType.length; ++i) switch (object.restrictedMetricType[i]) { default: + if (typeof object.restrictedMetricType[i] === "number") { + message.restrictedMetricType[i] = object.restrictedMetricType[i]; + break; + } case "RESTRICTED_METRIC_TYPE_UNSPECIFIED": case 0: message.restrictedMetricType[i] = 0; @@ -67977,13 +68235,13 @@ if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) - object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; + object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit[message.measurementUnit] === undefined ? message.measurementUnit : $root.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.MetricScope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.MetricScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1beta.CustomMetric.MetricScope[message.scope] : message.scope; if (message.restrictedMetricType && message.restrictedMetricType.length) { object.restrictedMetricType = []; for (var j = 0; j < message.restrictedMetricType.length; ++j) - object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; + object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] === undefined ? message.restrictedMetricType[j] : $root.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; } return object; }; @@ -68276,6 +68534,12 @@ if (object.name != null) message.name = String(object.name); switch (object.eventDataRetention) { + default: + if (typeof object.eventDataRetention === "number") { + message.eventDataRetention = object.eventDataRetention; + break; + } + break; case "RETENTION_DURATION_UNSPECIFIED": case 0: message.eventDataRetention = 0; @@ -68327,7 +68591,7 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) - object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; + object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration[message.eventDataRetention] === undefined ? message.eventDataRetention : $root.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) object.resetUserDataOnNewActivity = message.resetUserDataOnNewActivity; return object; @@ -68732,6 +68996,12 @@ if (object.nameField != null) message.nameField = String(object.nameField); switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; case "HISTORY_UNSPECIFIED": case 0: message.history = 0; @@ -68756,6 +69026,10 @@ for (var i = 0; i < object.style.length; ++i) switch (object.style[i]) { default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } case "STYLE_UNSPECIFIED": case 0: message.style[i] = 0; @@ -68803,7 +69077,7 @@ if (message.nameField != null && message.hasOwnProperty("nameField")) object.nameField = message.nameField; if (message.history != null && message.hasOwnProperty("history")) - object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; if (message.plural != null && message.hasOwnProperty("plural")) object.plural = message.plural; if (message.singular != null && message.hasOwnProperty("singular")) @@ -68811,7 +69085,7 @@ if (message.style && message.style.length) { object.style = []; for (var j = 0; j < message.style.length; ++j) - object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; } return object; }; @@ -72585,6 +72859,12 @@ if (object.number != null) message.number = object.number | 0; switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; case "LABEL_OPTIONAL": case 1: message.label = 1; @@ -72599,6 +72879,12 @@ break; } switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_DOUBLE": case 1: message.type = 1; @@ -72725,9 +73011,9 @@ if (message.number != null && message.hasOwnProperty("number")) object.number = message.number; if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; if (message.typeName != null && message.hasOwnProperty("typeName")) object.typeName = message.typeName; if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) @@ -75074,6 +75360,12 @@ if (object.javaStringCheckUtf8 != null) message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; case "SPEED": case 1: message.optimizeFor = 1; @@ -75182,7 +75474,7 @@ if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) object.javaOuterClassname = message.javaOuterClassname; if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) object.javaMultipleFiles = message.javaMultipleFiles; if (message.goPackage != null && message.hasOwnProperty("goPackage")) @@ -75984,6 +76276,12 @@ return object; var message = new $root.google.protobuf.FieldOptions(); switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; case "STRING": case 0: message.ctype = 0; @@ -76000,6 +76298,12 @@ if (object.packed != null) message.packed = Boolean(object.packed); switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; case "JS_NORMAL": case 0: message.jstype = 0; @@ -76038,6 +76342,10 @@ for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) switch (object[".google.api.fieldBehavior"][i]) { default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } case "FIELD_BEHAVIOR_UNSPECIFIED": case 0: message[".google.api.fieldBehavior"][i] = 0; @@ -76108,7 +76416,7 @@ object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; if (message.packed != null && message.hasOwnProperty("packed")) object.packed = message.packed; if (message.deprecated != null && message.hasOwnProperty("deprecated")) @@ -76116,7 +76424,7 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) object.lazy = message.lazy; if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) @@ -76129,7 +76437,7 @@ if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { object[".google.api.fieldBehavior"] = []; for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; } if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); @@ -77486,6 +77794,12 @@ if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; case "IDEMPOTENCY_UNKNOWN": case 0: message.idempotencyLevel = 0; @@ -77549,7 +77863,7 @@ if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -79302,6 +79616,12 @@ if (object.end != null) message.end = object.end | 0; switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; case "NONE": case 0: message.semantic = 0; @@ -79351,7 +79671,7 @@ if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; if (message.semantic != null && message.hasOwnProperty("semantic")) - object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; }; From 1cb0c65be23e63f732c7c0debbc55478d227fff2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Nov 2022 02:57:10 -0800 Subject: [PATCH 134/142] chore(main): release 4.3.0 (#218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 4.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-analytics-admin/CHANGELOG.md | 21 +++++++++++++++++++ packages/google-analytics-admin/package.json | 2 +- ...tadata.google.analytics.admin.v1alpha.json | 2 +- ...etadata.google.analytics.admin.v1beta.json | 2 +- .../samples/package.json | 2 +- 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index be4318b981e..d28a097632a 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## [4.3.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v4.2.0...v4.3.0) (2022-11-11) + + +### Features + +* add `GetAttributionSettings`, `UpdateAttributionSettings` methods to the Admin API v1alpha ([6d911ce](https://github.com/googleapis/nodejs-analytics-admin/commit/6d911cea4e0a1a1201847dba549634e535b078b0)) +* add `GetAudience`, 'ListAudience', 'CreateAudience', 'UpdateAudience', 'ArchiveAudience' methods to the Admin API v1alpha ([6d911ce](https://github.com/googleapis/nodejs-analytics-admin/commit/6d911cea4e0a1a1201847dba549634e535b078b0)) +* add `RunAccessReport` method to the Admin API v1alpha ([6d911ce](https://github.com/googleapis/nodejs-analytics-admin/commit/6d911cea4e0a1a1201847dba549634e535b078b0)) + + +### Bug Fixes + +* Allow passing gax instance to client constructor ([#222](https://github.com/googleapis/nodejs-analytics-admin/issues/222)) ([c17ef19](https://github.com/googleapis/nodejs-analytics-admin/commit/c17ef19c7ca0c1e8514229f5341d339123a64c03)) +* Better support for fallback mode ([#216](https://github.com/googleapis/nodejs-analytics-admin/issues/216)) ([6d911ce](https://github.com/googleapis/nodejs-analytics-admin/commit/6d911cea4e0a1a1201847dba549634e535b078b0)) +* Change import long to require ([#217](https://github.com/googleapis/nodejs-analytics-admin/issues/217)) ([77aaecb](https://github.com/googleapis/nodejs-analytics-admin/commit/77aaecb625ca557207e3fdbad906d4d50e9b4704)) +* **deps:** Use google-gax v3.5.2 ([#230](https://github.com/googleapis/nodejs-analytics-admin/issues/230)) ([7bbe484](https://github.com/googleapis/nodejs-analytics-admin/commit/7bbe4845a8b2e70bdd55f739c6af57eb080ea5e7)) +* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-analytics-admin/issues/1553)) ([#221](https://github.com/googleapis/nodejs-analytics-admin/issues/221)) ([2341928](https://github.com/googleapis/nodejs-analytics-admin/commit/23419288e37ce931b72bbeb3e5f6d229f1b249fa)) +* Preserve default values in x-goog-request-params header ([#224](https://github.com/googleapis/nodejs-analytics-admin/issues/224)) ([22f8b45](https://github.com/googleapis/nodejs-analytics-admin/commit/22f8b45606451281e237c4625b1248cb65ec02e6)) +* Regenerated protos JS and TS definitions ([#233](https://github.com/googleapis/nodejs-analytics-admin/issues/233)) ([3a1d10c](https://github.com/googleapis/nodejs-analytics-admin/commit/3a1d10cc4cffb56dbb86a74ac4cc2d6d179268cf)) +* use google-gax v3.3.0 ([2341928](https://github.com/googleapis/nodejs-analytics-admin/commit/23419288e37ce931b72bbeb3e5f6d229f1b249fa)) + ## [4.2.0](https://github.com/googleapis/nodejs-analytics-admin/compare/v4.1.0...v4.2.0) (2022-07-04) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 7e087f6ebca..5ab6e881a49 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "4.2.0", + "version": "4.3.0", "description": "Admin client for Node.js", "repository": "googleapis/nodejs-analytics-admin", "license": "Apache-2.0", diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index a1dd8200a5e..cdaf892c297 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "4.2.0", + "version": "4.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json index dfb64059cf1..0d8fc0a701a 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json +++ b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "4.2.0", + "version": "4.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index adc8059ecb1..d8f18fc51e3 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^4.2.0", + "@google-analytics/admin": "^4.3.0", "google-auth-library": "^7.0.0", "google-gax": "^2.6.3", "http": "0.0.1-security", From 78a8253053e0a1118d645d2d8cdff72083a7faee Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Fri, 11 Nov 2022 03:00:34 -0800 Subject: [PATCH 135/142] build: add release-please config, fix owlbot-config --- .release-please-manifest.json | 1 + .../{.github => }/.OwlBot.yaml | 6 ++---- packages/google-analytics-admin/.repo-metadata.json | 2 +- packages/google-analytics-admin/owlbot.py | 4 ++-- packages/google-analytics-admin/package.json | 13 +++++++++---- release-please-config.json | 3 ++- 6 files changed, 17 insertions(+), 12 deletions(-) rename packages/google-analytics-admin/{.github => }/.OwlBot.yaml (79%) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c38b0a70276..01c250f9d4f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,6 @@ { "packages/gapic-node-templating": "0.0.0", + "packages/google-analytics-admin": "4.3.0", "packages/google-api-apikeys": "0.1.3", "packages/google-cloud-batch": "0.3.2", "packages/google-cloud-beyondcorp-appconnections": "0.2.3", diff --git a/packages/google-analytics-admin/.github/.OwlBot.yaml b/packages/google-analytics-admin/.OwlBot.yaml similarity index 79% rename from packages/google-analytics-admin/.github/.OwlBot.yaml rename to packages/google-analytics-admin/.OwlBot.yaml index 68a6c689459..dc3c48b26b6 100644 --- a/packages/google-analytics-admin/.github/.OwlBot.yaml +++ b/packages/google-analytics-admin/.OwlBot.yaml @@ -11,13 +11,11 @@ # 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. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest deep-remove-regex: - /owl-bot-staging deep-copy-regex: - - source: /google/analytics/admin/(.*)/.*-nodejs/(.*) - dest: /owl-bot-staging/$1/$2 + - source: /google/analytics/admin/(.*)/.*-nodejs + dest: /owl-bot-staging/google-analytics-admin/$1 diff --git a/packages/google-analytics-admin/.repo-metadata.json b/packages/google-analytics-admin/.repo-metadata.json index 61cb4422e47..4cffee7850b 100644 --- a/packages/google-analytics-admin/.repo-metadata.json +++ b/packages/google-analytics-admin/.repo-metadata.json @@ -6,7 +6,7 @@ "default_version": "v1alpha", "language": "nodejs", "name_pretty": "Google Analytics Admin", - "repo": "googleapis/nodejs-analytics-admin", + "repo": "googleapis/google-cloud-node", "product_documentation": "https://developers.google.com/analytics", "requires_billing": false, "name": "analytics-admin", diff --git a/packages/google-analytics-admin/owlbot.py b/packages/google-analytics-admin/owlbot.py index 568fbdbbd62..daafe526af5 100644 --- a/packages/google-analytics-admin/owlbot.py +++ b/packages/google-analytics-admin/owlbot.py @@ -12,6 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. """This script is used to synthesize generated parts of this library.""" -import synthtool.languages.node as node +import synthtool.languages.node_mono_repo as node -node.owlbot_main(templates_excludes=['.github/CODEOWNERS']) \ No newline at end of file +node.owlbot_main(relative_dir="packages/google-analytics-admin",templates_excludes=['.github/CODEOWNERS']) \ No newline at end of file diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index 5ab6e881a49..4146364e436 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -2,7 +2,11 @@ "name": "@google-analytics/admin", "version": "4.3.0", "description": "Admin client for Node.js", - "repository": "googleapis/nodejs-analytics-admin", + "repository": { + "type": "git", + "directory": "packages/google-analytics-admin", + "url": "https://github.com/googleapis/google-cloud-node.git" + }, "license": "Apache-2.0", "author": "Google LLC", "main": "build/src/index.js", @@ -34,8 +38,8 @@ "lint": "gts check", "prelint": "cd samples; npm link ../; npm i", "prepare": "npm run compile-protos && npm run compile", - "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "system-test": "c8 mocha build/system-test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", + "system-test": "npm run compile && c8 mocha build/system-test", "test": "c8 mocha build/test" }, "dependencies": { @@ -62,5 +66,6 @@ }, "engines": { "node": ">=12.0.0" - } + }, + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-admin" } diff --git a/release-please-config.json b/release-please-config.json index ca8fb90627b..5aa697e37f3 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,6 +1,7 @@ { "initial-version": "0.1.0", "packages": { + "packages/google-analytics-admin": {}, "packages/google-api-apikeys": {}, "packages/google-cloud-batch": {}, "packages/google-cloud-beyondcorp-appconnections": {}, @@ -49,4 +50,4 @@ } ], "release-type": "node" -} \ No newline at end of file +} From 26f03492b5e98a475b70c110b1f6ac33acf0a06a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 11 Nov 2022 11:15:37 +0000 Subject: [PATCH 136/142] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= =?UTF-8?q?=20post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- packages/google-analytics-admin/.mocharc.js | 2 +- .../google-analytics-admin/.prettierrc.js | 2 +- packages/google-analytics-admin/README.md | 156 +- .../google-analytics-admin/samples/README.md | 2544 ++++++++++++++++- packages/google-analytics-admin/src/index.ts | 2 +- release-please-config.json | 2 +- 6 files changed, 2684 insertions(+), 24 deletions(-) diff --git a/packages/google-analytics-admin/.mocharc.js b/packages/google-analytics-admin/.mocharc.js index 0b600509bed..cdb7b752160 100644 --- a/packages/google-analytics-admin/.mocharc.js +++ b/packages/google-analytics-admin/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/.prettierrc.js b/packages/google-analytics-admin/.prettierrc.js index d1b95106f4c..d546a4ad546 100644 --- a/packages/google-analytics-admin/.prettierrc.js +++ b/packages/google-analytics-admin/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index c7e52693178..a3e8fb9c46e 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Google Analytics Admin: Node.js Client](https://github.com/googleapis/nodejs-analytics-admin) +# [Google Analytics Admin: Node.js Client](https://github.com/googleapis/google-cloud-node) [![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-analytics/admin.svg)](https://www.npmjs.org/package/@google-analytics/admin) @@ -14,11 +14,11 @@ Admin client for Node.js A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/nodejs-analytics-admin/blob/main/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-admin/CHANGELOG.md). * [Google Analytics Admin Node.js Client API Reference][client-docs] * [Google Analytics Admin Documentation][product-docs] -* [github.com/googleapis/nodejs-analytics-admin](https://github.com/googleapis/nodejs-analytics-admin) +* [github.com/googleapis/google-cloud-node/packages/google-analytics-admin](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-admin) Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -95,12 +95,152 @@ process.on('unhandledRejection', err => { ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | -| Quickstart_installed_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart_installed_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) | +| Analytics_admin_service.acknowledge_user_data_collection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js,samples/README.md) | +| Analytics_admin_service.approve_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js,samples/README.md) | +| Analytics_admin_service.archive_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js,samples/README.md) | +| Analytics_admin_service.archive_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.archive_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js,samples/README.md) | +| Analytics_admin_service.audit_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js,samples/README.md) | +| Analytics_admin_service.batch_create_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js,samples/README.md) | +| Analytics_admin_service.batch_delete_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js,samples/README.md) | +| Analytics_admin_service.batch_get_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js,samples/README.md) | +| Analytics_admin_service.batch_update_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js,samples/README.md) | +| Analytics_admin_service.cancel_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js,samples/README.md) | +| Analytics_admin_service.create_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js,samples/README.md) | +| Analytics_admin_service.create_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js,samples/README.md) | +| Analytics_admin_service.create_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.create_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js,samples/README.md) | +| Analytics_admin_service.create_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js,samples/README.md) | +| Analytics_admin_service.create_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js,samples/README.md) | +| Analytics_admin_service.create_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js,samples/README.md) | +| Analytics_admin_service.create_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js,samples/README.md) | +| Analytics_admin_service.create_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js,samples/README.md) | +| Analytics_admin_service.create_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.create_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js,samples/README.md) | +| Analytics_admin_service.create_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js,samples/README.md) | +| Analytics_admin_service.create_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js,samples/README.md) | +| Analytics_admin_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js,samples/README.md) | +| Analytics_admin_service.delete_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js,samples/README.md) | +| Analytics_admin_service.delete_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js,samples/README.md) | +| Analytics_admin_service.delete_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js,samples/README.md) | +| Analytics_admin_service.delete_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js,samples/README.md) | +| Analytics_admin_service.delete_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js,samples/README.md) | +| Analytics_admin_service.delete_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js,samples/README.md) | +| Analytics_admin_service.delete_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js,samples/README.md) | +| Analytics_admin_service.delete_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js,samples/README.md) | +| Analytics_admin_service.delete_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.delete_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js,samples/README.md) | +| Analytics_admin_service.delete_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js,samples/README.md) | +| Analytics_admin_service.delete_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js,samples/README.md) | +| Analytics_admin_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js,samples/README.md) | +| Analytics_admin_service.get_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js,samples/README.md) | +| Analytics_admin_service.get_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js,samples/README.md) | +| Analytics_admin_service.get_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js,samples/README.md) | +| Analytics_admin_service.get_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js,samples/README.md) | +| Analytics_admin_service.get_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.get_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js,samples/README.md) | +| Analytics_admin_service.get_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js,samples/README.md) | +| Analytics_admin_service.get_data_sharing_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js,samples/README.md) | +| Analytics_admin_service.get_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js,samples/README.md) | +| Analytics_admin_service.get_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js,samples/README.md) | +| Analytics_admin_service.get_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js,samples/README.md) | +| Analytics_admin_service.get_enhanced_measurement_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js,samples/README.md) | +| Analytics_admin_service.get_global_site_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js,samples/README.md) | +| Analytics_admin_service.get_google_signals_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js,samples/README.md) | +| Analytics_admin_service.get_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js,samples/README.md) | +| Analytics_admin_service.get_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.get_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js,samples/README.md) | +| Analytics_admin_service.get_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js,samples/README.md) | +| Analytics_admin_service.get_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js,samples/README.md) | +| Analytics_admin_service.list_account_summaries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js,samples/README.md) | +| Analytics_admin_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js,samples/README.md) | +| Analytics_admin_service.list_android_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js,samples/README.md) | +| Analytics_admin_service.list_audiences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js,samples/README.md) | +| Analytics_admin_service.list_conversion_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js,samples/README.md) | +| Analytics_admin_service.list_custom_dimensions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js,samples/README.md) | +| Analytics_admin_service.list_custom_metrics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js,samples/README.md) | +| Analytics_admin_service.list_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js,samples/README.md) | +| Analytics_admin_service.list_display_video360_advertiser_link_proposals | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js,samples/README.md) | +| Analytics_admin_service.list_display_video360_advertiser_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js,samples/README.md) | +| Analytics_admin_service.list_firebase_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js,samples/README.md) | +| Analytics_admin_service.list_google_ads_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js,samples/README.md) | +| Analytics_admin_service.list_ios_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js,samples/README.md) | +| Analytics_admin_service.list_measurement_protocol_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js,samples/README.md) | +| Analytics_admin_service.list_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js,samples/README.md) | +| Analytics_admin_service.list_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js,samples/README.md) | +| Analytics_admin_service.list_web_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js,samples/README.md) | +| Analytics_admin_service.provision_account_ticket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js,samples/README.md) | +| Analytics_admin_service.run_access_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js,samples/README.md) | +| Analytics_admin_service.search_change_history_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js,samples/README.md) | +| Analytics_admin_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js,samples/README.md) | +| Analytics_admin_service.update_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js,samples/README.md) | +| Analytics_admin_service.update_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js,samples/README.md) | +| Analytics_admin_service.update_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js,samples/README.md) | +| Analytics_admin_service.update_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.update_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js,samples/README.md) | +| Analytics_admin_service.update_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js,samples/README.md) | +| Analytics_admin_service.update_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js,samples/README.md) | +| Analytics_admin_service.update_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js,samples/README.md) | +| Analytics_admin_service.update_enhanced_measurement_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js,samples/README.md) | +| Analytics_admin_service.update_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js,samples/README.md) | +| Analytics_admin_service.update_google_signals_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js,samples/README.md) | +| Analytics_admin_service.update_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js,samples/README.md) | +| Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js,samples/README.md) | +| Analytics_admin_service.update_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js,samples/README.md) | +| Analytics_admin_service.update_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js,samples/README.md) | +| Analytics_admin_service.acknowledge_user_data_collection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js,samples/README.md) | +| Analytics_admin_service.archive_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.archive_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js,samples/README.md) | +| Analytics_admin_service.create_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js,samples/README.md) | +| Analytics_admin_service.create_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.create_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js,samples/README.md) | +| Analytics_admin_service.create_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js,samples/README.md) | +| Analytics_admin_service.create_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js,samples/README.md) | +| Analytics_admin_service.create_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js,samples/README.md) | +| Analytics_admin_service.create_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.create_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js,samples/README.md) | +| Analytics_admin_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js,samples/README.md) | +| Analytics_admin_service.delete_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js,samples/README.md) | +| Analytics_admin_service.delete_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js,samples/README.md) | +| Analytics_admin_service.delete_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js,samples/README.md) | +| Analytics_admin_service.delete_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js,samples/README.md) | +| Analytics_admin_service.delete_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.delete_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js,samples/README.md) | +| Analytics_admin_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js,samples/README.md) | +| Analytics_admin_service.get_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js,samples/README.md) | +| Analytics_admin_service.get_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.get_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js,samples/README.md) | +| Analytics_admin_service.get_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js,samples/README.md) | +| Analytics_admin_service.get_data_sharing_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js,samples/README.md) | +| Analytics_admin_service.get_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js,samples/README.md) | +| Analytics_admin_service.get_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.get_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js,samples/README.md) | +| Analytics_admin_service.list_account_summaries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js,samples/README.md) | +| Analytics_admin_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js,samples/README.md) | +| Analytics_admin_service.list_conversion_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js,samples/README.md) | +| Analytics_admin_service.list_custom_dimensions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js,samples/README.md) | +| Analytics_admin_service.list_custom_metrics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js,samples/README.md) | +| Analytics_admin_service.list_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js,samples/README.md) | +| Analytics_admin_service.list_firebase_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js,samples/README.md) | +| Analytics_admin_service.list_google_ads_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js,samples/README.md) | +| Analytics_admin_service.list_measurement_protocol_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js,samples/README.md) | +| Analytics_admin_service.list_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js,samples/README.md) | +| Analytics_admin_service.provision_account_ticket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js,samples/README.md) | +| Analytics_admin_service.search_change_history_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js,samples/README.md) | +| Analytics_admin_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js,samples/README.md) | +| Analytics_admin_service.update_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js,samples/README.md) | +| Analytics_admin_service.update_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js,samples/README.md) | +| Analytics_admin_service.update_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js,samples/README.md) | +| Analytics_admin_service.update_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js,samples/README.md) | +| Analytics_admin_service.update_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js,samples/README.md) | +| Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) | +| Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/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-analytics-admin/samples/quickstart.js,samples/README.md) | @@ -149,7 +289,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-analytics-admin/blob/main/CONTRIBUTING.md). +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`) @@ -161,7 +301,7 @@ to its templates in Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/nodejs-analytics-admin/blob/main/LICENSE) +See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [client-docs]: https://googleapis.dev/nodejs/analytics-admin/latest/index.html [product-docs]: https://developers.google.com/analytics diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 869c490d182..9ffc6f63513 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Google Analytics Admin: Node.js Samples](https://github.com/googleapis/nodejs-analytics-admin) +# [Google Analytics Admin: Node.js Samples](https://github.com/googleapis/google-cloud-node) [![Open in Cloud Shell][shell_img]][shell_link] @@ -12,13 +12,153 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Analytics_admin_service.acknowledge_user_data_collection](#analytics_admin_service.acknowledge_user_data_collection) + * [Analytics_admin_service.approve_display_video360_advertiser_link_proposal](#analytics_admin_service.approve_display_video360_advertiser_link_proposal) + * [Analytics_admin_service.archive_audience](#analytics_admin_service.archive_audience) + * [Analytics_admin_service.archive_custom_dimension](#analytics_admin_service.archive_custom_dimension) + * [Analytics_admin_service.archive_custom_metric](#analytics_admin_service.archive_custom_metric) + * [Analytics_admin_service.audit_user_links](#analytics_admin_service.audit_user_links) + * [Analytics_admin_service.batch_create_user_links](#analytics_admin_service.batch_create_user_links) + * [Analytics_admin_service.batch_delete_user_links](#analytics_admin_service.batch_delete_user_links) + * [Analytics_admin_service.batch_get_user_links](#analytics_admin_service.batch_get_user_links) + * [Analytics_admin_service.batch_update_user_links](#analytics_admin_service.batch_update_user_links) + * [Analytics_admin_service.cancel_display_video360_advertiser_link_proposal](#analytics_admin_service.cancel_display_video360_advertiser_link_proposal) + * [Analytics_admin_service.create_audience](#analytics_admin_service.create_audience) + * [Analytics_admin_service.create_conversion_event](#analytics_admin_service.create_conversion_event) + * [Analytics_admin_service.create_custom_dimension](#analytics_admin_service.create_custom_dimension) + * [Analytics_admin_service.create_custom_metric](#analytics_admin_service.create_custom_metric) + * [Analytics_admin_service.create_data_stream](#analytics_admin_service.create_data_stream) + * [Analytics_admin_service.create_display_video360_advertiser_link](#analytics_admin_service.create_display_video360_advertiser_link) + * [Analytics_admin_service.create_display_video360_advertiser_link_proposal](#analytics_admin_service.create_display_video360_advertiser_link_proposal) + * [Analytics_admin_service.create_firebase_link](#analytics_admin_service.create_firebase_link) + * [Analytics_admin_service.create_google_ads_link](#analytics_admin_service.create_google_ads_link) + * [Analytics_admin_service.create_measurement_protocol_secret](#analytics_admin_service.create_measurement_protocol_secret) + * [Analytics_admin_service.create_property](#analytics_admin_service.create_property) + * [Analytics_admin_service.create_user_link](#analytics_admin_service.create_user_link) + * [Analytics_admin_service.create_web_data_stream](#analytics_admin_service.create_web_data_stream) + * [Analytics_admin_service.delete_account](#analytics_admin_service.delete_account) + * [Analytics_admin_service.delete_android_app_data_stream](#analytics_admin_service.delete_android_app_data_stream) + * [Analytics_admin_service.delete_conversion_event](#analytics_admin_service.delete_conversion_event) + * [Analytics_admin_service.delete_data_stream](#analytics_admin_service.delete_data_stream) + * [Analytics_admin_service.delete_display_video360_advertiser_link](#analytics_admin_service.delete_display_video360_advertiser_link) + * [Analytics_admin_service.delete_display_video360_advertiser_link_proposal](#analytics_admin_service.delete_display_video360_advertiser_link_proposal) + * [Analytics_admin_service.delete_firebase_link](#analytics_admin_service.delete_firebase_link) + * [Analytics_admin_service.delete_google_ads_link](#analytics_admin_service.delete_google_ads_link) + * [Analytics_admin_service.delete_ios_app_data_stream](#analytics_admin_service.delete_ios_app_data_stream) + * [Analytics_admin_service.delete_measurement_protocol_secret](#analytics_admin_service.delete_measurement_protocol_secret) + * [Analytics_admin_service.delete_property](#analytics_admin_service.delete_property) + * [Analytics_admin_service.delete_user_link](#analytics_admin_service.delete_user_link) + * [Analytics_admin_service.delete_web_data_stream](#analytics_admin_service.delete_web_data_stream) + * [Analytics_admin_service.get_account](#analytics_admin_service.get_account) + * [Analytics_admin_service.get_android_app_data_stream](#analytics_admin_service.get_android_app_data_stream) + * [Analytics_admin_service.get_attribution_settings](#analytics_admin_service.get_attribution_settings) + * [Analytics_admin_service.get_audience](#analytics_admin_service.get_audience) + * [Analytics_admin_service.get_conversion_event](#analytics_admin_service.get_conversion_event) + * [Analytics_admin_service.get_custom_dimension](#analytics_admin_service.get_custom_dimension) + * [Analytics_admin_service.get_custom_metric](#analytics_admin_service.get_custom_metric) + * [Analytics_admin_service.get_data_retention_settings](#analytics_admin_service.get_data_retention_settings) + * [Analytics_admin_service.get_data_sharing_settings](#analytics_admin_service.get_data_sharing_settings) + * [Analytics_admin_service.get_data_stream](#analytics_admin_service.get_data_stream) + * [Analytics_admin_service.get_display_video360_advertiser_link](#analytics_admin_service.get_display_video360_advertiser_link) + * [Analytics_admin_service.get_display_video360_advertiser_link_proposal](#analytics_admin_service.get_display_video360_advertiser_link_proposal) + * [Analytics_admin_service.get_enhanced_measurement_settings](#analytics_admin_service.get_enhanced_measurement_settings) + * [Analytics_admin_service.get_global_site_tag](#analytics_admin_service.get_global_site_tag) + * [Analytics_admin_service.get_google_signals_settings](#analytics_admin_service.get_google_signals_settings) + * [Analytics_admin_service.get_ios_app_data_stream](#analytics_admin_service.get_ios_app_data_stream) + * [Analytics_admin_service.get_measurement_protocol_secret](#analytics_admin_service.get_measurement_protocol_secret) + * [Analytics_admin_service.get_property](#analytics_admin_service.get_property) + * [Analytics_admin_service.get_user_link](#analytics_admin_service.get_user_link) + * [Analytics_admin_service.get_web_data_stream](#analytics_admin_service.get_web_data_stream) + * [Analytics_admin_service.list_account_summaries](#analytics_admin_service.list_account_summaries) + * [Analytics_admin_service.list_accounts](#analytics_admin_service.list_accounts) + * [Analytics_admin_service.list_android_app_data_streams](#analytics_admin_service.list_android_app_data_streams) + * [Analytics_admin_service.list_audiences](#analytics_admin_service.list_audiences) + * [Analytics_admin_service.list_conversion_events](#analytics_admin_service.list_conversion_events) + * [Analytics_admin_service.list_custom_dimensions](#analytics_admin_service.list_custom_dimensions) + * [Analytics_admin_service.list_custom_metrics](#analytics_admin_service.list_custom_metrics) + * [Analytics_admin_service.list_data_streams](#analytics_admin_service.list_data_streams) + * [Analytics_admin_service.list_display_video360_advertiser_link_proposals](#analytics_admin_service.list_display_video360_advertiser_link_proposals) + * [Analytics_admin_service.list_display_video360_advertiser_links](#analytics_admin_service.list_display_video360_advertiser_links) + * [Analytics_admin_service.list_firebase_links](#analytics_admin_service.list_firebase_links) + * [Analytics_admin_service.list_google_ads_links](#analytics_admin_service.list_google_ads_links) + * [Analytics_admin_service.list_ios_app_data_streams](#analytics_admin_service.list_ios_app_data_streams) + * [Analytics_admin_service.list_measurement_protocol_secrets](#analytics_admin_service.list_measurement_protocol_secrets) + * [Analytics_admin_service.list_properties](#analytics_admin_service.list_properties) + * [Analytics_admin_service.list_user_links](#analytics_admin_service.list_user_links) + * [Analytics_admin_service.list_web_data_streams](#analytics_admin_service.list_web_data_streams) + * [Analytics_admin_service.provision_account_ticket](#analytics_admin_service.provision_account_ticket) + * [Analytics_admin_service.run_access_report](#analytics_admin_service.run_access_report) + * [Analytics_admin_service.search_change_history_events](#analytics_admin_service.search_change_history_events) + * [Analytics_admin_service.update_account](#analytics_admin_service.update_account) + * [Analytics_admin_service.update_android_app_data_stream](#analytics_admin_service.update_android_app_data_stream) + * [Analytics_admin_service.update_attribution_settings](#analytics_admin_service.update_attribution_settings) + * [Analytics_admin_service.update_audience](#analytics_admin_service.update_audience) + * [Analytics_admin_service.update_custom_dimension](#analytics_admin_service.update_custom_dimension) + * [Analytics_admin_service.update_custom_metric](#analytics_admin_service.update_custom_metric) + * [Analytics_admin_service.update_data_retention_settings](#analytics_admin_service.update_data_retention_settings) + * [Analytics_admin_service.update_data_stream](#analytics_admin_service.update_data_stream) + * [Analytics_admin_service.update_display_video360_advertiser_link](#analytics_admin_service.update_display_video360_advertiser_link) + * [Analytics_admin_service.update_enhanced_measurement_settings](#analytics_admin_service.update_enhanced_measurement_settings) + * [Analytics_admin_service.update_google_ads_link](#analytics_admin_service.update_google_ads_link) + * [Analytics_admin_service.update_google_signals_settings](#analytics_admin_service.update_google_signals_settings) + * [Analytics_admin_service.update_ios_app_data_stream](#analytics_admin_service.update_ios_app_data_stream) + * [Analytics_admin_service.update_measurement_protocol_secret](#analytics_admin_service.update_measurement_protocol_secret) + * [Analytics_admin_service.update_property](#analytics_admin_service.update_property) + * [Analytics_admin_service.update_user_link](#analytics_admin_service.update_user_link) + * [Analytics_admin_service.update_web_data_stream](#analytics_admin_service.update_web_data_stream) + * [Analytics_admin_service.acknowledge_user_data_collection](#analytics_admin_service.acknowledge_user_data_collection) + * [Analytics_admin_service.archive_custom_dimension](#analytics_admin_service.archive_custom_dimension) + * [Analytics_admin_service.archive_custom_metric](#analytics_admin_service.archive_custom_metric) + * [Analytics_admin_service.create_conversion_event](#analytics_admin_service.create_conversion_event) + * [Analytics_admin_service.create_custom_dimension](#analytics_admin_service.create_custom_dimension) + * [Analytics_admin_service.create_custom_metric](#analytics_admin_service.create_custom_metric) + * [Analytics_admin_service.create_data_stream](#analytics_admin_service.create_data_stream) + * [Analytics_admin_service.create_firebase_link](#analytics_admin_service.create_firebase_link) + * [Analytics_admin_service.create_google_ads_link](#analytics_admin_service.create_google_ads_link) + * [Analytics_admin_service.create_measurement_protocol_secret](#analytics_admin_service.create_measurement_protocol_secret) + * [Analytics_admin_service.create_property](#analytics_admin_service.create_property) + * [Analytics_admin_service.delete_account](#analytics_admin_service.delete_account) + * [Analytics_admin_service.delete_conversion_event](#analytics_admin_service.delete_conversion_event) + * [Analytics_admin_service.delete_data_stream](#analytics_admin_service.delete_data_stream) + * [Analytics_admin_service.delete_firebase_link](#analytics_admin_service.delete_firebase_link) + * [Analytics_admin_service.delete_google_ads_link](#analytics_admin_service.delete_google_ads_link) + * [Analytics_admin_service.delete_measurement_protocol_secret](#analytics_admin_service.delete_measurement_protocol_secret) + * [Analytics_admin_service.delete_property](#analytics_admin_service.delete_property) + * [Analytics_admin_service.get_account](#analytics_admin_service.get_account) + * [Analytics_admin_service.get_conversion_event](#analytics_admin_service.get_conversion_event) + * [Analytics_admin_service.get_custom_dimension](#analytics_admin_service.get_custom_dimension) + * [Analytics_admin_service.get_custom_metric](#analytics_admin_service.get_custom_metric) + * [Analytics_admin_service.get_data_retention_settings](#analytics_admin_service.get_data_retention_settings) + * [Analytics_admin_service.get_data_sharing_settings](#analytics_admin_service.get_data_sharing_settings) + * [Analytics_admin_service.get_data_stream](#analytics_admin_service.get_data_stream) + * [Analytics_admin_service.get_measurement_protocol_secret](#analytics_admin_service.get_measurement_protocol_secret) + * [Analytics_admin_service.get_property](#analytics_admin_service.get_property) + * [Analytics_admin_service.list_account_summaries](#analytics_admin_service.list_account_summaries) + * [Analytics_admin_service.list_accounts](#analytics_admin_service.list_accounts) + * [Analytics_admin_service.list_conversion_events](#analytics_admin_service.list_conversion_events) + * [Analytics_admin_service.list_custom_dimensions](#analytics_admin_service.list_custom_dimensions) + * [Analytics_admin_service.list_custom_metrics](#analytics_admin_service.list_custom_metrics) + * [Analytics_admin_service.list_data_streams](#analytics_admin_service.list_data_streams) + * [Analytics_admin_service.list_firebase_links](#analytics_admin_service.list_firebase_links) + * [Analytics_admin_service.list_google_ads_links](#analytics_admin_service.list_google_ads_links) + * [Analytics_admin_service.list_measurement_protocol_secrets](#analytics_admin_service.list_measurement_protocol_secrets) + * [Analytics_admin_service.list_properties](#analytics_admin_service.list_properties) + * [Analytics_admin_service.provision_account_ticket](#analytics_admin_service.provision_account_ticket) + * [Analytics_admin_service.search_change_history_events](#analytics_admin_service.search_change_history_events) + * [Analytics_admin_service.update_account](#analytics_admin_service.update_account) + * [Analytics_admin_service.update_custom_dimension](#analytics_admin_service.update_custom_dimension) + * [Analytics_admin_service.update_custom_metric](#analytics_admin_service.update_custom_metric) + * [Analytics_admin_service.update_data_retention_settings](#analytics_admin_service.update_data_retention_settings) + * [Analytics_admin_service.update_data_stream](#analytics_admin_service.update_data_stream) + * [Analytics_admin_service.update_google_ads_link](#analytics_admin_service.update_google_ads_link) + * [Analytics_admin_service.update_measurement_protocol_secret](#analytics_admin_service.update_measurement_protocol_secret) + * [Analytics_admin_service.update_property](#analytics_admin_service.update_property) * [Quickstart](#quickstart) - * [Quickstart_installed_oauth2](#quickstart_installed_oauth2) ## Before you begin Before running the samples, make sure you've followed the steps outlined in -[Using the client library](https://github.com/googleapis/nodejs-analytics-admin#using-the-client-library). +[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). `cd samples` @@ -30,16 +170,2396 @@ Before running the samples, make sure you've followed the steps outlined in -### Quickstart +### Analytics_admin_service.acknowledge_user_data_collection + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js` + + +----- + + + + +### Analytics_admin_service.approve_display_video360_advertiser_link_proposal + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js` + + +----- + + + + +### Analytics_admin_service.archive_audience + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js` + + +----- + + + + +### Analytics_admin_service.archive_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.archive_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.audit_user_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js` + + +----- + + + + +### Analytics_admin_service.batch_create_user_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js` + + +----- + + + + +### Analytics_admin_service.batch_delete_user_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js` + + +----- + + + + +### Analytics_admin_service.batch_get_user_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js` + + +----- + + + + +### Analytics_admin_service.batch_update_user_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js` + + +----- + + + + +### Analytics_admin_service.cancel_display_video360_advertiser_link_proposal + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js` + + +----- + + + + +### Analytics_admin_service.create_audience + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js` + + +----- + + + + +### Analytics_admin_service.create_conversion_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js` + + +----- + + + + +### Analytics_admin_service.create_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.create_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.create_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js` + + +----- + + + + +### Analytics_admin_service.create_display_video360_advertiser_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js` + + +----- + + + + +### Analytics_admin_service.create_display_video360_advertiser_link_proposal + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js` + + +----- + + + + +### Analytics_admin_service.create_firebase_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js` + + +----- + + + + +### Analytics_admin_service.create_google_ads_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js` + + +----- + + + + +### Analytics_admin_service.create_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.create_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js` + + +----- + + + + +### Analytics_admin_service.create_user_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js` + + +----- + + + + +### Analytics_admin_service.create_web_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js` + + +----- + + + + +### Analytics_admin_service.delete_account + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js` + + +----- + + + + +### Analytics_admin_service.delete_android_app_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js` + + +----- + + + + +### Analytics_admin_service.delete_conversion_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js` + + +----- + + + + +### Analytics_admin_service.delete_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js` + + +----- + + + + +### Analytics_admin_service.delete_display_video360_advertiser_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js` + + +----- + + + + +### Analytics_admin_service.delete_display_video360_advertiser_link_proposal + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js` + + +----- + + + + +### Analytics_admin_service.delete_firebase_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js` + + +----- + + + + +### Analytics_admin_service.delete_google_ads_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js` + + +----- + + + + +### Analytics_admin_service.delete_ios_app_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js` + + +----- + + + + +### Analytics_admin_service.delete_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.delete_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js` + + +----- + + + + +### Analytics_admin_service.delete_user_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js` + + +----- + + + + +### Analytics_admin_service.delete_web_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js` + + +----- + + + + +### Analytics_admin_service.get_account + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js` + + +----- + + + + +### Analytics_admin_service.get_android_app_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js` + + +----- + + + + +### Analytics_admin_service.get_attribution_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js` + + +----- + + + + +### Analytics_admin_service.get_audience + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js` + + +----- + + + + +### Analytics_admin_service.get_conversion_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js` + + +----- + + + + +### Analytics_admin_service.get_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.get_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.get_data_retention_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js` + + +----- + + + + +### Analytics_admin_service.get_data_sharing_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js` + + +----- + + + + +### Analytics_admin_service.get_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js` + + +----- + + + + +### Analytics_admin_service.get_display_video360_advertiser_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js` + + +----- + + + + +### Analytics_admin_service.get_display_video360_advertiser_link_proposal + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js` + + +----- + + + + +### Analytics_admin_service.get_enhanced_measurement_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js` + + +----- + + + + +### Analytics_admin_service.get_global_site_tag + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js` + + +----- + + + + +### Analytics_admin_service.get_google_signals_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js` + + +----- + + + + +### Analytics_admin_service.get_ios_app_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js` + + +----- + + + + +### Analytics_admin_service.get_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.get_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js` + + +----- + + + + +### Analytics_admin_service.get_user_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js` + + +----- + + + + +### Analytics_admin_service.get_web_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js` + + +----- + + + + +### Analytics_admin_service.list_account_summaries + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js` + + +----- + + + + +### Analytics_admin_service.list_accounts + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js` + + +----- + + + + +### Analytics_admin_service.list_android_app_data_streams + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js` + + +----- + + + + +### Analytics_admin_service.list_audiences + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js` + + +----- + + + + +### Analytics_admin_service.list_conversion_events + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js` + + +----- + + + + +### Analytics_admin_service.list_custom_dimensions + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js` + + +----- + + + + +### Analytics_admin_service.list_custom_metrics + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js` + + +----- + + + + +### Analytics_admin_service.list_data_streams + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js` + + +----- + + + + +### Analytics_admin_service.list_display_video360_advertiser_link_proposals + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js` + + +----- + + + + +### Analytics_admin_service.list_display_video360_advertiser_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js` + + +----- + + + + +### Analytics_admin_service.list_firebase_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js` + + +----- + + + + +### Analytics_admin_service.list_google_ads_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js` + + +----- + + + + +### Analytics_admin_service.list_ios_app_data_streams + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js` + + +----- + + + + +### Analytics_admin_service.list_measurement_protocol_secrets + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js` + + +----- + + + + +### Analytics_admin_service.list_properties + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js` + + +----- + + + + +### Analytics_admin_service.list_user_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js` + + +----- + + + + +### Analytics_admin_service.list_web_data_streams + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js` + + +----- + + + + +### Analytics_admin_service.provision_account_ticket + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js` + + +----- + + + + +### Analytics_admin_service.run_access_report + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js` + + +----- + + + + +### Analytics_admin_service.search_change_history_events + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js` + + +----- + + + + +### Analytics_admin_service.update_account + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js` + + +----- + + + + +### Analytics_admin_service.update_android_app_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js` + + +----- + + + + +### Analytics_admin_service.update_attribution_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js` + + +----- + + + + +### Analytics_admin_service.update_audience + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js` + + +----- + + + + +### Analytics_admin_service.update_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.update_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.update_data_retention_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js` + + +----- + + + + +### Analytics_admin_service.update_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js` + + +----- + + + + +### Analytics_admin_service.update_display_video360_advertiser_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js` + + +----- + + + + +### Analytics_admin_service.update_enhanced_measurement_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js` + + +----- + + + + +### Analytics_admin_service.update_google_ads_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js` + + +----- + + + + +### Analytics_admin_service.update_google_signals_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js` + + +----- + + + + +### Analytics_admin_service.update_ios_app_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js` + + +----- + + + + +### Analytics_admin_service.update_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.update_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js` + + +----- + + + + +### Analytics_admin_service.update_user_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js` + + +----- + + + + +### Analytics_admin_service.update_web_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.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-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js` + + +----- + + + + +### Analytics_admin_service.acknowledge_user_data_collection + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js` + + +----- + + + + +### Analytics_admin_service.archive_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.archive_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.create_conversion_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js` + + +----- + + + + +### Analytics_admin_service.create_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.create_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.create_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js` + + +----- + + + + +### Analytics_admin_service.create_firebase_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js` + + +----- + + + + +### Analytics_admin_service.create_google_ads_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js` + + +----- + + + + +### Analytics_admin_service.create_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.create_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js` + + +----- + + + + +### Analytics_admin_service.delete_account + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js` + + +----- + + + + +### Analytics_admin_service.delete_conversion_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js` + + +----- + + + + +### Analytics_admin_service.delete_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js` + + +----- + + + + +### Analytics_admin_service.delete_firebase_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js` + + +----- + + + + +### Analytics_admin_service.delete_google_ads_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js` + + +----- + + + + +### Analytics_admin_service.delete_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.delete_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js` + + +----- + + + + +### Analytics_admin_service.get_account + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js` + + +----- + + + + +### Analytics_admin_service.get_conversion_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js` + + +----- + + + + +### Analytics_admin_service.get_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.get_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.get_data_retention_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js` + + +----- + + + + +### Analytics_admin_service.get_data_sharing_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js` + + +----- + + + + +### Analytics_admin_service.get_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js` + + +----- + + + + +### Analytics_admin_service.get_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.get_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js,samples/README.md) + +__Usage:__ + -View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart.js). +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js` -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) + +----- + + + + +### Analytics_admin_service.list_account_summaries + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js` + + +----- + + + + +### Analytics_admin_service.list_accounts + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js` + + +----- + + + + +### Analytics_admin_service.list_conversion_events + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js` + + +----- + + + + +### Analytics_admin_service.list_custom_dimensions + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js` + + +----- + + + + +### Analytics_admin_service.list_custom_metrics + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js` + + +----- + + + + +### Analytics_admin_service.list_data_streams + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js` + + +----- + + + + +### Analytics_admin_service.list_firebase_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js` + + +----- + + + + +### Analytics_admin_service.list_google_ads_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js` + + +----- + + + + +### Analytics_admin_service.list_measurement_protocol_secrets + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js` + + +----- + + + + +### Analytics_admin_service.list_properties + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js` + + +----- + + + + +### Analytics_admin_service.provision_account_ticket + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js` + + +----- + + + + +### Analytics_admin_service.search_change_history_events + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js` + + +----- + + + + +### Analytics_admin_service.update_account + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js` + + +----- + + + + +### Analytics_admin_service.update_custom_dimension + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js` + + +----- + + + + +### Analytics_admin_service.update_custom_metric + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js` + + +----- + + + + +### Analytics_admin_service.update_data_retention_settings + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js` + + +----- + + + + +### Analytics_admin_service.update_data_stream + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js` + + +----- + + + + +### Analytics_admin_service.update_google_ads_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js` + + +----- + + + + +### Analytics_admin_service.update_measurement_protocol_secret + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js` + + +----- + + + + +### Analytics_admin_service.update_property + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js,samples/README.md) __Usage:__ -`node samples/quickstart.js` +`node packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js` ----- @@ -47,16 +2567,16 @@ __Usage:__ -### Quickstart_installed_oauth2 +### Quickstart -View the [source code](https://github.com/googleapis/nodejs-analytics-admin/blob/main/samples/quickstart_installed_oauth2.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/quickstart.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/quickstart_installed_oauth2.js,samples/README.md) +[![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-analytics-admin/samples/quickstart.js,samples/README.md) __Usage:__ -`node samples/quickstart_installed_oauth2.js` +`node packages/google-analytics-admin/samples/quickstart.js` @@ -64,5 +2584,5 @@ __Usage:__ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png -[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-admin&page=editor&open_in_editor=samples/README.md +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md [product-docs]: https://developers.google.com/analytics diff --git a/packages/google-analytics-admin/src/index.ts b/packages/google-analytics-admin/src/index.ts index d0d3b3239db..cc7d6dfc448 100644 --- a/packages/google-analytics-admin/src/index.ts +++ b/packages/google-analytics-admin/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/release-please-config.json b/release-please-config.json index 5aa697e37f3..17316df8909 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -50,4 +50,4 @@ } ], "release-type": "node" -} +} \ No newline at end of file From 38682d52bae0b16929d5c859a0320e62ce8bb109 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Fri, 11 Nov 2022 17:40:40 -0800 Subject: [PATCH 137/142] samples: add quickstart test --- .../samples/test/quickstart.test.js | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 packages/google-analytics-admin/samples/test/quickstart.test.js diff --git a/packages/google-analytics-admin/samples/test/quickstart.test.js b/packages/google-analytics-admin/samples/test/quickstart.test.js new file mode 100644 index 00000000000..07142cd3e30 --- /dev/null +++ b/packages/google-analytics-admin/samples/test/quickstart.test.js @@ -0,0 +1,38 @@ +// +// 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'; + +const path = require('path'); +const {assert} = require('chai'); +const cp = require('child_process'); +const {describe, it} = require('mocha'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const cwd = path.join(__dirname, '..'); + +describe('Quickstart', async () => { + it('should run quickstart', async () => { + try { + execSync('node quickstart.js', {cwd}); + } catch (err) { + // Since we don't have credentials, we need to assert this eror + assert.match(err, /insufficient authentication scopes/); + } + }); +}); From 2413211ef9fa8e6792f015d781493b0ec7d187e5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 12 Nov 2022 02:04:01 +0000 Subject: [PATCH 138/142] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= =?UTF-8?q?=20post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- packages/google-analytics-admin/README.md | 1 + .../google-analytics-admin/samples/README.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index a3e8fb9c46e..c9e3251c711 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -241,6 +241,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) | | Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.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-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/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-analytics-admin/samples/quickstart.js,samples/README.md) | +| Quickstart.test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/test/quickstart.test.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-analytics-admin/samples/test/quickstart.test.js,samples/README.md) | diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 9ffc6f63513..40867b46a97 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -154,6 +154,7 @@ * [Analytics_admin_service.update_measurement_protocol_secret](#analytics_admin_service.update_measurement_protocol_secret) * [Analytics_admin_service.update_property](#analytics_admin_service.update_property) * [Quickstart](#quickstart) + * [Quickstart.test](#quickstart.test) ## Before you begin @@ -2579,6 +2580,23 @@ __Usage:__ `node packages/google-analytics-admin/samples/quickstart.js` +----- + + + + +### Quickstart.test + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/test/quickstart.test.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-analytics-admin/samples/test/quickstart.test.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/test/quickstart.test.js` + + From 880e39ec7dbb10cba9e8e2ffadd931edbfb8452a Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Thu, 17 Nov 2022 17:13:01 -0800 Subject: [PATCH 139/142] Update quickstart.test.js --- packages/google-analytics-admin/samples/test/quickstart.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-analytics-admin/samples/test/quickstart.test.js b/packages/google-analytics-admin/samples/test/quickstart.test.js index 07142cd3e30..de63dbe0b6f 100644 --- a/packages/google-analytics-admin/samples/test/quickstart.test.js +++ b/packages/google-analytics-admin/samples/test/quickstart.test.js @@ -26,7 +26,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cwd = path.join(__dirname, '..'); -describe('Quickstart', async () => { +describe.skip('Quickstart', async () => { it('should run quickstart', async () => { try { execSync('node quickstart.js', {cwd}); From 994a723e4ce798dd3c5477e65fce130acdd87d92 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Thu, 17 Nov 2022 17:57:55 -0800 Subject: [PATCH 140/142] Delete analyticsadmin.ts --- .../system-test/analyticsadmin.ts | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 packages/google-analytics-admin/system-test/analyticsadmin.ts diff --git a/packages/google-analytics-admin/system-test/analyticsadmin.ts b/packages/google-analytics-admin/system-test/analyticsadmin.ts deleted file mode 100644 index 549ac3cafa6..00000000000 --- a/packages/google-analytics-admin/system-test/analyticsadmin.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as assert from 'assert'; -import {describe, it} from 'mocha'; - -import {AnalyticsAdminServiceClient} from '../src'; -import {google} from '../protos/protos'; - -describe('AnalyticsAdmin', () => { - const analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - - it('list Google Analytics accounts', async () => { - const request = new google.analytics.admin.v1alpha.ListAccountsRequest(); - const [accounts] = await analyticsAdminServiceClient.listAccounts(request); - assert(accounts.length); - }); -}); From 93b4835ee20038af2f7b8665086fa23f70798d33 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 18 Nov 2022 02:12:09 +0000 Subject: [PATCH 141/142] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= =?UTF-8?q?=20post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- packages/google-cloud-retail/README.md | 294 +++--- .../google-cloud-retail/samples/README.md | 882 +++++++++--------- .../src/index.ts | 6 +- release-please-config.json | 2 +- 4 files changed, 591 insertions(+), 593 deletions(-) diff --git a/packages/google-cloud-retail/README.md b/packages/google-cloud-retail/README.md index 1ca590f9d1b..dd0aa0fdcef 100644 --- a/packages/google-cloud-retail/README.md +++ b/packages/google-cloud-retail/README.md @@ -86,153 +86,153 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Catalog_service.add_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.add_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.add_catalog_attribute.js,samples/README.md) | -| Catalog_service.get_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.get_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.get_attributes_config.js,samples/README.md) | -| Catalog_service.get_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.get_completion_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.get_completion_config.js,samples/README.md) | -| Catalog_service.get_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.get_default_branch.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.get_default_branch.js,samples/README.md) | -| Catalog_service.list_catalogs | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.list_catalogs.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.list_catalogs.js,samples/README.md) | -| Catalog_service.remove_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.remove_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.remove_catalog_attribute.js,samples/README.md) | -| Catalog_service.replace_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.replace_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.replace_catalog_attribute.js,samples/README.md) | -| Catalog_service.set_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.set_default_branch.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.set_default_branch.js,samples/README.md) | -| Catalog_service.update_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.update_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.update_attributes_config.js,samples/README.md) | -| Catalog_service.update_catalog | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.update_catalog.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.update_catalog.js,samples/README.md) | -| Catalog_service.update_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.update_completion_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.update_completion_config.js,samples/README.md) | -| Completion_service.complete_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/completion_service.complete_query.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=/workspace/google-cloud-node/samples/generated/v2/completion_service.complete_query.js,samples/README.md) | -| Completion_service.import_completion_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/completion_service.import_completion_data.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=/workspace/google-cloud-node/samples/generated/v2/completion_service.import_completion_data.js,samples/README.md) | -| Control_service.create_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.create_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.create_control.js,samples/README.md) | -| Control_service.delete_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.delete_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.delete_control.js,samples/README.md) | -| Control_service.get_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.get_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.get_control.js,samples/README.md) | -| Control_service.list_controls | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.list_controls.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=/workspace/google-cloud-node/samples/generated/v2/control_service.list_controls.js,samples/README.md) | -| Control_service.update_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.update_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.update_control.js,samples/README.md) | -| Prediction_service.predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/prediction_service.predict.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=/workspace/google-cloud-node/samples/generated/v2/prediction_service.predict.js,samples/README.md) | -| Product_service.add_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.add_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2/product_service.add_fulfillment_places.js,samples/README.md) | -| Product_service.add_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.add_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2/product_service.add_local_inventories.js,samples/README.md) | -| Product_service.create_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.create_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.create_product.js,samples/README.md) | -| Product_service.delete_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.delete_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.delete_product.js,samples/README.md) | -| Product_service.get_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.get_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.get_product.js,samples/README.md) | -| Product_service.import_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.import_products.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=/workspace/google-cloud-node/samples/generated/v2/product_service.import_products.js,samples/README.md) | -| Product_service.list_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.list_products.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=/workspace/google-cloud-node/samples/generated/v2/product_service.list_products.js,samples/README.md) | -| Product_service.remove_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.remove_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2/product_service.remove_fulfillment_places.js,samples/README.md) | -| Product_service.remove_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.remove_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2/product_service.remove_local_inventories.js,samples/README.md) | -| Product_service.set_inventory | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.set_inventory.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=/workspace/google-cloud-node/samples/generated/v2/product_service.set_inventory.js,samples/README.md) | -| Product_service.update_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.update_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.update_product.js,samples/README.md) | -| Search_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/search_service.search.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=/workspace/google-cloud-node/samples/generated/v2/search_service.search.js,samples/README.md) | -| Serving_config_service.add_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.add_control.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.add_control.js,samples/README.md) | -| Serving_config_service.create_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.create_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.create_serving_config.js,samples/README.md) | -| Serving_config_service.delete_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.delete_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.delete_serving_config.js,samples/README.md) | -| Serving_config_service.get_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.get_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.get_serving_config.js,samples/README.md) | -| Serving_config_service.list_serving_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.list_serving_configs.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.list_serving_configs.js,samples/README.md) | -| Serving_config_service.remove_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.remove_control.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.remove_control.js,samples/README.md) | -| Serving_config_service.update_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.update_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.update_serving_config.js,samples/README.md) | -| User_event_service.collect_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.collect_user_event.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.collect_user_event.js,samples/README.md) | -| User_event_service.import_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.import_user_events.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.import_user_events.js,samples/README.md) | -| User_event_service.purge_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.purge_user_events.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.purge_user_events.js,samples/README.md) | -| User_event_service.rejoin_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.rejoin_user_events.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.rejoin_user_events.js,samples/README.md) | -| User_event_service.write_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.write_user_event.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.write_user_event.js,samples/README.md) | -| Catalog_service.add_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.add_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js,samples/README.md) | -| Catalog_service.get_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_attributes_config.js,samples/README.md) | -| Catalog_service.get_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_completion_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_completion_config.js,samples/README.md) | -| Catalog_service.get_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_default_branch.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_default_branch.js,samples/README.md) | -| Catalog_service.list_catalogs | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.list_catalogs.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.list_catalogs.js,samples/README.md) | -| Catalog_service.remove_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js,samples/README.md) | -| Catalog_service.replace_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js,samples/README.md) | -| Catalog_service.set_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.set_default_branch.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.set_default_branch.js,samples/README.md) | -| Catalog_service.update_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_attributes_config.js,samples/README.md) | -| Catalog_service.update_catalog | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_catalog.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_catalog.js,samples/README.md) | -| Catalog_service.update_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_completion_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_completion_config.js,samples/README.md) | -| Completion_service.complete_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/completion_service.complete_query.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=/workspace/google-cloud-node/samples/generated/v2alpha/completion_service.complete_query.js,samples/README.md) | -| Completion_service.import_completion_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/completion_service.import_completion_data.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=/workspace/google-cloud-node/samples/generated/v2alpha/completion_service.import_completion_data.js,samples/README.md) | -| Control_service.create_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.create_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.create_control.js,samples/README.md) | -| Control_service.delete_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.delete_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.delete_control.js,samples/README.md) | -| Control_service.get_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.get_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.get_control.js,samples/README.md) | -| Control_service.list_controls | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.list_controls.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.list_controls.js,samples/README.md) | -| Control_service.update_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.update_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.update_control.js,samples/README.md) | -| Model_service.create_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.create_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.create_model.js,samples/README.md) | -| Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.delete_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.delete_model.js,samples/README.md) | -| Model_service.list_models | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.list_models.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.list_models.js,samples/README.md) | -| Model_service.pause_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.pause_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.pause_model.js,samples/README.md) | -| Model_service.resume_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.resume_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.resume_model.js,samples/README.md) | -| Model_service.tune_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.tune_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.tune_model.js,samples/README.md) | -| Model_service.update_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.update_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.update_model.js,samples/README.md) | -| Prediction_service.predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/prediction_service.predict.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=/workspace/google-cloud-node/samples/generated/v2alpha/prediction_service.predict.js,samples/README.md) | -| Product_service.add_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_fulfillment_places.js,samples/README.md) | -| Product_service.add_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_local_inventories.js,samples/README.md) | -| Product_service.create_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.create_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.create_product.js,samples/README.md) | -| Product_service.delete_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.delete_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.delete_product.js,samples/README.md) | -| Product_service.get_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.get_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.get_product.js,samples/README.md) | -| Product_service.import_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.import_products.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.import_products.js,samples/README.md) | -| Product_service.list_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.list_products.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.list_products.js,samples/README.md) | -| Product_service.purge_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.purge_products.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.purge_products.js,samples/README.md) | -| Product_service.remove_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_fulfillment_places.js,samples/README.md) | -| Product_service.remove_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_local_inventories.js,samples/README.md) | -| Product_service.set_inventory | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.set_inventory.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.set_inventory.js,samples/README.md) | -| Product_service.update_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.update_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.update_product.js,samples/README.md) | -| Search_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/search_service.search.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=/workspace/google-cloud-node/samples/generated/v2alpha/search_service.search.js,samples/README.md) | -| Serving_config_service.add_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.add_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.add_control.js,samples/README.md) | -| Serving_config_service.create_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.create_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.create_serving_config.js,samples/README.md) | -| Serving_config_service.delete_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.delete_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.delete_serving_config.js,samples/README.md) | -| Serving_config_service.get_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.get_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.get_serving_config.js,samples/README.md) | -| Serving_config_service.list_serving_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.list_serving_configs.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.list_serving_configs.js,samples/README.md) | -| Serving_config_service.remove_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.remove_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.remove_control.js,samples/README.md) | -| Serving_config_service.update_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.update_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.update_serving_config.js,samples/README.md) | -| User_event_service.collect_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.collect_user_event.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.collect_user_event.js,samples/README.md) | -| User_event_service.import_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.import_user_events.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.import_user_events.js,samples/README.md) | -| User_event_service.purge_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.purge_user_events.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.purge_user_events.js,samples/README.md) | -| User_event_service.rejoin_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.rejoin_user_events.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.rejoin_user_events.js,samples/README.md) | -| User_event_service.write_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.write_user_event.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.write_user_event.js,samples/README.md) | -| Catalog_service.add_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.add_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.add_catalog_attribute.js,samples/README.md) | -| Catalog_service.batch_remove_catalog_attributes | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js,samples/README.md) | -| Catalog_service.get_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_attributes_config.js,samples/README.md) | -| Catalog_service.get_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_completion_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_completion_config.js,samples/README.md) | -| Catalog_service.get_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_default_branch.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_default_branch.js,samples/README.md) | -| Catalog_service.list_catalogs | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.list_catalogs.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.list_catalogs.js,samples/README.md) | -| Catalog_service.remove_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.remove_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js,samples/README.md) | -| Catalog_service.replace_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.replace_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js,samples/README.md) | -| Catalog_service.set_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.set_default_branch.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.set_default_branch.js,samples/README.md) | -| Catalog_service.update_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_attributes_config.js,samples/README.md) | -| Catalog_service.update_catalog | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_catalog.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_catalog.js,samples/README.md) | -| Catalog_service.update_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_completion_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_completion_config.js,samples/README.md) | -| Completion_service.complete_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/completion_service.complete_query.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=/workspace/google-cloud-node/samples/generated/v2beta/completion_service.complete_query.js,samples/README.md) | -| Completion_service.import_completion_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/completion_service.import_completion_data.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=/workspace/google-cloud-node/samples/generated/v2beta/completion_service.import_completion_data.js,samples/README.md) | -| Control_service.create_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.create_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.create_control.js,samples/README.md) | -| Control_service.delete_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.delete_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.delete_control.js,samples/README.md) | -| Control_service.get_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.get_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.get_control.js,samples/README.md) | -| Control_service.list_controls | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.list_controls.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.list_controls.js,samples/README.md) | -| Control_service.update_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.update_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.update_control.js,samples/README.md) | -| Model_service.create_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.create_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.create_model.js,samples/README.md) | -| Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.delete_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.delete_model.js,samples/README.md) | -| Model_service.list_models | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.list_models.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.list_models.js,samples/README.md) | -| Model_service.pause_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.pause_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.pause_model.js,samples/README.md) | -| Model_service.resume_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.resume_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.resume_model.js,samples/README.md) | -| Model_service.tune_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.tune_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.tune_model.js,samples/README.md) | -| Model_service.update_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.update_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.update_model.js,samples/README.md) | -| Prediction_service.predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/prediction_service.predict.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=/workspace/google-cloud-node/samples/generated/v2beta/prediction_service.predict.js,samples/README.md) | -| Product_service.add_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.add_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.add_fulfillment_places.js,samples/README.md) | -| Product_service.add_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.add_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.add_local_inventories.js,samples/README.md) | -| Product_service.create_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.create_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.create_product.js,samples/README.md) | -| Product_service.delete_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.delete_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.delete_product.js,samples/README.md) | -| Product_service.get_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.get_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.get_product.js,samples/README.md) | -| Product_service.import_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.import_products.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.import_products.js,samples/README.md) | -| Product_service.list_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.list_products.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.list_products.js,samples/README.md) | -| Product_service.remove_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_fulfillment_places.js,samples/README.md) | -| Product_service.remove_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_local_inventories.js,samples/README.md) | -| Product_service.set_inventory | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.set_inventory.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.set_inventory.js,samples/README.md) | -| Product_service.update_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.update_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.update_product.js,samples/README.md) | -| Search_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/search_service.search.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=/workspace/google-cloud-node/samples/generated/v2beta/search_service.search.js,samples/README.md) | -| Serving_config_service.add_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.add_control.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.add_control.js,samples/README.md) | -| Serving_config_service.create_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.create_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.create_serving_config.js,samples/README.md) | -| Serving_config_service.delete_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.delete_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.delete_serving_config.js,samples/README.md) | -| Serving_config_service.get_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.get_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.get_serving_config.js,samples/README.md) | -| Serving_config_service.list_serving_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.list_serving_configs.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.list_serving_configs.js,samples/README.md) | -| Serving_config_service.remove_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.remove_control.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.remove_control.js,samples/README.md) | -| Serving_config_service.update_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.update_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.update_serving_config.js,samples/README.md) | -| User_event_service.collect_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.collect_user_event.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.collect_user_event.js,samples/README.md) | -| User_event_service.import_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.import_user_events.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.import_user_events.js,samples/README.md) | -| User_event_service.purge_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.purge_user_events.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.purge_user_events.js,samples/README.md) | -| User_event_service.rejoin_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.rejoin_user_events.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.rejoin_user_events.js,samples/README.md) | -| User_event_service.write_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.write_user_event.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.write_user_event.js,samples/README.md) | -| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/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=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) | -| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/test/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=/workspace/google-cloud-node/samples/test/quickstart.js,samples/README.md) | +| Catalog_service.add_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.add_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.add_catalog_attribute.js,samples/README.md) | +| Catalog_service.get_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.get_attributes_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.get_attributes_config.js,samples/README.md) | +| Catalog_service.get_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.get_completion_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.get_completion_config.js,samples/README.md) | +| Catalog_service.get_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.get_default_branch.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.get_default_branch.js,samples/README.md) | +| Catalog_service.list_catalogs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.list_catalogs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.list_catalogs.js,samples/README.md) | +| Catalog_service.remove_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.remove_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.remove_catalog_attribute.js,samples/README.md) | +| Catalog_service.replace_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.replace_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.replace_catalog_attribute.js,samples/README.md) | +| Catalog_service.set_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.set_default_branch.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.set_default_branch.js,samples/README.md) | +| Catalog_service.update_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.update_attributes_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.update_attributes_config.js,samples/README.md) | +| Catalog_service.update_catalog | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.update_catalog.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.update_catalog.js,samples/README.md) | +| Catalog_service.update_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.update_completion_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.update_completion_config.js,samples/README.md) | +| Completion_service.complete_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/completion_service.complete_query.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/completion_service.complete_query.js,samples/README.md) | +| Completion_service.import_completion_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/completion_service.import_completion_data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/completion_service.import_completion_data.js,samples/README.md) | +| Control_service.create_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.create_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.create_control.js,samples/README.md) | +| Control_service.delete_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.delete_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.delete_control.js,samples/README.md) | +| Control_service.get_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.get_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.get_control.js,samples/README.md) | +| Control_service.list_controls | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.list_controls.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.list_controls.js,samples/README.md) | +| Control_service.update_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.update_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.update_control.js,samples/README.md) | +| Prediction_service.predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/prediction_service.predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/prediction_service.predict.js,samples/README.md) | +| Product_service.add_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.add_fulfillment_places.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.add_fulfillment_places.js,samples/README.md) | +| Product_service.add_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.add_local_inventories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.add_local_inventories.js,samples/README.md) | +| Product_service.create_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.create_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.create_product.js,samples/README.md) | +| Product_service.delete_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.delete_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.delete_product.js,samples/README.md) | +| Product_service.get_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.get_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.get_product.js,samples/README.md) | +| Product_service.import_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.import_products.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.import_products.js,samples/README.md) | +| Product_service.list_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.list_products.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.list_products.js,samples/README.md) | +| Product_service.remove_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.remove_fulfillment_places.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.remove_fulfillment_places.js,samples/README.md) | +| Product_service.remove_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.remove_local_inventories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.remove_local_inventories.js,samples/README.md) | +| Product_service.set_inventory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.set_inventory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.set_inventory.js,samples/README.md) | +| Product_service.update_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.update_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.update_product.js,samples/README.md) | +| Search_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/search_service.search.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/search_service.search.js,samples/README.md) | +| Serving_config_service.add_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.add_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.add_control.js,samples/README.md) | +| Serving_config_service.create_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.create_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.create_serving_config.js,samples/README.md) | +| Serving_config_service.delete_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.delete_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.delete_serving_config.js,samples/README.md) | +| Serving_config_service.get_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.get_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.get_serving_config.js,samples/README.md) | +| Serving_config_service.list_serving_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.list_serving_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.list_serving_configs.js,samples/README.md) | +| Serving_config_service.remove_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.remove_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.remove_control.js,samples/README.md) | +| Serving_config_service.update_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.update_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.update_serving_config.js,samples/README.md) | +| User_event_service.collect_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.collect_user_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.collect_user_event.js,samples/README.md) | +| User_event_service.import_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.import_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.import_user_events.js,samples/README.md) | +| User_event_service.purge_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.purge_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.purge_user_events.js,samples/README.md) | +| User_event_service.rejoin_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.rejoin_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.rejoin_user_events.js,samples/README.md) | +| User_event_service.write_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.write_user_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.write_user_event.js,samples/README.md) | +| Catalog_service.add_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js,samples/README.md) | +| Catalog_service.get_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_attributes_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_attributes_config.js,samples/README.md) | +| Catalog_service.get_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_completion_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_completion_config.js,samples/README.md) | +| Catalog_service.get_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_default_branch.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_default_branch.js,samples/README.md) | +| Catalog_service.list_catalogs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.list_catalogs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.list_catalogs.js,samples/README.md) | +| Catalog_service.remove_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js,samples/README.md) | +| Catalog_service.replace_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js,samples/README.md) | +| Catalog_service.set_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.set_default_branch.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.set_default_branch.js,samples/README.md) | +| Catalog_service.update_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_attributes_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_attributes_config.js,samples/README.md) | +| Catalog_service.update_catalog | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_catalog.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_catalog.js,samples/README.md) | +| Catalog_service.update_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_completion_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_completion_config.js,samples/README.md) | +| Completion_service.complete_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/completion_service.complete_query.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/completion_service.complete_query.js,samples/README.md) | +| Completion_service.import_completion_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/completion_service.import_completion_data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/completion_service.import_completion_data.js,samples/README.md) | +| Control_service.create_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.create_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.create_control.js,samples/README.md) | +| Control_service.delete_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.delete_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.delete_control.js,samples/README.md) | +| Control_service.get_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.get_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.get_control.js,samples/README.md) | +| Control_service.list_controls | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.list_controls.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.list_controls.js,samples/README.md) | +| Control_service.update_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.update_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.update_control.js,samples/README.md) | +| Model_service.create_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.create_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.create_model.js,samples/README.md) | +| Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.delete_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.delete_model.js,samples/README.md) | +| Model_service.list_models | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.list_models.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.list_models.js,samples/README.md) | +| Model_service.pause_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.pause_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.pause_model.js,samples/README.md) | +| Model_service.resume_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.resume_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.resume_model.js,samples/README.md) | +| Model_service.tune_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.tune_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.tune_model.js,samples/README.md) | +| Model_service.update_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.update_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.update_model.js,samples/README.md) | +| Prediction_service.predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/prediction_service.predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/prediction_service.predict.js,samples/README.md) | +| Product_service.add_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_fulfillment_places.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_fulfillment_places.js,samples/README.md) | +| Product_service.add_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_local_inventories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_local_inventories.js,samples/README.md) | +| Product_service.create_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.create_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.create_product.js,samples/README.md) | +| Product_service.delete_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.delete_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.delete_product.js,samples/README.md) | +| Product_service.get_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.get_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.get_product.js,samples/README.md) | +| Product_service.import_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.import_products.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.import_products.js,samples/README.md) | +| Product_service.list_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.list_products.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.list_products.js,samples/README.md) | +| Product_service.purge_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.purge_products.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.purge_products.js,samples/README.md) | +| Product_service.remove_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_fulfillment_places.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_fulfillment_places.js,samples/README.md) | +| Product_service.remove_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_local_inventories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_local_inventories.js,samples/README.md) | +| Product_service.set_inventory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.set_inventory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.set_inventory.js,samples/README.md) | +| Product_service.update_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.update_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.update_product.js,samples/README.md) | +| Search_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/search_service.search.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/search_service.search.js,samples/README.md) | +| Serving_config_service.add_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.add_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.add_control.js,samples/README.md) | +| Serving_config_service.create_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.create_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.create_serving_config.js,samples/README.md) | +| Serving_config_service.delete_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.delete_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.delete_serving_config.js,samples/README.md) | +| Serving_config_service.get_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.get_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.get_serving_config.js,samples/README.md) | +| Serving_config_service.list_serving_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.list_serving_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.list_serving_configs.js,samples/README.md) | +| Serving_config_service.remove_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.remove_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.remove_control.js,samples/README.md) | +| Serving_config_service.update_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.update_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.update_serving_config.js,samples/README.md) | +| User_event_service.collect_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.collect_user_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.collect_user_event.js,samples/README.md) | +| User_event_service.import_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.import_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.import_user_events.js,samples/README.md) | +| User_event_service.purge_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.purge_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.purge_user_events.js,samples/README.md) | +| User_event_service.rejoin_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.rejoin_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.rejoin_user_events.js,samples/README.md) | +| User_event_service.write_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.write_user_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.write_user_event.js,samples/README.md) | +| Catalog_service.add_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.add_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.add_catalog_attribute.js,samples/README.md) | +| Catalog_service.batch_remove_catalog_attributes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js,samples/README.md) | +| Catalog_service.get_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_attributes_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_attributes_config.js,samples/README.md) | +| Catalog_service.get_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_completion_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_completion_config.js,samples/README.md) | +| Catalog_service.get_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_default_branch.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_default_branch.js,samples/README.md) | +| Catalog_service.list_catalogs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.list_catalogs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.list_catalogs.js,samples/README.md) | +| Catalog_service.remove_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js,samples/README.md) | +| Catalog_service.replace_catalog_attribute | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js,samples/README.md) | +| Catalog_service.set_default_branch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.set_default_branch.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.set_default_branch.js,samples/README.md) | +| Catalog_service.update_attributes_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_attributes_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_attributes_config.js,samples/README.md) | +| Catalog_service.update_catalog | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_catalog.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_catalog.js,samples/README.md) | +| Catalog_service.update_completion_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_completion_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_completion_config.js,samples/README.md) | +| Completion_service.complete_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/completion_service.complete_query.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/completion_service.complete_query.js,samples/README.md) | +| Completion_service.import_completion_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/completion_service.import_completion_data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/completion_service.import_completion_data.js,samples/README.md) | +| Control_service.create_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.create_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.create_control.js,samples/README.md) | +| Control_service.delete_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.delete_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.delete_control.js,samples/README.md) | +| Control_service.get_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.get_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.get_control.js,samples/README.md) | +| Control_service.list_controls | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.list_controls.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.list_controls.js,samples/README.md) | +| Control_service.update_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.update_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.update_control.js,samples/README.md) | +| Model_service.create_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.create_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.create_model.js,samples/README.md) | +| Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.delete_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.delete_model.js,samples/README.md) | +| Model_service.list_models | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.list_models.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.list_models.js,samples/README.md) | +| Model_service.pause_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.pause_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.pause_model.js,samples/README.md) | +| Model_service.resume_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.resume_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.resume_model.js,samples/README.md) | +| Model_service.tune_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.tune_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.tune_model.js,samples/README.md) | +| Model_service.update_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.update_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.update_model.js,samples/README.md) | +| Prediction_service.predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/prediction_service.predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/prediction_service.predict.js,samples/README.md) | +| Product_service.add_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.add_fulfillment_places.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.add_fulfillment_places.js,samples/README.md) | +| Product_service.add_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.add_local_inventories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.add_local_inventories.js,samples/README.md) | +| Product_service.create_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.create_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.create_product.js,samples/README.md) | +| Product_service.delete_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.delete_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.delete_product.js,samples/README.md) | +| Product_service.get_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.get_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.get_product.js,samples/README.md) | +| Product_service.import_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.import_products.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.import_products.js,samples/README.md) | +| Product_service.list_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.list_products.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.list_products.js,samples/README.md) | +| Product_service.remove_fulfillment_places | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_fulfillment_places.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_fulfillment_places.js,samples/README.md) | +| Product_service.remove_local_inventories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_local_inventories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_local_inventories.js,samples/README.md) | +| Product_service.set_inventory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.set_inventory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.set_inventory.js,samples/README.md) | +| Product_service.update_product | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.update_product.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.update_product.js,samples/README.md) | +| Search_service.search | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/search_service.search.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/search_service.search.js,samples/README.md) | +| Serving_config_service.add_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.add_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.add_control.js,samples/README.md) | +| Serving_config_service.create_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.create_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.create_serving_config.js,samples/README.md) | +| Serving_config_service.delete_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.delete_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.delete_serving_config.js,samples/README.md) | +| Serving_config_service.get_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.get_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.get_serving_config.js,samples/README.md) | +| Serving_config_service.list_serving_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.list_serving_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.list_serving_configs.js,samples/README.md) | +| Serving_config_service.remove_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.remove_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.remove_control.js,samples/README.md) | +| Serving_config_service.update_serving_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.update_serving_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.update_serving_config.js,samples/README.md) | +| User_event_service.collect_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.collect_user_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.collect_user_event.js,samples/README.md) | +| User_event_service.import_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.import_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.import_user_events.js,samples/README.md) | +| User_event_service.purge_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.purge_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.purge_user_events.js,samples/README.md) | +| User_event_service.rejoin_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.rejoin_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.rejoin_user_events.js,samples/README.md) | +| User_event_service.write_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.write_user_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.write_user_event.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/quickstart.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/test/quickstart.js,samples/README.md) | diff --git a/packages/google-cloud-retail/samples/README.md b/packages/google-cloud-retail/samples/README.md index ccdc4ee0229..43cb51ffbbb 100644 --- a/packages/google-cloud-retail/samples/README.md +++ b/packages/google-cloud-retail/samples/README.md @@ -177,14 +177,14 @@ Before running the samples, make sure you've followed the steps outlined in ### Catalog_service.add_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.add_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.add_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.add_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.add_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.add_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.add_catalog_attribute.js` ----- @@ -194,14 +194,14 @@ __Usage:__ ### Catalog_service.get_attributes_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.get_attributes_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.get_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.get_attributes_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.get_attributes_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.get_attributes_config.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.get_attributes_config.js` ----- @@ -211,14 +211,14 @@ __Usage:__ ### Catalog_service.get_completion_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.get_completion_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.get_completion_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.get_completion_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.get_completion_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.get_completion_config.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.get_completion_config.js` ----- @@ -228,14 +228,14 @@ __Usage:__ ### Catalog_service.get_default_branch -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.get_default_branch.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.get_default_branch.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.get_default_branch.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.get_default_branch.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.get_default_branch.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.get_default_branch.js` ----- @@ -245,14 +245,14 @@ __Usage:__ ### Catalog_service.list_catalogs -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.list_catalogs.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.list_catalogs.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.list_catalogs.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.list_catalogs.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.list_catalogs.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.list_catalogs.js` ----- @@ -262,14 +262,14 @@ __Usage:__ ### Catalog_service.remove_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.remove_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.remove_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.remove_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.remove_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.remove_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.remove_catalog_attribute.js` ----- @@ -279,14 +279,14 @@ __Usage:__ ### Catalog_service.replace_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.replace_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.replace_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.replace_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.replace_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.replace_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.replace_catalog_attribute.js` ----- @@ -296,14 +296,14 @@ __Usage:__ ### Catalog_service.set_default_branch -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.set_default_branch.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.set_default_branch.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.set_default_branch.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.set_default_branch.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.set_default_branch.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.set_default_branch.js` ----- @@ -313,14 +313,14 @@ __Usage:__ ### Catalog_service.update_attributes_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.update_attributes_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.update_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.update_attributes_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.update_attributes_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.update_attributes_config.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.update_attributes_config.js` ----- @@ -330,14 +330,14 @@ __Usage:__ ### Catalog_service.update_catalog -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.update_catalog.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.update_catalog.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.update_catalog.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.update_catalog.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.update_catalog.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.update_catalog.js` ----- @@ -347,14 +347,14 @@ __Usage:__ ### Catalog_service.update_completion_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/catalog_service.update_completion_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/catalog_service.update_completion_config.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=/workspace/google-cloud-node/samples/generated/v2/catalog_service.update_completion_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/catalog_service.update_completion_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/catalog_service.update_completion_config.js` +`node packages/google-cloud-retail/samples/generated/v2/catalog_service.update_completion_config.js` ----- @@ -364,14 +364,14 @@ __Usage:__ ### Completion_service.complete_query -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/completion_service.complete_query.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/completion_service.complete_query.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=/workspace/google-cloud-node/samples/generated/v2/completion_service.complete_query.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/completion_service.complete_query.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/completion_service.complete_query.js` +`node packages/google-cloud-retail/samples/generated/v2/completion_service.complete_query.js` ----- @@ -381,14 +381,14 @@ __Usage:__ ### Completion_service.import_completion_data -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/completion_service.import_completion_data.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/completion_service.import_completion_data.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=/workspace/google-cloud-node/samples/generated/v2/completion_service.import_completion_data.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/completion_service.import_completion_data.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/completion_service.import_completion_data.js` +`node packages/google-cloud-retail/samples/generated/v2/completion_service.import_completion_data.js` ----- @@ -398,14 +398,14 @@ __Usage:__ ### Control_service.create_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.create_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.create_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.create_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.create_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/control_service.create_control.js` +`node packages/google-cloud-retail/samples/generated/v2/control_service.create_control.js` ----- @@ -415,14 +415,14 @@ __Usage:__ ### Control_service.delete_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.delete_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.delete_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.delete_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.delete_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/control_service.delete_control.js` +`node packages/google-cloud-retail/samples/generated/v2/control_service.delete_control.js` ----- @@ -432,14 +432,14 @@ __Usage:__ ### Control_service.get_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.get_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.get_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.get_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.get_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/control_service.get_control.js` +`node packages/google-cloud-retail/samples/generated/v2/control_service.get_control.js` ----- @@ -449,14 +449,14 @@ __Usage:__ ### Control_service.list_controls -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.list_controls.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.list_controls.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=/workspace/google-cloud-node/samples/generated/v2/control_service.list_controls.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.list_controls.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/control_service.list_controls.js` +`node packages/google-cloud-retail/samples/generated/v2/control_service.list_controls.js` ----- @@ -466,14 +466,14 @@ __Usage:__ ### Control_service.update_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/control_service.update_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/control_service.update_control.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=/workspace/google-cloud-node/samples/generated/v2/control_service.update_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/control_service.update_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/control_service.update_control.js` +`node packages/google-cloud-retail/samples/generated/v2/control_service.update_control.js` ----- @@ -483,14 +483,14 @@ __Usage:__ ### Prediction_service.predict -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/prediction_service.predict.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/prediction_service.predict.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=/workspace/google-cloud-node/samples/generated/v2/prediction_service.predict.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/prediction_service.predict.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/prediction_service.predict.js` +`node packages/google-cloud-retail/samples/generated/v2/prediction_service.predict.js` ----- @@ -500,14 +500,14 @@ __Usage:__ ### Product_service.add_fulfillment_places -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.add_fulfillment_places.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.add_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2/product_service.add_fulfillment_places.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.add_fulfillment_places.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.add_fulfillment_places.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.add_fulfillment_places.js` ----- @@ -517,14 +517,14 @@ __Usage:__ ### Product_service.add_local_inventories -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.add_local_inventories.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.add_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2/product_service.add_local_inventories.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.add_local_inventories.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.add_local_inventories.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.add_local_inventories.js` ----- @@ -534,14 +534,14 @@ __Usage:__ ### Product_service.create_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.create_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.create_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.create_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.create_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.create_product.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.create_product.js` ----- @@ -551,14 +551,14 @@ __Usage:__ ### Product_service.delete_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.delete_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.delete_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.delete_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.delete_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.delete_product.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.delete_product.js` ----- @@ -568,14 +568,14 @@ __Usage:__ ### Product_service.get_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.get_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.get_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.get_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.get_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.get_product.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.get_product.js` ----- @@ -585,14 +585,14 @@ __Usage:__ ### Product_service.import_products -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.import_products.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.import_products.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=/workspace/google-cloud-node/samples/generated/v2/product_service.import_products.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.import_products.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.import_products.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.import_products.js` ----- @@ -602,14 +602,14 @@ __Usage:__ ### Product_service.list_products -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.list_products.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.list_products.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=/workspace/google-cloud-node/samples/generated/v2/product_service.list_products.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.list_products.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.list_products.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.list_products.js` ----- @@ -619,14 +619,14 @@ __Usage:__ ### Product_service.remove_fulfillment_places -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.remove_fulfillment_places.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.remove_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2/product_service.remove_fulfillment_places.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.remove_fulfillment_places.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.remove_fulfillment_places.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.remove_fulfillment_places.js` ----- @@ -636,14 +636,14 @@ __Usage:__ ### Product_service.remove_local_inventories -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.remove_local_inventories.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.remove_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2/product_service.remove_local_inventories.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.remove_local_inventories.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.remove_local_inventories.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.remove_local_inventories.js` ----- @@ -653,14 +653,14 @@ __Usage:__ ### Product_service.set_inventory -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.set_inventory.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.set_inventory.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=/workspace/google-cloud-node/samples/generated/v2/product_service.set_inventory.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.set_inventory.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.set_inventory.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.set_inventory.js` ----- @@ -670,14 +670,14 @@ __Usage:__ ### Product_service.update_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/product_service.update_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/product_service.update_product.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=/workspace/google-cloud-node/samples/generated/v2/product_service.update_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/product_service.update_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/product_service.update_product.js` +`node packages/google-cloud-retail/samples/generated/v2/product_service.update_product.js` ----- @@ -687,14 +687,14 @@ __Usage:__ ### Search_service.search -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/search_service.search.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/search_service.search.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=/workspace/google-cloud-node/samples/generated/v2/search_service.search.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/search_service.search.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/search_service.search.js` +`node packages/google-cloud-retail/samples/generated/v2/search_service.search.js` ----- @@ -704,14 +704,14 @@ __Usage:__ ### Serving_config_service.add_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.add_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.add_control.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.add_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.add_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/serving_config_service.add_control.js` +`node packages/google-cloud-retail/samples/generated/v2/serving_config_service.add_control.js` ----- @@ -721,14 +721,14 @@ __Usage:__ ### Serving_config_service.create_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.create_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.create_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.create_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.create_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/serving_config_service.create_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2/serving_config_service.create_serving_config.js` ----- @@ -738,14 +738,14 @@ __Usage:__ ### Serving_config_service.delete_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.delete_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.delete_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.delete_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.delete_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/serving_config_service.delete_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2/serving_config_service.delete_serving_config.js` ----- @@ -755,14 +755,14 @@ __Usage:__ ### Serving_config_service.get_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.get_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.get_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.get_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.get_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/serving_config_service.get_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2/serving_config_service.get_serving_config.js` ----- @@ -772,14 +772,14 @@ __Usage:__ ### Serving_config_service.list_serving_configs -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.list_serving_configs.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.list_serving_configs.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.list_serving_configs.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.list_serving_configs.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/serving_config_service.list_serving_configs.js` +`node packages/google-cloud-retail/samples/generated/v2/serving_config_service.list_serving_configs.js` ----- @@ -789,14 +789,14 @@ __Usage:__ ### Serving_config_service.remove_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.remove_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.remove_control.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.remove_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.remove_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/serving_config_service.remove_control.js` +`node packages/google-cloud-retail/samples/generated/v2/serving_config_service.remove_control.js` ----- @@ -806,14 +806,14 @@ __Usage:__ ### Serving_config_service.update_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/serving_config_service.update_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/serving_config_service.update_serving_config.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=/workspace/google-cloud-node/samples/generated/v2/serving_config_service.update_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/serving_config_service.update_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/serving_config_service.update_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2/serving_config_service.update_serving_config.js` ----- @@ -823,14 +823,14 @@ __Usage:__ ### User_event_service.collect_user_event -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.collect_user_event.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.collect_user_event.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.collect_user_event.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.collect_user_event.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/user_event_service.collect_user_event.js` +`node packages/google-cloud-retail/samples/generated/v2/user_event_service.collect_user_event.js` ----- @@ -840,14 +840,14 @@ __Usage:__ ### User_event_service.import_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.import_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.import_user_events.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.import_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.import_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/user_event_service.import_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2/user_event_service.import_user_events.js` ----- @@ -857,14 +857,14 @@ __Usage:__ ### User_event_service.purge_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.purge_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.purge_user_events.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.purge_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.purge_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/user_event_service.purge_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2/user_event_service.purge_user_events.js` ----- @@ -874,14 +874,14 @@ __Usage:__ ### User_event_service.rejoin_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.rejoin_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.rejoin_user_events.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.rejoin_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.rejoin_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/user_event_service.rejoin_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2/user_event_service.rejoin_user_events.js` ----- @@ -891,14 +891,14 @@ __Usage:__ ### User_event_service.write_user_event -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/user_event_service.write_user_event.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2/user_event_service.write_user_event.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=/workspace/google-cloud-node/samples/generated/v2/user_event_service.write_user_event.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2/user_event_service.write_user_event.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2/user_event_service.write_user_event.js` +`node packages/google-cloud-retail/samples/generated/v2/user_event_service.write_user_event.js` ----- @@ -908,14 +908,14 @@ __Usage:__ ### Catalog_service.add_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.add_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.add_catalog_attribute.js` ----- @@ -925,14 +925,14 @@ __Usage:__ ### Catalog_service.get_attributes_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_attributes_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_attributes_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_attributes_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_attributes_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_attributes_config.js` ----- @@ -942,14 +942,14 @@ __Usage:__ ### Catalog_service.get_completion_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_completion_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_completion_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_completion_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_completion_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_completion_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_completion_config.js` ----- @@ -959,14 +959,14 @@ __Usage:__ ### Catalog_service.get_default_branch -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_default_branch.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_default_branch.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_default_branch.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_default_branch.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.get_default_branch.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.get_default_branch.js` ----- @@ -976,14 +976,14 @@ __Usage:__ ### Catalog_service.list_catalogs -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.list_catalogs.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.list_catalogs.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.list_catalogs.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.list_catalogs.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.list_catalogs.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.list_catalogs.js` ----- @@ -993,14 +993,14 @@ __Usage:__ ### Catalog_service.remove_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.remove_catalog_attribute.js` ----- @@ -1010,14 +1010,14 @@ __Usage:__ ### Catalog_service.replace_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.replace_catalog_attribute.js` ----- @@ -1027,14 +1027,14 @@ __Usage:__ ### Catalog_service.set_default_branch -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.set_default_branch.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.set_default_branch.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.set_default_branch.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.set_default_branch.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.set_default_branch.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.set_default_branch.js` ----- @@ -1044,14 +1044,14 @@ __Usage:__ ### Catalog_service.update_attributes_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_attributes_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_attributes_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_attributes_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_attributes_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_attributes_config.js` ----- @@ -1061,14 +1061,14 @@ __Usage:__ ### Catalog_service.update_catalog -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_catalog.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_catalog.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_catalog.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_catalog.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_catalog.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_catalog.js` ----- @@ -1078,14 +1078,14 @@ __Usage:__ ### Catalog_service.update_completion_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_completion_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_completion_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_completion_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_completion_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/catalog_service.update_completion_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/catalog_service.update_completion_config.js` ----- @@ -1095,14 +1095,14 @@ __Usage:__ ### Completion_service.complete_query -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/completion_service.complete_query.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/completion_service.complete_query.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=/workspace/google-cloud-node/samples/generated/v2alpha/completion_service.complete_query.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/completion_service.complete_query.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/completion_service.complete_query.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/completion_service.complete_query.js` ----- @@ -1112,14 +1112,14 @@ __Usage:__ ### Completion_service.import_completion_data -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/completion_service.import_completion_data.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/completion_service.import_completion_data.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=/workspace/google-cloud-node/samples/generated/v2alpha/completion_service.import_completion_data.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/completion_service.import_completion_data.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/completion_service.import_completion_data.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/completion_service.import_completion_data.js` ----- @@ -1129,14 +1129,14 @@ __Usage:__ ### Control_service.create_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.create_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.create_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.create_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.create_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/control_service.create_control.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/control_service.create_control.js` ----- @@ -1146,14 +1146,14 @@ __Usage:__ ### Control_service.delete_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.delete_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.delete_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.delete_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.delete_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/control_service.delete_control.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/control_service.delete_control.js` ----- @@ -1163,14 +1163,14 @@ __Usage:__ ### Control_service.get_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.get_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.get_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.get_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.get_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/control_service.get_control.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/control_service.get_control.js` ----- @@ -1180,14 +1180,14 @@ __Usage:__ ### Control_service.list_controls -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.list_controls.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.list_controls.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.list_controls.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.list_controls.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/control_service.list_controls.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/control_service.list_controls.js` ----- @@ -1197,14 +1197,14 @@ __Usage:__ ### Control_service.update_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/control_service.update_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/control_service.update_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/control_service.update_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/control_service.update_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/control_service.update_control.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/control_service.update_control.js` ----- @@ -1214,14 +1214,14 @@ __Usage:__ ### Model_service.create_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.create_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.create_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.create_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.create_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/model_service.create_model.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/model_service.create_model.js` ----- @@ -1231,14 +1231,14 @@ __Usage:__ ### Model_service.delete_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.delete_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.delete_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.delete_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.delete_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/model_service.delete_model.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/model_service.delete_model.js` ----- @@ -1248,14 +1248,14 @@ __Usage:__ ### Model_service.list_models -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.list_models.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.list_models.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.list_models.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.list_models.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/model_service.list_models.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/model_service.list_models.js` ----- @@ -1265,14 +1265,14 @@ __Usage:__ ### Model_service.pause_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.pause_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.pause_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.pause_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.pause_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/model_service.pause_model.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/model_service.pause_model.js` ----- @@ -1282,14 +1282,14 @@ __Usage:__ ### Model_service.resume_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.resume_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.resume_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.resume_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.resume_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/model_service.resume_model.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/model_service.resume_model.js` ----- @@ -1299,14 +1299,14 @@ __Usage:__ ### Model_service.tune_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.tune_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.tune_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.tune_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.tune_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/model_service.tune_model.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/model_service.tune_model.js` ----- @@ -1316,14 +1316,14 @@ __Usage:__ ### Model_service.update_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/model_service.update_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/model_service.update_model.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=/workspace/google-cloud-node/samples/generated/v2alpha/model_service.update_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/model_service.update_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/model_service.update_model.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/model_service.update_model.js` ----- @@ -1333,14 +1333,14 @@ __Usage:__ ### Prediction_service.predict -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/prediction_service.predict.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/prediction_service.predict.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=/workspace/google-cloud-node/samples/generated/v2alpha/prediction_service.predict.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/prediction_service.predict.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/prediction_service.predict.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/prediction_service.predict.js` ----- @@ -1350,14 +1350,14 @@ __Usage:__ ### Product_service.add_fulfillment_places -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_fulfillment_places.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_fulfillment_places.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_fulfillment_places.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_fulfillment_places.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_fulfillment_places.js` ----- @@ -1367,14 +1367,14 @@ __Usage:__ ### Product_service.add_local_inventories -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_local_inventories.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_local_inventories.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_local_inventories.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.add_local_inventories.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.add_local_inventories.js` ----- @@ -1384,14 +1384,14 @@ __Usage:__ ### Product_service.create_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.create_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.create_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.create_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.create_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.create_product.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.create_product.js` ----- @@ -1401,14 +1401,14 @@ __Usage:__ ### Product_service.delete_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.delete_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.delete_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.delete_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.delete_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.delete_product.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.delete_product.js` ----- @@ -1418,14 +1418,14 @@ __Usage:__ ### Product_service.get_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.get_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.get_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.get_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.get_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.get_product.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.get_product.js` ----- @@ -1435,14 +1435,14 @@ __Usage:__ ### Product_service.import_products -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.import_products.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.import_products.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.import_products.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.import_products.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.import_products.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.import_products.js` ----- @@ -1452,14 +1452,14 @@ __Usage:__ ### Product_service.list_products -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.list_products.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.list_products.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.list_products.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.list_products.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.list_products.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.list_products.js` ----- @@ -1469,14 +1469,14 @@ __Usage:__ ### Product_service.purge_products -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.purge_products.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.purge_products.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.purge_products.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.purge_products.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.purge_products.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.purge_products.js` ----- @@ -1486,14 +1486,14 @@ __Usage:__ ### Product_service.remove_fulfillment_places -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_fulfillment_places.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_fulfillment_places.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_fulfillment_places.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_fulfillment_places.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_fulfillment_places.js` ----- @@ -1503,14 +1503,14 @@ __Usage:__ ### Product_service.remove_local_inventories -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_local_inventories.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_local_inventories.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_local_inventories.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.remove_local_inventories.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.remove_local_inventories.js` ----- @@ -1520,14 +1520,14 @@ __Usage:__ ### Product_service.set_inventory -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.set_inventory.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.set_inventory.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.set_inventory.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.set_inventory.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.set_inventory.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.set_inventory.js` ----- @@ -1537,14 +1537,14 @@ __Usage:__ ### Product_service.update_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/product_service.update_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/product_service.update_product.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=/workspace/google-cloud-node/samples/generated/v2alpha/product_service.update_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/product_service.update_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/product_service.update_product.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/product_service.update_product.js` ----- @@ -1554,14 +1554,14 @@ __Usage:__ ### Search_service.search -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/search_service.search.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/search_service.search.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=/workspace/google-cloud-node/samples/generated/v2alpha/search_service.search.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/search_service.search.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/search_service.search.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/search_service.search.js` ----- @@ -1571,14 +1571,14 @@ __Usage:__ ### Serving_config_service.add_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.add_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.add_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.add_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.add_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.add_control.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.add_control.js` ----- @@ -1588,14 +1588,14 @@ __Usage:__ ### Serving_config_service.create_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.create_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.create_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.create_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.create_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.create_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.create_serving_config.js` ----- @@ -1605,14 +1605,14 @@ __Usage:__ ### Serving_config_service.delete_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.delete_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.delete_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.delete_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.delete_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.delete_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.delete_serving_config.js` ----- @@ -1622,14 +1622,14 @@ __Usage:__ ### Serving_config_service.get_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.get_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.get_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.get_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.get_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.get_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.get_serving_config.js` ----- @@ -1639,14 +1639,14 @@ __Usage:__ ### Serving_config_service.list_serving_configs -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.list_serving_configs.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.list_serving_configs.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.list_serving_configs.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.list_serving_configs.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.list_serving_configs.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.list_serving_configs.js` ----- @@ -1656,14 +1656,14 @@ __Usage:__ ### Serving_config_service.remove_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.remove_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.remove_control.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.remove_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.remove_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.remove_control.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.remove_control.js` ----- @@ -1673,14 +1673,14 @@ __Usage:__ ### Serving_config_service.update_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.update_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.update_serving_config.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=/workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.update_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.update_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/serving_config_service.update_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/serving_config_service.update_serving_config.js` ----- @@ -1690,14 +1690,14 @@ __Usage:__ ### User_event_service.collect_user_event -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.collect_user_event.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.collect_user_event.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.collect_user_event.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.collect_user_event.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.collect_user_event.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.collect_user_event.js` ----- @@ -1707,14 +1707,14 @@ __Usage:__ ### User_event_service.import_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.import_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.import_user_events.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.import_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.import_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.import_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.import_user_events.js` ----- @@ -1724,14 +1724,14 @@ __Usage:__ ### User_event_service.purge_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.purge_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.purge_user_events.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.purge_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.purge_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.purge_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.purge_user_events.js` ----- @@ -1741,14 +1741,14 @@ __Usage:__ ### User_event_service.rejoin_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.rejoin_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.rejoin_user_events.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.rejoin_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.rejoin_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.rejoin_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.rejoin_user_events.js` ----- @@ -1758,14 +1758,14 @@ __Usage:__ ### User_event_service.write_user_event -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.write_user_event.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.write_user_event.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=/workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.write_user_event.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.write_user_event.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2alpha/user_event_service.write_user_event.js` +`node packages/google-cloud-retail/samples/generated/v2alpha/user_event_service.write_user_event.js` ----- @@ -1775,14 +1775,14 @@ __Usage:__ ### Catalog_service.add_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.add_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.add_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.add_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.add_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.add_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.add_catalog_attribute.js` ----- @@ -1792,14 +1792,14 @@ __Usage:__ ### Catalog_service.batch_remove_catalog_attributes -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.batch_remove_catalog_attributes.js` ----- @@ -1809,14 +1809,14 @@ __Usage:__ ### Catalog_service.get_attributes_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_attributes_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_attributes_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_attributes_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_attributes_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_attributes_config.js` ----- @@ -1826,14 +1826,14 @@ __Usage:__ ### Catalog_service.get_completion_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_completion_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_completion_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_completion_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_completion_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_completion_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_completion_config.js` ----- @@ -1843,14 +1843,14 @@ __Usage:__ ### Catalog_service.get_default_branch -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_default_branch.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_default_branch.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_default_branch.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_default_branch.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.get_default_branch.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.get_default_branch.js` ----- @@ -1860,14 +1860,14 @@ __Usage:__ ### Catalog_service.list_catalogs -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.list_catalogs.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.list_catalogs.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.list_catalogs.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.list_catalogs.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.list_catalogs.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.list_catalogs.js` ----- @@ -1877,14 +1877,14 @@ __Usage:__ ### Catalog_service.remove_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.remove_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.remove_catalog_attribute.js` ----- @@ -1894,14 +1894,14 @@ __Usage:__ ### Catalog_service.replace_catalog_attribute -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.replace_catalog_attribute.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.replace_catalog_attribute.js` ----- @@ -1911,14 +1911,14 @@ __Usage:__ ### Catalog_service.set_default_branch -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.set_default_branch.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.set_default_branch.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.set_default_branch.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.set_default_branch.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.set_default_branch.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.set_default_branch.js` ----- @@ -1928,14 +1928,14 @@ __Usage:__ ### Catalog_service.update_attributes_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_attributes_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_attributes_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_attributes_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_attributes_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_attributes_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_attributes_config.js` ----- @@ -1945,14 +1945,14 @@ __Usage:__ ### Catalog_service.update_catalog -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_catalog.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_catalog.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_catalog.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_catalog.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_catalog.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_catalog.js` ----- @@ -1962,14 +1962,14 @@ __Usage:__ ### Catalog_service.update_completion_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_completion_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_completion_config.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=/workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_completion_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_completion_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/catalog_service.update_completion_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/catalog_service.update_completion_config.js` ----- @@ -1979,14 +1979,14 @@ __Usage:__ ### Completion_service.complete_query -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/completion_service.complete_query.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/completion_service.complete_query.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=/workspace/google-cloud-node/samples/generated/v2beta/completion_service.complete_query.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/completion_service.complete_query.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/completion_service.complete_query.js` +`node packages/google-cloud-retail/samples/generated/v2beta/completion_service.complete_query.js` ----- @@ -1996,14 +1996,14 @@ __Usage:__ ### Completion_service.import_completion_data -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/completion_service.import_completion_data.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/completion_service.import_completion_data.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=/workspace/google-cloud-node/samples/generated/v2beta/completion_service.import_completion_data.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/completion_service.import_completion_data.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/completion_service.import_completion_data.js` +`node packages/google-cloud-retail/samples/generated/v2beta/completion_service.import_completion_data.js` ----- @@ -2013,14 +2013,14 @@ __Usage:__ ### Control_service.create_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.create_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.create_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.create_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.create_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/control_service.create_control.js` +`node packages/google-cloud-retail/samples/generated/v2beta/control_service.create_control.js` ----- @@ -2030,14 +2030,14 @@ __Usage:__ ### Control_service.delete_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.delete_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.delete_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.delete_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.delete_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/control_service.delete_control.js` +`node packages/google-cloud-retail/samples/generated/v2beta/control_service.delete_control.js` ----- @@ -2047,14 +2047,14 @@ __Usage:__ ### Control_service.get_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.get_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.get_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.get_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.get_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/control_service.get_control.js` +`node packages/google-cloud-retail/samples/generated/v2beta/control_service.get_control.js` ----- @@ -2064,14 +2064,14 @@ __Usage:__ ### Control_service.list_controls -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.list_controls.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.list_controls.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.list_controls.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.list_controls.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/control_service.list_controls.js` +`node packages/google-cloud-retail/samples/generated/v2beta/control_service.list_controls.js` ----- @@ -2081,14 +2081,14 @@ __Usage:__ ### Control_service.update_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/control_service.update_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/control_service.update_control.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=/workspace/google-cloud-node/samples/generated/v2beta/control_service.update_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/control_service.update_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/control_service.update_control.js` +`node packages/google-cloud-retail/samples/generated/v2beta/control_service.update_control.js` ----- @@ -2098,14 +2098,14 @@ __Usage:__ ### Model_service.create_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.create_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.create_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.create_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.create_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/model_service.create_model.js` +`node packages/google-cloud-retail/samples/generated/v2beta/model_service.create_model.js` ----- @@ -2115,14 +2115,14 @@ __Usage:__ ### Model_service.delete_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.delete_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.delete_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.delete_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.delete_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/model_service.delete_model.js` +`node packages/google-cloud-retail/samples/generated/v2beta/model_service.delete_model.js` ----- @@ -2132,14 +2132,14 @@ __Usage:__ ### Model_service.list_models -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.list_models.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.list_models.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.list_models.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.list_models.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/model_service.list_models.js` +`node packages/google-cloud-retail/samples/generated/v2beta/model_service.list_models.js` ----- @@ -2149,14 +2149,14 @@ __Usage:__ ### Model_service.pause_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.pause_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.pause_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.pause_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.pause_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/model_service.pause_model.js` +`node packages/google-cloud-retail/samples/generated/v2beta/model_service.pause_model.js` ----- @@ -2166,14 +2166,14 @@ __Usage:__ ### Model_service.resume_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.resume_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.resume_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.resume_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.resume_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/model_service.resume_model.js` +`node packages/google-cloud-retail/samples/generated/v2beta/model_service.resume_model.js` ----- @@ -2183,14 +2183,14 @@ __Usage:__ ### Model_service.tune_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.tune_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.tune_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.tune_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.tune_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/model_service.tune_model.js` +`node packages/google-cloud-retail/samples/generated/v2beta/model_service.tune_model.js` ----- @@ -2200,14 +2200,14 @@ __Usage:__ ### Model_service.update_model -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/model_service.update_model.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/model_service.update_model.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=/workspace/google-cloud-node/samples/generated/v2beta/model_service.update_model.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/model_service.update_model.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/model_service.update_model.js` +`node packages/google-cloud-retail/samples/generated/v2beta/model_service.update_model.js` ----- @@ -2217,14 +2217,14 @@ __Usage:__ ### Prediction_service.predict -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/prediction_service.predict.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/prediction_service.predict.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=/workspace/google-cloud-node/samples/generated/v2beta/prediction_service.predict.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/prediction_service.predict.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/prediction_service.predict.js` +`node packages/google-cloud-retail/samples/generated/v2beta/prediction_service.predict.js` ----- @@ -2234,14 +2234,14 @@ __Usage:__ ### Product_service.add_fulfillment_places -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.add_fulfillment_places.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.add_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.add_fulfillment_places.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.add_fulfillment_places.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.add_fulfillment_places.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.add_fulfillment_places.js` ----- @@ -2251,14 +2251,14 @@ __Usage:__ ### Product_service.add_local_inventories -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.add_local_inventories.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.add_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.add_local_inventories.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.add_local_inventories.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.add_local_inventories.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.add_local_inventories.js` ----- @@ -2268,14 +2268,14 @@ __Usage:__ ### Product_service.create_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.create_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.create_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.create_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.create_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.create_product.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.create_product.js` ----- @@ -2285,14 +2285,14 @@ __Usage:__ ### Product_service.delete_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.delete_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.delete_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.delete_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.delete_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.delete_product.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.delete_product.js` ----- @@ -2302,14 +2302,14 @@ __Usage:__ ### Product_service.get_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.get_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.get_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.get_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.get_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.get_product.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.get_product.js` ----- @@ -2319,14 +2319,14 @@ __Usage:__ ### Product_service.import_products -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.import_products.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.import_products.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.import_products.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.import_products.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.import_products.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.import_products.js` ----- @@ -2336,14 +2336,14 @@ __Usage:__ ### Product_service.list_products -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.list_products.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.list_products.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.list_products.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.list_products.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.list_products.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.list_products.js` ----- @@ -2353,14 +2353,14 @@ __Usage:__ ### Product_service.remove_fulfillment_places -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_fulfillment_places.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_fulfillment_places.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_fulfillment_places.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_fulfillment_places.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_fulfillment_places.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_fulfillment_places.js` ----- @@ -2370,14 +2370,14 @@ __Usage:__ ### Product_service.remove_local_inventories -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_local_inventories.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_local_inventories.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_local_inventories.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_local_inventories.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.remove_local_inventories.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.remove_local_inventories.js` ----- @@ -2387,14 +2387,14 @@ __Usage:__ ### Product_service.set_inventory -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.set_inventory.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.set_inventory.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.set_inventory.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.set_inventory.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.set_inventory.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.set_inventory.js` ----- @@ -2404,14 +2404,14 @@ __Usage:__ ### Product_service.update_product -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/product_service.update_product.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/product_service.update_product.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=/workspace/google-cloud-node/samples/generated/v2beta/product_service.update_product.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/product_service.update_product.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/product_service.update_product.js` +`node packages/google-cloud-retail/samples/generated/v2beta/product_service.update_product.js` ----- @@ -2421,14 +2421,14 @@ __Usage:__ ### Search_service.search -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/search_service.search.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/search_service.search.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=/workspace/google-cloud-node/samples/generated/v2beta/search_service.search.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/search_service.search.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/search_service.search.js` +`node packages/google-cloud-retail/samples/generated/v2beta/search_service.search.js` ----- @@ -2438,14 +2438,14 @@ __Usage:__ ### Serving_config_service.add_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.add_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.add_control.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.add_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.add_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.add_control.js` +`node packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.add_control.js` ----- @@ -2455,14 +2455,14 @@ __Usage:__ ### Serving_config_service.create_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.create_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.create_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.create_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.create_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.create_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.create_serving_config.js` ----- @@ -2472,14 +2472,14 @@ __Usage:__ ### Serving_config_service.delete_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.delete_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.delete_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.delete_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.delete_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.delete_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.delete_serving_config.js` ----- @@ -2489,14 +2489,14 @@ __Usage:__ ### Serving_config_service.get_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.get_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.get_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.get_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.get_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.get_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.get_serving_config.js` ----- @@ -2506,14 +2506,14 @@ __Usage:__ ### Serving_config_service.list_serving_configs -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.list_serving_configs.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.list_serving_configs.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.list_serving_configs.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.list_serving_configs.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.list_serving_configs.js` +`node packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.list_serving_configs.js` ----- @@ -2523,14 +2523,14 @@ __Usage:__ ### Serving_config_service.remove_control -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.remove_control.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.remove_control.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.remove_control.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.remove_control.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.remove_control.js` +`node packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.remove_control.js` ----- @@ -2540,14 +2540,14 @@ __Usage:__ ### Serving_config_service.update_serving_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.update_serving_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.update_serving_config.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=/workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.update_serving_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.update_serving_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/serving_config_service.update_serving_config.js` +`node packages/google-cloud-retail/samples/generated/v2beta/serving_config_service.update_serving_config.js` ----- @@ -2557,14 +2557,14 @@ __Usage:__ ### User_event_service.collect_user_event -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.collect_user_event.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.collect_user_event.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.collect_user_event.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.collect_user_event.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/user_event_service.collect_user_event.js` +`node packages/google-cloud-retail/samples/generated/v2beta/user_event_service.collect_user_event.js` ----- @@ -2574,14 +2574,14 @@ __Usage:__ ### User_event_service.import_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.import_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.import_user_events.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.import_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.import_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/user_event_service.import_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2beta/user_event_service.import_user_events.js` ----- @@ -2591,14 +2591,14 @@ __Usage:__ ### User_event_service.purge_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.purge_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.purge_user_events.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.purge_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.purge_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/user_event_service.purge_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2beta/user_event_service.purge_user_events.js` ----- @@ -2608,14 +2608,14 @@ __Usage:__ ### User_event_service.rejoin_user_events -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.rejoin_user_events.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.rejoin_user_events.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.rejoin_user_events.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.rejoin_user_events.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/user_event_service.rejoin_user_events.js` +`node packages/google-cloud-retail/samples/generated/v2beta/user_event_service.rejoin_user_events.js` ----- @@ -2625,14 +2625,14 @@ __Usage:__ ### User_event_service.write_user_event -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2beta/user_event_service.write_user_event.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/generated/v2beta/user_event_service.write_user_event.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=/workspace/google-cloud-node/samples/generated/v2beta/user_event_service.write_user_event.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/generated/v2beta/user_event_service.write_user_event.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v2beta/user_event_service.write_user_event.js` +`node packages/google-cloud-retail/samples/generated/v2beta/user_event_service.write_user_event.js` ----- @@ -2642,14 +2642,14 @@ __Usage:__ ### Quickstart -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/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=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/quickstart.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/quickstart.js` +`node packages/google-cloud-retail/samples/quickstart.js` ----- @@ -2659,14 +2659,14 @@ __Usage:__ ### Quickstart -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/test/quickstart.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-retail/samples/test/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=/workspace/google-cloud-node/samples/test/quickstart.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-retail/samples/test/quickstart.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/test/quickstart.js` +`node packages/google-cloud-retail/samples/test/quickstart.js` diff --git a/packages/google-devtools-containeranalysis/src/index.ts b/packages/google-devtools-containeranalysis/src/index.ts index 4ddc0fe6945..e16d185e972 100644 --- a/packages/google-devtools-containeranalysis/src/index.ts +++ b/packages/google-devtools-containeranalysis/src/index.ts @@ -21,10 +21,8 @@ import * as v1beta1 from './v1beta1'; const ContainerAnalysisClient = v1.ContainerAnalysisClient; type ContainerAnalysisClient = v1.ContainerAnalysisClient; -const GrafeasClient = v1beta1.GrafeasV1Beta1Client; -type GrafeasClient = v1beta1.GrafeasV1Beta1Client; -export {v1, v1beta1, ContainerAnalysisClient, GrafeasClient}; -export default {v1, v1beta1, ContainerAnalysisClient, GrafeasClient}; +export {v1, v1beta1, ContainerAnalysisClient}; +export default {v1, v1beta1, ContainerAnalysisClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/release-please-config.json b/release-please-config.json index 32aa8d85241..0d431bd86c3 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -124,4 +124,4 @@ } ], "release-type": "node" -} +} \ No newline at end of file From 19eaf701af3127805c9a3b35a5285eaaaedbe452 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Fri, 18 Nov 2022 10:09:46 -0800 Subject: [PATCH 142/142] rvert containeranalysis change --- packages/google-devtools-containeranalysis/src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/google-devtools-containeranalysis/src/index.ts b/packages/google-devtools-containeranalysis/src/index.ts index e16d185e972..4ddc0fe6945 100644 --- a/packages/google-devtools-containeranalysis/src/index.ts +++ b/packages/google-devtools-containeranalysis/src/index.ts @@ -21,8 +21,10 @@ import * as v1beta1 from './v1beta1'; const ContainerAnalysisClient = v1.ContainerAnalysisClient; type ContainerAnalysisClient = v1.ContainerAnalysisClient; +const GrafeasClient = v1beta1.GrafeasV1Beta1Client; +type GrafeasClient = v1beta1.GrafeasV1Beta1Client; -export {v1, v1beta1, ContainerAnalysisClient}; -export default {v1, v1beta1, ContainerAnalysisClient}; +export {v1, v1beta1, ContainerAnalysisClient, GrafeasClient}; +export default {v1, v1beta1, ContainerAnalysisClient, GrafeasClient}; import * as protos from '../protos/protos'; export {protos};